Proof of Theorem crctcshwlkn0lem7
Step | Hyp | Ref
| Expression |
1 | | crctcshwlkn0lem.s |
. . . . . 6
⊢ (𝜑 → 𝑆 ∈ (1..^𝑁)) |
2 | | crctcshwlkn0lem.q |
. . . . . 6
⊢ 𝑄 = (𝑥 ∈ (0...𝑁) ↦ if(𝑥 ≤ (𝑁 − 𝑆), (𝑃‘(𝑥 + 𝑆)), (𝑃‘((𝑥 + 𝑆) − 𝑁)))) |
3 | | crctcshwlkn0lem.h |
. . . . . 6
⊢ 𝐻 = (𝐹 cyclShift 𝑆) |
4 | | crctcshwlkn0lem.n |
. . . . . 6
⊢ 𝑁 = (♯‘𝐹) |
5 | | crctcshwlkn0lem.f |
. . . . . 6
⊢ (𝜑 → 𝐹 ∈ Word 𝐴) |
6 | | crctcshwlkn0lem.p |
. . . . . 6
⊢ (𝜑 → ∀𝑖 ∈ (0..^𝑁)if-((𝑃‘𝑖) = (𝑃‘(𝑖 + 1)), (𝐼‘(𝐹‘𝑖)) = {(𝑃‘𝑖)}, {(𝑃‘𝑖), (𝑃‘(𝑖 + 1))} ⊆ (𝐼‘(𝐹‘𝑖)))) |
7 | 1, 2, 3, 4, 5, 6 | crctcshwlkn0lem4 28079 |
. . . . 5
⊢ (𝜑 → ∀𝑗 ∈ (0..^(𝑁 − 𝑆))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗)))) |
8 | | eqidd 2739 |
. . . . . . 7
⊢ (𝜑 → (𝑁 − 𝑆) = (𝑁 − 𝑆)) |
9 | | crctcshwlkn0lem.e |
. . . . . . . 8
⊢ (𝜑 → (𝑃‘𝑁) = (𝑃‘0)) |
10 | 1, 2, 3, 4, 5, 6, 9 | crctcshwlkn0lem6 28081 |
. . . . . . 7
⊢ ((𝜑 ∧ (𝑁 − 𝑆) = (𝑁 − 𝑆)) → if-((𝑄‘(𝑁 − 𝑆)) = (𝑄‘((𝑁 − 𝑆) + 1)), (𝐼‘(𝐻‘(𝑁 − 𝑆))) = {(𝑄‘(𝑁 − 𝑆))}, {(𝑄‘(𝑁 − 𝑆)), (𝑄‘((𝑁 − 𝑆) + 1))} ⊆ (𝐼‘(𝐻‘(𝑁 − 𝑆))))) |
11 | 8, 10 | mpdan 683 |
. . . . . 6
⊢ (𝜑 → if-((𝑄‘(𝑁 − 𝑆)) = (𝑄‘((𝑁 − 𝑆) + 1)), (𝐼‘(𝐻‘(𝑁 − 𝑆))) = {(𝑄‘(𝑁 − 𝑆))}, {(𝑄‘(𝑁 − 𝑆)), (𝑄‘((𝑁 − 𝑆) + 1))} ⊆ (𝐼‘(𝐻‘(𝑁 − 𝑆))))) |
12 | | ovex 7288 |
. . . . . . 7
⊢ (𝑁 − 𝑆) ∈ V |
13 | | wkslem1 27877 |
. . . . . . 7
⊢ (𝑗 = (𝑁 − 𝑆) → (if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ↔ if-((𝑄‘(𝑁 − 𝑆)) = (𝑄‘((𝑁 − 𝑆) + 1)), (𝐼‘(𝐻‘(𝑁 − 𝑆))) = {(𝑄‘(𝑁 − 𝑆))}, {(𝑄‘(𝑁 − 𝑆)), (𝑄‘((𝑁 − 𝑆) + 1))} ⊆ (𝐼‘(𝐻‘(𝑁 − 𝑆)))))) |
14 | 12, 13 | ralsn 4614 |
. . . . . 6
⊢
(∀𝑗 ∈
{(𝑁 − 𝑆)}if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ↔ if-((𝑄‘(𝑁 − 𝑆)) = (𝑄‘((𝑁 − 𝑆) + 1)), (𝐼‘(𝐻‘(𝑁 − 𝑆))) = {(𝑄‘(𝑁 − 𝑆))}, {(𝑄‘(𝑁 − 𝑆)), (𝑄‘((𝑁 − 𝑆) + 1))} ⊆ (𝐼‘(𝐻‘(𝑁 − 𝑆))))) |
15 | 11, 14 | sylibr 233 |
. . . . 5
⊢ (𝜑 → ∀𝑗 ∈ {(𝑁 − 𝑆)}if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗)))) |
16 | | ralunb 4121 |
. . . . 5
⊢
(∀𝑗 ∈
((0..^(𝑁 − 𝑆)) ∪ {(𝑁 − 𝑆)})if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ↔ (∀𝑗 ∈ (0..^(𝑁 − 𝑆))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ∧ ∀𝑗 ∈ {(𝑁 − 𝑆)}if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))))) |
17 | 7, 15, 16 | sylanbrc 582 |
. . . 4
⊢ (𝜑 → ∀𝑗 ∈ ((0..^(𝑁 − 𝑆)) ∪ {(𝑁 − 𝑆)})if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗)))) |
18 | | elfzo1 13365 |
. . . . . . 7
⊢ (𝑆 ∈ (1..^𝑁) ↔ (𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁)) |
19 | | nnz 12272 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
20 | | nnz 12272 |
. . . . . . . . . . . 12
⊢ (𝑆 ∈ ℕ → 𝑆 ∈
ℤ) |
21 | | zsubcl 12292 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℤ ∧ 𝑆 ∈ ℤ) → (𝑁 − 𝑆) ∈ ℤ) |
22 | 19, 20, 21 | syl2anr 596 |
. . . . . . . . . . 11
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑁 − 𝑆) ∈ ℤ) |
23 | 22 | 3adant3 1130 |
. . . . . . . . . 10
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → (𝑁 − 𝑆) ∈ ℤ) |
24 | | nnre 11910 |
. . . . . . . . . . . 12
⊢ (𝑆 ∈ ℕ → 𝑆 ∈
ℝ) |
25 | | nnre 11910 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℝ) |
26 | | posdif 11398 |
. . . . . . . . . . . . 13
⊢ ((𝑆 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (𝑆 < 𝑁 ↔ 0 < (𝑁 − 𝑆))) |
27 | | 0re 10908 |
. . . . . . . . . . . . . 14
⊢ 0 ∈
ℝ |
28 | | resubcl 11215 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℝ ∧ 𝑆 ∈ ℝ) → (𝑁 − 𝑆) ∈ ℝ) |
29 | 28 | ancoms 458 |
. . . . . . . . . . . . . 14
⊢ ((𝑆 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (𝑁 − 𝑆) ∈ ℝ) |
30 | | ltle 10994 |
. . . . . . . . . . . . . 14
⊢ ((0
∈ ℝ ∧ (𝑁
− 𝑆) ∈ ℝ)
→ (0 < (𝑁 −
𝑆) → 0 ≤ (𝑁 − 𝑆))) |
31 | 27, 29, 30 | sylancr 586 |
. . . . . . . . . . . . 13
⊢ ((𝑆 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (0 <
(𝑁 − 𝑆) → 0 ≤ (𝑁 − 𝑆))) |
32 | 26, 31 | sylbid 239 |
. . . . . . . . . . . 12
⊢ ((𝑆 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (𝑆 < 𝑁 → 0 ≤ (𝑁 − 𝑆))) |
33 | 24, 25, 32 | syl2an 595 |
. . . . . . . . . . 11
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑆 < 𝑁 → 0 ≤ (𝑁 − 𝑆))) |
34 | 33 | 3impia 1115 |
. . . . . . . . . 10
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → 0 ≤ (𝑁 − 𝑆)) |
35 | | elnn0z 12262 |
. . . . . . . . . 10
⊢ ((𝑁 − 𝑆) ∈ ℕ0 ↔ ((𝑁 − 𝑆) ∈ ℤ ∧ 0 ≤ (𝑁 − 𝑆))) |
36 | 23, 34, 35 | sylanbrc 582 |
. . . . . . . . 9
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → (𝑁 − 𝑆) ∈
ℕ0) |
37 | | elnn0uz 12552 |
. . . . . . . . 9
⊢ ((𝑁 − 𝑆) ∈ ℕ0 ↔ (𝑁 − 𝑆) ∈
(ℤ≥‘0)) |
38 | 36, 37 | sylib 217 |
. . . . . . . 8
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → (𝑁 − 𝑆) ∈
(ℤ≥‘0)) |
39 | | fzosplitsn 13423 |
. . . . . . . 8
⊢ ((𝑁 − 𝑆) ∈ (ℤ≥‘0)
→ (0..^((𝑁 −
𝑆) + 1)) = ((0..^(𝑁 − 𝑆)) ∪ {(𝑁 − 𝑆)})) |
40 | 38, 39 | syl 17 |
. . . . . . 7
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → (0..^((𝑁 − 𝑆) + 1)) = ((0..^(𝑁 − 𝑆)) ∪ {(𝑁 − 𝑆)})) |
41 | 18, 40 | sylbi 216 |
. . . . . 6
⊢ (𝑆 ∈ (1..^𝑁) → (0..^((𝑁 − 𝑆) + 1)) = ((0..^(𝑁 − 𝑆)) ∪ {(𝑁 − 𝑆)})) |
42 | 1, 41 | syl 17 |
. . . . 5
⊢ (𝜑 → (0..^((𝑁 − 𝑆) + 1)) = ((0..^(𝑁 − 𝑆)) ∪ {(𝑁 − 𝑆)})) |
43 | 42 | raleqdv 3339 |
. . . 4
⊢ (𝜑 → (∀𝑗 ∈ (0..^((𝑁 − 𝑆) + 1))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ↔ ∀𝑗 ∈ ((0..^(𝑁 − 𝑆)) ∪ {(𝑁 − 𝑆)})if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))))) |
44 | 17, 43 | mpbird 256 |
. . 3
⊢ (𝜑 → ∀𝑗 ∈ (0..^((𝑁 − 𝑆) + 1))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗)))) |
45 | 1, 2, 3, 4, 5, 6 | crctcshwlkn0lem5 28080 |
. . 3
⊢ (𝜑 → ∀𝑗 ∈ (((𝑁 − 𝑆) + 1)..^𝑁)if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗)))) |
46 | | ralunb 4121 |
. . 3
⊢
(∀𝑗 ∈
((0..^((𝑁 − 𝑆) + 1)) ∪ (((𝑁 − 𝑆) + 1)..^𝑁))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ↔ (∀𝑗 ∈ (0..^((𝑁 − 𝑆) + 1))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ∧ ∀𝑗 ∈ (((𝑁 − 𝑆) + 1)..^𝑁)if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))))) |
47 | 44, 45, 46 | sylanbrc 582 |
. 2
⊢ (𝜑 → ∀𝑗 ∈ ((0..^((𝑁 − 𝑆) + 1)) ∪ (((𝑁 − 𝑆) + 1)..^𝑁))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗)))) |
48 | | nnsub 11947 |
. . . . . . . 8
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑆 < 𝑁 ↔ (𝑁 − 𝑆) ∈ ℕ)) |
49 | 48 | biimp3a 1467 |
. . . . . . 7
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → (𝑁 − 𝑆) ∈ ℕ) |
50 | | nnnn0 12170 |
. . . . . . 7
⊢ ((𝑁 − 𝑆) ∈ ℕ → (𝑁 − 𝑆) ∈
ℕ0) |
51 | | peano2nn0 12203 |
. . . . . . 7
⊢ ((𝑁 − 𝑆) ∈ ℕ0 → ((𝑁 − 𝑆) + 1) ∈
ℕ0) |
52 | 49, 50, 51 | 3syl 18 |
. . . . . 6
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → ((𝑁 − 𝑆) + 1) ∈
ℕ0) |
53 | | nnnn0 12170 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
54 | 53 | 3ad2ant2 1132 |
. . . . . 6
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → 𝑁 ∈
ℕ0) |
55 | 25 | anim1i 614 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝑆 ∈ ℕ) → (𝑁 ∈ ℝ ∧ 𝑆 ∈
ℕ)) |
56 | 55 | ancoms 458 |
. . . . . . . 8
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑁 ∈ ℝ ∧ 𝑆 ∈
ℕ)) |
57 | | crctcshwlkn0lem1 28076 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℝ ∧ 𝑆 ∈ ℕ) → ((𝑁 − 𝑆) + 1) ≤ 𝑁) |
58 | 56, 57 | syl 17 |
. . . . . . 7
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ) → ((𝑁 − 𝑆) + 1) ≤ 𝑁) |
59 | 58 | 3adant3 1130 |
. . . . . 6
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → ((𝑁 − 𝑆) + 1) ≤ 𝑁) |
60 | | elfz2nn0 13276 |
. . . . . 6
⊢ (((𝑁 − 𝑆) + 1) ∈ (0...𝑁) ↔ (((𝑁 − 𝑆) + 1) ∈ ℕ0 ∧
𝑁 ∈
ℕ0 ∧ ((𝑁 − 𝑆) + 1) ≤ 𝑁)) |
61 | 52, 54, 59, 60 | syl3anbrc 1341 |
. . . . 5
⊢ ((𝑆 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑆 < 𝑁) → ((𝑁 − 𝑆) + 1) ∈ (0...𝑁)) |
62 | 18, 61 | sylbi 216 |
. . . 4
⊢ (𝑆 ∈ (1..^𝑁) → ((𝑁 − 𝑆) + 1) ∈ (0...𝑁)) |
63 | | fzosplit 13348 |
. . . 4
⊢ (((𝑁 − 𝑆) + 1) ∈ (0...𝑁) → (0..^𝑁) = ((0..^((𝑁 − 𝑆) + 1)) ∪ (((𝑁 − 𝑆) + 1)..^𝑁))) |
64 | 1, 62, 63 | 3syl 18 |
. . 3
⊢ (𝜑 → (0..^𝑁) = ((0..^((𝑁 − 𝑆) + 1)) ∪ (((𝑁 − 𝑆) + 1)..^𝑁))) |
65 | 64 | raleqdv 3339 |
. 2
⊢ (𝜑 → (∀𝑗 ∈ (0..^𝑁)if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))) ↔ ∀𝑗 ∈ ((0..^((𝑁 − 𝑆) + 1)) ∪ (((𝑁 − 𝑆) + 1)..^𝑁))if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗))))) |
66 | 47, 65 | mpbird 256 |
1
⊢ (𝜑 → ∀𝑗 ∈ (0..^𝑁)if-((𝑄‘𝑗) = (𝑄‘(𝑗 + 1)), (𝐼‘(𝐻‘𝑗)) = {(𝑄‘𝑗)}, {(𝑄‘𝑗), (𝑄‘(𝑗 + 1))} ⊆ (𝐼‘(𝐻‘𝑗)))) |