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

Theorem cshwcsh2id 14541
Description: A cyclically shifted word can be reconstructed by cyclically shifting it again twice. Lemma for erclwwlktr 28386 and erclwwlkntr 28435. (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 7282 . . . . . . . . 9 (𝑦 = (𝑧 cyclShift 𝑘) → (𝑦 cyclShift 𝑚) = ((𝑧 cyclShift 𝑘) cyclShift 𝑚))
21eqeq2d 2749 . . . . . . . 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 13349 . . . . . . . . . . . . . . . . 17 (𝑘 ∈ (0...(♯‘𝑧)) → 𝑘 ∈ ℕ0)
6 elfznn0 13349 . . . . . . . . . . . . . . . . 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 13350 . . . . . . . . . . . . . . . 16 (𝑘 ∈ (0...(♯‘𝑧)) → (♯‘𝑧) ∈ ℕ0)
1110ad2antlr 724 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (♯‘𝑧) ∈ ℕ0)
12 simprl 768 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑘 + 𝑚) ≤ (♯‘𝑧))
13 elfz2nn0 13347 . . . . . . . . . . . . . . 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 13256 . . . . . . . . . . . . . . . . 17 (𝑘 ∈ (0...(♯‘𝑧)) → 𝑘 ∈ ℤ)
2019ad2antlr 724 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑘 ∈ ℤ)
21 elfzelz 13256 . . . . . . . . . . . . . . . . . 18 (𝑚 ∈ (0...(♯‘𝑦)) → 𝑚 ∈ ℤ)
2221adantr 481 . . . . . . . . . . . . . . . . 17 ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) → 𝑚 ∈ ℤ)
2322adantr 481 . . . . . . . . . . . . . . . 16 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → 𝑚 ∈ ℤ)
24 2cshw 14526 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ Word 𝑉𝑘 ∈ ℤ ∧ 𝑚 ∈ ℤ) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
2518, 20, 23, 24syl3anc 1370 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ ((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift (𝑘 + 𝑚)))
2625eqeq2d 2749 . . . . . . . . . . . . . 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 7283 . . . 4 (𝑛 = (𝑘 + 𝑚) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift (𝑘 + 𝑚)))
3938rspceeqv 3575 . . 3 (((𝑘 + 𝑚) ∈ (0...(♯‘𝑧)) ∧ 𝑥 = (𝑧 cyclShift (𝑘 + 𝑚))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛))
4037, 39syl6com 37 . 2 (((𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑) → (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑚)) ∧ (𝑘 ∈ (0...(♯‘𝑧)) ∧ 𝑦 = (𝑧 cyclShift 𝑘))) → ∃𝑛 ∈ (0...(♯‘𝑧))𝑥 = (𝑧 cyclShift 𝑛)))
41 elfz2 13246 . . . . . . . . . . . . . . . . . . 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 12431 . . . . . . . . . . . . . . . . . . . . . . . 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 13347 . . . . . . . . . . . . . . . . . . . . 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 10954 . . . . . . . . . . . . . . . . . . . . . . . . . . 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 7283 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑦) = (♯‘𝑧) → (0...(♯‘𝑦)) = (0...(♯‘𝑧)))
8483eleq2d 2824 . . . . . . . . . . . . . . . . . . . 20 ((♯‘𝑦) = (♯‘𝑧) → (𝑚 ∈ (0...(♯‘𝑦)) ↔ 𝑚 ∈ (0...(♯‘𝑧))))
8584anbi1d 630 . . . . . . . . . . . . . . . . . . 19 ((♯‘𝑦) = (♯‘𝑧) → ((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ↔ (𝑚 ∈ (0...(♯‘𝑧)) ∧ 𝑘 ∈ (0...(♯‘𝑧)))))
86 elfz2nn0 13347 . . . . . . . . . . . . . . . . . . . . 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 13347 . . . . . . . . . . . . . 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 14509 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ Word 𝑉 ∧ (𝑘 + 𝑚) ∈ ℤ) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
123116, 121, 122syl2anr 597 . . . . . . . . . . . . . . 15 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → (𝑧 cyclShift (𝑘 + 𝑚)) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
124120, 123eqtrd 2778 . . . . . . . . . . . . . 14 (((𝑚 ∈ (0...(♯‘𝑦)) ∧ 𝑘 ∈ (0...(♯‘𝑧))) ∧ (¬ (𝑘 + 𝑚) ≤ (♯‘𝑧) ∧ 𝜑)) → ((𝑧 cyclShift 𝑘) cyclShift 𝑚) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
125124eqeq2d 2749 . . . . . . . . . . . . 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 7283 . . . 4 (𝑛 = ((𝑘 + 𝑚) − (♯‘𝑧)) → (𝑧 cyclShift 𝑛) = (𝑧 cyclShift ((𝑘 + 𝑚) − (♯‘𝑧))))
137136rspceeqv 3575 . . 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 1539  wcel 2106  wrex 3065   class class class wbr 5074  cfv 6433  (class class class)co 7275  cr 10870  0cc0 10871   + caddc 10874   < clt 11009  cle 11010  cmin 11205  cn 11973  0cn0 12233  cz 12319  ...cfz 13239  chash 14044  Word cword 14217   cyclShift ccsh 14501
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948  ax-pre-sup 10949
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-sup 9201  df-inf 9202  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-n0 12234  df-z 12320  df-uz 12583  df-rp 12731  df-fz 13240  df-fzo 13383  df-fl 13512  df-mod 13590  df-hash 14045  df-word 14218  df-concat 14274  df-substr 14354  df-pfx 14384  df-csh 14502
This theorem is referenced by:  erclwwlktr  28386  erclwwlkntr  28435
  Copyright terms: Public domain W3C validator