Mathbox for Alexander van der Vekens < Previous   Next > Nearby theorems Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  crctcsh1wlkn0 Structured version   Visualization version   GIF version

Theorem crctcsh1wlkn0 41024
 Description: Cyclically shifting the indices of a circuit ⟨𝐹, 𝑃⟩ results in a 1-walk ⟨𝐻, 𝑄⟩. (Contributed by AV, 10-Mar-2021.)
Hypotheses
Ref Expression
crctcsh.v 𝑉 = (Vtx‘𝐺)
crctcsh.i 𝐼 = (iEdg‘𝐺)
crctcsh.d (𝜑𝐹(CircuitS‘𝐺)𝑃)
crctcsh.n 𝑁 = (#‘𝐹)
crctcsh.s (𝜑𝑆 ∈ (0..^𝑁))
crctcsh.h 𝐻 = (𝐹 cyclShift 𝑆)
crctcsh.q 𝑄 = (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ (𝑁𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))))
Assertion
Ref Expression
crctcsh1wlkn0 ((𝜑𝑆 ≠ 0) → 𝐻(1Walks‘𝐺)𝑄)
Distinct variable groups:   𝑥,𝑁   𝑥,𝑃   𝑥,𝑆   𝜑,𝑥   𝑥,𝐹   𝑥,𝐼   𝑥,𝑉
Allowed substitution hints:   𝑄(𝑥)   𝐺(𝑥)   𝐻(𝑥)

