Proof of Theorem cshwcsh2id
Step | Hyp | Ref
| Expression |
1 | | oveq1 7262 |
. . . . . . . . 9
⊢ (𝑦 = (𝑧 cyclShift 𝑘) → (𝑦 cyclShift 𝑚) = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) |
2 | 1 | eqeq2d 2749 |
. . . . . . . 8
⊢ (𝑦 = (𝑧 cyclShift 𝑘) → (𝑥 = (𝑦 cyclShift 𝑚) ↔ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚))) |
3 | 2 | anbi2d 628 |
. . . . . . 7
⊢ (𝑦 = (𝑧 cyclShift 𝑘) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ↔ (𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)))) |
4 | 3 | adantr 480 |
. . . . . 6
⊢ ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ↔ (𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)))) |
5 | | elfznn0 13278 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑘 ∈
(0...(♯‘𝑧))
→ 𝑘 ∈
ℕ0) |
6 | | elfznn0 13278 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ 𝑚 ∈
ℕ0) |
7 | | nn0addcl 12198 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑘 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (𝑘 + 𝑚) ∈
ℕ0) |
8 | 5, 6, 7 | syl2anr 596 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ (𝑘 + 𝑚) ∈
ℕ0) |
9 | 8 | adantr 480 |
. . . . . . . . . . . . . . 15
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ∈
ℕ0) |
10 | | elfz3nn0 13279 |
. . . . . . . . . . . . . . . 16
⊢ (𝑘 ∈
(0...(♯‘𝑧))
→ (♯‘𝑧)
∈ ℕ0) |
11 | 10 | ad2antlr 723 |
. . . . . . . . . . . . . . 15
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (♯‘𝑧) ∈
ℕ0) |
12 | | simprl 767 |
. . . . . . . . . . . . . . 15
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ≤ (♯‘𝑧)) |
13 | | elfz2nn0 13276 |
. . . . . . . . . . . . . . 15
⊢ ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ↔ ((𝑘 + 𝑚) ∈ ℕ0 ∧
(♯‘𝑧) ∈
ℕ0 ∧ (𝑘 + 𝑚) ≤ (♯‘𝑧))) |
14 | 9, 11, 12, 13 | syl3anbrc 1341 |
. . . . . . . . . . . . . 14
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ∈ (0...(♯‘𝑧))) |
15 | 14 | adantr 480 |
. . . . . . . . . . . . 13
⊢ ((((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 + 𝑚) ∈ (0...(♯‘𝑧))) |
16 | | cshwcsh2id.1 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝜑 → 𝑧 ∈ Word 𝑉) |
17 | 16 | adantl 481 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → 𝑧 ∈ Word 𝑉) |
18 | 17 | adantl 481 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑧 ∈ Word 𝑉) |
19 | | elfzelz 13185 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑘 ∈
(0...(♯‘𝑧))
→ 𝑘 ∈
ℤ) |
20 | 19 | ad2antlr 723 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑘 ∈ ℤ) |
21 | | elfzelz 13185 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ 𝑚 ∈
ℤ) |
22 | 21 | adantr 480 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ 𝑚 ∈
ℤ) |
23 | 22 | adantr 480 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑚 ∈ ℤ) |
24 | | 2cshw 14454 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑧 ∈ Word 𝑉 ∧ 𝑘 ∈ ℤ ∧ 𝑚 ∈ ℤ) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚))) |
25 | 18, 20, 23, 24 | syl3anc 1369 |
. . . . . . . . . . . . . . 15
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚))) |
26 | 25 | eqeq2d 2749 |
. . . . . . . . . . . . . 14
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) ↔ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))) |
27 | 26 | biimpa 476 |
. . . . . . . . . . . . 13
⊢ ((((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))) |
28 | 15, 27 | jca 511 |
. . . . . . . . . . . 12
⊢ ((((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))) |
29 | 28 | exp41 434 |
. . . . . . . . . . 11
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ (𝑘 ∈
(0...(♯‘𝑧))
→ (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))) |
30 | 29 | com23 86 |
. . . . . . . . . 10
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑘 ∈ (0...(♯‘𝑧)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))) |
31 | 30 | com24 95 |
. . . . . . . . 9
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (𝑘 ∈ (0...(♯‘𝑧)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))) |
32 | 31 | imp 406 |
. . . . . . . 8
⊢ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 ∈ (0...(♯‘𝑧)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))) |
33 | 32 | com12 32 |
. . . . . . 7
⊢ (𝑘 ∈
(0...(♯‘𝑧))
→ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))) |
34 | 33 | adantl 481 |
. . . . . 6
⊢ ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))) |
35 | 4, 34 | sylbid 239 |
. . . . 5
⊢ ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))) |
36 | 35 | ancoms 458 |
. . . 4
⊢ ((𝑘 ∈
(0...(♯‘𝑧))
∧ 𝑦 = (𝑧 cyclShift 𝑘)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))) |
37 | 36 | impcom 407 |
. . 3
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))) |
38 | | oveq2 7263 |
. . . 4
⊢ (𝑛 = (𝑘 + 𝑚) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift (𝑘 + 𝑚))) |
39 | 38 | rspceeqv 3567 |
. . 3
⊢ (((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)) |
40 | 37, 39 | syl6com 37 |
. 2
⊢ (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))) |
41 | | elfz2 13175 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑘 ∈
(0...(♯‘𝑧))
↔ ((0 ∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) ∧ (0 ≤ 𝑘 ∧ 𝑘 ≤ (♯‘𝑧)))) |
42 | | nn0z 12273 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (𝑚 ∈ ℕ0
→ 𝑚 ∈
ℤ) |
43 | | zaddcl 12290 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ ((𝑘 ∈ ℤ ∧ 𝑚 ∈ ℤ) → (𝑘 + 𝑚) ∈ ℤ) |
44 | 43 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ (𝑘 ∈ ℤ → (𝑚 ∈ ℤ → (𝑘 + 𝑚) ∈ ℤ)) |
45 | 44 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢
(((♯‘𝑧)
∈ ℤ ∧ 𝑘
∈ ℤ) → (𝑚
∈ ℤ → (𝑘 +
𝑚) ∈
ℤ)) |
46 | 45 | impcom 407 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝑚 ∈ ℤ ∧
((♯‘𝑧) ∈
ℤ ∧ 𝑘 ∈
ℤ)) → (𝑘 + 𝑚) ∈
ℤ) |
47 | | simprl 767 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝑚 ∈ ℤ ∧
((♯‘𝑧) ∈
ℤ ∧ 𝑘 ∈
ℤ)) → (♯‘𝑧) ∈ ℤ) |
48 | 46, 47 | zsubcld 12360 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ ((𝑚 ∈ ℤ ∧
((♯‘𝑧) ∈
ℤ ∧ 𝑘 ∈
ℤ)) → ((𝑘 +
𝑚) −
(♯‘𝑧)) ∈
ℤ) |
49 | 48 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (𝑚 ∈ ℤ →
(((♯‘𝑧) ∈
ℤ ∧ 𝑘 ∈
ℤ) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈
ℤ)) |
50 | 42, 49 | syl 17 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ (𝑚 ∈ ℕ0
→ (((♯‘𝑧)
∈ ℤ ∧ 𝑘
∈ ℤ) → ((𝑘
+ 𝑚) −
(♯‘𝑧)) ∈
ℤ)) |
51 | 50 | com12 32 |
. . . . . . . . . . . . . . . . . . . . 21
⊢
(((♯‘𝑧)
∈ ℤ ∧ 𝑘
∈ ℤ) → (𝑚
∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)) |
52 | 51 | 3adant1 1128 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((0
∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)) |
53 | 52 | adantr 480 |
. . . . . . . . . . . . . . . . . . 19
⊢ (((0
∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) ∧ (0 ≤ 𝑘 ∧ 𝑘 ≤ (♯‘𝑧))) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)) |
54 | 41, 53 | sylbi 216 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑘 ∈
(0...(♯‘𝑧))
→ (𝑚 ∈
ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)) |
55 | 6, 54 | mpan9 506 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ ((𝑘 + 𝑚) − (♯‘𝑧)) ∈
ℤ) |
56 | 55 | adantr 480 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ) |
57 | | elfz2nn0 13276 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑘 ∈
(0...(♯‘𝑧))
↔ (𝑘 ∈
ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ 𝑘 ≤ (♯‘𝑧))) |
58 | | nn0re 12172 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (𝑘 ∈ ℕ0
→ 𝑘 ∈
ℝ) |
59 | | nn0re 12172 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢
((♯‘𝑧)
∈ ℕ0 → (♯‘𝑧) ∈ ℝ) |
60 | 58, 59 | anim12i 612 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) → (𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈
ℝ)) |
61 | | nn0re 12172 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (𝑚 ∈ ℕ0
→ 𝑚 ∈
ℝ) |
62 | 60, 61 | anim12i 612 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ∈ ℝ ∧
(♯‘𝑧) ∈
ℝ) ∧ 𝑚 ∈
ℝ)) |
63 | | simplr 765 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑘 ∈ ℝ ∧
(♯‘𝑧) ∈
ℝ) ∧ 𝑚 ∈
ℝ) → (♯‘𝑧) ∈ ℝ) |
64 | | readdcl 10885 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ) → (𝑘 + 𝑚) ∈ ℝ) |
65 | 64 | adantlr 711 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑘 ∈ ℝ ∧
(♯‘𝑧) ∈
ℝ) ∧ 𝑚 ∈
ℝ) → (𝑘 + 𝑚) ∈
ℝ) |
66 | 63, 65 | ltnled 11052 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (((𝑘 ∈ ℝ ∧
(♯‘𝑧) ∈
ℝ) ∧ 𝑚 ∈
ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) ↔ ¬ (𝑘 + 𝑚) ≤ (♯‘𝑧))) |
67 | 63, 65 | posdifd 11492 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ (((𝑘 ∈ ℝ ∧
(♯‘𝑧) ∈
ℝ) ∧ 𝑚 ∈
ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) ↔ 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))) |
68 | 67 | biimpd 228 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ (((𝑘 ∈ ℝ ∧
(♯‘𝑧) ∈
ℝ) ∧ 𝑚 ∈
ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))) |
69 | 66, 68 | sylbird 259 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (((𝑘 ∈ ℝ ∧
(♯‘𝑧) ∈
ℝ) ∧ 𝑚 ∈
ℝ) → (¬ (𝑘 +
𝑚) ≤
(♯‘𝑧) → 0
< ((𝑘 + 𝑚) − (♯‘𝑧)))) |
70 | 62, 69 | syl 17 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))) |
71 | 70 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) → (𝑚 ∈ ℕ0 → (¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))) |
72 | 71 | 3adant3 1130 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0 ∧ 𝑘 ≤ (♯‘𝑧)) → (𝑚 ∈ ℕ0 → (¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))) |
73 | 57, 72 | sylbi 216 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑘 ∈
(0...(♯‘𝑧))
→ (𝑚 ∈
ℕ0 → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))) |
74 | 6, 73 | mpan9 506 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))) |
75 | 74 | com12 32 |
. . . . . . . . . . . . . . . . . 18
⊢ (¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))) |
76 | 75 | adantr 480 |
. . . . . . . . . . . . . . . . 17
⊢ ((¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))) |
77 | 76 | impcom 407 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))) |
78 | | elnnz 12259 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ ↔ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ ∧ 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))) |
79 | 56, 77, 78 | sylanbrc 582 |
. . . . . . . . . . . . . . 15
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ) |
80 | 79 | nnnn0d 12223 |
. . . . . . . . . . . . . 14
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈
ℕ0) |
81 | 10 | ad2antlr 723 |
. . . . . . . . . . . . . 14
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (♯‘𝑧) ∈
ℕ0) |
82 | | cshwcsh2id.2 |
. . . . . . . . . . . . . . . . 17
⊢ (𝜑 → ((♯‘𝑦) = (♯‘𝑧) ∧ (♯‘𝑥) = (♯‘𝑦))) |
83 | | oveq2 7263 |
. . . . . . . . . . . . . . . . . . . . 21
⊢
((♯‘𝑦) =
(♯‘𝑧) →
(0...(♯‘𝑦)) =
(0...(♯‘𝑧))) |
84 | 83 | eleq2d 2824 |
. . . . . . . . . . . . . . . . . . . 20
⊢
((♯‘𝑦) =
(♯‘𝑧) →
(𝑚 ∈
(0...(♯‘𝑦))
↔ 𝑚 ∈
(0...(♯‘𝑧)))) |
85 | 84 | anbi1d 629 |
. . . . . . . . . . . . . . . . . . 19
⊢
((♯‘𝑦) =
(♯‘𝑧) →
((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
↔ (𝑚 ∈
(0...(♯‘𝑧))
∧ 𝑘 ∈
(0...(♯‘𝑧))))) |
86 | | elfz2nn0 13276 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ (𝑚 ∈
(0...(♯‘𝑧))
↔ (𝑚 ∈
ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ 𝑚 ≤ (♯‘𝑧))) |
87 | 58 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢ ((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) → 𝑘 ∈ ℝ) |
88 | 87, 61 | anim12i 612 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑘 ∈ ℝ ∧ 𝑚 ∈
ℝ)) |
89 | 59, 59 | jca 511 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢
((♯‘𝑧)
∈ ℕ0 → ((♯‘𝑧) ∈ ℝ ∧ (♯‘𝑧) ∈
ℝ)) |
90 | 89 | ad2antlr 723 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) →
((♯‘𝑧) ∈
ℝ ∧ (♯‘𝑧) ∈ ℝ)) |
91 | | le2add 11387 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (((𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ) ∧
((♯‘𝑧) ∈
ℝ ∧ (♯‘𝑧) ∈ ℝ)) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧)))) |
92 | 88, 90, 91 | syl2anc 583 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧)))) |
93 | | nn0readdcl 12229 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32
⊢ ((𝑘 ∈ ℕ0
∧ 𝑚 ∈
ℕ0) → (𝑘 + 𝑚) ∈ ℝ) |
94 | 93 | adantlr 711 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑘 + 𝑚) ∈ ℝ) |
95 | 59 | ad2antlr 723 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) →
(♯‘𝑧) ∈
ℝ) |
96 | 94, 95, 95 | lesubadd2d 11504 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧) ↔ (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧)))) |
97 | 92, 96 | sylibrd 258 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
98 | 97 | expcomd 416 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢ (((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑚 ≤ (♯‘𝑧) → (𝑘 ≤ (♯‘𝑧) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))) |
99 | 98 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢ ((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) → (𝑚 ∈ ℕ0 → (𝑚 ≤ (♯‘𝑧) → (𝑘 ≤ (♯‘𝑧) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))) |
100 | 99 | com24 95 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢ ((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0) → (𝑘 ≤ (♯‘𝑧) → (𝑚 ≤ (♯‘𝑧) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))) |
101 | 100 | 3impia 1115 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢ ((𝑘 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0 ∧ 𝑘 ≤ (♯‘𝑧)) → (𝑚 ≤ (♯‘𝑧) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))) |
102 | 101 | com13 88 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢ (𝑚 ∈ ℕ0
→ (𝑚 ≤
(♯‘𝑧) →
((𝑘 ∈
ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ 𝑘 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))) |
103 | 102 | imp 406 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ ((𝑚 ∈ ℕ0
∧ 𝑚 ≤
(♯‘𝑧)) →
((𝑘 ∈
ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ 𝑘 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
104 | 57, 103 | syl5bi 241 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((𝑚 ∈ ℕ0
∧ 𝑚 ≤
(♯‘𝑧)) →
(𝑘 ∈
(0...(♯‘𝑧))
→ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
105 | 104 | 3adant2 1129 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((𝑚 ∈ ℕ0
∧ (♯‘𝑧)
∈ ℕ0 ∧ 𝑚 ≤ (♯‘𝑧)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
106 | 86, 105 | sylbi 216 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑚 ∈
(0...(♯‘𝑧))
→ (𝑘 ∈
(0...(♯‘𝑧))
→ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
107 | 106 | imp 406 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑚 ∈
(0...(♯‘𝑧))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)) |
108 | 85, 107 | syl6bi 252 |
. . . . . . . . . . . . . . . . . 18
⊢
((♯‘𝑦) =
(♯‘𝑧) →
((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
109 | 108 | adantr 480 |
. . . . . . . . . . . . . . . . 17
⊢
(((♯‘𝑦)
= (♯‘𝑧) ∧
(♯‘𝑥) =
(♯‘𝑦)) →
((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
110 | 82, 109 | syl 17 |
. . . . . . . . . . . . . . . 16
⊢ (𝜑 → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
111 | 110 | adantl 481 |
. . . . . . . . . . . . . . 15
⊢ ((¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
112 | 111 | impcom 407 |
. . . . . . . . . . . . . 14
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)) |
113 | | elfz2nn0 13276 |
. . . . . . . . . . . . . 14
⊢ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ↔ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ0 ∧
(♯‘𝑧) ∈
ℕ0 ∧ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))) |
114 | 80, 81, 112, 113 | syl3anbrc 1341 |
. . . . . . . . . . . . 13
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧))) |
115 | 114 | adantr 480 |
. . . . . . . . . . . 12
⊢ ((((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧))) |
116 | 16 | adantl 481 |
. . . . . . . . . . . . . . . . 17
⊢ ((¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → 𝑧 ∈ Word 𝑉) |
117 | 116 | adantl 481 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑧 ∈ Word 𝑉) |
118 | 19 | ad2antlr 723 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑘 ∈ ℤ) |
119 | 22 | adantr 480 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑚 ∈ ℤ) |
120 | 117, 118,
119, 24 | syl3anc 1369 |
. . . . . . . . . . . . . . 15
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚))) |
121 | 19, 21, 43 | syl2anr 596 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
→ (𝑘 + 𝑚) ∈
ℤ) |
122 | | cshwsublen 14437 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑧 ∈ Word 𝑉 ∧ (𝑘 + 𝑚) ∈ ℤ) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) |
123 | 116, 121,
122 | syl2anr 596 |
. . . . . . . . . . . . . . 15
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) |
124 | 120, 123 | eqtrd 2778 |
. . . . . . . . . . . . . 14
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) |
125 | 124 | eqeq2d 2749 |
. . . . . . . . . . . . 13
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) ↔ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))) |
126 | 125 | biimpa 476 |
. . . . . . . . . . . 12
⊢ ((((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) |
127 | 115, 126 | jca 511 |
. . . . . . . . . . 11
⊢ ((((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑘 ∈
(0...(♯‘𝑧)))
∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))) |
128 | 127 | exp41 434 |
. . . . . . . . . 10
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ (𝑘 ∈
(0...(♯‘𝑧))
→ ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))) |
129 | 128 | com23 86 |
. . . . . . . . 9
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑘 ∈ (0...(♯‘𝑧)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))) |
130 | 129 | com24 95 |
. . . . . . . 8
⊢ (𝑚 ∈
(0...(♯‘𝑦))
→ (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (𝑘 ∈ (0...(♯‘𝑧)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))) |
131 | 130 | imp 406 |
. . . . . . 7
⊢ ((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))) |
132 | 3, 131 | syl6bi 252 |
. . . . . 6
⊢ (𝑦 = (𝑧 cyclShift 𝑘) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))) |
133 | 132 | com23 86 |
. . . . 5
⊢ (𝑦 = (𝑧 cyclShift 𝑘) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))) |
134 | 133 | impcom 407 |
. . . 4
⊢ ((𝑘 ∈
(0...(♯‘𝑧))
∧ 𝑦 = (𝑧 cyclShift 𝑘)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))) |
135 | 134 | impcom 407 |
. . 3
⊢ (((𝑚 ∈
(0...(♯‘𝑦))
∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))) |
136 | | oveq2 7263 |
. . . 4
⊢ (𝑛 = ((𝑘 + 𝑚) − (♯‘𝑧)) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) |
137 | 136 | rspceeqv 3567 |
. . 3
⊢ ((((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)) |
138 | 135, 137 | syl6com 37 |
. 2
⊢ ((¬
(𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))) |
139 | 40, 138 | pm2.61ian 808 |
1
⊢ (𝜑 → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))) |