Proof of Theorem 2cshwcshw
Step | Hyp | Ref
| Expression |
1 | | difelfznle 13352 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝐾 ∈ (0...𝑁) ∧ 𝑚 ∈ (0...𝑁) ∧ ¬ 𝐾 ≤ 𝑚) → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁)) |
2 | 1 | 3exp 1117 |
. . . . . . . . . . . . . . . . 17
⊢ (𝐾 ∈ (0...𝑁) → (𝑚 ∈ (0...𝑁) → (¬ 𝐾 ≤ 𝑚 → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁)))) |
3 | 2 | ad2antrr 722 |
. . . . . . . . . . . . . . . 16
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑚 ∈ (0...𝑁) → (¬ 𝐾 ≤ 𝑚 → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁)))) |
4 | 3 | imp 406 |
. . . . . . . . . . . . . . 15
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) → (¬ 𝐾 ≤ 𝑚 → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁))) |
5 | 4 | adantr 480 |
. . . . . . . . . . . . . 14
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → (¬ 𝐾 ≤ 𝑚 → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁))) |
6 | 5 | com12 32 |
. . . . . . . . . . . . 13
⊢ (¬
𝐾 ≤ 𝑚 → (((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁))) |
7 | 6 | adantl 481 |
. . . . . . . . . . . 12
⊢ ((¬
𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚) → (((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁))) |
8 | 7 | imp 406 |
. . . . . . . . . . 11
⊢ (((¬
𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚) ∧ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚))) → ((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁)) |
9 | | simprl 767 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → 𝑌 ∈ Word 𝑉) |
10 | 9 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → 𝑌 ∈ Word 𝑉) |
11 | | elfzelz 13238 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (𝐾 ∈ (0...𝑁) → 𝐾 ∈ ℤ) |
12 | 11 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → 𝐾 ∈ ℤ) |
13 | 12 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → 𝐾 ∈ ℤ) |
14 | | elfz2 13228 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (𝐾 ∈ (0...𝑁) ↔ ((0 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) ∧ (0 ≤
𝐾 ∧ 𝐾 ≤ 𝑁))) |
15 | | zaddcl 12343 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢ ((𝑚 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑚 + 𝑁) ∈ ℤ) |
16 | 15 | adantrr 713 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ ((𝑚 ∈ ℤ ∧ (𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ)) → (𝑚 + 𝑁) ∈ ℤ) |
17 | | simprr 769 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ ((𝑚 ∈ ℤ ∧ (𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ)) → 𝐾 ∈
ℤ) |
18 | 16, 17 | zsubcld 12413 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ ((𝑚 ∈ ℤ ∧ (𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ)) → ((𝑚 + 𝑁) − 𝐾) ∈ ℤ) |
19 | 18 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑚 ∈ ℤ → ((𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → ((𝑚 + 𝑁) − 𝐾) ∈ ℤ)) |
20 | | elfzelz 13238 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑚 ∈ (0...𝑁) → 𝑚 ∈ ℤ) |
21 | 19, 20 | syl11 33 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝑚 ∈ (0...𝑁) → ((𝑚 + 𝑁) − 𝐾) ∈ ℤ)) |
22 | 21 | 3adant1 1128 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((0
∈ ℤ ∧ 𝑁
∈ ℤ ∧ 𝐾
∈ ℤ) → (𝑚
∈ (0...𝑁) →
((𝑚 + 𝑁) − 𝐾) ∈ ℤ)) |
23 | 22 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((0
∈ ℤ ∧ 𝑁
∈ ℤ ∧ 𝐾
∈ ℤ) ∧ (0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁)) → (𝑚 ∈ (0...𝑁) → ((𝑚 + 𝑁) − 𝐾) ∈ ℤ)) |
24 | 14, 23 | sylbi 216 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (𝐾 ∈ (0...𝑁) → (𝑚 ∈ (0...𝑁) → ((𝑚 + 𝑁) − 𝐾) ∈ ℤ)) |
25 | 24 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) → (𝑚 ∈ (0...𝑁) → ((𝑚 + 𝑁) − 𝐾) ∈ ℤ)) |
26 | 25 | imp 406 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → ((𝑚 + 𝑁) − 𝐾) ∈ ℤ) |
27 | | 2cshw 14507 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((𝑌 ∈ Word 𝑉 ∧ 𝐾 ∈ ℤ ∧ ((𝑚 + 𝑁) − 𝐾) ∈ ℤ) → ((𝑌 cyclShift 𝐾) cyclShift ((𝑚 + 𝑁) − 𝐾)) = (𝑌 cyclShift (𝐾 + ((𝑚 + 𝑁) − 𝐾)))) |
28 | 10, 13, 26, 27 | syl3anc 1369 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → ((𝑌 cyclShift 𝐾) cyclShift ((𝑚 + 𝑁) − 𝐾)) = (𝑌 cyclShift (𝐾 + ((𝑚 + 𝑁) − 𝐾)))) |
29 | 17, 18 | zaddcld 12412 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ ((𝑚 ∈ ℤ ∧ (𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ)) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ) |
30 | 29 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑚 ∈ ℤ → ((𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ)) |
31 | 30, 20 | syl11 33 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑁 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝑚 ∈ (0...𝑁) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ)) |
32 | 31 | 3adant1 1128 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((0
∈ ℤ ∧ 𝑁
∈ ℤ ∧ 𝐾
∈ ℤ) → (𝑚
∈ (0...𝑁) →
(𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ)) |
33 | 32 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((0
∈ ℤ ∧ 𝑁
∈ ℤ ∧ 𝐾
∈ ℤ) ∧ (0 ≤ 𝐾 ∧ 𝐾 ≤ 𝑁)) → (𝑚 ∈ (0...𝑁) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ)) |
34 | 14, 33 | sylbi 216 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (𝐾 ∈ (0...𝑁) → (𝑚 ∈ (0...𝑁) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ)) |
35 | 34 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) → (𝑚 ∈ (0...𝑁) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ)) |
36 | 35 | imp 406 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ) |
37 | | cshwsublen 14490 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((𝑌 ∈ Word 𝑉 ∧ (𝐾 + ((𝑚 + 𝑁) − 𝐾)) ∈ ℤ) → (𝑌 cyclShift (𝐾 + ((𝑚 + 𝑁) − 𝐾))) = (𝑌 cyclShift ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)))) |
38 | 10, 36, 37 | syl2anc 583 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → (𝑌 cyclShift (𝐾 + ((𝑚 + 𝑁) − 𝐾))) = (𝑌 cyclShift ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)))) |
39 | 28, 38 | eqtrd 2779 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → ((𝑌 cyclShift 𝐾) cyclShift ((𝑚 + 𝑁) − 𝐾)) = (𝑌 cyclShift ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)))) |
40 | | elfz2nn0 13329 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (𝐾 ∈ (0...𝑁) ↔ (𝐾 ∈ ℕ0 ∧ 𝑁 ∈ ℕ0
∧ 𝐾 ≤ 𝑁)) |
41 | | nn0cn 12226 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (𝑚 ∈ ℕ0
→ 𝑚 ∈
ℂ) |
42 | | nn0cn 12226 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢ (𝐾 ∈ ℕ0
→ 𝐾 ∈
ℂ) |
43 | | nn0cn 12226 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℂ) |
44 | 42, 43 | anim12i 612 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ ((𝐾 ∈ ℕ0
∧ 𝑁 ∈
ℕ0) → (𝐾 ∈ ℂ ∧ 𝑁 ∈ ℂ)) |
45 | | simprl 767 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
⊢ ((𝑚 ∈ ℂ ∧ (𝐾 ∈ ℂ ∧ 𝑁 ∈ ℂ)) → 𝐾 ∈
ℂ) |
46 | | addcl 10937 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. 35
⊢ ((𝑚 ∈ ℂ ∧ 𝑁 ∈ ℂ) → (𝑚 + 𝑁) ∈ ℂ) |
47 | 46 | adantrl 712 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
⊢ ((𝑚 ∈ ℂ ∧ (𝐾 ∈ ℂ ∧ 𝑁 ∈ ℂ)) → (𝑚 + 𝑁) ∈ ℂ) |
48 | 45, 47 | pncan3d 11318 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
⊢ ((𝑚 ∈ ℂ ∧ (𝐾 ∈ ℂ ∧ 𝑁 ∈ ℂ)) → (𝐾 + ((𝑚 + 𝑁) − 𝐾)) = (𝑚 + 𝑁)) |
49 | 48 | oveq1d 7283 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢ ((𝑚 ∈ ℂ ∧ (𝐾 ∈ ℂ ∧ 𝑁 ∈ ℂ)) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = ((𝑚 + 𝑁) − 𝑁)) |
50 | | pncan 11210 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
⊢ ((𝑚 ∈ ℂ ∧ 𝑁 ∈ ℂ) → ((𝑚 + 𝑁) − 𝑁) = 𝑚) |
51 | 50 | adantrl 712 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢ ((𝑚 ∈ ℂ ∧ (𝐾 ∈ ℂ ∧ 𝑁 ∈ ℂ)) → ((𝑚 + 𝑁) − 𝑁) = 𝑚) |
52 | 49, 51 | eqtrd 2779 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ ((𝑚 ∈ ℂ ∧ (𝐾 ∈ ℂ ∧ 𝑁 ∈ ℂ)) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚) |
53 | 41, 44, 52 | syl2an 595 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ ((𝑚 ∈ ℕ0
∧ (𝐾 ∈
ℕ0 ∧ 𝑁
∈ ℕ0)) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚) |
54 | 53 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑚 ∈ ℕ0
→ ((𝐾 ∈
ℕ0 ∧ 𝑁
∈ ℕ0) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚)) |
55 | | elfznn0 13331 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (𝑚 ∈ (0...𝑁) → 𝑚 ∈ ℕ0) |
56 | 54, 55 | syl11 33 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝐾 ∈ ℕ0
∧ 𝑁 ∈
ℕ0) → (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚)) |
57 | 56 | 3adant3 1130 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝐾 ∈ ℕ0
∧ 𝑁 ∈
ℕ0 ∧ 𝐾
≤ 𝑁) → (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚)) |
58 | 40, 57 | sylbi 216 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (𝐾 ∈ (0...𝑁) → (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚)) |
59 | 58 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚)) |
60 | | oveq2 7276 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢
((♯‘𝑌) =
𝑁 → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁)) |
61 | 60 | eqeq1d 2741 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢
((♯‘𝑌) =
𝑁 → (((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = 𝑚 ↔ ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚)) |
62 | 61 | imbi2d 340 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢
((♯‘𝑌) =
𝑁 → ((𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = 𝑚) ↔ (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚))) |
63 | 62 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → ((𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = 𝑚) ↔ (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚))) |
64 | 63 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → ((𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = 𝑚) ↔ (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − 𝑁) = 𝑚))) |
65 | 59, 64 | mpbird 256 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = 𝑚)) |
66 | 65 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) → (𝑚 ∈ (0...𝑁) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = 𝑚)) |
67 | 66 | imp 406 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌)) = 𝑚) |
68 | 67 | oveq2d 7284 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → (𝑌 cyclShift ((𝐾 + ((𝑚 + 𝑁) − 𝐾)) − (♯‘𝑌))) = (𝑌 cyclShift 𝑚)) |
69 | 39, 68 | eqtr2d 2780 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) → (𝑌 cyclShift 𝑚) = ((𝑌 cyclShift 𝐾) cyclShift ((𝑚 + 𝑁) − 𝐾))) |
70 | 69 | adantr 480 |
. . . . . . . . . . . . . . . . . . 19
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑌 cyclShift 𝑚) = ((𝑌 cyclShift 𝐾) cyclShift ((𝑚 + 𝑁) − 𝐾))) |
71 | | oveq1 7275 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑋 = (𝑌 cyclShift 𝐾) → (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾)) = ((𝑌 cyclShift 𝐾) cyclShift ((𝑚 + 𝑁) − 𝐾))) |
72 | 71 | adantl 481 |
. . . . . . . . . . . . . . . . . . 19
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾)) = ((𝑌 cyclShift 𝐾) cyclShift ((𝑚 + 𝑁) − 𝐾))) |
73 | 70, 72 | eqtr4d 2782 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑌 cyclShift 𝑚) = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾))) |
74 | 73 | exp41 434 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → ((¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚) → (𝑚 ∈ (0...𝑁) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑌 cyclShift 𝑚) = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾)))))) |
75 | 74 | com24 95 |
. . . . . . . . . . . . . . . 16
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑚 ∈ (0...𝑁) → ((¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚) → (𝑌 cyclShift 𝑚) = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾)))))) |
76 | 75 | imp41 425 |
. . . . . . . . . . . . . . 15
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) → (𝑌 cyclShift 𝑚) = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾))) |
77 | 76 | eqeq2d 2750 |
. . . . . . . . . . . . . 14
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) → (𝑍 = (𝑌 cyclShift 𝑚) ↔ 𝑍 = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾)))) |
78 | 77 | biimpd 228 |
. . . . . . . . . . . . 13
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ (¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚)) → (𝑍 = (𝑌 cyclShift 𝑚) → 𝑍 = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾)))) |
79 | 78 | impancom 451 |
. . . . . . . . . . . 12
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → ((¬ 𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚) → 𝑍 = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾)))) |
80 | 79 | impcom 407 |
. . . . . . . . . . 11
⊢ (((¬
𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚) ∧ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚))) → 𝑍 = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾))) |
81 | | oveq2 7276 |
. . . . . . . . . . . 12
⊢ (𝑛 = ((𝑚 + 𝑁) − 𝐾) → (𝑋 cyclShift 𝑛) = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾))) |
82 | 81 | rspceeqv 3575 |
. . . . . . . . . . 11
⊢ ((((𝑚 + 𝑁) − 𝐾) ∈ (0...𝑁) ∧ 𝑍 = (𝑋 cyclShift ((𝑚 + 𝑁) − 𝐾))) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)) |
83 | 8, 80, 82 | syl2anc 583 |
. . . . . . . . . 10
⊢ (((¬
𝑚 = 0 ∧ ¬ 𝐾 ≤ 𝑚) ∧ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚))) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)) |
84 | 83 | exp31 419 |
. . . . . . . . 9
⊢ (¬
𝑚 = 0 → (¬ 𝐾 ≤ 𝑚 → (((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))) |
85 | | oveq2 7276 |
. . . . . . . . . . . . . . 15
⊢ (𝑚 = 0 → (𝑌 cyclShift 𝑚) = (𝑌 cyclShift 0)) |
86 | 85 | eqeq2d 2750 |
. . . . . . . . . . . . . 14
⊢ (𝑚 = 0 → (𝑍 = (𝑌 cyclShift 𝑚) ↔ 𝑍 = (𝑌 cyclShift 0))) |
87 | | cshw0 14488 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑌 ∈ Word 𝑉 → (𝑌 cyclShift 0) = 𝑌) |
88 | 87 | adantr 480 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → (𝑌 cyclShift 0) = 𝑌) |
89 | 88 | eqeq2d 2750 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → (𝑍 = (𝑌 cyclShift 0) ↔ 𝑍 = 𝑌)) |
90 | | fznn0sub2 13345 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (𝐾 ∈ (0...𝑁) → (𝑁 − 𝐾) ∈ (0...𝑁)) |
91 | 90 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) ∈ (0...𝑁)) |
92 | | oveq1 7275 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢
((♯‘𝑌) =
𝑁 →
((♯‘𝑌) −
𝐾) = (𝑁 − 𝐾)) |
93 | 92 | eleq1d 2824 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢
((♯‘𝑌) =
𝑁 →
(((♯‘𝑌) −
𝐾) ∈ (0...𝑁) ↔ (𝑁 − 𝐾) ∈ (0...𝑁))) |
94 | 93 | ad2antlr 723 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) → (((♯‘𝑌) − 𝐾) ∈ (0...𝑁) ↔ (𝑁 − 𝐾) ∈ (0...𝑁))) |
95 | 91, 94 | mpbird 256 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) → ((♯‘𝑌) − 𝐾) ∈ (0...𝑁)) |
96 | 95 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → ((♯‘𝑌) − 𝐾) ∈ (0...𝑁)) |
97 | | oveq1 7275 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (𝑋 = (𝑌 cyclShift 𝐾) → (𝑋 cyclShift ((♯‘𝑌) − 𝐾)) = ((𝑌 cyclShift 𝐾) cyclShift ((♯‘𝑌) − 𝐾))) |
98 | | simpl 482 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → 𝑌 ∈ Word 𝑉) |
99 | | 2cshwid 14508 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑌 ∈ Word 𝑉 ∧ 𝐾 ∈ ℤ) → ((𝑌 cyclShift 𝐾) cyclShift ((♯‘𝑌) − 𝐾)) = 𝑌) |
100 | 98, 11, 99 | syl2an 595 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) → ((𝑌 cyclShift 𝐾) cyclShift ((♯‘𝑌) − 𝐾)) = 𝑌) |
101 | 97, 100 | sylan9eqr 2801 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑋 cyclShift ((♯‘𝑌) − 𝐾)) = 𝑌) |
102 | 101 | eqcomd 2745 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → 𝑌 = (𝑋 cyclShift ((♯‘𝑌) − 𝐾))) |
103 | | oveq2 7276 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (𝑛 = ((♯‘𝑌) − 𝐾) → (𝑋 cyclShift 𝑛) = (𝑋 cyclShift ((♯‘𝑌) − 𝐾))) |
104 | 103 | rspceeqv 3575 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢
((((♯‘𝑌)
− 𝐾) ∈
(0...𝑁) ∧ 𝑌 = (𝑋 cyclShift ((♯‘𝑌) − 𝐾))) → ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)) |
105 | 96, 102, 104 | syl2anc 583 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)) |
106 | 105 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢
(((((𝑌 ∈ Word
𝑉 ∧
(♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑍 = 𝑌) → ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)) |
107 | | eqeq1 2743 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (𝑍 = 𝑌 → (𝑍 = (𝑋 cyclShift 𝑛) ↔ 𝑌 = (𝑋 cyclShift 𝑛))) |
108 | 107 | rexbidv 3227 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (𝑍 = 𝑌 → (∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))) |
109 | 108 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢
(((((𝑌 ∈ Word
𝑉 ∧
(♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑍 = 𝑌) → (∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))) |
110 | 106, 109 | mpbird 256 |
. . . . . . . . . . . . . . . . . . . . 21
⊢
(((((𝑌 ∈ Word
𝑉 ∧
(♯‘𝑌) = 𝑁) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑍 = 𝑌) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)) |
111 | 110 | exp41 434 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → (𝐾 ∈ (0...𝑁) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑍 = 𝑌 → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))))) |
112 | 111 | com24 95 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → (𝑍 = 𝑌 → (𝑋 = (𝑌 cyclShift 𝐾) → (𝐾 ∈ (0...𝑁) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))))) |
113 | 89, 112 | sylbid 239 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → (𝑍 = (𝑌 cyclShift 0) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝐾 ∈ (0...𝑁) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))))) |
114 | 113 | com24 95 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → (𝐾 ∈ (0...𝑁) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑍 = (𝑌 cyclShift 0) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))))) |
115 | 114 | impcom 407 |
. . . . . . . . . . . . . . . 16
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑍 = (𝑌 cyclShift 0) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))) |
116 | 115 | com13 88 |
. . . . . . . . . . . . . . 15
⊢ (𝑍 = (𝑌 cyclShift 0) → (𝑋 = (𝑌 cyclShift 𝐾) → ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))) |
117 | 116 | a1d 25 |
. . . . . . . . . . . . . 14
⊢ (𝑍 = (𝑌 cyclShift 0) → (𝑚 ∈ (0...𝑁) → (𝑋 = (𝑌 cyclShift 𝐾) → ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))))) |
118 | 86, 117 | syl6bi 252 |
. . . . . . . . . . . . 13
⊢ (𝑚 = 0 → (𝑍 = (𝑌 cyclShift 𝑚) → (𝑚 ∈ (0...𝑁) → (𝑋 = (𝑌 cyclShift 𝐾) → ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))))) |
119 | 118 | com24 95 |
. . . . . . . . . . . 12
⊢ (𝑚 = 0 → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑚 ∈ (0...𝑁) → (𝑍 = (𝑌 cyclShift 𝑚) → ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))))) |
120 | 119 | com15 101 |
. . . . . . . . . . 11
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑚 ∈ (0...𝑁) → (𝑍 = (𝑌 cyclShift 𝑚) → (𝑚 = 0 → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))))) |
121 | 120 | imp41 425 |
. . . . . . . . . 10
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → (𝑚 = 0 → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))) |
122 | 121 | com12 32 |
. . . . . . . . 9
⊢ (𝑚 = 0 → (((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))) |
123 | | difelfzle 13351 |
. . . . . . . . . . . . . . . 16
⊢ ((𝐾 ∈ (0...𝑁) ∧ 𝑚 ∈ (0...𝑁) ∧ 𝐾 ≤ 𝑚) → (𝑚 − 𝐾) ∈ (0...𝑁)) |
124 | 123 | 3exp 1117 |
. . . . . . . . . . . . . . 15
⊢ (𝐾 ∈ (0...𝑁) → (𝑚 ∈ (0...𝑁) → (𝐾 ≤ 𝑚 → (𝑚 − 𝐾) ∈ (0...𝑁)))) |
125 | 124 | ad2antrr 722 |
. . . . . . . . . . . . . 14
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑚 ∈ (0...𝑁) → (𝐾 ≤ 𝑚 → (𝑚 − 𝐾) ∈ (0...𝑁)))) |
126 | 125 | imp 406 |
. . . . . . . . . . . . 13
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) → (𝐾 ≤ 𝑚 → (𝑚 − 𝐾) ∈ (0...𝑁))) |
127 | 126 | adantr 480 |
. . . . . . . . . . . 12
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → (𝐾 ≤ 𝑚 → (𝑚 − 𝐾) ∈ (0...𝑁))) |
128 | 127 | impcom 407 |
. . . . . . . . . . 11
⊢ ((𝐾 ≤ 𝑚 ∧ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚))) → (𝑚 − 𝐾) ∈ (0...𝑁)) |
129 | 9 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) → 𝑌 ∈ Word 𝑉) |
130 | 12 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) → 𝐾 ∈ ℤ) |
131 | | zsubcl 12345 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑚 ∈ ℤ ∧ 𝐾 ∈ ℤ) → (𝑚 − 𝐾) ∈ ℤ) |
132 | 131 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (𝑚 ∈ ℤ → (𝐾 ∈ ℤ → (𝑚 − 𝐾) ∈ ℤ)) |
133 | 20, 11, 132 | syl2imc 41 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (𝐾 ∈ (0...𝑁) → (𝑚 ∈ (0...𝑁) → (𝑚 − 𝐾) ∈ ℤ)) |
134 | 133 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) → (𝑚 ∈ (0...𝑁) → (𝑚 − 𝐾) ∈ ℤ)) |
135 | 134 | imp 406 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) → (𝑚 − 𝐾) ∈ ℤ) |
136 | | 2cshw 14507 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((𝑌 ∈ Word 𝑉 ∧ 𝐾 ∈ ℤ ∧ (𝑚 − 𝐾) ∈ ℤ) → ((𝑌 cyclShift 𝐾) cyclShift (𝑚 − 𝐾)) = (𝑌 cyclShift (𝐾 + (𝑚 − 𝐾)))) |
137 | 129, 130,
135, 136 | syl3anc 1369 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) → ((𝑌 cyclShift 𝐾) cyclShift (𝑚 − 𝐾)) = (𝑌 cyclShift (𝐾 + (𝑚 − 𝐾)))) |
138 | | zcn 12307 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ (𝐾 ∈ ℤ → 𝐾 ∈
ℂ) |
139 | 20 | zcnd 12409 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ (𝑚 ∈ (0...𝑁) → 𝑚 ∈ ℂ) |
140 | | pncan3 11212 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝐾 ∈ ℂ ∧ 𝑚 ∈ ℂ) → (𝐾 + (𝑚 − 𝐾)) = 𝑚) |
141 | 138, 139,
140 | syl2anr 596 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑚 ∈ (0...𝑁) ∧ 𝐾 ∈ ℤ) → (𝐾 + (𝑚 − 𝐾)) = 𝑚) |
142 | 141 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (𝑚 ∈ (0...𝑁) → (𝐾 ∈ ℤ → (𝐾 + (𝑚 − 𝐾)) = 𝑚)) |
143 | 11, 142 | syl5com 31 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (𝐾 ∈ (0...𝑁) → (𝑚 ∈ (0...𝑁) → (𝐾 + (𝑚 − 𝐾)) = 𝑚)) |
144 | 143 | ad2antrr 722 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) → (𝑚 ∈ (0...𝑁) → (𝐾 + (𝑚 − 𝐾)) = 𝑚)) |
145 | 144 | imp 406 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) → (𝐾 + (𝑚 − 𝐾)) = 𝑚) |
146 | 145 | oveq2d 7284 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) → (𝑌 cyclShift (𝐾 + (𝑚 − 𝐾))) = (𝑌 cyclShift 𝑚)) |
147 | 137, 146 | eqtr2d 2780 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) → (𝑌 cyclShift 𝑚) = ((𝑌 cyclShift 𝐾) cyclShift (𝑚 − 𝐾))) |
148 | 147 | adantr 480 |
. . . . . . . . . . . . . . . . . . . 20
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑌 cyclShift 𝑚) = ((𝑌 cyclShift 𝐾) cyclShift (𝑚 − 𝐾))) |
149 | | oveq1 7275 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ (𝑋 = (𝑌 cyclShift 𝐾) → (𝑋 cyclShift (𝑚 − 𝐾)) = ((𝑌 cyclShift 𝐾) cyclShift (𝑚 − 𝐾))) |
150 | 149 | eqeq2d 2750 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑋 = (𝑌 cyclShift 𝐾) → ((𝑌 cyclShift 𝑚) = (𝑋 cyclShift (𝑚 − 𝐾)) ↔ (𝑌 cyclShift 𝑚) = ((𝑌 cyclShift 𝐾) cyclShift (𝑚 − 𝐾)))) |
151 | 150 | adantl 481 |
. . . . . . . . . . . . . . . . . . . 20
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → ((𝑌 cyclShift 𝑚) = (𝑋 cyclShift (𝑚 − 𝐾)) ↔ (𝑌 cyclShift 𝑚) = ((𝑌 cyclShift 𝐾) cyclShift (𝑚 − 𝐾)))) |
152 | 148, 151 | mpbird 256 |
. . . . . . . . . . . . . . . . . . 19
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑌 cyclShift 𝑚) = (𝑋 cyclShift (𝑚 − 𝐾))) |
153 | 152 | eqeq2d 2750 |
. . . . . . . . . . . . . . . . . 18
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑍 = (𝑌 cyclShift 𝑚) ↔ 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾)))) |
154 | 153 | biimpd 228 |
. . . . . . . . . . . . . . . . 17
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝐾 ≤ 𝑚) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (𝑍 = (𝑌 cyclShift 𝑚) → 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾)))) |
155 | 154 | exp41 434 |
. . . . . . . . . . . . . . . 16
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝐾 ≤ 𝑚 → (𝑚 ∈ (0...𝑁) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑍 = (𝑌 cyclShift 𝑚) → 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾))))))) |
156 | 155 | com24 95 |
. . . . . . . . . . . . . . 15
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝑋 = (𝑌 cyclShift 𝐾) → (𝑚 ∈ (0...𝑁) → (𝐾 ≤ 𝑚 → (𝑍 = (𝑌 cyclShift 𝑚) → 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾))))))) |
157 | 156 | imp31 417 |
. . . . . . . . . . . . . 14
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) → (𝐾 ≤ 𝑚 → (𝑍 = (𝑌 cyclShift 𝑚) → 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾))))) |
158 | 157 | com23 86 |
. . . . . . . . . . . . 13
⊢ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) → (𝑍 = (𝑌 cyclShift 𝑚) → (𝐾 ≤ 𝑚 → 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾))))) |
159 | 158 | imp 406 |
. . . . . . . . . . . 12
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → (𝐾 ≤ 𝑚 → 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾)))) |
160 | 159 | impcom 407 |
. . . . . . . . . . 11
⊢ ((𝐾 ≤ 𝑚 ∧ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚))) → 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾))) |
161 | | oveq2 7276 |
. . . . . . . . . . . 12
⊢ (𝑛 = (𝑚 − 𝐾) → (𝑋 cyclShift 𝑛) = (𝑋 cyclShift (𝑚 − 𝐾))) |
162 | 161 | rspceeqv 3575 |
. . . . . . . . . . 11
⊢ (((𝑚 − 𝐾) ∈ (0...𝑁) ∧ 𝑍 = (𝑋 cyclShift (𝑚 − 𝐾))) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)) |
163 | 128, 160,
162 | syl2anc 583 |
. . . . . . . . . 10
⊢ ((𝐾 ≤ 𝑚 ∧ ((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚))) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)) |
164 | 163 | ex 412 |
. . . . . . . . 9
⊢ (𝐾 ≤ 𝑚 → (((((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))) |
165 | 84, 122, 164 | pm2.61ii 183 |
. . . . . . . 8
⊢
(((((𝐾 ∈
(0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) ∧ 𝑚 ∈ (0...𝑁)) ∧ 𝑍 = (𝑌 cyclShift 𝑚)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)) |
166 | 165 | rexlimdva2 3217 |
. . . . . . 7
⊢ (((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) ∧ 𝑋 = (𝑌 cyclShift 𝐾)) → (∃𝑚 ∈ (0...𝑁)𝑍 = (𝑌 cyclShift 𝑚) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))) |
167 | 166 | ex 412 |
. . . . . 6
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (𝑋 = (𝑌 cyclShift 𝐾) → (∃𝑚 ∈ (0...𝑁)𝑍 = (𝑌 cyclShift 𝑚) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))) |
168 | 167 | com23 86 |
. . . . 5
⊢ ((𝐾 ∈ (0...𝑁) ∧ (𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁)) → (∃𝑚 ∈ (0...𝑁)𝑍 = (𝑌 cyclShift 𝑚) → (𝑋 = (𝑌 cyclShift 𝐾) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛)))) |
169 | 168 | ex 412 |
. . . 4
⊢ (𝐾 ∈ (0...𝑁) → ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → (∃𝑚 ∈ (0...𝑁)𝑍 = (𝑌 cyclShift 𝑚) → (𝑋 = (𝑌 cyclShift 𝐾) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))))) |
170 | 169 | com24 95 |
. . 3
⊢ (𝐾 ∈ (0...𝑁) → (𝑋 = (𝑌 cyclShift 𝐾) → (∃𝑚 ∈ (0...𝑁)𝑍 = (𝑌 cyclShift 𝑚) → ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))))) |
171 | 170 | 3imp 1109 |
. 2
⊢ ((𝐾 ∈ (0...𝑁) ∧ 𝑋 = (𝑌 cyclShift 𝐾) ∧ ∃𝑚 ∈ (0...𝑁)𝑍 = (𝑌 cyclShift 𝑚)) → ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))) |
172 | 171 | com12 32 |
1
⊢ ((𝑌 ∈ Word 𝑉 ∧ (♯‘𝑌) = 𝑁) → ((𝐾 ∈ (0...𝑁) ∧ 𝑋 = (𝑌 cyclShift 𝐾) ∧ ∃𝑚 ∈ (0...𝑁)𝑍 = (𝑌 cyclShift 𝑚)) → ∃𝑛 ∈ (0...𝑁)𝑍 = (𝑋 cyclShift 𝑛))) |