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

Theorem erclwwlkneq 27840
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 2900 . . . 4 (𝑡 = 𝑇 → (𝑡𝑊𝑇𝑊))
21adantr 483 . . 3 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑡𝑊𝑇𝑊))
3 eleq1 2900 . . . 4 (𝑢 = 𝑈 → (𝑢𝑊𝑈𝑊))
43adantl 484 . . 3 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑢𝑊𝑈𝑊))
5 simpl 485 . . . . 5 ((𝑡 = 𝑇𝑢 = 𝑈) → 𝑡 = 𝑇)
6 oveq1 7157 . . . . . 6 (𝑢 = 𝑈 → (𝑢 cyclShift 𝑛) = (𝑈 cyclShift 𝑛))
76adantl 484 . . . . 5 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑢 cyclShift 𝑛) = (𝑈 cyclShift 𝑛))
85, 7eqeq12d 2837 . . . 4 ((𝑡 = 𝑇𝑢 = 𝑈) → (𝑡 = (𝑢 cyclShift 𝑛) ↔ 𝑇 = (𝑈 cyclShift 𝑛)))
98rexbidv 3297 . . 3 ((𝑡 = 𝑇𝑢 = 𝑈) → (∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0...𝑁)𝑇 = (𝑈 cyclShift 𝑛)))
102, 4, 93anbi123d 1432 . 2 ((𝑡 = 𝑇𝑢 = 𝑈) → ((𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛)) ↔ (𝑇𝑊𝑈𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑇 = (𝑈 cyclShift 𝑛))))
11 erclwwlkn.r . 2 = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
1210, 11brabga 5414 1 ((𝑇𝑋𝑈𝑌) → (𝑇 𝑈 ↔ (𝑇𝑊𝑈𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑇 = (𝑈 cyclShift 𝑛))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  w3a 1083   = wceq 1533  wcel 2110  wrex 3139   class class class wbr 5059  {copab 5121  (class class class)co 7150  0cc0 10531  ...cfz 12886   cyclShift ccsh 14144   ClWWalksN cclwwlkn 27796
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-sep 5196  ax-nul 5203  ax-pr 5322
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-rex 3144  df-rab 3147  df-v 3497  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4833  df-br 5060  df-opab 5122  df-iota 6309  df-fv 6358  df-ov 7153
This theorem is referenced by:  erclwwlkneqlen  27841  erclwwlknref  27842  erclwwlknsym  27843  erclwwlkntr  27844  eclclwwlkn1  27848
  Copyright terms: Public domain W3C validator