Proof of Theorem crctcsh1wlkn0
Dummy variables 𝑖 𝑗 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 crctcsh.h . . . . 5 𝐻 = (𝐹 cyclShift 𝑆)
2 crctcsh.d . . . . . . 7 (𝜑𝐹(CircuitS‘𝐺)𝑃)
3 crctis1wlk 41002 . . . . . . 7 (𝐹(CircuitS‘𝐺)𝑃𝐹(1Walks‘𝐺)𝑃)
4 crctcsh.i . . . . . . . 8 𝐼 = (iEdg‘𝐺)
541wlkf 40819 . . . . . . 7 (𝐹(1Walks‘𝐺)𝑃𝐹 ∈ Word dom 𝐼)
62, 3, 53syl 18 . . . . . 6 (𝜑𝐹 ∈ Word dom 𝐼)
7 cshwcl 13395 . . . . . 6 (𝐹 ∈ Word dom 𝐼 → (𝐹 cyclShift 𝑆) ∈ Word dom 𝐼)
86, 7syl 17 . . . . 5 (𝜑 → (𝐹 cyclShift 𝑆) ∈ Word dom 𝐼)
91, 8syl5eqel 2692 . . . 4 (𝜑𝐻 ∈ Word dom 𝐼)
109adantr 480 . . 3 ((𝜑𝑆 ≠ 0) → 𝐻 ∈ Word dom 𝐼)
112, 3syl 17 . . . . . . . 8 (𝜑𝐹(1Walks‘𝐺)𝑃)
12 crctcsh.v . . . . . . . . . 10 𝑉 = (Vtx‘𝐺)
13121wlkp 40821 . . . . . . . . 9 (𝐹(1Walks‘𝐺)𝑃𝑃:(0...(#‘𝐹))⟶𝑉)
14 simpll 786 . . . . . . . . . . . 12 (((𝑃:(0...(#‘𝐹))⟶𝑉 ∧ (𝜑𝑥 ∈ (0...𝑁))) ∧ 𝑥 ≤ (𝑁𝑆)) → 𝑃:(0...(#‘𝐹))⟶𝑉)
15 crctcsh.s . . . . . . . . . . . . . . 15 (𝜑𝑆 ∈ (0..^𝑁))
16 elfznn0 12302 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ (0...𝑁) → 𝑥 ∈ ℕ0)
1716adantl 481 . . . . . . . . . . . . . . . . . 18 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → 𝑥 ∈ ℕ0)
18 elfzonn0 12380 . . . . . . . . . . . . . . . . . . 19 (𝑆 ∈ (0..^𝑁) → 𝑆 ∈ ℕ0)
1918adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → 𝑆 ∈ ℕ0)
2017, 19nn0addcld 11232 . . . . . . . . . . . . . . . . 17 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → (𝑥 + 𝑆) ∈ ℕ0)
2120adantr 480 . . . . . . . . . . . . . . . 16 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ 𝑥 ≤ (𝑁𝑆)) → (𝑥 + 𝑆) ∈ ℕ0)
22 crctcsh.n . . . . . . . . . . . . . . . . . 18 𝑁 = (#‘𝐹)
23 elfz3nn0 12303 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (0...𝑁) → 𝑁 ∈ ℕ0)
2422, 23syl5eqelr 2693 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ (0...𝑁) → (#‘𝐹) ∈ ℕ0)
2524ad2antlr 759 . . . . . . . . . . . . . . . 16 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ 𝑥 ≤ (𝑁𝑆)) → (#‘𝐹) ∈ ℕ0)
26 elfzelz 12213 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ (0...𝑁) → 𝑥 ∈ ℤ)
2726zred 11358 . . . . . . . . . . . . . . . . . . . 20 (𝑥 ∈ (0...𝑁) → 𝑥 ∈ ℝ)
2827adantl 481 . . . . . . . . . . . . . . . . . . 19 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → 𝑥 ∈ ℝ)
29 elfzoelz 12339 . . . . . . . . . . . . . . . . . . . . 21 (𝑆 ∈ (0..^𝑁) → 𝑆 ∈ ℤ)
3029zred 11358 . . . . . . . . . . . . . . . . . . . 20 (𝑆 ∈ (0..^𝑁) → 𝑆 ∈ ℝ)
3130adantr 480 . . . . . . . . . . . . . . . . . . 19 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → 𝑆 ∈ ℝ)
32 elfzel2 12211 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ (0...𝑁) → 𝑁 ∈ ℤ)
3332zred 11358 . . . . . . . . . . . . . . . . . . . 20 (𝑥 ∈ (0...𝑁) → 𝑁 ∈ ℝ)
3433adantl 481 . . . . . . . . . . . . . . . . . . 19 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → 𝑁 ∈ ℝ)
35 leaddsub 10383 . . . . . . . . . . . . . . . . . . 19 ((𝑥 ∈ ℝ ∧ 𝑆 ∈ ℝ ∧ 𝑁 ∈ ℝ) → ((𝑥 + 𝑆) ≤ 𝑁𝑥 ≤ (𝑁𝑆)))
3628, 31, 34, 35syl3anc 1318 . . . . . . . . . . . . . . . . . 18 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → ((𝑥 + 𝑆) ≤ 𝑁𝑥 ≤ (𝑁𝑆)))
3736biimpar 501 . . . . . . . . . . . . . . . . 17 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ 𝑥 ≤ (𝑁𝑆)) → (𝑥 + 𝑆) ≤ 𝑁)
3837, 22syl6breq 4624 . . . . . . . . . . . . . . . 16 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ 𝑥 ≤ (𝑁𝑆)) → (𝑥 + 𝑆) ≤ (#‘𝐹))
3921, 25, 383jca 1235 . . . . . . . . . . . . . . 15 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) ∈ ℕ0 ∧ (#‘𝐹) ∈ ℕ0 ∧ (𝑥 + 𝑆) ≤ (#‘𝐹)))
4015, 39sylanl1 680 . . . . . . . . . . . . . 14 (((𝜑𝑥 ∈ (0...𝑁)) ∧ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) ∈ ℕ0 ∧ (#‘𝐹) ∈ ℕ0 ∧ (𝑥 + 𝑆) ≤ (#‘𝐹)))
41 elfz2nn0 12300 . . . . . . . . . . . . . 14 ((𝑥 + 𝑆) ∈ (0...(#‘𝐹)) ↔ ((𝑥 + 𝑆) ∈ ℕ0 ∧ (#‘𝐹) ∈ ℕ0 ∧ (𝑥 + 𝑆) ≤ (#‘𝐹)))
4240, 41sylibr 223 . . . . . . . . . . . . 13 (((𝜑𝑥 ∈ (0...𝑁)) ∧ 𝑥 ≤ (𝑁𝑆)) → (𝑥 + 𝑆) ∈ (0...(#‘𝐹)))
4342adantll 746 . . . . . . . . . . . 12 (((𝑃:(0...(#‘𝐹))⟶𝑉 ∧ (𝜑𝑥 ∈ (0...𝑁))) ∧ 𝑥 ≤ (𝑁𝑆)) → (𝑥 + 𝑆) ∈ (0...(#‘𝐹)))
4414, 43ffvelrnd 6268 . . . . . . . . . . 11 (((𝑃:(0...(#‘𝐹))⟶𝑉 ∧ (𝜑𝑥 ∈ (0...𝑁))) ∧ 𝑥 ≤ (𝑁𝑆)) → (𝑃‘(𝑥 + 𝑆)) ∈ 𝑉)
45 simpll 786 . . . . . . . . . . . 12 (((𝑃:(0...(#‘𝐹))⟶𝑉 ∧ (𝜑𝑥 ∈ (0...𝑁))) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → 𝑃:(0...(#‘𝐹))⟶𝑉)
46 elfzoel2 12338 . . . . . . . . . . . . . . . . . . 19 (𝑆 ∈ (0..^𝑁) → 𝑁 ∈ ℤ)
47 zaddcl 11294 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑥 ∈ ℤ ∧ 𝑆 ∈ ℤ) → (𝑥 + 𝑆) ∈ ℤ)
4847adantrr 749 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → (𝑥 + 𝑆) ∈ ℤ)
49 simprr 792 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → 𝑁 ∈ ℤ)
5048, 49zsubcld 11363 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑥 + 𝑆) − 𝑁) ∈ ℤ)
5150adantr 480 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) − 𝑁) ∈ ℤ)
52 zsubcl 11296 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑁 ∈ ℤ ∧ 𝑆 ∈ ℤ) → (𝑁𝑆) ∈ ℤ)
5352ancoms 468 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑁𝑆) ∈ ℤ)
5453zred 11358 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑁𝑆) ∈ ℝ)
55 zre 11258 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑥 ∈ ℤ → 𝑥 ∈ ℝ)
56 ltnle 9996 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑁𝑆) ∈ ℝ ∧ 𝑥 ∈ ℝ) → ((𝑁𝑆) < 𝑥 ↔ ¬ 𝑥 ≤ (𝑁𝑆)))
5754, 55, 56syl2anr 494 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑁𝑆) < 𝑥 ↔ ¬ 𝑥 ≤ (𝑁𝑆)))
58 zre 11258 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑁 ∈ ℤ → 𝑁 ∈ ℝ)
5958adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑁 ∈ ℝ)
60 zre 11258 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑆 ∈ ℤ → 𝑆 ∈ ℝ)
6160adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑆 ∈ ℝ)
6255adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → 𝑥 ∈ ℝ)
63 ltsubadd 10377 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑁 ∈ ℝ ∧ 𝑆 ∈ ℝ ∧ 𝑥 ∈ ℝ) → ((𝑁𝑆) < 𝑥𝑁 < (𝑥 + 𝑆)))
6459, 61, 62, 63syl2an23an 1379 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑁𝑆) < 𝑥𝑁 < (𝑥 + 𝑆)))
6559adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → 𝑁 ∈ ℝ)
6648zred 11358 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → (𝑥 + 𝑆) ∈ ℝ)
6765, 66posdifd 10493 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → (𝑁 < (𝑥 + 𝑆) ↔ 0 < ((𝑥 + 𝑆) − 𝑁)))
68 0red 9920 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → 0 ∈ ℝ)
6950zred 11358 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑥 + 𝑆) − 𝑁) ∈ ℝ)
70 ltle 10005 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((0 ∈ ℝ ∧ ((𝑥 + 𝑆) − 𝑁) ∈ ℝ) → (0 < ((𝑥 + 𝑆) − 𝑁) → 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
7168, 69, 70syl2anc 691 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → (0 < ((𝑥 + 𝑆) − 𝑁) → 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
7267, 71sylbid 229 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → (𝑁 < (𝑥 + 𝑆) → 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
7364, 72sylbid 229 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑁𝑆) < 𝑥 → 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
7457, 73sylbird 249 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → (¬ 𝑥 ≤ (𝑁𝑆) → 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
7574imp 444 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → 0 ≤ ((𝑥 + 𝑆) − 𝑁))
7651, 75jca 553 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → (((𝑥 + 𝑆) − 𝑁) ∈ ℤ ∧ 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
7776exp31 628 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ ℤ → ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (¬ 𝑥 ≤ (𝑁𝑆) → (((𝑥 + 𝑆) − 𝑁) ∈ ℤ ∧ 0 ≤ ((𝑥 + 𝑆) − 𝑁)))))
7826, 77syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝑥 ∈ (0...𝑁) → ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (¬ 𝑥 ≤ (𝑁𝑆) → (((𝑥 + 𝑆) − 𝑁) ∈ ℤ ∧ 0 ≤ ((𝑥 + 𝑆) − 𝑁)))))
7978com12 32 . . . . . . . . . . . . . . . . . . 19 ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑥 ∈ (0...𝑁) → (¬ 𝑥 ≤ (𝑁𝑆) → (((𝑥 + 𝑆) − 𝑁) ∈ ℤ ∧ 0 ≤ ((𝑥 + 𝑆) − 𝑁)))))
8029, 46, 79syl2anc 691 . . . . . . . . . . . . . . . . . 18 (𝑆 ∈ (0..^𝑁) → (𝑥 ∈ (0...𝑁) → (¬ 𝑥 ≤ (𝑁𝑆) → (((𝑥 + 𝑆) − 𝑁) ∈ ℤ ∧ 0 ≤ ((𝑥 + 𝑆) − 𝑁)))))
8180imp31 447 . . . . . . . . . . . . . . . . 17 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → (((𝑥 + 𝑆) − 𝑁) ∈ ℤ ∧ 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
82 elnn0z 11267 . . . . . . . . . . . . . . . . 17 (((𝑥 + 𝑆) − 𝑁) ∈ ℕ0 ↔ (((𝑥 + 𝑆) − 𝑁) ∈ ℤ ∧ 0 ≤ ((𝑥 + 𝑆) − 𝑁)))
8381, 82sylibr 223 . . . . . . . . . . . . . . . 16 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) − 𝑁) ∈ ℕ0)
8424ad2antlr 759 . . . . . . . . . . . . . . . 16 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → (#‘𝐹) ∈ ℕ0)
85 elfzo0 12376 . . . . . . . . . . . . . . . . . . . . 21 (𝑆 ∈ (0..^𝑁) ↔ (𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁))
86 elfz2nn0 12300 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ (0...𝑁) ↔ (𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁))
87 nn0re 11178 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑆 ∈ ℕ0𝑆 ∈ ℝ)
88873ad2ant1 1075 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → 𝑆 ∈ ℝ)
89 nn0re 11178 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑥 ∈ ℕ0𝑥 ∈ ℝ)
90893ad2ant1 1075 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁) → 𝑥 ∈ ℝ)
9188, 90anim12ci 589 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) ∧ (𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁)) → (𝑥 ∈ ℝ ∧ 𝑆 ∈ ℝ))
92 nnre 10904 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑁 ∈ ℕ → 𝑁 ∈ ℝ)
9392, 92jca 553 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑁 ∈ ℕ → (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ))
94933ad2ant2 1076 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ))
9594adantr 480 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) ∧ (𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁)) → (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ))
9691, 95jca 553 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) ∧ (𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁)) → ((𝑥 ∈ ℝ ∧ 𝑆 ∈ ℝ) ∧ (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)))
97 simpr3 1062 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) ∧ (𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁)) → 𝑥𝑁)
98 ltle 10005 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑆 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (𝑆 < 𝑁𝑆𝑁))
9987, 92, 98syl2an 493 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑆 ∈ ℕ0𝑁 ∈ ℕ) → (𝑆 < 𝑁𝑆𝑁))
100993impia 1253 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → 𝑆𝑁)
101100adantr 480 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) ∧ (𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁)) → 𝑆𝑁)
10296, 97, 101jca32 556 . . . . . . . . . . . . . . . . . . . . 21 (((𝑆 ∈ ℕ0𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) ∧ (𝑥 ∈ ℕ0𝑁 ∈ ℕ0𝑥𝑁)) → (((𝑥 ∈ ℝ ∧ 𝑆 ∈ ℝ) ∧ (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)) ∧ (𝑥𝑁𝑆𝑁)))
10385, 86, 102syl2anb 495 . . . . . . . . . . . . . . . . . . . 20 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → (((𝑥 ∈ ℝ ∧ 𝑆 ∈ ℝ) ∧ (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)) ∧ (𝑥𝑁𝑆𝑁)))
104 le2add 10389 . . . . . . . . . . . . . . . . . . . . 21 (((𝑥 ∈ ℝ ∧ 𝑆 ∈ ℝ) ∧ (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)) → ((𝑥𝑁𝑆𝑁) → (𝑥 + 𝑆) ≤ (𝑁 + 𝑁)))
105104imp 444 . . . . . . . . . . . . . . . . . . . 20 ((((𝑥 ∈ ℝ ∧ 𝑆 ∈ ℝ) ∧ (𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)) ∧ (𝑥𝑁𝑆𝑁)) → (𝑥 + 𝑆) ≤ (𝑁 + 𝑁))
106103, 105syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → (𝑥 + 𝑆) ≤ (𝑁 + 𝑁))
10766, 65, 653jca 1235 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑥 ∈ ℤ ∧ (𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ)) → ((𝑥 + 𝑆) ∈ ℝ ∧ 𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ))
108107ex 449 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑥 ∈ ℤ → ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑥 + 𝑆) ∈ ℝ ∧ 𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)))
10926, 108syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑥 ∈ (0...𝑁) → ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑥 + 𝑆) ∈ ℝ ∧ 𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)))
110109com12 32 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑆 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑥 ∈ (0...𝑁) → ((𝑥 + 𝑆) ∈ ℝ ∧ 𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)))
11129, 46, 110syl2anc 691 . . . . . . . . . . . . . . . . . . . . 21 (𝑆 ∈ (0..^𝑁) → (𝑥 ∈ (0...𝑁) → ((𝑥 + 𝑆) ∈ ℝ ∧ 𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ)))
112111imp 444 . . . . . . . . . . . . . . . . . . . 20 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → ((𝑥 + 𝑆) ∈ ℝ ∧ 𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ))
113 lesubadd 10379 . . . . . . . . . . . . . . . . . . . 20 (((𝑥 + 𝑆) ∈ ℝ ∧ 𝑁 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (((𝑥 + 𝑆) − 𝑁) ≤ 𝑁 ↔ (𝑥 + 𝑆) ≤ (𝑁 + 𝑁)))
114112, 113syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → (((𝑥 + 𝑆) − 𝑁) ≤ 𝑁 ↔ (𝑥 + 𝑆) ≤ (𝑁 + 𝑁)))
115106, 114mpbird 246 . . . . . . . . . . . . . . . . . 18 ((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) → ((𝑥 + 𝑆) − 𝑁) ≤ 𝑁)
116115adantr 480 . . . . . . . . . . . . . . . . 17 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) − 𝑁) ≤ 𝑁)
117116, 22syl6breq 4624 . . . . . . . . . . . . . . . 16 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) − 𝑁) ≤ (#‘𝐹))
11883, 84, 1173jca 1235 . . . . . . . . . . . . . . 15 (((𝑆 ∈ (0..^𝑁) ∧ 𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → (((𝑥 + 𝑆) − 𝑁) ∈ ℕ0 ∧ (#‘𝐹) ∈ ℕ0 ∧ ((𝑥 + 𝑆) − 𝑁) ≤ (#‘𝐹)))
11915, 118sylanl1 680 . . . . . . . . . . . . . 14 (((𝜑𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → (((𝑥 + 𝑆) − 𝑁) ∈ ℕ0 ∧ (#‘𝐹) ∈ ℕ0 ∧ ((𝑥 + 𝑆) − 𝑁) ≤ (#‘𝐹)))
120 elfz2nn0 12300 . . . . . . . . . . . . . 14 (((𝑥 + 𝑆) − 𝑁) ∈ (0...(#‘𝐹)) ↔ (((𝑥 + 𝑆) − 𝑁) ∈ ℕ0 ∧ (#‘𝐹) ∈ ℕ0 ∧ ((𝑥 + 𝑆) − 𝑁) ≤ (#‘𝐹)))
121119, 120sylibr 223 . . . . . . . . . . . . 13 (((𝜑𝑥 ∈ (0...𝑁)) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) − 𝑁) ∈ (0...(#‘𝐹)))
122121adantll 746 . . . . . . . . . . . 12 (((𝑃:(0...(#‘𝐹))⟶𝑉 ∧ (𝜑𝑥 ∈ (0...𝑁))) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → ((𝑥 + 𝑆) − 𝑁) ∈ (0...(#‘𝐹)))
12345, 122ffvelrnd 6268 . . . . . . . . . . 11 (((𝑃:(0...(#‘𝐹))⟶𝑉 ∧ (𝜑𝑥 ∈ (0...𝑁))) ∧ ¬ 𝑥 ≤ (𝑁𝑆)) → (𝑃‘((𝑥 + 𝑆) − 𝑁)) ∈ 𝑉)
12444, 123ifclda 4070 . . . . . . . . . 10 ((𝑃:(0...(#‘𝐹))⟶𝑉 ∧ (𝜑𝑥 ∈ (0...𝑁))) → if(𝑥 ≤ (𝑁𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))) ∈ 𝑉)
125124exp32 629 . . . . . . . . 9 (𝑃:(0...(#‘𝐹))⟶𝑉 → (𝜑 → (𝑥 ∈ (0...𝑁) → if(𝑥 ≤ (𝑁𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))) ∈ 𝑉)))
12613, 125syl 17 . . . . . . . 8 (𝐹(1Walks‘𝐺)𝑃 → (𝜑 → (𝑥 ∈ (0...𝑁) → if(𝑥 ≤ (𝑁𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))) ∈ 𝑉)))
12711, 126mpcom 37 . . . . . . 7 (𝜑 → (𝑥 ∈ (0...𝑁) → if(𝑥 ≤ (𝑁𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))) ∈ 𝑉))
128127imp 444 . . . . . 6 ((𝜑𝑥 ∈ (0...𝑁)) → if(𝑥 ≤ (𝑁𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))) ∈ 𝑉)
129 crctcsh.q . . . . . 6 𝑄 = (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ (𝑁𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))))
130128, 129fmptd 6292 . . . . 5 (𝜑𝑄:(0...𝑁)⟶𝑉)
13112, 4, 2, 22, 15, 1crctcshlem2 41021 . . . . . . 7 (𝜑 → (#‘𝐻) = 𝑁)
132131oveq2d 6565 . . . . . 6 (𝜑 → (0...(#‘𝐻)) = (0...𝑁))
133132feq2d 5944 . . . . 5 (𝜑 → (𝑄:(0...(#‘𝐻))⟶𝑉𝑄:(0...𝑁)⟶𝑉))
134130, 133mpbird 246 . . . 4 (𝜑𝑄:(0...(#‘𝐻))⟶𝑉)
135134adantr 480 . . 3 ((𝜑𝑆 ≠ 0) → 𝑄:(0...(#‘𝐻))⟶𝑉)
136 wlkv 40815 . . . . . . . . 9 (𝐹(1Walks‘𝐺)𝑃 → (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V))
137136simp1d 1066 . . . . . . . 8 (𝐹(1Walks‘𝐺)𝑃𝐺 ∈ V)
13812, 4is1wlkg 40816 . . . . . . . 8 (𝐺 ∈ V → (𝐹(1Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))))))
139137, 138syl 17 . . . . . . 7 (𝐹(1Walks‘𝐺)𝑃 → (𝐹(1Walks‘𝐺)𝑃 ↔ (𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))))))
140139ibi 255 . . . . . 6 (𝐹(1Walks‘𝐺)𝑃 → (𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))))
1412, 3, 1403syl 18 . . . . 5 (𝜑 → (𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))))
142141adantr 480 . . . 4 ((𝜑𝑆 ≠ 0) → (𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))))
14322eqcomi 2619 . . . . . . . . . 10 (#‘𝐹) = 𝑁
144143oveq2i 6560 . . . . . . . . 9 (0..^(#‘𝐹)) = (0..^𝑁)
145144raleqi 3119 . . . . . . . 8 (∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) ↔ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))))
146 fzo1fzo0n0 12386 . . . . . . . . . . . . . . 15 (𝑆 ∈ (1..^𝑁) ↔ (𝑆 ∈ (0..^𝑁) ∧ 𝑆 ≠ 0))
147146simplbi2 653 . . . . . . . . . . . . . 14 (𝑆 ∈ (0..^𝑁) → (𝑆 ≠ 0 → 𝑆 ∈ (1..^𝑁)))
14815, 147syl 17 . . . . . . . . . . . . 13 (𝜑 → (𝑆 ≠ 0 → 𝑆 ∈ (1..^𝑁)))
149148imp 444 . . . . . . . . . . . 12 ((𝜑𝑆 ≠ 0) → 𝑆 ∈ (1..^𝑁))
150149ad2antlr 759 . . . . . . . . . . 11 ((((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) ∧ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → 𝑆 ∈ (1..^𝑁))
151 simplll 794 . . . . . . . . . . 11 ((((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) ∧ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → 𝐹 ∈ Word dom 𝐼)
152 1wlkslem1 40809 . . . . . . . . . . . . . 14 (𝑖 = 𝑘 → (if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) ↔ if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘)))))
153152cbvralv 3147 . . . . . . . . . . . . 13 (∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) ↔ ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
154153biimpi 205 . . . . . . . . . . . 12 (∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) → ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
155154adantl 481 . . . . . . . . . . 11 ((((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) ∧ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → ∀𝑘 ∈ (0..^𝑁)if-((𝑃𝑘) = (𝑃‘(𝑘 + 1)), (𝐼‘(𝐹𝑘)) = {(𝑃𝑘)}, {(𝑃𝑘), (𝑃‘(𝑘 + 1))} ⊆ (𝐼‘(𝐹𝑘))))
156 crctprop 40998 . . . . . . . . . . . . . 14 (𝐹(CircuitS‘𝐺)𝑃 → (𝐹(TrailS‘𝐺)𝑃 ∧ (𝑃‘0) = (𝑃‘(#‘𝐹))))
157143fveq2i 6106 . . . . . . . . . . . . . . . . . 18 (𝑃‘(#‘𝐹)) = (𝑃𝑁)
158157eqeq2i 2622 . . . . . . . . . . . . . . . . 17 ((𝑃‘0) = (𝑃‘(#‘𝐹)) ↔ (𝑃‘0) = (𝑃𝑁))
159158biimpi 205 . . . . . . . . . . . . . . . 16 ((𝑃‘0) = (𝑃‘(#‘𝐹)) → (𝑃‘0) = (𝑃𝑁))
160159eqcomd 2616 . . . . . . . . . . . . . . 15 ((𝑃‘0) = (𝑃‘(#‘𝐹)) → (𝑃𝑁) = (𝑃‘0))
161160adantl 481 . . . . . . . . . . . . . 14 ((𝐹(TrailS‘𝐺)𝑃 ∧ (𝑃‘0) = (𝑃‘(#‘𝐹))) → (𝑃𝑁) = (𝑃‘0))
1622, 156, 1613syl 18 . . . . . . . . . . . . 13 (𝜑 → (𝑃𝑁) = (𝑃‘0))
163162ad2antrl 760 . . . . . . . . . . . 12 (((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) → (𝑃𝑁) = (𝑃‘0))
164163adantr 480 . . . . . . . . . . 11 ((((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) ∧ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → (𝑃𝑁) = (𝑃‘0))
165150, 129, 1, 22, 151, 155, 164crctcsh1wlkn0lem7 41019 . . . . . . . . . 10 ((((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) ∧ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → ∀𝑗 ∈ (0..^𝑁)if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))))
166131oveq2d 6565 . . . . . . . . . . . . 13 (𝜑 → (0..^(#‘𝐻)) = (0..^𝑁))
167166raleqdv 3121 . . . . . . . . . . . 12 (𝜑 → (∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))) ↔ ∀𝑗 ∈ (0..^𝑁)if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗)))))
168167ad2antrl 760 . . . . . . . . . . 11 (((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) → (∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))) ↔ ∀𝑗 ∈ (0..^𝑁)if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗)))))
169168adantr 480 . . . . . . . . . 10 ((((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) ∧ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → (∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))) ↔ ∀𝑗 ∈ (0..^𝑁)if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗)))))
170165, 169mpbird 246 . . . . . . . . 9 ((((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) ∧ ∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))))
171170ex 449 . . . . . . . 8 (((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) → (∀𝑖 ∈ (0..^𝑁)if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) → ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗)))))
172145, 171syl5bi 231 . . . . . . 7 (((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) ∧ (𝜑𝑆 ≠ 0)) → (∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) → ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗)))))
173172ex 449 . . . . . 6 ((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) → ((𝜑𝑆 ≠ 0) → (∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) → ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))))))
174173com23 84 . . . . 5 ((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉) → (∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖))) → ((𝜑𝑆 ≠ 0) → ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))))))
1751743impia 1253 . . . 4 ((𝐹 ∈ Word dom 𝐼𝑃:(0...(#‘𝐹))⟶𝑉 ∧ ∀𝑖 ∈ (0..^(#‘𝐹))if-((𝑃𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹𝑖)) = {(𝑃𝑖)}, {(𝑃𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹𝑖)))) → ((𝜑𝑆 ≠ 0) → ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗)))))
176142, 175mpcom 37 . . 3 ((𝜑𝑆 ≠ 0) → ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))))
17710, 135, 1763jca 1235 . 2 ((𝜑𝑆 ≠ 0) → (𝐻 ∈ Word dom 𝐼𝑄:(0...(#‘𝐻))⟶𝑉 ∧ ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗)))))
17812, 4, 2, 22, 15, 1, 129crctcshlem3 41022 . . . 4 (𝜑 → (𝐺 ∈ V ∧ 𝐻 ∈ V ∧ 𝑄 ∈ V))
179178adantr 480 . . 3 ((𝜑𝑆 ≠ 0) → (𝐺 ∈ V ∧ 𝐻 ∈ V ∧ 𝑄 ∈ V))
18012, 4is1wlk 40813 . . 3 ((𝐺 ∈ V ∧ 𝐻 ∈ V ∧ 𝑄 ∈ V) → (𝐻(1Walks‘𝐺)𝑄 ↔ (𝐻 ∈ Word dom 𝐼𝑄:(0...(#‘𝐻))⟶𝑉 ∧ ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))))))
181179, 180syl 17 . 2 ((𝜑𝑆 ≠ 0) → (𝐻(1Walks‘𝐺)𝑄 ↔ (𝐻 ∈ Word dom 𝐼𝑄:(0...(#‘𝐻))⟶𝑉 ∧ ∀𝑗 ∈ (0..^(#‘𝐻))if-((𝑄𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻𝑗)) = {(𝑄𝑗)}, {(𝑄𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻𝑗))))))
182177, 181mpbird 246 1 ((𝜑𝑆 ≠ 0) → 𝐻(1Walks‘𝐺)𝑄)
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ↔ wb 195   ∧ wa 383  if-wif 1006   ∧ w3a 1031   = wceq 1475   ∈ wcel 1977   ≠ wne 2780  ∀wral 2896  Vcvv 3173   ⊆ wss 3540  ifcif 4036  {csn 4125  {cpr 4127   class class class wbr 4583   ↦ cmpt 4643  dom cdm 5038  ⟶wf 5800  ‘cfv 5804  (class class class)co 6549  ℝcr 9814  0cc0 9815  1c1 9816   + caddc 9818   < clt 9953   ≤ cle 9954   − cmin 10145  ℕcn 10897  ℕ0cn0 11169  ℤcz 11254  ...cfz 12197  ..^cfzo 12334  #chash 12979  Word cword 13146   cyclShift ccsh 13385  Vtxcvtx 25673  iEdgciedg 25674  1Walksc1wlks 40796  TrailSctrls 40899  CircuitSccrcts 40990 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847  ax-cnex 9871  ax-resscn 9872  ax-1cn 9873  ax-icn 9874  ax-addcl 9875  ax-addrcl 9876  ax-mulcl 9877  ax-mulrcl 9878  ax-mulcom 9879  ax-addass 9880  ax-mulass 9881  ax-distr 9882  ax-i2m1 9883  ax-1ne0 9884  ax-1rid 9885  ax-rnegex 9886  ax-rrecex 9887  ax-cnre 9888  ax-pre-lttri 9889  ax-pre-lttrn 9890  ax-pre-ltadd 9891  ax-pre-mulgt0 9892  ax-pre-sup 9893 This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-ifp 1007  df-3or 1032  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-nel 2783  df-ral 2901  df-rex 2902  df-reu 2903  df-rmo 2904  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-pss 3556  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-tp 4130  df-op 4132  df-uni 4373  df-int 4411  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-tr 4681  df-eprel 4949  df-id 4953  df-po 4959  df-so 4960  df-fr 4997  df-we 4999  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-pred 5597  df-ord 5643  df-on 5644  df-lim 5645  df-suc 5646  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-riota 6511  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-om 6958  df-1st 7059  df-2nd 7060  df-wrecs 7294  df-recs 7355  df-rdg 7393  df-1o 7447  df-oadd 7451  df-er 7629  df-map 7746  df-pm 7747  df-en 7842  df-dom 7843  df-sdom 7844  df-fin 7845  df-sup 8231  df-inf 8232  df-card 8648  df-pnf 9955  df-mnf 9956  df-xr 9957  df-ltxr 9958  df-le 9959  df-sub 10147  df-neg 10148  df-div 10564  df-nn 10898  df-2 10956  df-n0 11170  df-z 11255  df-uz 11564  df-rp 11709  df-fz 12198  df-fzo 12335  df-fl 12455  df-mod 12531  df-hash 12980  df-word 13154  df-concat 13156  df-substr 13158  df-csh 13386  df-1wlks 40800  df-trls 40901  df-crcts 40992 This theorem is referenced by:  crctcsh1wlk  41025
 Copyright terms: Public domain W3C validator