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

Theorem eleclclwwlkn 27234
 Description: A member of an equivalence class according to ∼. (Contributed by Alexander van der Vekens, 11-May-2018.) (Revised by AV, 1-May-2021.)
Hypotheses
Ref Expression
erclwwlkn.w 𝑊 = (𝑁 ClWWalksN 𝐺)
erclwwlkn.r = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
Assertion
Ref Expression
eleclclwwlkn ((𝐵 ∈ (𝑊 / ) ∧ 𝑋𝐵) → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
Distinct variable groups:   𝑡,𝑊,𝑢   𝑛,𝑁,𝑢,𝑡   𝑛,𝑊   𝑛,𝐺   𝑛,𝑋   𝑛,𝑌
Allowed substitution hints:   𝐵(𝑢,𝑡,𝑛)   (𝑢,𝑡,𝑛)   𝐺(𝑢,𝑡)   𝑋(𝑢,𝑡)   𝑌(𝑢,𝑡)

Proof of Theorem eleclclwwlkn
Dummy variables 𝑥 𝑦 𝑚 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 erclwwlkn.w . . . . 5 𝑊 = (𝑁 ClWWalksN 𝐺)
2 erclwwlkn.r . . . . 5 = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
31, 2eclclwwlkn1 27233 . . . 4 (𝐵 ∈ (𝑊 / ) → (𝐵 ∈ (𝑊 / ) ↔ ∃𝑥𝑊 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
4 eqeq1 2775 . . . . . . . . . . 11 (𝑦 = 𝑌 → (𝑦 = (𝑥 cyclShift 𝑛) ↔ 𝑌 = (𝑥 cyclShift 𝑛)))
54rexbidv 3200 . . . . . . . . . 10 (𝑦 = 𝑌 → (∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑛)))
65elrab 3515 . . . . . . . . 9 (𝑌 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑛)))
7 oveq2 6804 . . . . . . . . . . . . 13 (𝑛 = 𝑘 → (𝑥 cyclShift 𝑛) = (𝑥 cyclShift 𝑘))
87eqeq2d 2781 . . . . . . . . . . . 12 (𝑛 = 𝑘 → (𝑌 = (𝑥 cyclShift 𝑛) ↔ 𝑌 = (𝑥 cyclShift 𝑘)))
98cbvrexv 3321 . . . . . . . . . . 11 (∃𝑛 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑛) ↔ ∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘))
10 eqeq1 2775 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑋 → (𝑦 = (𝑥 cyclShift 𝑛) ↔ 𝑋 = (𝑥 cyclShift 𝑛)))
1110rexbidv 3200 . . . . . . . . . . . . . . . 16 (𝑦 = 𝑋 → (∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑛)))
1211elrab 3515 . . . . . . . . . . . . . . 15 (𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ (𝑋𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑛)))
13 oveq2 6804 . . . . . . . . . . . . . . . . . . . 20 (𝑛 = 𝑚 → (𝑥 cyclShift 𝑛) = (𝑥 cyclShift 𝑚))
1413eqeq2d 2781 . . . . . . . . . . . . . . . . . . 19 (𝑛 = 𝑚 → (𝑋 = (𝑥 cyclShift 𝑛) ↔ 𝑋 = (𝑥 cyclShift 𝑚)))
1514cbvrexv 3321 . . . . . . . . . . . . . . . . . 18 (∃𝑛 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑚))
161eleclclwwlknlem2 27219 . . . . . . . . . . . . . . . . . . . 20 (((𝑚 ∈ (0...𝑁) ∧ 𝑋 = (𝑥 cyclShift 𝑚)) ∧ (𝑋𝑊𝑥𝑊)) → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))
1716ex 397 . . . . . . . . . . . . . . . . . . 19 ((𝑚 ∈ (0...𝑁) ∧ 𝑋 = (𝑥 cyclShift 𝑚)) → ((𝑋𝑊𝑥𝑊) → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
1817rexlimiva 3176 . . . . . . . . . . . . . . . . . 18 (∃𝑚 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑚) → ((𝑋𝑊𝑥𝑊) → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
1915, 18sylbi 207 . . . . . . . . . . . . . . . . 17 (∃𝑛 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑛) → ((𝑋𝑊𝑥𝑊) → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
2019expd 400 . . . . . . . . . . . . . . . 16 (∃𝑛 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑛) → (𝑋𝑊 → (𝑥𝑊 → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))))
2120impcom 394 . . . . . . . . . . . . . . 15 ((𝑋𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑋 = (𝑥 cyclShift 𝑛)) → (𝑥𝑊 → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
2212, 21sylbi 207 . . . . . . . . . . . . . 14 (𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑥𝑊 → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
2322com12 32 . . . . . . . . . . . . 13 (𝑥𝑊 → (𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
2423ad2antlr 706 . . . . . . . . . . . 12 (((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → (𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
2524imp 393 . . . . . . . . . . 11 ((((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) ∧ 𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → (∃𝑘 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑘) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))
269, 25syl5bb 272 . . . . . . . . . 10 ((((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) ∧ 𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → (∃𝑛 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))
2726anbi2d 614 . . . . . . . . 9 ((((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) ∧ 𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → ((𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑥 cyclShift 𝑛)) ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
286, 27syl5bb 272 . . . . . . . 8 ((((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) ∧ 𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → (𝑌 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
2928ex 397 . . . . . . 7 (((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → (𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑌 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))))
30 eleq2 2839 . . . . . . . . 9 (𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑋𝐵𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
31 eleq2 2839 . . . . . . . . . 10 (𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑌𝐵𝑌 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
3231bibi1d 332 . . . . . . . . 9 (𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))) ↔ (𝑌 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))))
3330, 32imbi12d 333 . . . . . . . 8 (𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((𝑋𝐵 → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))) ↔ (𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑌 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))))
3433adantl 467 . . . . . . 7 (((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → ((𝑋𝐵 → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))) ↔ (𝑋 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑌 ∈ {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))))
3529, 34mpbird 247 . . . . . 6 (((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) ∧ 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}) → (𝑋𝐵 → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))))
3635ex 397 . . . . 5 ((𝐵 ∈ (𝑊 / ) ∧ 𝑥𝑊) → (𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑋𝐵 → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))))
3736rexlimdva 3179 . . . 4 (𝐵 ∈ (𝑊 / ) → (∃𝑥𝑊 𝐵 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑋𝐵 → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))))
383, 37sylbid 230 . . 3 (𝐵 ∈ (𝑊 / ) → (𝐵 ∈ (𝑊 / ) → (𝑋𝐵 → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))))
3938pm2.43i 52 . 2 (𝐵 ∈ (𝑊 / ) → (𝑋𝐵 → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛)))))
4039imp 393 1 ((𝐵 ∈ (𝑊 / ) ∧ 𝑋𝐵) → (𝑌𝐵 ↔ (𝑌𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑌 = (𝑋 cyclShift 𝑛))))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 196   ∧ wa 382   ∧ w3a 1071   = wceq 1631   ∈ wcel 2145  ∃wrex 3062  {crab 3065  {copab 4847  (class class class)co 6796   / cqs 7899  0cc0 10142  ...cfz 12533   cyclShift ccsh 13743   ClWWalksN cclwwlkn 27174 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-rep 4905  ax-sep 4916  ax-nul 4924  ax-pow 4975  ax-pr 5035  ax-un 7100  ax-cnex 10198  ax-resscn 10199  ax-1cn 10200  ax-icn 10201  ax-addcl 10202  ax-addrcl 10203  ax-mulcl 10204  ax-mulrcl 10205  ax-mulcom 10206  ax-addass 10207  ax-mulass 10208  ax-distr 10209  ax-i2m1 10210  ax-1ne0 10211  ax-1rid 10212  ax-rnegex 10213  ax-rrecex 10214  ax-cnre 10215  ax-pre-lttri 10216  ax-pre-lttrn 10217  ax-pre-ltadd 10218  ax-pre-mulgt0 10219  ax-pre-sup 10220 This theorem depends on definitions:  df-bi 197  df-an 383  df-or 837  df-3or 1072  df-3an 1073  df-tru 1634  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-nel 3047  df-ral 3066  df-rex 3067  df-reu 3068  df-rmo 3069  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-pss 3739  df-nul 4064  df-if 4227  df-pw 4300  df-sn 4318  df-pr 4320  df-tp 4322  df-op 4324  df-uni 4576  df-int 4613  df-iun 4657  df-br 4788  df-opab 4848  df-mpt 4865  df-tr 4888  df-id 5158  df-eprel 5163  df-po 5171  df-so 5172  df-fr 5209  df-we 5211  df-xp 5256  df-rel 5257  df-cnv 5258  df-co 5259  df-dm 5260  df-rn 5261  df-res 5262  df-ima 5263  df-pred 5822  df-ord 5868  df-on 5869  df-lim 5870  df-suc 5871  df-iota 5993  df-fun 6032  df-fn 6033  df-f 6034  df-f1 6035  df-fo 6036  df-f1o 6037  df-fv 6038  df-riota 6757  df-ov 6799  df-oprab 6800  df-mpt2 6801  df-om 7217  df-1st 7319  df-2nd 7320  df-wrecs 7563  df-recs 7625  df-rdg 7663  df-1o 7717  df-oadd 7721  df-er 7900  df-ec 7902  df-qs 7906  df-map 8015  df-pm 8016  df-en 8114  df-dom 8115  df-sdom 8116  df-fin 8117  df-sup 8508  df-inf 8509  df-card 8969  df-pnf 10282  df-mnf 10283  df-xr 10284  df-ltxr 10285  df-le 10286  df-sub 10474  df-neg 10475  df-div 10891  df-nn 11227  df-2 11285  df-n0 11500  df-z 11585  df-uz 11894  df-rp 12036  df-fz 12534  df-fzo 12674  df-fl 12801  df-mod 12877  df-hash 13322  df-word 13495  df-concat 13497  df-substr 13499  df-csh 13744  df-clwwlk 27132  df-clwwlkn 27176 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator