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

Theorem erclwwlkneq 27852
Description: Two classes are equivalent regarding if both are words of the same fixed length and one is the other cyclically shifted. (Contributed by Alexander van der Vekens, 25-Mar-2018.) (Revised by AV, 30-Apr-2021.)
Hypotheses
Ref Expression
erclwwlkn.w 𝑊 = (𝑁 ClWWalksN 𝐺)
erclwwlkn.r = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
Assertion
Ref Expression
erclwwlkneq ((𝑇𝑋𝑈𝑌) → (𝑇 𝑈 ↔ (𝑇𝑊𝑈𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑇 = (𝑈 cyclShift 𝑛))))
Distinct variable groups:   𝑡,𝑊,𝑢   𝑡,𝑁,𝑢   𝑇,𝑛,𝑡,𝑢   𝑈,𝑛,𝑡,𝑢
Allowed substitution hints:   (𝑢,𝑡,𝑛)   𝐺(𝑢,𝑡,𝑛)   𝑁(𝑛)   𝑊(𝑛)   𝑋(𝑢,𝑡,𝑛)   𝑌(𝑢,𝑡,𝑛)

Proof of Theorem erclwwlkneq
StepHypRef Expression
1 eleq1 2877 . . . 4 (𝑡 = 𝑇 → (𝑡𝑊𝑇𝑊))
21adantr 484 . . 3 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑡𝑊𝑇𝑊))
3 eleq1 2877 . . . 4 (𝑢 = 𝑈 → (𝑢𝑊𝑈𝑊))
43adantl 485 . . 3 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑢𝑊𝑈𝑊))
5 simpl 486 . . . . 5 ((𝑡 = 𝑇𝑢 = 𝑈) → 𝑡 = 𝑇)
6 oveq1 7142 . . . . . 6 (𝑢 = 𝑈 → (𝑢 cyclShift 𝑛) = (𝑈 cyclShift 𝑛))
76adantl 485 . . . . 5 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑢 cyclShift 𝑛) = (𝑈 cyclShift 𝑛))
85, 7eqeq12d 2814 . . . 4 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑡 = (𝑢 cyclShift 𝑛) ↔ 𝑇 = (𝑈 cyclShift 𝑛)))
98rexbidv 3256 . . 3 ((𝑡 = 𝑇𝑢 = 𝑈) → (∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...𝑁)𝑇 = (𝑈 cyclShift 𝑛)))
102, 4, 93anbi123d 1433 . 2 ((𝑡 = 𝑇𝑢 = 𝑈) → ((𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛)) ↔ (𝑇𝑊𝑈𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑇 = (𝑈 cyclShift 𝑛))))
11 erclwwlkn.r . 2 = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
1210, 11brabga 5386 1 ((𝑇𝑋𝑈𝑌) → (𝑇 𝑈 ↔ (𝑇𝑊𝑈𝑊 ∧ ∃𝑛 ∈ (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  (class class class)co 7135  0cc0 10526  ...cfz 12885   cyclShift ccsh 14141   ClWWalksN cclwwlkn 27809
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:  erclwwlkneqlen  27853  erclwwlknref  27854  erclwwlknsym  27855  erclwwlkntr  27856  eclclwwlkn1  27860
  Copyright terms: Public domain W3C validator