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

Theorem cshwcsh2id 14539
Description: A cyclically shifted word can be reconstructed by cyclically shifting it again twice. Lemma for erclwwlktr 28382 and erclwwlkntr 28431. (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 7278 . . . . . . . . 9 (𝑦 = (𝑧 cyclShift 𝑘) → (𝑦 cyclShift 𝑚) = ((𝑧 cyclShift 𝑘) cyclShift 𝑚))
21eqeq2d 2751 . . . . . . . 8 (𝑦 = (𝑧 cyclShift 𝑘) → (𝑥 = (𝑦 cyclShift 𝑚) ↔ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)))
32anbi2d 629 . . . . . . 7 (𝑦 = (𝑧 cyclShift 𝑘) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ↔ (𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚))))
43adantr 481 . . . . . 6 ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ↔ (𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚))))
5 elfznn0 13348 . . . . . . . . . . . . . . . . 17 (𝑘 ∈ (0...(♯‘𝑧)) → 𝑘 ∈ ℕ0)
6 elfznn0 13348 . . . . . . . . . . . . . . . . 17 (𝑚 ∈ (0...(♯‘𝑦)) → 𝑚 ∈ ℕ0)
7 nn0addcl 12268 . . . . . . . . . . . . . . . . 17 ((𝑘 ∈ ℕ0𝑚 ∈ ℕ0) → (𝑘 + 𝑚) ∈ ℕ0)
85, 6, 7syl2anr 597 . . . . . . . . . . . . . . . 16 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → (𝑘 + 𝑚) ∈ ℕ0)
98adantr 481 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ∈ ℕ0)
10 elfz3nn0 13349 . . . . . . . . . . . . . . . 16 (𝑘 ∈ (0...(♯‘𝑧)) → (♯‘𝑧) ∈ ℕ0)
1110ad2antlr 724 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (♯‘𝑧) ∈ ℕ0)
12 simprl 768 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ≤ (♯‘𝑧))
13 elfz2nn0 13346 . . . . . . . . . . . . . . 15 ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ↔ ((𝑘 + 𝑚) ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ (𝑘 + 𝑚) ≤ (♯‘𝑧)))
149, 11, 12, 13syl3anbrc 1342 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ∈ (0...(♯‘𝑧)))
1514adantr 481 . . . . . . . . . . . . 13 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 + 𝑚) ∈ (0...(♯‘𝑧)))
16 cshwcsh2id.1 . . . . . . . . . . . . . . . . . 18 (𝜑𝑧 ∈ Word 𝑉)
1716adantl 482 . . . . . . . . . . . . . . . . 17 (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → 𝑧 ∈ Word 𝑉)
1817adantl 482 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑧 ∈ Word 𝑉)
19 elfzelz 13255 . . . . . . . . . . . . . . . . 17 (𝑘 ∈ (0...(♯‘𝑧)) → 𝑘 ∈ ℤ)
2019ad2antlr 724 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑘 ∈ ℤ)
21 elfzelz 13255 . . . . . . . . . . . . . . . . . 18 (𝑚 ∈ (0...(♯‘𝑦)) → 𝑚 ∈ ℤ)
2221adantr 481 . . . . . . . . . . . . . . . . 17 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 𝑚 ∈ ℤ)
2322adantr 481 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑚 ∈ ℤ)
24 2cshw 14524 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ Word 𝑉𝑘 ∈ ℤ ∧ 𝑚 ∈ ℤ) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
2518, 20, 23, 24syl3anc 1370 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
2625eqeq2d 2751 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) ↔ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))
2726biimpa 477 . . . . . . . . . . . . 13 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))
2815, 27jca 512 . . . . . . . . . . . 12 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))
2928exp41 435 . . . . . . . . . . 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 407 . . . . . . . 8 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (𝑘 ∈ (0...(♯‘𝑧)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3332com12 32 . . . . . . 7 (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3433adantl 482 . . . . . 6 ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
354, 34sylbid 239 . . . . 5 ((𝑦 = (𝑧 cyclShift 𝑘) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3635ancoms 459 . . . 4 ((𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))))))
3736impcom 408 . . 3 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚)))))
38 oveq2 7279 . . . 4 (𝑛 = (𝑘 + 𝑚) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift (𝑘 + 𝑚)))
3938rspceeqv 3576 . . 3 (((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))
4037, 39syl6com 37 . 2 (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
41 elfz2 13245 . . . . . . . . . . . . . . . . . . 19 (𝑘 ∈ (0...(♯‘𝑧)) ↔ ((0 ∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) ∧ (0 ≤ 𝑘𝑘 ≤ (♯‘𝑧))))
42 nn0z 12343 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑚 ∈ ℕ0𝑚 ∈ ℤ)
43 zaddcl 12360 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑘 ∈ ℤ ∧ 𝑚 ∈ ℤ) → (𝑘 + 𝑚) ∈ ℤ)
4443ex 413 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑘 ∈ ℤ → (𝑚 ∈ ℤ → (𝑘 + 𝑚) ∈ ℤ))
4544adantl 482 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑚 ∈ ℤ → (𝑘 + 𝑚) ∈ ℤ))
4645impcom 408 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑚 ∈ ℤ ∧ ((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ)) → (𝑘 + 𝑚) ∈ ℤ)
47 simprl 768 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑚 ∈ ℤ ∧ ((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ)) → (♯‘𝑧) ∈ ℤ)
4846, 47zsubcld 12430 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑚 ∈ ℤ ∧ ((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)
4948ex 413 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑚 ∈ ℤ → (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5042, 49syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (𝑚 ∈ ℕ0 → (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5150com12 32 . . . . . . . . . . . . . . . . . . . . 21 (((♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
52513adant1 1129 . . . . . . . . . . . . . . . . . . . 20 ((0 ∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5352adantr 481 . . . . . . . . . . . . . . . . . . 19 (((0 ∈ ℤ ∧ (♯‘𝑧) ∈ ℤ ∧ 𝑘 ∈ ℤ) ∧ (0 ≤ 𝑘𝑘 ≤ (♯‘𝑧))) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
5441, 53sylbi 216 . . . . . . . . . . . . . . . . . 18 (𝑘 ∈ (0...(♯‘𝑧)) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ))
556, 54mpan9 507 . . . . . . . . . . . . . . . . 17 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)
5655adantr 481 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ)
57 elfz2nn0 13346 . . . . . . . . . . . . . . . . . . . . 21 (𝑘 ∈ (0...(♯‘𝑧)) ↔ (𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)))
58 nn0re 12242 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑘 ∈ ℕ0𝑘 ∈ ℝ)
59 nn0re 12242 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((♯‘𝑧) ∈ ℕ0 → (♯‘𝑧) ∈ ℝ)
6058, 59anim12i 613 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ))
61 nn0re 12242 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑚 ∈ ℕ0𝑚 ∈ ℝ)
6260, 61anim12i 613 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ))
63 simplr 766 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → (♯‘𝑧) ∈ ℝ)
64 readdcl 10955 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ) → (𝑘 + 𝑚) ∈ ℝ)
6564adantlr 712 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → (𝑘 + 𝑚) ∈ ℝ)
6663, 65ltnled 11122 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) ↔ ¬ (𝑘 + 𝑚) ≤ (♯‘𝑧)))
6763, 65posdifd 11562 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) ↔ 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
6867biimpd 228 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → ((♯‘𝑧) < (𝑘 + 𝑚) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
6966, 68sylbird 259 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑘 ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ) ∧ 𝑚 ∈ ℝ) → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7062, 69syl 17 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7170ex 413 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑚 ∈ ℕ0 → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))))
72713adant3 1131 . . . . . . . . . . . . . . . . . . . . 21 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → (𝑚 ∈ ℕ0 → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))))
7357, 72sylbi 216 . . . . . . . . . . . . . . . . . . . 20 (𝑘 ∈ (0...(♯‘𝑧)) → (𝑚 ∈ ℕ0 → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))))
746, 73mpan9 507 . . . . . . . . . . . . . . . . . . 19 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7574com12 32 . . . . . . . . . . . . . . . . . 18 (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7675adantr 481 . . . . . . . . . . . . . . . . 17 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7776impcom 408 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 0 < ((𝑘 + 𝑚) − (♯‘𝑧)))
78 elnnz 12329 . . . . . . . . . . . . . . . 16 (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ ↔ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℤ ∧ 0 < ((𝑘 + 𝑚) − (♯‘𝑧))))
7956, 77, 78sylanbrc 583 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ)
8079nnnn0d 12293 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ0)
8110ad2antlr 724 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (♯‘𝑧) ∈ ℕ0)
82 cshwcsh2id.2 . . . . . . . . . . . . . . . . 17 (𝜑 → ((♯‘𝑦) = (♯‘𝑧) ∧ (♯‘𝑥) = (♯‘𝑦)))
83 oveq2 7279 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑦) = (♯‘𝑧) → (0...(♯‘𝑦)) = (0...(♯‘𝑧)))
8483eleq2d 2826 . . . . . . . . . . . . . . . . . . . 20 ((♯‘𝑦) = (♯‘𝑧) → (𝑚 ∈ (0...(♯‘𝑦)) ↔ 𝑚 ∈ (0...(♯‘𝑧))))
8584anbi1d 630 . . . . . . . . . . . . . . . . . . 19 ((♯‘𝑦) = (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ↔ (𝑚 ∈ (0...(♯‘𝑧)) ∧ 𝑘 ∈ (0...(♯‘𝑧)))))
86 elfz2nn0 13346 . . . . . . . . . . . . . . . . . . . . 21 (𝑚 ∈ (0...(♯‘𝑧)) ↔ (𝑚 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑚 ≤ (♯‘𝑧)))
8758adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → 𝑘 ∈ ℝ)
8887, 61anim12i 613 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ))
8959, 59jca 512 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((♯‘𝑧) ∈ ℕ0 → ((♯‘𝑧) ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ))
9089ad2antlr 724 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((♯‘𝑧) ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ))
91 le2add 11457 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℝ ∧ 𝑚 ∈ ℝ) ∧ ((♯‘𝑧) ∈ ℝ ∧ (♯‘𝑧) ∈ ℝ)) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧))))
9288, 90, 91syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧))))
93 nn0readdcl 12299 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑘 ∈ ℕ0𝑚 ∈ ℕ0) → (𝑘 + 𝑚) ∈ ℝ)
9493adantlr 712 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑘 + 𝑚) ∈ ℝ)
9559ad2antlr 724 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (♯‘𝑧) ∈ ℝ)
9694, 95, 95lesubadd2d 11574 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧) ↔ (𝑘 + 𝑚) ≤ ((♯‘𝑧) + (♯‘𝑧))))
9792, 96sylibrd 258 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → ((𝑘 ≤ (♯‘𝑧) ∧ 𝑚 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
9897expcomd 417 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) ∧ 𝑚 ∈ ℕ0) → (𝑚 ≤ (♯‘𝑧) → (𝑘 ≤ (♯‘𝑧) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))
9998ex 413 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑚 ∈ ℕ0 → (𝑚 ≤ (♯‘𝑧) → (𝑘 ≤ (♯‘𝑧) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))))
10099com24 95 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0) → (𝑘 ≤ (♯‘𝑧) → (𝑚 ≤ (♯‘𝑧) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))))
1011003impia 1116 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → (𝑚 ≤ (♯‘𝑧) → (𝑚 ∈ ℕ0 → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))
102101com13 88 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑚 ∈ ℕ0 → (𝑚 ≤ (♯‘𝑧) → ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))))
103102imp 407 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑚 ∈ ℕ0𝑚 ≤ (♯‘𝑧)) → ((𝑘 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑘 ≤ (♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
10457, 103syl5bi 241 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑚 ∈ ℕ0𝑚 ≤ (♯‘𝑧)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
1051043adant2 1130 . . . . . . . . . . . . . . . . . . . . 21 ((𝑚 ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0𝑚 ≤ (♯‘𝑧)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
10686, 105sylbi 216 . . . . . . . . . . . . . . . . . . . 20 (𝑚 ∈ (0...(♯‘𝑧)) → (𝑘 ∈ (0...(♯‘𝑧)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
107106imp 407 . . . . . . . . . . . . . . . . . . 19 ((𝑚 ∈ (0...(♯‘𝑧)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))
10885, 107syl6bi 252 . . . . . . . . . . . . . . . . . 18 ((♯‘𝑦) = (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
109108adantr 481 . . . . . . . . . . . . . . . . 17 (((♯‘𝑦) = (♯‘𝑧) ∧ (♯‘𝑥) = (♯‘𝑦)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
11082, 109syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
111110adantl 482 . . . . . . . . . . . . . . 15 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
112111impcom 408 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧))
113 elfz2nn0 13346 . . . . . . . . . . . . . 14 (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ↔ (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ ℕ0 ∧ (♯‘𝑧) ∈ ℕ0 ∧ ((𝑘 + 𝑚) − (♯‘𝑧)) ≤ (♯‘𝑧)))
11480, 81, 112, 113syl3anbrc 1342 . . . . . . . . . . . . 13 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)))
115114adantr 481 . . . . . . . . . . . 12 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → ((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)))
11616adantl 482 . . . . . . . . . . . . . . . . 17 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → 𝑧 ∈ Word 𝑉)
117116adantl 482 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑧 ∈ Word 𝑉)
11819ad2antlr 724 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑘 ∈ ℤ)
11922adantr 481 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑚 ∈ ℤ)
120117, 118, 119, 24syl3anc 1370 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
12119, 21, 43syl2anr 597 . . . . . . . . . . . . . . . 16 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → (𝑘 + 𝑚) ∈ ℤ)
122 cshwsublen 14507 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ Word 𝑉 ∧ (𝑘 + 𝑚) ∈ ℤ) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
123116, 121, 122syl2anr 597 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
124120, 123eqtrd 2780 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
125124eqeq2d 2751 . . . . . . . . . . . . 13 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚) ↔ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))
126125biimpa 477 . . . . . . . . . . . 12 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
127115, 126jca 512 . . . . . . . . . . 11 ((((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) ∧ 𝑥 = ((𝑧 cyclShift 𝑘) cyclShift 𝑚)) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))
128127exp41 435 . . . . . . . . . 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 407 . . . . . . 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 408 . . . 4 ((𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘)) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))))))
135134impcom 408 . . 3 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))))
136 oveq2 7279 . . . 4 (𝑛 = ((𝑘 + 𝑚) − (♯‘𝑧)) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
137136rspceeqv 3576 . . 3 ((((𝑘 + 𝑚) − (♯‘𝑧)) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧)))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))
138135, 137syl6com 37 . 2 ((¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
13940, 138pm2.61ian 809 1 (𝜑 → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1086   = wceq 1542  wcel 2110  wrex 3067   class class class wbr 5079  cfv 6432  (class class class)co 7271  cr 10871  0cc0 10872   + caddc 10875   < clt 11010  cle 11011  cmin 11205  cn 11973  0cn0 12233  cz 12319  ...cfz 13238  chash 14042  Word cword 14215   cyclShift ccsh 14499
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-rep 5214  ax-sep 5227  ax-nul 5234  ax-pow 5292  ax-pr 5356  ax-un 7582  ax-cnex 10928  ax-resscn 10929  ax-1cn 10930  ax-icn 10931  ax-addcl 10932  ax-addrcl 10933  ax-mulcl 10934  ax-mulrcl 10935  ax-mulcom 10936  ax-addass 10937  ax-mulass 10938  ax-distr 10939  ax-i2m1 10940  ax-1ne0 10941  ax-1rid 10942  ax-rnegex 10943  ax-rrecex 10944  ax-cnre 10945  ax-pre-lttri 10946  ax-pre-lttrn 10947  ax-pre-ltadd 10948  ax-pre-mulgt0 10949  ax-pre-sup 10950
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ne 2946  df-nel 3052  df-ral 3071  df-rex 3072  df-reu 3073  df-rmo 3074  df-rab 3075  df-v 3433  df-sbc 3721  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-pss 3911  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4846  df-int 4886  df-iun 4932  df-br 5080  df-opab 5142  df-mpt 5163  df-tr 5197  df-id 5490  df-eprel 5496  df-po 5504  df-so 5505  df-fr 5545  df-we 5547  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-pred 6201  df-ord 6268  df-on 6269  df-lim 6270  df-suc 6271  df-iota 6390  df-fun 6434  df-fn 6435  df-f 6436  df-f1 6437  df-fo 6438  df-f1o 6439  df-fv 6440  df-riota 7228  df-ov 7274  df-oprab 7275  df-mpo 7276  df-om 7707  df-1st 7824  df-2nd 7825  df-frecs 8088  df-wrecs 8119  df-recs 8193  df-rdg 8232  df-1o 8288  df-er 8481  df-en 8717  df-dom 8718  df-sdom 8719  df-fin 8720  df-sup 9179  df-inf 9180  df-card 9698  df-pnf 11012  df-mnf 11013  df-xr 11014  df-ltxr 11015  df-le 11016  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-n0 12234  df-z 12320  df-uz 12582  df-rp 12730  df-fz 13239  df-fzo 13382  df-fl 13510  df-mod 13588  df-hash 14043  df-word 14216  df-concat 14272  df-substr 14352  df-pfx 14382  df-csh 14500
This theorem is referenced by:  erclwwlktr  28382  erclwwlkntr  28431
  Copyright terms: Public domain W3C validator