Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  cycpm2tr Structured version   Visualization version   GIF version

Theorem cycpm2tr 31059
Description: A cyclic permutation of 2 elements is a transposition. (Contributed by Thierry Arnoux, 24-Sep-2023.)
Hypotheses
Ref Expression
cycpm2.c 𝐶 = (toCyc‘𝐷)
cycpm2.d (𝜑𝐷𝑉)
cycpm2.i (𝜑𝐼𝐷)
cycpm2.j (𝜑𝐽𝐷)
cycpm2.1 (𝜑𝐼𝐽)
cycpm2tr.t 𝑇 = (pmTrsp‘𝐷)
Assertion
Ref Expression
cycpm2tr (𝜑 → (𝐶‘⟨“𝐼𝐽”⟩) = (𝑇‘{𝐼, 𝐽}))

Proof of Theorem cycpm2tr
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 partfun 6503 . . . 4 (𝑥𝐷 ↦ if(𝑥 ∈ {𝐼, 𝐽}, ({𝐼, 𝐽} ∖ {𝑥}), 𝑥)) = ((𝑥 ∈ (𝐷 ∩ {𝐼, 𝐽}) ↦ ({𝐼, 𝐽} ∖ {𝑥})) ∪ (𝑥 ∈ (𝐷 ∖ {𝐼, 𝐽}) ↦ 𝑥))
21a1i 11 . . 3 (𝜑 → (𝑥𝐷 ↦ if(𝑥 ∈ {𝐼, 𝐽}, ({𝐼, 𝐽} ∖ {𝑥}), 𝑥)) = ((𝑥 ∈ (𝐷 ∩ {𝐼, 𝐽}) ↦ ({𝐼, 𝐽} ∖ {𝑥})) ∪ (𝑥 ∈ (𝐷 ∖ {𝐼, 𝐽}) ↦ 𝑥)))
3 cycpm2.i . . . . . . 7 (𝜑𝐼𝐷)
4 cycpm2.j . . . . . . 7 (𝜑𝐽𝐷)
5 cshw1s2 30906 . . . . . . 7 ((𝐼𝐷𝐽𝐷) → (⟨“𝐼𝐽”⟩ cyclShift 1) = ⟨“𝐽𝐼”⟩)
63, 4, 5syl2anc 587 . . . . . 6 (𝜑 → (⟨“𝐼𝐽”⟩ cyclShift 1) = ⟨“𝐽𝐼”⟩)
76coeq1d 5715 . . . . 5 (𝜑 → ((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩) = (⟨“𝐽𝐼”⟩ ∘ ⟨“𝐼𝐽”⟩))
8 0nn0 12070 . . . . . . . 8 0 ∈ ℕ0
98a1i 11 . . . . . . 7 (𝜑 → 0 ∈ ℕ0)
10 1nn0 12071 . . . . . . . 8 1 ∈ ℕ0
1110a1i 11 . . . . . . 7 (𝜑 → 1 ∈ ℕ0)
12 0ne1 11866 . . . . . . . 8 0 ≠ 1
1312a1i 11 . . . . . . 7 (𝜑 → 0 ≠ 1)
14 cycpm2.1 . . . . . . 7 (𝜑𝐼𝐽)
159, 4, 11, 3, 13, 3, 4, 14coprprop 30706 . . . . . 6 (𝜑 → ({⟨0, 𝐽⟩, ⟨1, 𝐼⟩} ∘ {⟨𝐼, 0⟩, ⟨𝐽, 1⟩}) = {⟨𝐼, 𝐽⟩, ⟨𝐽, 𝐼⟩})
16 s2prop 14437 . . . . . . . 8 ((𝐽𝐷𝐼𝐷) → ⟨“𝐽𝐼”⟩ = {⟨0, 𝐽⟩, ⟨1, 𝐼⟩})
174, 3, 16syl2anc 587 . . . . . . 7 (𝜑 → ⟨“𝐽𝐼”⟩ = {⟨0, 𝐽⟩, ⟨1, 𝐼⟩})
18 s2prop 14437 . . . . . . . . . 10 ((𝐼𝐷𝐽𝐷) → ⟨“𝐼𝐽”⟩ = {⟨0, 𝐼⟩, ⟨1, 𝐽⟩})
193, 4, 18syl2anc 587 . . . . . . . . 9 (𝜑 → ⟨“𝐼𝐽”⟩ = {⟨0, 𝐼⟩, ⟨1, 𝐽⟩})
2019cnveqd 5729 . . . . . . . 8 (𝜑⟨“𝐼𝐽”⟩ = {⟨0, 𝐼⟩, ⟨1, 𝐽⟩})
21 cnvprop 30703 . . . . . . . . 9 (((0 ∈ ℕ0𝐼𝐷) ∧ (1 ∈ ℕ0𝐽𝐷)) → {⟨0, 𝐼⟩, ⟨1, 𝐽⟩} = {⟨𝐼, 0⟩, ⟨𝐽, 1⟩})
229, 3, 11, 4, 21syl22anc 839 . . . . . . . 8 (𝜑{⟨0, 𝐼⟩, ⟨1, 𝐽⟩} = {⟨𝐼, 0⟩, ⟨𝐽, 1⟩})
2320, 22eqtrd 2771 . . . . . . 7 (𝜑⟨“𝐼𝐽”⟩ = {⟨𝐼, 0⟩, ⟨𝐽, 1⟩})
2417, 23coeq12d 5718 . . . . . 6 (𝜑 → (⟨“𝐽𝐼”⟩ ∘ ⟨“𝐼𝐽”⟩) = ({⟨0, 𝐽⟩, ⟨1, 𝐼⟩} ∘ {⟨𝐼, 0⟩, ⟨𝐽, 1⟩}))
253, 4, 4, 3, 14mptprop 30705 . . . . . . 7 (𝜑 → {⟨𝐼, 𝐽⟩, ⟨𝐽, 𝐼⟩} = (𝑥 ∈ {𝐼, 𝐽} ↦ if(𝑥 = 𝐼, 𝐽, 𝐼)))
263, 4prssd 4721 . . . . . . . . . 10 (𝜑 → {𝐼, 𝐽} ⊆ 𝐷)
27 df-ss 3870 . . . . . . . . . 10 ({𝐼, 𝐽} ⊆ 𝐷 ↔ ({𝐼, 𝐽} ∩ 𝐷) = {𝐼, 𝐽})
2826, 27sylib 221 . . . . . . . . 9 (𝜑 → ({𝐼, 𝐽} ∩ 𝐷) = {𝐼, 𝐽})
29 incom 4101 . . . . . . . . 9 ({𝐼, 𝐽} ∩ 𝐷) = (𝐷 ∩ {𝐼, 𝐽})
3028, 29eqtr3di 2786 . . . . . . . 8 (𝜑 → {𝐼, 𝐽} = (𝐷 ∩ {𝐼, 𝐽}))
31 simpr 488 . . . . . . . . . . . . 13 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ 𝑥 = 𝐼) → 𝑥 = 𝐼)
3231sneqd 4539 . . . . . . . . . . . 12 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ 𝑥 = 𝐼) → {𝑥} = {𝐼})
3332difeq2d 4023 . . . . . . . . . . 11 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ 𝑥 = 𝐼) → ({𝐼, 𝐽} ∖ {𝑥}) = ({𝐼, 𝐽} ∖ {𝐼}))
3433unieqd 4819 . . . . . . . . . 10 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ 𝑥 = 𝐼) → ({𝐼, 𝐽} ∖ {𝑥}) = ({𝐼, 𝐽} ∖ {𝐼}))
35 difprsn1 4699 . . . . . . . . . . . . . 14 (𝐼𝐽 → ({𝐼, 𝐽} ∖ {𝐼}) = {𝐽})
3635unieqd 4819 . . . . . . . . . . . . 13 (𝐼𝐽 ({𝐼, 𝐽} ∖ {𝐼}) = {𝐽})
3714, 36syl 17 . . . . . . . . . . . 12 (𝜑 ({𝐼, 𝐽} ∖ {𝐼}) = {𝐽})
38 unisng 4826 . . . . . . . . . . . . 13 (𝐽𝐷 {𝐽} = 𝐽)
394, 38syl 17 . . . . . . . . . . . 12 (𝜑 {𝐽} = 𝐽)
4037, 39eqtrd 2771 . . . . . . . . . . 11 (𝜑 ({𝐼, 𝐽} ∖ {𝐼}) = 𝐽)
4140ad2antrr 726 . . . . . . . . . 10 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ 𝑥 = 𝐼) → ({𝐼, 𝐽} ∖ {𝐼}) = 𝐽)
4234, 41eqtr2d 2772 . . . . . . . . 9 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ 𝑥 = 𝐼) → 𝐽 = ({𝐼, 𝐽} ∖ {𝑥}))
43 vex 3402 . . . . . . . . . . . . . . . . 17 𝑥 ∈ V
4443elpr 4550 . . . . . . . . . . . . . . . 16 (𝑥 ∈ {𝐼, 𝐽} ↔ (𝑥 = 𝐼𝑥 = 𝐽))
45 df-or 848 . . . . . . . . . . . . . . . 16 ((𝑥 = 𝐼𝑥 = 𝐽) ↔ (¬ 𝑥 = 𝐼𝑥 = 𝐽))
4644, 45sylbb 222 . . . . . . . . . . . . . . 15 (𝑥 ∈ {𝐼, 𝐽} → (¬ 𝑥 = 𝐼𝑥 = 𝐽))
4746imp 410 . . . . . . . . . . . . . 14 ((𝑥 ∈ {𝐼, 𝐽} ∧ ¬ 𝑥 = 𝐼) → 𝑥 = 𝐽)
4847adantll 714 . . . . . . . . . . . . 13 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ ¬ 𝑥 = 𝐼) → 𝑥 = 𝐽)
4948sneqd 4539 . . . . . . . . . . . 12 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ ¬ 𝑥 = 𝐼) → {𝑥} = {𝐽})
5049difeq2d 4023 . . . . . . . . . . 11 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ ¬ 𝑥 = 𝐼) → ({𝐼, 𝐽} ∖ {𝑥}) = ({𝐼, 𝐽} ∖ {𝐽}))
5150unieqd 4819 . . . . . . . . . 10 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ ¬ 𝑥 = 𝐼) → ({𝐼, 𝐽} ∖ {𝑥}) = ({𝐼, 𝐽} ∖ {𝐽}))
52 difprsn2 4700 . . . . . . . . . . . . . 14 (𝐼𝐽 → ({𝐼, 𝐽} ∖ {𝐽}) = {𝐼})
5352unieqd 4819 . . . . . . . . . . . . 13 (𝐼𝐽 ({𝐼, 𝐽} ∖ {𝐽}) = {𝐼})
5414, 53syl 17 . . . . . . . . . . . 12 (𝜑 ({𝐼, 𝐽} ∖ {𝐽}) = {𝐼})
55 unisng 4826 . . . . . . . . . . . . 13 (𝐼𝐷 {𝐼} = 𝐼)
563, 55syl 17 . . . . . . . . . . . 12 (𝜑 {𝐼} = 𝐼)
5754, 56eqtrd 2771 . . . . . . . . . . 11 (𝜑 ({𝐼, 𝐽} ∖ {𝐽}) = 𝐼)
5857ad2antrr 726 . . . . . . . . . 10 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ ¬ 𝑥 = 𝐼) → ({𝐼, 𝐽} ∖ {𝐽}) = 𝐼)
5951, 58eqtr2d 2772 . . . . . . . . 9 (((𝜑𝑥 ∈ {𝐼, 𝐽}) ∧ ¬ 𝑥 = 𝐼) → 𝐼 = ({𝐼, 𝐽} ∖ {𝑥}))
6042, 59ifeqda 4461 . . . . . . . 8 ((𝜑𝑥 ∈ {𝐼, 𝐽}) → if(𝑥 = 𝐼, 𝐽, 𝐼) = ({𝐼, 𝐽} ∖ {𝑥}))
6130, 60mpteq12dva 5124 . . . . . . 7 (𝜑 → (𝑥 ∈ {𝐼, 𝐽} ↦ if(𝑥 = 𝐼, 𝐽, 𝐼)) = (𝑥 ∈ (𝐷 ∩ {𝐼, 𝐽}) ↦ ({𝐼, 𝐽} ∖ {𝑥})))
6225, 61eqtr2d 2772 . . . . . 6 (𝜑 → (𝑥 ∈ (𝐷 ∩ {𝐼, 𝐽}) ↦ ({𝐼, 𝐽} ∖ {𝑥})) = {⟨𝐼, 𝐽⟩, ⟨𝐽, 𝐼⟩})
6315, 24, 623eqtr4d 2781 . . . . 5 (𝜑 → (⟨“𝐽𝐼”⟩ ∘ ⟨“𝐼𝐽”⟩) = (𝑥 ∈ (𝐷 ∩ {𝐼, 𝐽}) ↦ ({𝐼, 𝐽} ∖ {𝑥})))
647, 63eqtrd 2771 . . . 4 (𝜑 → ((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩) = (𝑥 ∈ (𝐷 ∩ {𝐼, 𝐽}) ↦ ({𝐼, 𝐽} ∖ {𝑥})))
653, 4s2rn 30892 . . . . . . 7 (𝜑 → ran ⟨“𝐼𝐽”⟩ = {𝐼, 𝐽})
6665difeq2d 4023 . . . . . 6 (𝜑 → (𝐷 ∖ ran ⟨“𝐼𝐽”⟩) = (𝐷 ∖ {𝐼, 𝐽}))
6766reseq2d 5836 . . . . 5 (𝜑 → ( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩)) = ( I ↾ (𝐷 ∖ {𝐼, 𝐽})))
68 mptresid 5903 . . . . 5 ( I ↾ (𝐷 ∖ {𝐼, 𝐽})) = (𝑥 ∈ (𝐷 ∖ {𝐼, 𝐽}) ↦ 𝑥)
6967, 68eqtrdi 2787 . . . 4 (𝜑 → ( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩)) = (𝑥 ∈ (𝐷 ∖ {𝐼, 𝐽}) ↦ 𝑥))
7064, 69uneq12d 4064 . . 3 (𝜑 → (((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩) ∪ ( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩))) = ((𝑥 ∈ (𝐷 ∩ {𝐼, 𝐽}) ↦ ({𝐼, 𝐽} ∖ {𝑥})) ∪ (𝑥 ∈ (𝐷 ∖ {𝐼, 𝐽}) ↦ 𝑥)))
71 uncom 4053 . . . 4 (((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩) ∪ ( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩))) = (( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩)) ∪ ((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩))
7271a1i 11 . . 3 (𝜑 → (((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩) ∪ ( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩))) = (( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩)) ∪ ((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩)))
732, 70, 723eqtr2rd 2778 . 2 (𝜑 → (( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩)) ∪ ((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩)) = (𝑥𝐷 ↦ if(𝑥 ∈ {𝐼, 𝐽}, ({𝐼, 𝐽} ∖ {𝑥}), 𝑥)))
74 cycpm2.c . . 3 𝐶 = (toCyc‘𝐷)
75 cycpm2.d . . 3 (𝜑𝐷𝑉)
763, 4s2cld 14401 . . 3 (𝜑 → ⟨“𝐼𝐽”⟩ ∈ Word 𝐷)
773, 4, 14s2f1 30893 . . 3 (𝜑 → ⟨“𝐼𝐽”⟩:dom ⟨“𝐼𝐽”⟩–1-1𝐷)
7874, 75, 76, 77tocycfv 31049 . 2 (𝜑 → (𝐶‘⟨“𝐼𝐽”⟩) = (( I ↾ (𝐷 ∖ ran ⟨“𝐼𝐽”⟩)) ∪ ((⟨“𝐼𝐽”⟩ cyclShift 1) ∘ ⟨“𝐼𝐽”⟩)))
79 pr2nelem 9583 . . . 4 ((𝐼𝐷𝐽𝐷𝐼𝐽) → {𝐼, 𝐽} ≈ 2o)
803, 4, 14, 79syl3anc 1373 . . 3 (𝜑 → {𝐼, 𝐽} ≈ 2o)
81 cycpm2tr.t . . . 4 𝑇 = (pmTrsp‘𝐷)
8281pmtrval 18797 . . 3 ((𝐷𝑉 ∧ {𝐼, 𝐽} ⊆ 𝐷 ∧ {𝐼, 𝐽} ≈ 2o) → (𝑇‘{𝐼, 𝐽}) = (𝑥𝐷 ↦ if(𝑥 ∈ {𝐼, 𝐽}, ({𝐼, 𝐽} ∖ {𝑥}), 𝑥)))
8375, 26, 80, 82syl3anc 1373 . 2 (𝜑 → (𝑇‘{𝐼, 𝐽}) = (𝑥𝐷 ↦ if(𝑥 ∈ {𝐼, 𝐽}, ({𝐼, 𝐽} ∖ {𝑥}), 𝑥)))
8473, 78, 833eqtr4d 2781 1 (𝜑 → (𝐶‘⟨“𝐼𝐽”⟩) = (𝑇‘{𝐼, 𝐽}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399  wo 847   = wceq 1543  wcel 2112  wne 2932  cdif 3850  cun 3851  cin 3852  wss 3853  ifcif 4425  {csn 4527  {cpr 4529  cop 4533   cuni 4805   class class class wbr 5039  cmpt 5120   I cid 5439  ccnv 5535  ran crn 5537  cres 5538  ccom 5540  cfv 6358  (class class class)co 7191  2oc2o 8174  cen 8601  0cc0 10694  1c1 10695  0cn0 12055   cyclShift ccsh 14318  ⟨“cs2 14371  pmTrspcpmtr 18787  toCycctocyc 31046
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2708  ax-rep 5164  ax-sep 5177  ax-nul 5184  ax-pow 5243  ax-pr 5307  ax-un 7501  ax-cnex 10750  ax-resscn 10751  ax-1cn 10752  ax-icn 10753  ax-addcl 10754  ax-addrcl 10755  ax-mulcl 10756  ax-mulrcl 10757  ax-mulcom 10758  ax-addass 10759  ax-mulass 10760  ax-distr 10761  ax-i2m1 10762  ax-1ne0 10763  ax-1rid 10764  ax-rnegex 10765  ax-rrecex 10766  ax-cnre 10767  ax-pre-lttri 10768  ax-pre-lttrn 10769  ax-pre-ltadd 10770  ax-pre-mulgt0 10771  ax-pre-sup 10772
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2728  df-clel 2809  df-nfc 2879  df-ne 2933  df-nel 3037  df-ral 3056  df-rex 3057  df-reu 3058  df-rmo 3059  df-rab 3060  df-v 3400  df-sbc 3684  df-csb 3799  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-pss 3872  df-nul 4224  df-if 4426  df-pw 4501  df-sn 4528  df-pr 4530  df-tp 4532  df-op 4534  df-uni 4806  df-int 4846  df-iun 4892  df-br 5040  df-opab 5102  df-mpt 5121  df-tr 5147  df-id 5440  df-eprel 5445  df-po 5453  df-so 5454  df-fr 5494  df-we 5496  df-xp 5542  df-rel 5543  df-cnv 5544  df-co 5545  df-dm 5546  df-rn 5547  df-res 5548  df-ima 5549  df-pred 6140  df-ord 6194  df-on 6195  df-lim 6196  df-suc 6197  df-iota 6316  df-fun 6360  df-fn 6361  df-f 6362  df-f1 6363  df-fo 6364  df-f1o 6365  df-fv 6366  df-riota 7148  df-ov 7194  df-oprab 7195  df-mpo 7196  df-om 7623  df-1st 7739  df-2nd 7740  df-wrecs 8025  df-recs 8086  df-rdg 8124  df-1o 8180  df-2o 8181  df-er 8369  df-map 8488  df-en 8605  df-dom 8606  df-sdom 8607  df-fin 8608  df-sup 9036  df-inf 9037  df-card 9520  df-pnf 10834  df-mnf 10835  df-xr 10836  df-ltxr 10837  df-le 10838  df-sub 11029  df-neg 11030  df-div 11455  df-nn 11796  df-2 11858  df-n0 12056  df-xnn0 12128  df-z 12142  df-uz 12404  df-rp 12552  df-fz 13061  df-fzo 13204  df-fl 13332  df-mod 13408  df-hash 13862  df-word 14035  df-concat 14091  df-s1 14118  df-substr 14171  df-pfx 14201  df-csh 14319  df-s2 14378  df-pmtr 18788  df-tocyc 31047
This theorem is referenced by:  trsp2cyc  31063  cyc3evpm  31090  cyc3genpmlem  31091  cyc3conja  31097
  Copyright terms: Public domain W3C validator