MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  wlkp1lem8 Structured version   Visualization version   GIF version

Theorem wlkp1lem8 27950
Description: Lemma for wlkp1 27951. (Contributed by AV, 6-Mar-2021.)
Hypotheses
Ref Expression
wlkp1.v 𝑉 = (Vtx‘𝐺)
wlkp1.i 𝐼 = (iEdg‘𝐺)
wlkp1.f (𝜑 → Fun 𝐼)
wlkp1.a (𝜑𝐼 ∈ Fin)
wlkp1.b (𝜑𝐵𝑊)
wlkp1.c (𝜑𝐶𝑉)
wlkp1.d (𝜑 → ¬ 𝐵 ∈ dom 𝐼)
wlkp1.w (𝜑𝐹(Walks‘𝐺)𝑃)
wlkp1.n 𝑁 = (♯‘𝐹)
wlkp1.e (𝜑𝐸 ∈ (Edg‘𝐺))
wlkp1.x (𝜑 → {(𝑃𝑁), 𝐶} ⊆ 𝐸)
wlkp1.u (𝜑 → (iEdg‘𝑆) = (𝐼 ∪ {⟨𝐵, 𝐸⟩}))
wlkp1.h 𝐻 = (𝐹 ∪ {⟨𝑁, 𝐵⟩})
wlkp1.q 𝑄 = (𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})
wlkp1.s (𝜑 → (Vtx‘𝑆) = 𝑉)
wlkp1.l ((𝜑𝐶 = (𝑃𝑁)) → 𝐸 = {𝐶})
Assertion
Ref Expression
wlkp1lem8 (𝜑 → ∀𝑘 ∈ (0..^(♯‘𝐻))if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))))
Distinct variable groups:   𝜑,𝑘   𝑘,𝑁   𝑃,𝑘   𝑄,𝑘   𝑘,𝐹   𝑘,𝐺   𝑘,𝐻   𝑆,𝑘
Allowed substitution hints:   𝐵(𝑘)   𝐶(𝑘)   𝐸(𝑘)   𝐼(𝑘)   𝑉(𝑘)   𝑊(𝑘)

