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

Theorem wlkp1lem8 28057
Description: Lemma for wlkp1 28058. (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 28055 . . 3 (𝜑 → ∀𝑘 ∈ (0..^𝑁)((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))))
1710elfvexd 6817 . . . . . 6 (𝜑𝐺 ∈ V)
181, 2iswlkg 27989 . . . . . 6 (𝐺 ∈ V → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
1917, 18syl 17 . . . . 5 (𝜑 → (𝐹(Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(♯‘𝐹))⟶𝑉 ∧ ∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))))
209eqcomi 2748 . . . . . . . . 9 (♯‘𝐹) = 𝑁
2120oveq2i 7295 . . . . . . . 8 (0..^(♯‘𝐹)) = (0..^𝑁)
2221raleqi 3347 . . . . . . 7 (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))) ↔ ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
2322biimpi 215 . . . . . 6 (∀𝑘 ∈ (0..^(♯‘𝐹))if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))) → ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
24233ad2ant3 1134 . . . . 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 2756 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1))) → ((𝑄𝑘) = (𝑄‘(𝑘 + 1)) ↔ (𝑃𝑘) = (𝑃‘(𝑘 + 1))))
28273adant3 1131 . . . . . 6 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → ((𝑄𝑘) = (𝑄‘(𝑘 + 1)) ↔ (𝑃𝑘) = (𝑃‘(𝑘 + 1))))
29 simp3 1137 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘)))
30 simp1 1135 . . . . . . . 8 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → (𝑄𝑘) = (𝑃𝑘))
3130sneqd 4574 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → {(𝑄𝑘)} = {(𝑃𝑘)})
3229, 31eqeq12d 2755 . . . . . 6 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → (((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)} ↔ (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}))
33 preq12 4672 . . . . . . . 8 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1))) → {(𝑄𝑘), (𝑄‘(𝑘 + 1))} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
34333adant3 1131 . . . . . . 7 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → {(𝑄𝑘), (𝑄‘(𝑘 + 1))} = {(𝑃𝑘), (𝑃‘(𝑘 + 1))})
3534, 29sseq12d 3955 . . . . . 6 (((𝑄𝑘) = (𝑃𝑘) ∧ (𝑄‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1)) ∧ ((iEdg‘𝑆)‘(𝐻𝑘)) = (𝐼‘(𝐹𝑘))) → ({(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)) ↔ {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
3628, 32, 35ifpbi123d 1077 . . . . 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 3083 . . 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 28052 . . . . 5 (𝜑 → ((iEdg‘𝑆)‘(𝐻𝑁)) = ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵))
4140adantr 481 . . . 4 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → ((iEdg‘𝑆)‘(𝐻𝑁)) = ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵))
425, 10, 73jca 1127 . . . . . 6 (𝜑 → (𝐵𝑊𝐸 ∈ (Edg‘𝐺) ∧ ¬ 𝐵 ∈ dom 𝐼))
4342adantr 481 . . . . 5 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → (𝐵𝑊𝐸 ∈ (Edg‘𝐺) ∧ ¬ 𝐵 ∈ dom 𝐼))
44 fsnunfv 7068 . . . . 5 ((𝐵𝑊𝐸 ∈ (Edg‘𝐺) ∧ ¬ 𝐵 ∈ dom 𝐼) → ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵) = 𝐸)
4543, 44syl 17 . . . 4 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → ((𝐼 ∪ {⟨𝐵, 𝐸⟩})‘𝐵) = 𝐸)
46 fveq2 6783 . . . . . . . 8 (𝑥 = 𝑁 → (𝑄𝑥) = (𝑄𝑁))
47 fveq2 6783 . . . . . . . 8 (𝑥 = 𝑁 → (𝑃𝑥) = (𝑃𝑁))
4846, 47eqeq12d 2755 . . . . . . 7 (𝑥 = 𝑁 → ((𝑄𝑥) = (𝑃𝑥) ↔ (𝑄𝑁) = (𝑃𝑁)))
491, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15wlkp1lem5 28054 . . . . . . 7 (𝜑 → ∀𝑥 ∈ (0...𝑁)(𝑄𝑥) = (𝑃𝑥))
502wlkf 27990 . . . . . . . . . 10 (𝐹(Walks‘𝐺)𝑃𝐹 ∈ Word dom 𝐼)
51 lencl 14245 . . . . . . . . . . 11 (𝐹 ∈ Word dom 𝐼 → (♯‘𝐹) ∈ ℕ0)
529eleq1i 2830 . . . . . . . . . . . 12 (𝑁 ∈ ℕ0 ↔ (♯‘𝐹) ∈ ℕ0)
53 elnn0uz 12632 . . . . . . . . . . . 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 13363 . . . . . . . 8 (𝑁 ∈ ℕ0𝑁 ∈ (0...𝑁))
5957, 58sylib 217 . . . . . . 7 (𝜑𝑁 ∈ (0...𝑁))
6048, 49, 59rspcdva 3563 . . . . . 6 (𝜑 → (𝑄𝑁) = (𝑃𝑁))
6114fveq1i 6784 . . . . . . . . . . 11 (𝑄‘(𝑁 + 1)) = ((𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})‘(𝑁 + 1))
62 ovex 7317 . . . . . . . . . . . 12 (𝑁 + 1) ∈ V
631, 2, 3, 4, 5, 6, 7, 8, 9wlkp1lem1 28050 . . . . . . . . . . . 12 (𝜑 → ¬ (𝑁 + 1) ∈ dom 𝑃)
64 fsnunfv 7068 . . . . . . . . . . . 12 (((𝑁 + 1) ∈ V ∧ 𝐶𝑉 ∧ ¬ (𝑁 + 1) ∈ dom 𝑃) → ((𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})‘(𝑁 + 1)) = 𝐶)
6562, 6, 63, 64mp3an2i 1465 . . . . . . . . . . 11 (𝜑 → ((𝑃 ∪ {⟨(𝑁 + 1), 𝐶⟩})‘(𝑁 + 1)) = 𝐶)
6661, 65eqtrid 2791 . . . . . . . . . 10 (𝜑 → (𝑄‘(𝑁 + 1)) = 𝐶)
6766eqeq2d 2750 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) ↔ (𝑃𝑁) = 𝐶))
68 eqcom 2746 . . . . . . . . 9 ((𝑃𝑁) = 𝐶𝐶 = (𝑃𝑁))
6967, 68bitrdi 287 . . . . . . . 8 (𝜑 → ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) ↔ 𝐶 = (𝑃𝑁)))
70 wlkp1.l . . . . . . . . . 10 ((𝜑𝐶 = (𝑃𝑁)) → 𝐸 = {𝐶})
71 sneq 4572 . . . . . . . . . . 11 (𝐶 = (𝑃𝑁) → {𝐶} = {(𝑃𝑁)})
7271adantl 482 . . . . . . . . . 10 ((𝜑𝐶 = (𝑃𝑁)) → {𝐶} = {(𝑃𝑁)})
7370, 72eqtrd 2779 . . . . . . . . 9 ((𝜑𝐶 = (𝑃𝑁)) → 𝐸 = {(𝑃𝑁)})
7473ex 413 . . . . . . . 8 (𝜑 → (𝐶 = (𝑃𝑁) → 𝐸 = {(𝑃𝑁)}))
7569, 74sylbid 239 . . . . . . 7 (𝜑 → ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑃𝑁)}))
76 eqeq1 2743 . . . . . . . 8 ((𝑄𝑁) = (𝑃𝑁) → ((𝑄𝑁) = (𝑄‘(𝑁 + 1)) ↔ (𝑃𝑁) = (𝑄‘(𝑁 + 1))))
77 sneq 4572 . . . . . . . . 9 ((𝑄𝑁) = (𝑃𝑁) → {(𝑄𝑁)} = {(𝑃𝑁)})
7877eqeq2d 2750 . . . . . . . 8 ((𝑄𝑁) = (𝑃𝑁) → (𝐸 = {(𝑄𝑁)} ↔ 𝐸 = {(𝑃𝑁)}))
7976, 78imbi12d 345 . . . . . . 7 ((𝑄𝑁) = (𝑃𝑁) → (((𝑄𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑄𝑁)}) ↔ ((𝑃𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑃𝑁)})))
8075, 79syl5ibrcom 246 . . . . . 6 (𝜑 → ((𝑄𝑁) = (𝑃𝑁) → ((𝑄𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑄𝑁)})))
8160, 80mpd 15 . . . . 5 (𝜑 → ((𝑄𝑁) = (𝑄‘(𝑁 + 1)) → 𝐸 = {(𝑄𝑁)}))
8281imp 407 . . . 4 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → 𝐸 = {(𝑄𝑁)})
8341, 45, 823eqtrd 2783 . . 3 ((𝜑 ∧ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)})
841, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15wlkp1lem7 28056 . . . 4 (𝜑 → {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))
8584adantr 481 . . 3 ((𝜑 ∧ ¬ (𝑄𝑁) = (𝑄‘(𝑁 + 1))) → {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))
8683, 85ifpimpda 1080 . 2 (𝜑 → if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁))))
871, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13wlkp1lem2 28051 . . . . . 6 (𝜑 → (♯‘𝐻) = (𝑁 + 1))
8887oveq2d 7300 . . . . 5 (𝜑 → (0..^(♯‘𝐻)) = (0..^(𝑁 + 1)))
89 fzosplitsn 13504 . . . . . 6 (𝑁 ∈ (ℤ‘0) → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
9056, 89syl 17 . . . . 5 (𝜑 → (0..^(𝑁 + 1)) = ((0..^𝑁) ∪ {𝑁}))
9188, 90eqtrd 2779 . . . 4 (𝜑 → (0..^(♯‘𝐻)) = ((0..^𝑁) ∪ {𝑁}))
9291raleqdv 3349 . . 3 (𝜑 → (∀𝑘 ∈ (0..^(♯‘𝐻))if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ ∀𝑘 ∈ ((0..^𝑁) ∪ {𝑁})if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘)))))
93 ralunb 4126 . . . 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 6797 . . . . 5 𝑁 ∈ V
96 wkslem1 27983 . . . . . 6 (𝑘 = 𝑁 → (if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁)))))
9796ralsng 4610 . . . . 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 629 . . 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 305 . 2 (𝜑 → (∀𝑘 ∈ (0..^(♯‘𝐻))if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ↔ (∀𝑘 ∈ (0..^𝑁)if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))) ∧ if-((𝑄𝑁) = (𝑄‘(𝑁 + 1)), ((iEdg‘𝑆)‘(𝐻𝑁)) = {(𝑄𝑁)}, {(𝑄𝑁), (𝑄‘(𝑁 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑁))))))
10139, 86, 100mpbir2and 710 1 (𝜑 → ∀𝑘 ∈ (0..^(♯‘𝐻))if-((𝑄𝑘) = (𝑄‘(𝑘 + 1)), ((iEdg‘𝑆)‘(𝐻𝑘)) = {(𝑄𝑘)}, {(𝑄𝑘), (𝑄‘(𝑘 + 1))} ⊆ ((iEdg‘𝑆)‘(𝐻𝑘))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  if-wif 1060  w3a 1086   = wceq 1539  wcel 2107  wral 3065  Vcvv 3433  cun 3886  wss 3888  {csn 4562  {cpr 4564  cop 4568   class class class wbr 5075  dom cdm 5590  Fun wfun 6431  wf 6433  cfv 6437  (class class class)co 7284  Fincfn 8742  0cc0 10880  1c1 10881   + caddc 10883  0cn0 12242  cuz 12591  ...cfz 13248  ..^cfzo 13391  chash 14053  Word cword 14226  Vtxcvtx 27375  iEdgciedg 27376  Edgcedg 27426  Walkscwlks 27972
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2710  ax-rep 5210  ax-sep 5224  ax-nul 5231  ax-pow 5289  ax-pr 5353  ax-un 7597  ax-cnex 10936  ax-resscn 10937  ax-1cn 10938  ax-icn 10939  ax-addcl 10940  ax-addrcl 10941  ax-mulcl 10942  ax-mulrcl 10943  ax-mulcom 10944  ax-addass 10945  ax-mulass 10946  ax-distr 10947  ax-i2m1 10948  ax-1ne0 10949  ax-1rid 10950  ax-rnegex 10951  ax-rrecex 10952  ax-cnre 10953  ax-pre-lttri 10954  ax-pre-lttrn 10955  ax-pre-ltadd 10956  ax-pre-mulgt0 10957
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-ifp 1061  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-nel 3051  df-ral 3070  df-rex 3071  df-reu 3073  df-rab 3074  df-v 3435  df-sbc 3718  df-csb 3834  df-dif 3891  df-un 3893  df-in 3895  df-ss 3905  df-pss 3907  df-nul 4258  df-if 4461  df-pw 4536  df-sn 4563  df-pr 4565  df-op 4569  df-uni 4841  df-int 4881  df-iun 4927  df-br 5076  df-opab 5138  df-mpt 5159  df-tr 5193  df-id 5490  df-eprel 5496  df-po 5504  df-so 5505  df-fr 5545  df-we 5547  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-pred 6206  df-ord 6273  df-on 6274  df-lim 6275  df-suc 6276  df-iota 6395  df-fun 6439  df-fn 6440  df-f 6441  df-f1 6442  df-fo 6443  df-f1o 6444  df-fv 6445  df-riota 7241  df-ov 7287  df-oprab 7288  df-mpo 7289  df-om 7722  df-1st 7840  df-2nd 7841  df-frecs 8106  df-wrecs 8137  df-recs 8211  df-rdg 8250  df-1o 8306  df-oadd 8310  df-er 8507  df-map 8626  df-pm 8627  df-en 8743  df-dom 8744  df-sdom 8745  df-fin 8746  df-dju 9668  df-card 9706  df-pnf 11020  df-mnf 11021  df-xr 11022  df-ltxr 11023  df-le 11024  df-sub 11216  df-neg 11217  df-nn 11983  df-n0 12243  df-z 12329  df-uz 12592  df-fz 13249  df-fzo 13392  df-hash 14054  df-word 14227  df-wlks 27975
This theorem is referenced by:  wlkp1  28058
  Copyright terms: Public domain W3C validator