Step | Hyp | Ref
| Expression |
1 | | nnnn0 12240 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
2 | | repsdf2 14491 |
. . . . . . . 8
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝑊 = (𝐴 repeatS 𝑁) ↔ (𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴))) |
3 | 1, 2 | sylan2 593 |
. . . . . . 7
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) → (𝑊 = (𝐴 repeatS 𝑁) ↔ (𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴))) |
4 | | simp1 1135 |
. . . . . . . . . 10
⊢ ((𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴) → 𝑊 ∈ Word 𝑉) |
5 | 4 | adantl 482 |
. . . . . . . . 9
⊢ (((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) ∧ (𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴)) → 𝑊 ∈ Word 𝑉) |
6 | | eleq1 2826 |
. . . . . . . . . . . . . . . 16
⊢ (𝑁 = (♯‘𝑊) → (𝑁 ∈ ℕ ↔ (♯‘𝑊) ∈
ℕ)) |
7 | 6 | eqcoms 2746 |
. . . . . . . . . . . . . . 15
⊢
((♯‘𝑊) =
𝑁 → (𝑁 ∈ ℕ ↔ (♯‘𝑊) ∈
ℕ)) |
8 | | lbfzo0 13427 |
. . . . . . . . . . . . . . . 16
⊢ (0 ∈
(0..^(♯‘𝑊))
↔ (♯‘𝑊)
∈ ℕ) |
9 | 8 | biimpri 227 |
. . . . . . . . . . . . . . 15
⊢
((♯‘𝑊)
∈ ℕ → 0 ∈ (0..^(♯‘𝑊))) |
10 | 7, 9 | syl6bi 252 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑊) =
𝑁 → (𝑁 ∈ ℕ → 0 ∈
(0..^(♯‘𝑊)))) |
11 | 10 | 3ad2ant2 1133 |
. . . . . . . . . . . . 13
⊢ ((𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴) → (𝑁 ∈ ℕ → 0 ∈
(0..^(♯‘𝑊)))) |
12 | 11 | com12 32 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ → ((𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴) → 0 ∈ (0..^(♯‘𝑊)))) |
13 | 12 | adantl 482 |
. . . . . . . . . . 11
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) → ((𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴) → 0 ∈ (0..^(♯‘𝑊)))) |
14 | 13 | imp 407 |
. . . . . . . . . 10
⊢ (((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) ∧ (𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴)) → 0 ∈ (0..^(♯‘𝑊))) |
15 | | cshw0 14507 |
. . . . . . . . . . 11
⊢ (𝑊 ∈ Word 𝑉 → (𝑊 cyclShift 0) = 𝑊) |
16 | 5, 15 | syl 17 |
. . . . . . . . . 10
⊢ (((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) ∧ (𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴)) → (𝑊 cyclShift 0) = 𝑊) |
17 | | oveq2 7283 |
. . . . . . . . . . . 12
⊢ (𝑛 = 0 → (𝑊 cyclShift 𝑛) = (𝑊 cyclShift 0)) |
18 | 17 | eqeq1d 2740 |
. . . . . . . . . . 11
⊢ (𝑛 = 0 → ((𝑊 cyclShift 𝑛) = 𝑊 ↔ (𝑊 cyclShift 0) = 𝑊)) |
19 | 18 | rspcev 3561 |
. . . . . . . . . 10
⊢ ((0
∈ (0..^(♯‘𝑊)) ∧ (𝑊 cyclShift 0) = 𝑊) → ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑊) |
20 | 14, 16, 19 | syl2anc 584 |
. . . . . . . . 9
⊢ (((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) ∧ (𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴)) → ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑊) |
21 | | eqeq2 2750 |
. . . . . . . . . . 11
⊢ (𝑤 = 𝑊 → ((𝑊 cyclShift 𝑛) = 𝑤 ↔ (𝑊 cyclShift 𝑛) = 𝑊)) |
22 | 21 | rexbidv 3226 |
. . . . . . . . . 10
⊢ (𝑤 = 𝑊 → (∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤 ↔ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑊)) |
23 | 22 | rspcev 3561 |
. . . . . . . . 9
⊢ ((𝑊 ∈ Word 𝑉 ∧ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑊) → ∃𝑤 ∈ Word 𝑉∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤) |
24 | 5, 20, 23 | syl2anc 584 |
. . . . . . . 8
⊢ (((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) ∧ (𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴)) → ∃𝑤 ∈ Word 𝑉∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤) |
25 | 24 | ex 413 |
. . . . . . 7
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) → ((𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴) → ∃𝑤 ∈ Word 𝑉∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤)) |
26 | 3, 25 | sylbid 239 |
. . . . . 6
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) → (𝑊 = (𝐴 repeatS 𝑁) → ∃𝑤 ∈ Word 𝑉∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤)) |
27 | 26 | 3impia 1116 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → ∃𝑤 ∈ Word 𝑉∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤) |
28 | | repsw 14488 |
. . . . . . . 8
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0) → (𝐴 repeatS 𝑁) ∈ Word 𝑉) |
29 | 1, 28 | sylan2 593 |
. . . . . . 7
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) → (𝐴 repeatS 𝑁) ∈ Word 𝑉) |
30 | 29 | 3adant3 1131 |
. . . . . 6
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → (𝐴 repeatS 𝑁) ∈ Word 𝑉) |
31 | | simpll3 1213 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → 𝑊 = (𝐴 repeatS 𝑁)) |
32 | 31 | oveq1d 7290 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → (𝑊 cyclShift 𝑛) = ((𝐴 repeatS 𝑁) cyclShift 𝑛)) |
33 | | simp1 1135 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → 𝐴 ∈ 𝑉) |
34 | 33 | ad2antrr 723 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → 𝐴 ∈ 𝑉) |
35 | 1 | 3ad2ant2 1133 |
. . . . . . . . . . . . 13
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → 𝑁 ∈
ℕ0) |
36 | 35 | ad2antrr 723 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → 𝑁 ∈
ℕ0) |
37 | | elfzoelz 13387 |
. . . . . . . . . . . . 13
⊢ (𝑛 ∈
(0..^(♯‘𝑊))
→ 𝑛 ∈
ℤ) |
38 | 37 | adantl 482 |
. . . . . . . . . . . 12
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → 𝑛 ∈ ℤ) |
39 | | repswcshw 14525 |
. . . . . . . . . . . 12
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ0 ∧ 𝑛 ∈ ℤ) → ((𝐴 repeatS 𝑁) cyclShift 𝑛) = (𝐴 repeatS 𝑁)) |
40 | 34, 36, 38, 39 | syl3anc 1370 |
. . . . . . . . . . 11
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → ((𝐴 repeatS 𝑁) cyclShift 𝑛) = (𝐴 repeatS 𝑁)) |
41 | 32, 40 | eqtrd 2778 |
. . . . . . . . . 10
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → (𝑊 cyclShift 𝑛) = (𝐴 repeatS 𝑁)) |
42 | 41 | eqeq1d 2740 |
. . . . . . . . 9
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → ((𝑊 cyclShift 𝑛) = 𝑢 ↔ (𝐴 repeatS 𝑁) = 𝑢)) |
43 | 42 | biimpd 228 |
. . . . . . . 8
⊢ ((((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) ∧ 𝑛 ∈ (0..^(♯‘𝑊))) → ((𝑊 cyclShift 𝑛) = 𝑢 → (𝐴 repeatS 𝑁) = 𝑢)) |
44 | 43 | rexlimdva 3213 |
. . . . . . 7
⊢ (((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) ∧ 𝑢 ∈ Word 𝑉) → (∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → (𝐴 repeatS 𝑁) = 𝑢)) |
45 | 44 | ralrimiva 3103 |
. . . . . 6
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → ∀𝑢 ∈ Word 𝑉(∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → (𝐴 repeatS 𝑁) = 𝑢)) |
46 | | eqeq1 2742 |
. . . . . . . . 9
⊢ (𝑤 = (𝐴 repeatS 𝑁) → (𝑤 = 𝑢 ↔ (𝐴 repeatS 𝑁) = 𝑢)) |
47 | 46 | imbi2d 341 |
. . . . . . . 8
⊢ (𝑤 = (𝐴 repeatS 𝑁) → ((∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → 𝑤 = 𝑢) ↔ (∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → (𝐴 repeatS 𝑁) = 𝑢))) |
48 | 47 | ralbidv 3112 |
. . . . . . 7
⊢ (𝑤 = (𝐴 repeatS 𝑁) → (∀𝑢 ∈ Word 𝑉(∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → 𝑤 = 𝑢) ↔ ∀𝑢 ∈ Word 𝑉(∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → (𝐴 repeatS 𝑁) = 𝑢))) |
49 | 48 | rspcev 3561 |
. . . . . 6
⊢ (((𝐴 repeatS 𝑁) ∈ Word 𝑉 ∧ ∀𝑢 ∈ Word 𝑉(∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → (𝐴 repeatS 𝑁) = 𝑢)) → ∃𝑤 ∈ Word 𝑉∀𝑢 ∈ Word 𝑉(∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → 𝑤 = 𝑢)) |
50 | 30, 45, 49 | syl2anc 584 |
. . . . 5
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → ∃𝑤 ∈ Word 𝑉∀𝑢 ∈ Word 𝑉(∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → 𝑤 = 𝑢)) |
51 | | eqeq2 2750 |
. . . . . . 7
⊢ (𝑤 = 𝑢 → ((𝑊 cyclShift 𝑛) = 𝑤 ↔ (𝑊 cyclShift 𝑛) = 𝑢)) |
52 | 51 | rexbidv 3226 |
. . . . . 6
⊢ (𝑤 = 𝑢 → (∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤 ↔ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢)) |
53 | 52 | reu7 3667 |
. . . . 5
⊢
(∃!𝑤 ∈
Word 𝑉∃𝑛 ∈
(0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤 ↔ (∃𝑤 ∈ Word 𝑉∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤 ∧ ∃𝑤 ∈ Word 𝑉∀𝑢 ∈ Word 𝑉(∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑢 → 𝑤 = 𝑢))) |
54 | 27, 50, 53 | sylanbrc 583 |
. . . 4
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → ∃!𝑤 ∈ Word 𝑉∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤) |
55 | | reusn 4663 |
. . . 4
⊢
(∃!𝑤 ∈
Word 𝑉∃𝑛 ∈
(0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤 ↔ ∃𝑟{𝑤 ∈ Word 𝑉 ∣ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤} = {𝑟}) |
56 | 54, 55 | sylib 217 |
. . 3
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → ∃𝑟{𝑤 ∈ Word 𝑉 ∣ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤} = {𝑟}) |
57 | | cshwrepswhash1.m |
. . . . 5
⊢ 𝑀 = {𝑤 ∈ Word 𝑉 ∣ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤} |
58 | 57 | eqeq1i 2743 |
. . . 4
⊢ (𝑀 = {𝑟} ↔ {𝑤 ∈ Word 𝑉 ∣ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤} = {𝑟}) |
59 | 58 | exbii 1850 |
. . 3
⊢
(∃𝑟 𝑀 = {𝑟} ↔ ∃𝑟{𝑤 ∈ Word 𝑉 ∣ ∃𝑛 ∈ (0..^(♯‘𝑊))(𝑊 cyclShift 𝑛) = 𝑤} = {𝑟}) |
60 | 56, 59 | sylibr 233 |
. 2
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → ∃𝑟 𝑀 = {𝑟}) |
61 | 57 | cshwsex 16802 |
. . . . . 6
⊢ (𝑊 ∈ Word 𝑉 → 𝑀 ∈ V) |
62 | 61 | 3ad2ant1 1132 |
. . . . 5
⊢ ((𝑊 ∈ Word 𝑉 ∧ (♯‘𝑊) = 𝑁 ∧ ∀𝑖 ∈ (0..^𝑁)(𝑊‘𝑖) = 𝐴) → 𝑀 ∈ V) |
63 | 3, 62 | syl6bi 252 |
. . . 4
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ) → (𝑊 = (𝐴 repeatS 𝑁) → 𝑀 ∈ V)) |
64 | 63 | 3impia 1116 |
. . 3
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → 𝑀 ∈ V) |
65 | | hash1snb 14134 |
. . 3
⊢ (𝑀 ∈ V →
((♯‘𝑀) = 1
↔ ∃𝑟 𝑀 = {𝑟})) |
66 | 64, 65 | syl 17 |
. 2
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → ((♯‘𝑀) = 1 ↔ ∃𝑟 𝑀 = {𝑟})) |
67 | 60, 66 | mpbird 256 |
1
⊢ ((𝐴 ∈ 𝑉 ∧ 𝑁 ∈ ℕ ∧ 𝑊 = (𝐴 repeatS 𝑁)) → (♯‘𝑀) = 1) |