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

Theorem erclwwlknsym 27858
 Description: ∼ is a symmetric relation over the set of closed walks (defined as words). (Contributed by Alexander van der Vekens, 10-Apr-2018.) (Revised by AV, 30-Apr-2021.)
Hypotheses
Ref Expression
erclwwlkn.w 𝑊 = (𝑁 ClWWalksN 𝐺)
erclwwlkn.r = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
Assertion
Ref Expression
erclwwlknsym (𝑥 𝑦𝑦 𝑥)
Distinct variable groups:   𝑡,𝑊,𝑢   𝑛,𝑁,𝑢,𝑡,𝑥   𝑦,𝑛,𝑡,𝑢,𝑥   𝑛,𝑊
Allowed substitution hints:   (𝑥,𝑦,𝑢,𝑡,𝑛)   𝐺(𝑥,𝑦,𝑢,𝑡,𝑛)   𝑁(𝑦)   𝑊(𝑥,𝑦)

Proof of Theorem erclwwlknsym
Dummy variable 𝑚 is distinct from all other variables.
StepHypRef Expression
1 erclwwlkn.w . . . 4 𝑊 = (𝑁 ClWWalksN 𝐺)
2 erclwwlkn.r . . . 4 = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
31, 2erclwwlkneqlen 27856 . . 3 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥 𝑦 → (♯‘𝑥) = (♯‘𝑦)))
41, 2erclwwlkneq 27855 . . . 4 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥 𝑦 ↔ (𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛))))
5 simpl2 1189 . . . . . . 7 (((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) ∧ (♯‘𝑥) = (♯‘𝑦)) → 𝑦𝑊)
6 simpl1 1188 . . . . . . 7 (((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) ∧ (♯‘𝑥) = (♯‘𝑦)) → 𝑥𝑊)
7 eqid 2801 . . . . . . . . . . . . . . . . . . . 20 (Vtx‘𝐺) = (Vtx‘𝐺)
87clwwlknbp 27823 . . . . . . . . . . . . . . . . . . 19 (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁))
9 eqcom 2808 . . . . . . . . . . . . . . . . . . . 20 ((♯‘𝑥) = 𝑁𝑁 = (♯‘𝑥))
109biimpi 219 . . . . . . . . . . . . . . . . . . 19 ((♯‘𝑥) = 𝑁𝑁 = (♯‘𝑥))
118, 10simpl2im 507 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → 𝑁 = (♯‘𝑥))
1211, 1eleq2s 2911 . . . . . . . . . . . . . . . . 17 (𝑥𝑊𝑁 = (♯‘𝑥))
1312adantr 484 . . . . . . . . . . . . . . . 16 ((𝑥𝑊𝑦𝑊) → 𝑁 = (♯‘𝑥))
1413adantr 484 . . . . . . . . . . . . . . 15 (((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦)) → 𝑁 = (♯‘𝑥))
157clwwlknwrd 27822 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ (𝑁 ClWWalksN 𝐺) → 𝑦 ∈ Word (Vtx‘𝐺))
1615, 1eleq2s 2911 . . . . . . . . . . . . . . . . . . . 20 (𝑦𝑊𝑦 ∈ Word (Vtx‘𝐺))
1716adantl 485 . . . . . . . . . . . . . . . . . . 19 ((𝑥𝑊𝑦𝑊) → 𝑦 ∈ Word (Vtx‘𝐺))
1817adantr 484 . . . . . . . . . . . . . . . . . 18 (((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦)) → 𝑦 ∈ Word (Vtx‘𝐺))
1918adantl 485 . . . . . . . . . . . . . . . . 17 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → 𝑦 ∈ Word (Vtx‘𝐺))
20 simprr 772 . . . . . . . . . . . . . . . . 17 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → (♯‘𝑥) = (♯‘𝑦))
2119, 20cshwcshid 14184 . . . . . . . . . . . . . . . 16 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → ((𝑛 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑛)) → ∃𝑚 ∈ (0...(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑚)))
22 oveq2 7147 . . . . . . . . . . . . . . . . . . 19 (𝑁 = (♯‘𝑥) → (0...𝑁) = (0...(♯‘𝑥)))
23 oveq2 7147 . . . . . . . . . . . . . . . . . . . 20 ((♯‘𝑥) = (♯‘𝑦) → (0...(♯‘𝑥)) = (0...(♯‘𝑦)))
2423adantl 485 . . . . . . . . . . . . . . . . . . 19 (((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦)) → (0...(♯‘𝑥)) = (0...(♯‘𝑦)))
2522, 24sylan9eq 2856 . . . . . . . . . . . . . . . . . 18 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → (0...𝑁) = (0...(♯‘𝑦)))
2625eleq2d 2878 . . . . . . . . . . . . . . . . 17 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → (𝑛 ∈ (0...𝑁) ↔ 𝑛 ∈ (0...(♯‘𝑦))))
2726anbi1d 632 . . . . . . . . . . . . . . . 16 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → ((𝑛 ∈ (0...𝑁) ∧ 𝑥 = (𝑦 cyclShift 𝑛)) ↔ (𝑛 ∈ (0...(♯‘𝑦)) ∧ 𝑥 = (𝑦 cyclShift 𝑛))))
2822adantr 484 . . . . . . . . . . . . . . . . 17 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → (0...𝑁) = (0...(♯‘𝑥)))
2928rexeqdv 3368 . . . . . . . . . . . . . . . 16 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → (∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚) ↔ ∃𝑚 ∈ (0...(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑚)))
3021, 27, 293imtr4d 297 . . . . . . . . . . . . . . 15 ((𝑁 = (♯‘𝑥) ∧ ((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦))) → ((𝑛 ∈ (0...𝑁) ∧ 𝑥 = (𝑦 cyclShift 𝑛)) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚)))
3114, 30mpancom 687 . . . . . . . . . . . . . 14 (((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦)) → ((𝑛 ∈ (0...𝑁) ∧ 𝑥 = (𝑦 cyclShift 𝑛)) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚)))
3231expd 419 . . . . . . . . . . . . 13 (((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦)) → (𝑛 ∈ (0...𝑁) → (𝑥 = (𝑦 cyclShift 𝑛) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚))))
3332rexlimdv 3245 . . . . . . . . . . . 12 (((𝑥𝑊𝑦𝑊) ∧ (♯‘𝑥) = (♯‘𝑦)) → (∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚)))
3433ex 416 . . . . . . . . . . 11 ((𝑥𝑊𝑦𝑊) → ((♯‘𝑥) = (♯‘𝑦) → (∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚))))
3534com23 86 . . . . . . . . . 10 ((𝑥𝑊𝑦𝑊) → (∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛) → ((♯‘𝑥) = (♯‘𝑦) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚))))
36353impia 1114 . . . . . . . . 9 ((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) → ((♯‘𝑥) = (♯‘𝑦) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚)))
3736imp 410 . . . . . . . 8 (((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) ∧ (♯‘𝑥) = (♯‘𝑦)) → ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚))
38 oveq2 7147 . . . . . . . . . 10 (𝑛 = 𝑚 → (𝑥 cyclShift 𝑛) = (𝑥 cyclShift 𝑚))
3938eqeq2d 2812 . . . . . . . . 9 (𝑛 = 𝑚 → (𝑦 = (𝑥 cyclShift 𝑛) ↔ 𝑦 = (𝑥 cyclShift 𝑚)))
4039cbvrexvw 3400 . . . . . . . 8 (∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑚))
4137, 40sylibr 237 . . . . . . 7 (((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) ∧ (♯‘𝑥) = (♯‘𝑦)) → ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛))
425, 6, 413jca 1125 . . . . . 6 (((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) ∧ (♯‘𝑥) = (♯‘𝑦)) → (𝑦𝑊𝑥𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)))
431, 2erclwwlkneq 27855 . . . . . . 7 ((𝑦 ∈ V ∧ 𝑥 ∈ V) → (𝑦 𝑥 ↔ (𝑦𝑊𝑥𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛))))
4443ancoms 462 . . . . . 6 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑦 𝑥 ↔ (𝑦𝑊𝑥𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛))))
4542, 44syl5ibr 249 . . . . 5 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → (((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) ∧ (♯‘𝑥) = (♯‘𝑦)) → 𝑦 𝑥))
4645expd 419 . . . 4 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → ((𝑥𝑊𝑦𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑥 = (𝑦 cyclShift 𝑛)) → ((♯‘𝑥) = (♯‘𝑦) → 𝑦 𝑥)))
474, 46sylbid 243 . . 3 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥 𝑦 → ((♯‘𝑥) = (♯‘𝑦) → 𝑦 𝑥)))
483, 47mpdd 43 . 2 ((𝑥 ∈ V ∧ 𝑦 ∈ V) → (𝑥 𝑦𝑦 𝑥))
4948el2v 3451 1 (𝑥 𝑦𝑦 𝑥)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 209   ∧ wa 399   ∧ w3a 1084   = wceq 1538   ∈ wcel 2112  ∃wrex 3110  Vcvv 3444   class class class wbr 5033  {copab 5095  ‘cfv 6328  (class class class)co 7139  0cc0 10530  ...cfz 12889  ♯chash 13690  Word cword 13861   cyclShift ccsh 14145  Vtxcvtx 26792   ClWWalksN cclwwlkn 27812 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-rep 5157  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445  ax-cnex 10586  ax-resscn 10587  ax-1cn 10588  ax-icn 10589  ax-addcl 10590  ax-addrcl 10591  ax-mulcl 10592  ax-mulrcl 10593  ax-mulcom 10594  ax-addass 10595  ax-mulass 10596  ax-distr 10597  ax-i2m1 10598  ax-1ne0 10599  ax-1rid 10600  ax-rnegex 10601  ax-rrecex 10602  ax-cnre 10603  ax-pre-lttri 10604  ax-pre-lttrn 10605  ax-pre-ltadd 10606  ax-pre-mulgt0 10607  ax-pre-sup 10608 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-nel 3095  df-ral 3114  df-rex 3115  df-reu 3116  df-rmo 3117  df-rab 3118  df-v 3446  df-sbc 3724  df-csb 3832  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-pss 3903  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-tp 4533  df-op 4535  df-uni 4804  df-int 4842  df-iun 4886  df-br 5034  df-opab 5096  df-mpt 5114  df-tr 5140  df-id 5428  df-eprel 5433  df-po 5442  df-so 5443  df-fr 5482  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-pred 6120  df-ord 6166  df-on 6167  df-lim 6168  df-suc 6169  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-riota 7097  df-ov 7142  df-oprab 7143  df-mpo 7144  df-om 7565  df-1st 7675  df-2nd 7676  df-wrecs 7934  df-recs 7995  df-rdg 8033  df-1o 8089  df-oadd 8093  df-er 8276  df-map 8395  df-en 8497  df-dom 8498  df-sdom 8499  df-fin 8500  df-sup 8894  df-inf 8895  df-card 9356  df-pnf 10670  df-mnf 10671  df-xr 10672  df-ltxr 10673  df-le 10674  df-sub 10865  df-neg 10866  df-div 11291  df-nn 11630  df-2 11692  df-n0 11890  df-z 11974  df-uz 12236  df-rp 12382  df-fz 12890  df-fzo 13033  df-fl 13161  df-mod 13237  df-hash 13691  df-word 13862  df-concat 13918  df-substr 13998  df-pfx 14028  df-csh 14146  df-clwwlk 27770  df-clwwlkn 27813 This theorem is referenced by:  erclwwlkn  27860  eclclwwlkn1  27863
 Copyright terms: Public domain W3C validator