Proof of Theorem wlkp1lem8
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 wlkp1.v . . . 4 𝑉 = (Vtx‘𝐺)
2 wlkp1.i . . . 4 𝐼 = (iEdg‘𝐺)
3 wlkp1.f . . . 4 (𝜑 → Fun 𝐼)
4 wlkp1.a . . . 4 (𝜑𝐼 ∈ Fin)
5 wlkp1.b . . . 4 (𝜑𝐵𝑊)
6 wlkp1.c . . . 4 (𝜑𝐶𝑉)
7 wlkp1.d . . . 4 (𝜑 → ¬ 𝐵 ∈ dom 𝐼)
8 wlkp1.w . . . 4 (𝜑𝐹(Walks‘𝐺)𝑃)
9 wlkp1.n . . . 4 𝑁 = (♯‘𝐹)
10 wlkp1.e . . . 4 (𝜑𝐸 ∈ (Edg‘𝐺))
11 wlkp1.x . . . 4 (𝜑 → {(𝑃𝑁), 𝐶} ⊆ 𝐸)
12 wlkp1.u . . . 4 (𝜑 → (iEdg‘𝑆) = (𝐼 ∪ {⟨𝐵, 𝐸⟩}))
13 wlkp1.h . . . 4 𝐻 = (𝐹 ∪ {⟨𝑁, 𝐵⟩})
14 wlkp1.q . . . 4 𝑄 = (𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})
15 wlkp1.s . . . 4 (𝜑 → (Vtx‘𝑆) = 𝑉)
161, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15wlkp1lem6 27948 . . 3 (𝜑 → ∀𝑘 ∈ (0..^𝑁)((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))))
1710elfvexd 6790 . . . . . 6 (𝜑𝐺 ∈ V)
181, 2iswlkg 27883 . . . . . 6 (𝐺 ∈ V → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
1917, 18syl 17 . . . . 5 (𝜑 → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
209eqcomi 2747 . . . . . . . . 9 (♯‘𝐹) = 𝑁
2120oveq2i 7266 . . . . . . . 8 (0..^(♯‘𝐹)) = (0..^𝑁)
2221raleqi 3337 . . . . . . 7 (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))) ↔ ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
2322biimpi 215 . . . . . 6 (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))) → ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
24233ad2ant3 1133 . . . . 5 ((𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘)))) → ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
2519, 24syl6bi 252 . . . 4 (𝜑 → (𝐹(Walks‘𝐺)𝑃 → ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘)))))
268, 25mpd 15 . . 3 (𝜑 → ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
27 eqeq12 2755 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1))) → ((𝑄𝑘) = (𝑄‘(𝑘 + 1)) ↔ (𝑃𝑘) = (𝑃‘(𝑘 + 1))))
28273adant3 1130 . . . . . 6 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → ((𝑄𝑘) = (𝑄‘(𝑘 + 1)) ↔ (𝑃𝑘) = (𝑃‘(𝑘 + 1))))
29 simp3 1136 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘)))
30 simp1 1134 . . . . . . . 8 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → (𝑄𝑘) = (𝑃𝑘))
3130sneqd 4570 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → {(𝑄𝑘)} = {(𝑃𝑘)})
3229, 31eqeq12d 2754 . . . . . 6 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → (((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)} ↔ (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}))
33 preq12 4668 . . . . . . . 8 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1))) → {(𝑄𝑘), (𝑄‘(𝑘 + 1))} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
34333adant3 1130 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → {(𝑄𝑘), (𝑄‘(𝑘 + 1))} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
3534, 29sseq12d 3950 . . . . . 6 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → ({(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)) ↔ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
3628, 32, 35ifpbi123d 1076 . . . . 5 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → (if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘)))))
3736biimprd 247 . . . 4 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → (if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))) → if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)))))
3837ral2imi 3081 . . 3 (∀𝑘 ∈ (0..^𝑁)((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → (∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))) → ∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)))))
3916, 26, 38sylc 65 . 2 (𝜑 → ∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))))
401, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13wlkp1lem3 27945 . . . . 5 (𝜑 → ((iEdg‘𝑆)‘(𝐻𝑁)) = ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵))
4140adantr 480 . . . 4 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → ((iEdg‘𝑆)‘(𝐻𝑁)) = ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵))
425, 10, 73jca 1126 . . . . . 6 (𝜑 → (𝐵𝑊𝐸 ∈ (Edg‘𝐺) ∧ ¬ 𝐵 ∈ dom 𝐼))
4342adantr 480 . . . . 5 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → (𝐵𝑊𝐸 ∈ (Edg‘𝐺) ∧ ¬ 𝐵 ∈ dom 𝐼))
44 fsnunfv 7041 . . . . 5 ((𝐵𝑊𝐸 ∈ (Edg‘𝐺) ∧ ¬ 𝐵 ∈ dom 𝐼) → ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵) = 𝐸)
4543, 44syl 17 . . . 4 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵) = 𝐸)
46 fveq2 6756 . . . . . . . 8 (𝑥 = 𝑁 → (𝑄𝑥) = (𝑄𝑁))
47 fveq2 6756 . . . . . . . 8 (𝑥 = 𝑁 → (𝑃𝑥) = (𝑃𝑁))
4846, 47eqeq12d 2754 . . . . . . 7 (𝑥 = 𝑁 → ((𝑄𝑥) = (𝑃𝑥) ↔ (𝑄𝑁) = (𝑃𝑁)))
491, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15wlkp1lem5 27947 . . . . . . 7 (𝜑 → ∀𝑥 ∈ (0...𝑁)(𝑄𝑥) = (𝑃𝑥))
502wlkf 27884 . . . . . . . . . 10 (𝐹(Walks‘𝐺)𝑃𝐹 ∈ Word dom 𝐼)
51 lencl 14164 . . . . . . . . . . 11 (𝐹 ∈ Word dom 𝐼 → (♯‘𝐹) ∈ ℕ0)
529eleq1i 2829 . . . . . . . . . . . 12 (𝑁 ∈ ℕ0 ↔ (♯‘𝐹) ∈ ℕ0)
53 elnn0uz 12552 . . . . . . . . . . . 12 (𝑁 ∈ ℕ0𝑁 ∈ (ℤ‘0))
5452, 53sylbb1 236 . . . . . . . . . . 11 ((♯‘𝐹) ∈ ℕ0𝑁 ∈ (ℤ‘0))
5551, 54syl 17 . . . . . . . . . 10 (𝐹 ∈ Word dom 𝐼𝑁 ∈ (ℤ‘0))
568, 50, 553syl 18 . . . . . . . . 9 (𝜑𝑁 ∈ (ℤ‘0))
5756, 53sylibr 233 . . . . . . . 8 (𝜑𝑁 ∈ ℕ0)
58 nn0fz0 13283 . . . . . . . 8 (𝑁 ∈ ℕ0𝑁 ∈ (0...𝑁))
5957, 58sylib 217 . . . . . . 7 (𝜑𝑁 ∈ (0...𝑁))
6048, 49, 59rspcdva 3554 . . . . . 6 (𝜑 → (𝑄𝑁) = (𝑃𝑁))
6114fveq1i 6757 . . . . . . . . . . 11 (𝑄‘(𝑁 + 1)) = ((𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})‘(𝑁 + 1))
62 ovex 7288 . . . . . . . . . . . 12 (𝑁 + 1) ∈ V
631, 2, 3, 4, 5, 6, 7, 8, 9wlkp1lem1 27943 . . . . . . . . . . . 12 (𝜑 → ¬ (𝑁 + 1) ∈ dom 𝑃)
64 fsnunfv 7041 . . . . . . . . . . . 12 (((𝑁 + 1) ∈ V ∧ 𝐶𝑉 ∧ ¬ (𝑁 + 1) ∈ dom 𝑃) → ((𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})‘(𝑁 + 1)) = 𝐶)
6562, 6, 63, 64mp3an2i 1464 . . . . . . . . . . 11 (𝜑 → ((𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})‘(𝑁 + 1)) = 𝐶)
6661, 65syl5eq 2791 . . . . . . . . . 10 (𝜑 → (𝑄‘(𝑁 + 1)) = 𝐶)
6766eqeq2d 2749 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) ↔ (𝑃𝑁) = 𝐶))
68 eqcom 2745 . . . . . . . . 9 ((𝑃𝑁) = 𝐶𝐶 = (𝑃𝑁))
6967, 68bitrdi 286 . . . . . . . 8 (𝜑 → ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) ↔ 𝐶 = (𝑃𝑁)))
70 wlkp1.l . . . . . . . . . 10 ((𝜑𝐶 = (𝑃𝑁)) → 𝐸 = {𝐶})
71 sneq 4568 . . . . . . . . . . 11 (𝐶 = (𝑃𝑁) → {𝐶} = {(𝑃𝑁)})
7271adantl 481 . . . . . . . . . 10 ((𝜑𝐶 = (𝑃𝑁)) → {𝐶} = {(𝑃𝑁)})
7370, 72eqtrd 2778 . . . . . . . . 9 ((𝜑𝐶 = (𝑃𝑁)) → 𝐸 = {(𝑃𝑁)})
7473ex 412 . . . . . . . 8 (𝜑 → (𝐶 = (𝑃𝑁) → 𝐸 = {(𝑃𝑁)}))
7569, 74sylbid 239 . . . . . . 7 (𝜑 → ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑃𝑁)}))
76 eqeq1 2742 . . . . . . . 8 ((𝑄𝑁) = (𝑃𝑁) → ((𝑄𝑁) = (𝑄‘(𝑁 + 1)) ↔ (𝑃𝑁) = (𝑄‘(𝑁 + 1))))
77 sneq 4568 . . . . . . . . 9 ((𝑄𝑁) = (𝑃𝑁) → {(𝑄𝑁)} = {(𝑃𝑁)})
7877eqeq2d 2749 . . . . . . . 8 ((𝑄𝑁) = (𝑃𝑁) → (𝐸 = {(𝑄𝑁)} ↔ 𝐸 = {(𝑃𝑁)}))
7976, 78imbi12d 344 . . . . . . 7 ((𝑄𝑁) = (𝑃𝑁) → (((𝑄𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑄𝑁)}) ↔ ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑃𝑁)})))
8075, 79syl5ibrcom 246 . . . . . 6 (𝜑 → ((𝑄𝑁) = (𝑃𝑁) → ((𝑄𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑄𝑁)})))
8160, 80mpd 15 . . . . 5 (𝜑 → ((𝑄𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑄𝑁)}))
8281imp 406 . . . 4 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → 𝐸 = {(𝑄𝑁)})
8341, 45, 823eqtrd 2782 . . 3 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)})
841, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15wlkp1lem7 27949 . . . 4 (𝜑 → {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))
8584adantr 480 . . 3 ((𝜑 ∧ ¬ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))
8683, 85ifpimpda 1079 . 2 (𝜑 → if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁))))
871, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13wlkp1lem2 27944 . . . . . 6 (𝜑 → (♯‘𝐻) = (𝑁 + 1))
8887oveq2d 7271 . . . . 5 (𝜑 → (0..^(♯‘𝐻)) = (0..^(𝑁 + 1)))
89 fzosplitsn 13423 . . . . . 6 (𝑁 ∈ (ℤ‘0) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
9056, 89syl 17 . . . . 5 (𝜑 → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
9188, 90eqtrd 2778 . . . 4 (𝜑 → (0..^(♯‘𝐻)) = ((0..^𝑁) ∪ {𝑁}))
9291raleqdv 3339 . . 3 (𝜑 → (∀𝑘 ∈ (0..^(♯‘𝐻))if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ ∀𝑘 ∈ ((0..^𝑁) ∪ {𝑁})if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)))))
93 ralunb 4121 . . . 4 (∀𝑘 ∈ ((0..^𝑁) ∪ {𝑁})if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ (∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ∧ ∀𝑘 ∈ {𝑁}if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)))))
9493a1i 11 . . 3 (𝜑 → (∀𝑘 ∈ ((0..^𝑁) ∪ {𝑁})if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ (∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ∧ ∀𝑘 ∈ {𝑁}if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))))))
959fvexi 6770 . . . . 5 𝑁 ∈ V
96 wkslem1 27877 . . . . . 6 (𝑘 = 𝑁 → (if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))))
9796ralsng 4606 . . . . 5 (𝑁 ∈ V → (∀𝑘 ∈ {𝑁}if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))))
9895, 97mp1i 13 . . . 4 (𝜑 → (∀𝑘 ∈ {𝑁}if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))))
9998anbi2d 628 . . 3 (𝜑 → ((∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ∧ ∀𝑘 ∈ {𝑁}if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)))) ↔ (∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ∧ if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁))))))
10092, 94, 993bitrd 304 . 2 (𝜑 → (∀𝑘 ∈ (0..^(♯‘𝐻))if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ (∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ∧ if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁))))))
10139, 86, 100mpbir2and 709 1 (𝜑 → ∀𝑘 ∈ (0..^(♯‘𝐻))if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  if-wif 1059  w3a 1085   = wceq 1539  wcel 2108  wral 3063  Vcvv 3422  cun 3881  wss 3883  {csn 4558  {cpr 4560  cop 4564   class class class wbr 5070  dom cdm 5580  Fun wfun 6412  wf 6414  cfv 6418  (class class class)co 7255  Fincfn 8691  0cc0 10802  1c1 10803   + caddc 10805  0cn0 12163  cuz 12511  ...cfz 13168  ..^cfzo 13311  chash 13972  Word cword 14145  Vtxcvtx 27269  iEdgciedg 27270  Edgcedg 27320  Walkscwlks 27866
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-ifp 1060  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-map 8575  df-pm 8576  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-z 12250  df-uz 12512  df-fz 13169  df-fzo 13312  df-hash 13973  df-word 14146  df-wlks 27869
This theorem is referenced by:  wlkp1  27951
  Copyright terms: Public domain W3C validator