Proof of Theorem crctcshlem4
Step | Hyp | Ref
| Expression |
1 | | crctcsh.h |
. . 3
⊢ 𝐻 = (𝐹 cyclShift 𝑆) |
2 | | oveq2 7283 |
. . . 4
⊢ (𝑆 = 0 → (𝐹 cyclShift 𝑆) = (𝐹 cyclShift 0)) |
3 | | crctcsh.d |
. . . . . 6
⊢ (𝜑 → 𝐹(Circuits‘𝐺)𝑃) |
4 | | crctiswlk 28164 |
. . . . . 6
⊢ (𝐹(Circuits‘𝐺)𝑃 → 𝐹(Walks‘𝐺)𝑃) |
5 | | crctcsh.i |
. . . . . . 7
⊢ 𝐼 = (iEdg‘𝐺) |
6 | 5 | wlkf 27981 |
. . . . . 6
⊢ (𝐹(Walks‘𝐺)𝑃 → 𝐹 ∈ Word dom 𝐼) |
7 | 3, 4, 6 | 3syl 18 |
. . . . 5
⊢ (𝜑 → 𝐹 ∈ Word dom 𝐼) |
8 | | cshw0 14507 |
. . . . 5
⊢ (𝐹 ∈ Word dom 𝐼 → (𝐹 cyclShift 0) = 𝐹) |
9 | 7, 8 | syl 17 |
. . . 4
⊢ (𝜑 → (𝐹 cyclShift 0) = 𝐹) |
10 | 2, 9 | sylan9eqr 2800 |
. . 3
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝐹 cyclShift 𝑆) = 𝐹) |
11 | 1, 10 | eqtrid 2790 |
. 2
⊢ ((𝜑 ∧ 𝑆 = 0) → 𝐻 = 𝐹) |
12 | | crctcsh.q |
. . 3
⊢ 𝑄 = (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ (𝑁 − 𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁)))) |
13 | | oveq2 7283 |
. . . . . . . . 9
⊢ (𝑆 = 0 → (𝑁 − 𝑆) = (𝑁 − 0)) |
14 | | crctcsh.v |
. . . . . . . . . . . 12
⊢ 𝑉 = (Vtx‘𝐺) |
15 | | crctcsh.n |
. . . . . . . . . . . 12
⊢ 𝑁 = (♯‘𝐹) |
16 | 14, 5, 3, 15 | crctcshlem1 28182 |
. . . . . . . . . . 11
⊢ (𝜑 → 𝑁 ∈
ℕ0) |
17 | 16 | nn0cnd 12295 |
. . . . . . . . . 10
⊢ (𝜑 → 𝑁 ∈ ℂ) |
18 | 17 | subid1d 11321 |
. . . . . . . . 9
⊢ (𝜑 → (𝑁 − 0) = 𝑁) |
19 | 13, 18 | sylan9eqr 2800 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝑁 − 𝑆) = 𝑁) |
20 | 19 | breq2d 5086 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝑥 ≤ (𝑁 − 𝑆) ↔ 𝑥 ≤ 𝑁)) |
21 | 20 | adantr 481 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑆 = 0) ∧ 𝑥 ∈ (0...𝑁)) → (𝑥 ≤ (𝑁 − 𝑆) ↔ 𝑥 ≤ 𝑁)) |
22 | | oveq2 7283 |
. . . . . . . . 9
⊢ (𝑆 = 0 → (𝑥 + 𝑆) = (𝑥 + 0)) |
23 | 22 | adantl 482 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝑥 + 𝑆) = (𝑥 + 0)) |
24 | | elfzelz 13256 |
. . . . . . . . . 10
⊢ (𝑥 ∈ (0...𝑁) → 𝑥 ∈ ℤ) |
25 | 24 | zcnd 12427 |
. . . . . . . . 9
⊢ (𝑥 ∈ (0...𝑁) → 𝑥 ∈ ℂ) |
26 | 25 | addid1d 11175 |
. . . . . . . 8
⊢ (𝑥 ∈ (0...𝑁) → (𝑥 + 0) = 𝑥) |
27 | 23, 26 | sylan9eq 2798 |
. . . . . . 7
⊢ (((𝜑 ∧ 𝑆 = 0) ∧ 𝑥 ∈ (0...𝑁)) → (𝑥 + 𝑆) = 𝑥) |
28 | 27 | fveq2d 6778 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑆 = 0) ∧ 𝑥 ∈ (0...𝑁)) → (𝑃‘(𝑥 + 𝑆)) = (𝑃‘𝑥)) |
29 | 27 | fvoveq1d 7297 |
. . . . . 6
⊢ (((𝜑 ∧ 𝑆 = 0) ∧ 𝑥 ∈ (0...𝑁)) → (𝑃‘((𝑥 + 𝑆) − 𝑁)) = (𝑃‘(𝑥 − 𝑁))) |
30 | 21, 28, 29 | ifbieq12d 4487 |
. . . . 5
⊢ (((𝜑 ∧ 𝑆 = 0) ∧ 𝑥 ∈ (0...𝑁)) → if(𝑥 ≤ (𝑁 − 𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁))) = if(𝑥 ≤ 𝑁, (𝑃‘𝑥), (𝑃‘(𝑥 − 𝑁)))) |
31 | 30 | mpteq2dva 5174 |
. . . 4
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ (𝑁 − 𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁)))) = (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ 𝑁, (𝑃‘𝑥), (𝑃‘(𝑥 − 𝑁))))) |
32 | | elfzle2 13260 |
. . . . . . . . 9
⊢ (𝑥 ∈ (0...𝑁) → 𝑥 ≤ 𝑁) |
33 | 32 | adantl 482 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑥 ∈ (0...𝑁)) → 𝑥 ≤ 𝑁) |
34 | 33 | iftrued 4467 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑥 ∈ (0...𝑁)) → if(𝑥 ≤ 𝑁, (𝑃‘𝑥), (𝑃‘(𝑥 − 𝑁))) = (𝑃‘𝑥)) |
35 | 34 | mpteq2dva 5174 |
. . . . . 6
⊢ (𝜑 → (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ 𝑁, (𝑃‘𝑥), (𝑃‘(𝑥 − 𝑁)))) = (𝑥 ∈ (0...𝑁) ↦ (𝑃‘𝑥))) |
36 | 14 | wlkp 27983 |
. . . . . . . 8
⊢ (𝐹(Walks‘𝐺)𝑃 → 𝑃:(0...(♯‘𝐹))⟶𝑉) |
37 | 3, 4, 36 | 3syl 18 |
. . . . . . 7
⊢ (𝜑 → 𝑃:(0...(♯‘𝐹))⟶𝑉) |
38 | | ffn 6600 |
. . . . . . . . . . 11
⊢ (𝑃:(0...(♯‘𝐹))⟶𝑉 → 𝑃 Fn (0...(♯‘𝐹))) |
39 | 15 | eqcomi 2747 |
. . . . . . . . . . . . 13
⊢
(♯‘𝐹) =
𝑁 |
40 | 39 | oveq2i 7286 |
. . . . . . . . . . . 12
⊢
(0...(♯‘𝐹)) = (0...𝑁) |
41 | 40 | fneq2i 6531 |
. . . . . . . . . . 11
⊢ (𝑃 Fn (0...(♯‘𝐹)) ↔ 𝑃 Fn (0...𝑁)) |
42 | 38, 41 | sylib 217 |
. . . . . . . . . 10
⊢ (𝑃:(0...(♯‘𝐹))⟶𝑉 → 𝑃 Fn (0...𝑁)) |
43 | 42 | adantl 482 |
. . . . . . . . 9
⊢ ((𝜑 ∧ 𝑃:(0...(♯‘𝐹))⟶𝑉) → 𝑃 Fn (0...𝑁)) |
44 | | dffn5 6828 |
. . . . . . . . 9
⊢ (𝑃 Fn (0...𝑁) ↔ 𝑃 = (𝑥 ∈ (0...𝑁) ↦ (𝑃‘𝑥))) |
45 | 43, 44 | sylib 217 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑃:(0...(♯‘𝐹))⟶𝑉) → 𝑃 = (𝑥 ∈ (0...𝑁) ↦ (𝑃‘𝑥))) |
46 | 45 | eqcomd 2744 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑃:(0...(♯‘𝐹))⟶𝑉) → (𝑥 ∈ (0...𝑁) ↦ (𝑃‘𝑥)) = 𝑃) |
47 | 37, 46 | mpdan 684 |
. . . . . 6
⊢ (𝜑 → (𝑥 ∈ (0...𝑁) ↦ (𝑃‘𝑥)) = 𝑃) |
48 | 35, 47 | eqtrd 2778 |
. . . . 5
⊢ (𝜑 → (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ 𝑁, (𝑃‘𝑥), (𝑃‘(𝑥 − 𝑁)))) = 𝑃) |
49 | 48 | adantr 481 |
. . . 4
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ 𝑁, (𝑃‘𝑥), (𝑃‘(𝑥 − 𝑁)))) = 𝑃) |
50 | 31, 49 | eqtrd 2778 |
. . 3
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ (𝑁 − 𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁)))) = 𝑃) |
51 | 12, 50 | eqtrid 2790 |
. 2
⊢ ((𝜑 ∧ 𝑆 = 0) → 𝑄 = 𝑃) |
52 | 11, 51 | jca 512 |
1
⊢ ((𝜑 ∧ 𝑆 = 0) → (𝐻 = 𝐹 ∧ 𝑄 = 𝑃)) |