MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  cshwcsh2id Structured version   Visualization version   GIF version

Theorem cshwcsh2id 14469
Description: A cyclically shifted word can be reconstructed by cyclically shifting it again twice. Lemma for erclwwlktr 28287 and erclwwlkntr 28336. (Contributed by AV, 9-Apr-2018.) (Revised by AV, 11-Jun-2018.) (Proof shortened by AV, 3-Nov-2018.)
Hypotheses
Ref Expression
cshwcsh2id.1 (𝜑𝑧 ∈ Word 𝑉)
cshwcsh2id.2 (𝜑 → ((♯‘𝑦) = (♯‘𝑧) ∧ (♯‘𝑥) = (♯‘𝑦)))
Assertion
Ref Expression
cshwcsh2id (𝜑 → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
Distinct variable group:   𝑘,𝑚,𝑛,𝑥,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧,𝑘,𝑚,𝑛)   𝑉(𝑥,𝑦,𝑧,𝑘,𝑚,𝑛)

Proof of Theorem cshwcsh2id
StepHypRef Expression
1 oveq1 7262 . . . . . . . . 9 (𝑦 = (𝑧 cyclShift 𝑘) → (𝑦 cyclShift 𝑚) = ((𝑧 cyclShift 𝑘) cyclShift 𝑚))
21eqeq2d 2749 . . . . . . . 8 (𝑦 = (𝑧 cyclShift 𝑘) → (𝑥 = (𝑦 cyclShift 𝑚) ↔ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)))
32anbi2d 628 . . . . . . 7 (𝑦 = (𝑧 cyclShift 𝑘) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ↔ (𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚))))
43adantr 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)
85, 6, 7syl2anr 596 . . . . . . . . . . . . . . . 16 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → (𝑘 + 𝑚) ∈ ℕ0)
98adantr 480 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ∈ ℕ0)
10 elfz3nn0 13279 . . . . . . . . . . . . . . . 16 (𝑘 ∈ (0...(♯‘𝑧)) → (♯‘𝑧) ∈ ℕ0)
1110ad2antlr 723 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (♯‘𝑧) ∈ ℕ0)
12 simprl 767 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ≤ (♯‘𝑧))
13 elfz2nn0 13276 . . . . . . . . . . . . . . 15 ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ↔ ((𝑘 + 𝑚) ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ (𝑘 + 𝑚) ≤ (♯‘𝑧)))
149, 11, 12, 13syl3anbrc 1341 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ∈ (0...(♯‘𝑧)))
1514adantr 480 . . . . . . . . . . . . 13 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 + 𝑚) ∈ (0...(♯‘𝑧)))
16 cshwcsh2id.1 . . . . . . . . . . . . . . . . . 18 (𝜑𝑧 ∈ Word 𝑉)
1716adantl 481 . . . . . . . . . . . . . . . . 17 (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → 𝑧 ∈ Word 𝑉)
1817adantl 481 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑧 ∈ Word 𝑉)
19 elfzelz 13185 . . . . . . . . . . . . . . . . 17 (𝑘 ∈ (0...(♯‘𝑧)) → 𝑘 ∈ ℤ)
2019ad2antlr 723 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑘 ∈ ℤ)
21 elfzelz 13185 . . . . . . . . . . . . . . . . . 18 (𝑚 ∈ (0...(♯‘𝑦)) → 𝑚 ∈ ℤ)
2221adantr 480 . . . . . . . . . . . . . . . . 17 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 𝑚 ∈ ℤ)
2322adantr 480 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑚 ∈ ℤ)
24 2cshw 14454 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ Word 𝑉𝑘 ∈ ℤ ∧ 𝑚 ∈ ℤ) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
2518, 20, 23, 24syl3anc 1369 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
2625eqeq2d 2749 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) ↔ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))
2726biimpa 476 . . . . . . . . . . . . 13 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))
2815, 27jca 511 . . . . . . . . . . . 12 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))
2928exp41 434 . . . . . . . . . . 11 (𝑚 ∈ (0...(♯‘𝑦)) → (𝑘 ∈ (0...(♯‘𝑧)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))))
3029com23 86 . . . . . . . . . 10 (𝑚 ∈ (0...(♯‘𝑦)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑘 ∈ (0...(♯‘𝑧)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))))
3130com24 95 . . . . . . . . 9 (𝑚 ∈ (0...(♯‘𝑦)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (𝑘 ∈ (0...(♯‘𝑧)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))))
3231imp 406 . . . . . . . 8 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 ∈ (0...(♯‘𝑧)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3332com12 32 . . . . . . 7 (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3433adantl 481 . . . . . 6 ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
354, 34sylbid 239 . . . . 5 ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3635ancoms 458 . . . 4 ((𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3736impcom 407 . . 3 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))
38 oveq2 7263 . . . 4 (𝑛 = (𝑘 + 𝑚) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift (𝑘 + 𝑚)))
3938rspceeqv 3567 . . 3 (((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))
4037, 39syl6com 37 . 2 (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
41 elfz2 13175 . . . . . . . . . . . . . . . . . . 19 (𝑘 ∈ (0...(♯‘𝑧)) ↔ ((0 ∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) ∧ (0 ≤ 𝑘𝑘 ≤ (♯‘𝑧))))
42 nn0z 12273 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑚 ∈ ℕ0𝑚 ∈ ℤ)
43 zaddcl 12290 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑘 ∈ ℤ ∧ 𝑚 ∈ ℤ) → (𝑘 + 𝑚) ∈ ℤ)
4443ex 412 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑘 ∈ ℤ → (𝑚 ∈ ℤ → (𝑘 + 𝑚) ∈ ℤ))
4544adantl 481 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑚 ∈ ℤ → (𝑘 + 𝑚) ∈ ℤ))
4645impcom 407 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑚 ∈ ℤ ∧ ((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ)) → (𝑘 + 𝑚) ∈ ℤ)
47 simprl 767 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑚 ∈ ℤ ∧ ((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ)) → (♯‘𝑧) ∈ ℤ)
4846, 47zsubcld 12360 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑚 ∈ ℤ ∧ ((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)
4948ex 412 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑚 ∈ ℤ → (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5042, 49syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (𝑚 ∈ ℕ0 → (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5150com12 32 . . . . . . . . . . . . . . . . . . . . 21 (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
52513adant1 1128 . . . . . . . . . . . . . . . . . . . 20 ((0 ∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5352adantr 480 . . . . . . . . . . . . . . . . . . 19 (((0 ∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) ∧ (0 ≤ 𝑘𝑘 ≤ (♯‘𝑧))) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5441, 53sylbi 216 . . . . . . . . . . . . . . . . . 18 (𝑘 ∈ (0...(♯‘𝑧)) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
556, 54mpan9 506 . . . . . . . . . . . . . . . . 17 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)
5655adantr 480 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)
57 elfz2nn0 13276 . . . . . . . . . . . . . . . . . . . . 21 (𝑘 ∈ (0...(♯‘𝑧)) ↔ (𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)))
58 nn0re 12172 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑘 ∈ ℕ0𝑘 ∈ ℝ)
59 nn0re 12172 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((♯‘𝑧) ∈ ℕ0 → (♯‘𝑧) ∈ ℝ)
6058, 59anim12i 612 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ))
61 nn0re 12172 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑚 ∈ ℕ0𝑚 ∈ ℝ)
6260, 61anim12i 612 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ))
63 simplr 765 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → (♯‘𝑧) ∈ ℝ)
64 readdcl 10885 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ) → (𝑘 + 𝑚) ∈ ℝ)
6564adantlr 711 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → (𝑘 + 𝑚) ∈ ℝ)
6663, 65ltnled 11052 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) ↔ ¬ (𝑘 + 𝑚) ≤ (♯‘𝑧)))
6763, 65posdifd 11492 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) ↔ 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
6867biimpd 228 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
6966, 68sylbird 259 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7062, 69syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7170ex 412 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑚 ∈ ℕ0 → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))))
72713adant3 1130 . . . . . . . . . . . . . . . . . . . . 21 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → (𝑚 ∈ ℕ0 → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))))
7357, 72sylbi 216 . . . . . . . . . . . . . . . . . . . 20 (𝑘 ∈ (0...(♯‘𝑧)) → (𝑚 ∈ ℕ0 → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))))
746, 73mpan9 506 . . . . . . . . . . . . . . . . . . 19 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7574com12 32 . . . . . . . . . . . . . . . . . 18 (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7675adantr 480 . . . . . . . . . . . . . . . . 17 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7776impcom 407 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))
78 elnnz 12259 . . . . . . . . . . . . . . . 16 (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ ↔ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ ∧ 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7956, 77, 78sylanbrc 582 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ)
8079nnnn0d 12223 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ0)
8110ad2antlr 723 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (♯‘𝑧) ∈ ℕ0)
82 cshwcsh2id.2 . . . . . . . . . . . . . . . . 17 (𝜑 → ((♯‘𝑦) = (♯‘𝑧) ∧ (♯‘𝑥) = (♯‘𝑦)))
83 oveq2 7263 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑦) = (♯‘𝑧) → (0...(♯‘𝑦)) = (0...(♯‘𝑧)))
8483eleq2d 2824 . . . . . . . . . . . . . . . . . . . 20 ((♯‘𝑦) = (♯‘𝑧) → (𝑚 ∈ (0...(♯‘𝑦)) ↔ 𝑚 ∈ (0...(♯‘𝑧))))
8584anbi1d 629 . . . . . . . . . . . . . . . . . . 19 ((♯‘𝑦) = (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ↔ (𝑚 ∈ (0...(♯‘𝑧)) ∧ 𝑘 ∈ (0...(♯‘𝑧)))))
86 elfz2nn0 13276 . . . . . . . . . . . . . . . . . . . . 21 (𝑚 ∈ (0...(♯‘𝑧)) ↔ (𝑚 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑚 ≤ (♯‘𝑧)))
8758adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → 𝑘 ∈ ℝ)
8887, 61anim12i 612 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ))
8959, 59jca 511 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((♯‘𝑧) ∈ ℕ0 → ((♯‘𝑧) ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ))
9089ad2antlr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((♯‘𝑧) ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ))
91 le2add 11387 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ) ∧ ((♯‘𝑧) ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ)) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧))))
9288, 90, 91syl2anc 583 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧))))
93 nn0readdcl 12229 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑘 ∈ ℕ0𝑚 ∈ ℕ0) → (𝑘 + 𝑚) ∈ ℝ)
9493adantlr 711 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑘 + 𝑚) ∈ ℝ)
9559ad2antlr 723 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (♯‘𝑧) ∈ ℝ)
9694, 95, 95lesubadd2d 11504 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧) ↔ (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧))))
9792, 96sylibrd 258 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
9897expcomd 416 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑚 ≤ (♯‘𝑧) → (𝑘 ≤ (♯‘𝑧) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))
9998ex 412 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑚 ∈ ℕ0 → (𝑚 ≤ (♯‘𝑧) → (𝑘 ≤ (♯‘𝑧) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))))
10099com24 95 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑘 ≤ (♯‘𝑧) → (𝑚 ≤ (♯‘𝑧) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))))
1011003impia 1115 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → (𝑚 ≤ (♯‘𝑧) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))
102101com13 88 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑚 ∈ ℕ0 → (𝑚 ≤ (♯‘𝑧) → ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))
103102imp 406 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑚 ∈ ℕ0𝑚 ≤ (♯‘𝑧)) → ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
10457, 103syl5bi 241 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑚 ∈ ℕ0𝑚 ≤ (♯‘𝑧)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
1051043adant2 1129 . . . . . . . . . . . . . . . . . . . . 21 ((𝑚 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑚 ≤ (♯‘𝑧)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
10686, 105sylbi 216 . . . . . . . . . . . . . . . . . . . 20 (𝑚 ∈ (0...(♯‘𝑧)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
107106imp 406 . . . . . . . . . . . . . . . . . . 19 ((𝑚 ∈ (0...(♯‘𝑧)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))
10885, 107syl6bi 252 . . . . . . . . . . . . . . . . . 18 ((♯‘𝑦) = (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
109108adantr 480 . . . . . . . . . . . . . . . . 17 (((♯‘𝑦) = (♯‘𝑧) ∧ (♯‘𝑥) = (♯‘𝑦)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
11082, 109syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
111110adantl 481 . . . . . . . . . . . . . . 15 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
112111impcom 407 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))
113 elfz2nn0 13276 . . . . . . . . . . . . . 14 (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ↔ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
11480, 81, 112, 113syl3anbrc 1341 . . . . . . . . . . . . 13 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)))
115114adantr 480 . . . . . . . . . . . 12 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)))
11616adantl 481 . . . . . . . . . . . . . . . . 17 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → 𝑧 ∈ Word 𝑉)
117116adantl 481 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑧 ∈ Word 𝑉)
11819ad2antlr 723 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑘 ∈ ℤ)
11922adantr 480 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑚 ∈ ℤ)
120117, 118, 119, 24syl3anc 1369 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
12119, 21, 43syl2anr 596 . . . . . . . . . . . . . . . 16 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → (𝑘 + 𝑚) ∈ ℤ)
122 cshwsublen 14437 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ Word 𝑉 ∧ (𝑘 + 𝑚) ∈ ℤ) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
123116, 121, 122syl2anr 596 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
124120, 123eqtrd 2778 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
125124eqeq2d 2749 . . . . . . . . . . . . 13 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) ↔ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))
126125biimpa 476 . . . . . . . . . . . 12 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
127115, 126jca 511 . . . . . . . . . . 11 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))
128127exp41 434 . . . . . . . . . 10 (𝑚 ∈ (0...(♯‘𝑦)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))))
129128com23 86 . . . . . . . . 9 (𝑚 ∈ (0...(♯‘𝑦)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (𝑘 ∈ (0...(♯‘𝑧)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))))
130129com24 95 . . . . . . . 8 (𝑚 ∈ (0...(♯‘𝑦)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) → (𝑘 ∈ (0...(♯‘𝑧)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))))
131130imp 406 . . . . . . 7 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))
1323, 131syl6bi 252 . . . . . 6 (𝑦 = (𝑧 cyclShift 𝑘) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))))
133132com23 86 . . . . 5 (𝑦 = (𝑧 cyclShift 𝑘) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))))
134133impcom 407 . . . 4 ((𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))
135134impcom 407 . . 3 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))
136 oveq2 7263 . . . 4 (𝑛 = ((𝑘 + 𝑚) − (♯‘𝑧)) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
137136rspceeqv 3567 . . 3 ((((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))
138135, 137syl6com 37 . 2 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
13940, 138pm2.61ian 808 1 (𝜑 → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wrex 3064   class class class wbr 5070  cfv 6418  (class class class)co 7255  cr 10801  0cc0 10802   + caddc 10805   < clt 10940  cle 10941  cmin 11135  cn 11903  0cn0 12163  cz 12249  ...cfz 13168  chash 13972  Word cword 14145   cyclShift ccsh 14429
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-inf 9132  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-fzo 13312  df-fl 13440  df-mod 13518  df-hash 13973  df-word 14146  df-concat 14202  df-substr 14282  df-pfx 14312  df-csh 14430
This theorem is referenced by:  erclwwlktr  28287  erclwwlkntr  28336
  Copyright terms: Public domain W3C validator