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

Theorem erclwwlkeq 27803
Description: Two classes are equivalent regarding if both are words and one is the other cyclically shifted. (Contributed by Alexander van der Vekens, 25-Mar-2018.) (Revised by AV, 29-Apr-2021.)
Hypothesis
Ref Expression
erclwwlk.r = {⟨𝑢, 𝑤⟩ ∣ (𝑢 ∈ (ClWWalks‘𝐺) ∧ 𝑤 ∈ (ClWWalks‘𝐺) ∧ ∃𝑛 ∈ (0...(♯‘𝑤))𝑢 = (𝑤 cyclShift 𝑛))}
Assertion
Ref Expression
erclwwlkeq ((𝑈𝑋𝑊𝑌) → (𝑈 𝑊 ↔ (𝑈 ∈ (ClWWalks‘𝐺) ∧ 𝑊 ∈ (ClWWalks‘𝐺) ∧ ∃𝑛 ∈ (0...(♯‘𝑊))𝑈 = (𝑊 cyclShift 𝑛))))
Distinct variable groups:   𝑛,𝐺,𝑢,𝑤   𝑈,𝑛,𝑢,𝑤   𝑛,𝑊,𝑢,𝑤
Allowed substitution hints:   (𝑤,𝑢,𝑛)   𝑋(𝑤,𝑢,𝑛)   𝑌(𝑤,𝑢,𝑛)

Proof of Theorem erclwwlkeq
StepHypRef Expression
1 eleq1 2877 . . . 4 (𝑢 = 𝑈 → (𝑢 ∈ (ClWWalks‘𝐺) ↔ 𝑈 ∈ (ClWWalks‘𝐺)))
21adantr 484 . . 3 ((𝑢 = 𝑈𝑤 = 𝑊) → (𝑢 ∈ (ClWWalks‘𝐺) ↔ 𝑈 ∈ (ClWWalks‘𝐺)))
3 eleq1 2877 . . . 4 (𝑤 = 𝑊 → (𝑤 ∈ (ClWWalks‘𝐺) ↔ 𝑊 ∈ (ClWWalks‘𝐺)))
43adantl 485 . . 3 ((𝑢 = 𝑈𝑤 = 𝑊) → (𝑤 ∈ (ClWWalks‘𝐺) ↔ 𝑊 ∈ (ClWWalks‘𝐺)))
5 fveq2 6645 . . . . . 6 (𝑤 = 𝑊 → (♯‘𝑤) = (♯‘𝑊))
65oveq2d 7151 . . . . 5 (𝑤 = 𝑊 → (0...(♯‘𝑤)) = (0...(♯‘𝑊)))
76adantl 485 . . . 4 ((𝑢 = 𝑈𝑤 = 𝑊) → (0...(♯‘𝑤)) = (0...(♯‘𝑊)))
8 simpl 486 . . . . 5 ((𝑢 = 𝑈𝑤 = 𝑊) → 𝑢 = 𝑈)
9 oveq1 7142 . . . . . 6 (𝑤 = 𝑊 → (𝑤 cyclShift 𝑛) = (𝑊 cyclShift 𝑛))
109adantl 485 . . . . 5 ((𝑢 = 𝑈𝑤 = 𝑊) → (𝑤 cyclShift 𝑛) = (𝑊 cyclShift 𝑛))
118, 10eqeq12d 2814 . . . 4 ((𝑢 = 𝑈𝑤 = 𝑊) → (𝑢 = (𝑤 cyclShift 𝑛) ↔ 𝑈 = (𝑊 cyclShift 𝑛)))
127, 11rexeqbidv 3355 . . 3 ((𝑢 = 𝑈𝑤 = 𝑊) → (∃𝑛 ∈ (0...(♯‘𝑤))𝑢 = (𝑤 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...(♯‘𝑊))𝑈 = (𝑊 cyclShift 𝑛)))
132, 4, 123anbi123d 1433 . 2 ((𝑢 = 𝑈𝑤 = 𝑊) → ((𝑢 ∈ (ClWWalks‘𝐺) ∧ 𝑤 ∈ (ClWWalks‘𝐺) ∧ ∃𝑛 ∈ (0...(♯‘𝑤))𝑢 = (𝑤 cyclShift 𝑛)) ↔ (𝑈 ∈ (ClWWalks‘𝐺) ∧ 𝑊 ∈ (ClWWalks‘𝐺) ∧ ∃𝑛 ∈ (0...(♯‘𝑊))𝑈 = (𝑊 cyclShift 𝑛))))
14 erclwwlk.r . 2 = {⟨𝑢, 𝑤⟩ ∣ (𝑢 ∈ (ClWWalks‘𝐺) ∧ 𝑤 ∈ (ClWWalks‘𝐺) ∧ ∃𝑛 ∈ (0...(♯‘𝑤))𝑢 = (𝑤 cyclShift 𝑛))}
1513, 14brabga 5386 1 ((𝑈𝑋𝑊𝑌) → (𝑈 𝑊 ↔ (𝑈 ∈ (ClWWalks‘𝐺) ∧ 𝑊 ∈ (ClWWalks‘𝐺) ∧ ∃𝑛 ∈ (0...(♯‘𝑊))𝑈 = (𝑊 cyclShift 𝑛))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1084   = wceq 1538  wcel 2111  wrex 3107   class class class wbr 5030  {copab 5092  cfv 6324  (class class class)co 7135  0cc0 10526  ...cfz 12885  chash 13686   cyclShift ccsh 14141  ClWWalkscclwwlk 27766
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 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-rex 3112  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-iota 6283  df-fv 6332  df-ov 7138
This theorem is referenced by:  erclwwlkeqlen  27804  erclwwlkref  27805  erclwwlksym  27806  erclwwlktr  27807
  Copyright terms: Public domain W3C validator