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

Theorem pmtrfinv 19069
Description: A transposition function is an involution. (Contributed by Stefan O'Rear, 22-Aug-2015.)
Hypotheses
Ref Expression
pmtrrn.t 𝑇 = (pmTrsp‘𝐷)
pmtrrn.r 𝑅 = ran 𝑇
Assertion
Ref Expression
pmtrfinv (𝐹𝑅 → (𝐹𝐹) = ( I ↾ 𝐷))

Proof of Theorem pmtrfinv
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 pmtrrn.t . . . . . . 7 𝑇 = (pmTrsp‘𝐷)
2 pmtrrn.r . . . . . . 7 𝑅 = ran 𝑇
3 eqid 2738 . . . . . . 7 dom (𝐹 ∖ I ) = dom (𝐹 ∖ I )
41, 2, 3pmtrfrn 19066 . . . . . 6 (𝐹𝑅 → ((𝐷 ∈ V ∧ dom (𝐹 ∖ I ) ⊆ 𝐷 ∧ dom (𝐹 ∖ I ) ≈ 2o) ∧ 𝐹 = (𝑇‘dom (𝐹 ∖ I ))))
54simpld 495 . . . . 5 (𝐹𝑅 → (𝐷 ∈ V ∧ dom (𝐹 ∖ I ) ⊆ 𝐷 ∧ dom (𝐹 ∖ I ) ≈ 2o))
61pmtrf 19063 . . . . 5 ((𝐷 ∈ V ∧ dom (𝐹 ∖ I ) ⊆ 𝐷 ∧ dom (𝐹 ∖ I ) ≈ 2o) → (𝑇‘dom (𝐹 ∖ I )):𝐷𝐷)
75, 6syl 17 . . . 4 (𝐹𝑅 → (𝑇‘dom (𝐹 ∖ I )):𝐷𝐷)
84simprd 496 . . . . 5 (𝐹𝑅𝐹 = (𝑇‘dom (𝐹 ∖ I )))
98feq1d 6585 . . . 4 (𝐹𝑅 → (𝐹:𝐷𝐷 ↔ (𝑇‘dom (𝐹 ∖ I )):𝐷𝐷))
107, 9mpbird 256 . . 3 (𝐹𝑅𝐹:𝐷𝐷)
11 fco 6624 . . . 4 ((𝐹:𝐷𝐷𝐹:𝐷𝐷) → (𝐹𝐹):𝐷𝐷)
1211anidms 567 . . 3 (𝐹:𝐷𝐷 → (𝐹𝐹):𝐷𝐷)
13 ffn 6600 . . 3 ((𝐹𝐹):𝐷𝐷 → (𝐹𝐹) Fn 𝐷)
1410, 12, 133syl 18 . 2 (𝐹𝑅 → (𝐹𝐹) Fn 𝐷)
15 fnresi 6561 . . 3 ( I ↾ 𝐷) Fn 𝐷
1615a1i 11 . 2 (𝐹𝑅 → ( I ↾ 𝐷) Fn 𝐷)
171, 2, 3pmtrffv 19067 . . . . . . 7 ((𝐹𝑅𝑥𝐷) → (𝐹𝑥) = if(𝑥 ∈ dom (𝐹 ∖ I ), (dom (𝐹 ∖ I ) ∖ {𝑥}), 𝑥))
18 iftrue 4465 . . . . . . 7 (𝑥 ∈ dom (𝐹 ∖ I ) → if(𝑥 ∈ dom (𝐹 ∖ I ), (dom (𝐹 ∖ I ) ∖ {𝑥}), 𝑥) = (dom (𝐹 ∖ I ) ∖ {𝑥}))
1917, 18sylan9eq 2798 . . . . . 6 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (𝐹𝑥) = (dom (𝐹 ∖ I ) ∖ {𝑥}))
2019fveq2d 6778 . . . . 5 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (𝐹‘(𝐹𝑥)) = (𝐹 (dom (𝐹 ∖ I ) ∖ {𝑥})))
21 simpll 764 . . . . . . 7 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → 𝐹𝑅)
225simp2d 1142 . . . . . . . . 9 (𝐹𝑅 → dom (𝐹 ∖ I ) ⊆ 𝐷)
2322ad2antrr 723 . . . . . . . 8 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → dom (𝐹 ∖ I ) ⊆ 𝐷)
24 1onn 8470 . . . . . . . . . . 11 1o ∈ ω
255simp3d 1143 . . . . . . . . . . . . 13 (𝐹𝑅 → dom (𝐹 ∖ I ) ≈ 2o)
26 df-2o 8298 . . . . . . . . . . . . 13 2o = suc 1o
2725, 26breqtrdi 5115 . . . . . . . . . . . 12 (𝐹𝑅 → dom (𝐹 ∖ I ) ≈ suc 1o)
2827ad2antrr 723 . . . . . . . . . . 11 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → dom (𝐹 ∖ I ) ≈ suc 1o)
29 simpr 485 . . . . . . . . . . 11 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → 𝑥 ∈ dom (𝐹 ∖ I ))
30 dif1en 8945 . . . . . . . . . . 11 ((1o ∈ ω ∧ dom (𝐹 ∖ I ) ≈ suc 1o𝑥 ∈ dom (𝐹 ∖ I )) → (dom (𝐹 ∖ I ) ∖ {𝑥}) ≈ 1o)
3124, 28, 29, 30mp3an2i 1465 . . . . . . . . . 10 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (dom (𝐹 ∖ I ) ∖ {𝑥}) ≈ 1o)
32 en1uniel 8818 . . . . . . . . . 10 ((dom (𝐹 ∖ I ) ∖ {𝑥}) ≈ 1o (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ (dom (𝐹 ∖ I ) ∖ {𝑥}))
3331, 32syl 17 . . . . . . . . 9 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ (dom (𝐹 ∖ I ) ∖ {𝑥}))
3433eldifad 3899 . . . . . . . 8 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ dom (𝐹 ∖ I ))
3523, 34sseldd 3922 . . . . . . 7 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ 𝐷)
361, 2, 3pmtrffv 19067 . . . . . . 7 ((𝐹𝑅 (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ 𝐷) → (𝐹 (dom (𝐹 ∖ I ) ∖ {𝑥})) = if( (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ dom (𝐹 ∖ I ), (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}), (dom (𝐹 ∖ I ) ∖ {𝑥})))
3721, 35, 36syl2anc 584 . . . . . 6 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (𝐹 (dom (𝐹 ∖ I ) ∖ {𝑥})) = if( (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ dom (𝐹 ∖ I ), (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}), (dom (𝐹 ∖ I ) ∖ {𝑥})))
38 iftrue 4465 . . . . . . . 8 ( (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ dom (𝐹 ∖ I ) → if( (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ dom (𝐹 ∖ I ), (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}), (dom (𝐹 ∖ I ) ∖ {𝑥})) = (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}))
3934, 38syl 17 . . . . . . 7 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → if( (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ dom (𝐹 ∖ I ), (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}), (dom (𝐹 ∖ I ) ∖ {𝑥})) = (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}))
4025adantr 481 . . . . . . . 8 ((𝐹𝑅𝑥𝐷) → dom (𝐹 ∖ I ) ≈ 2o)
41 en2other2 9765 . . . . . . . . 9 ((𝑥 ∈ dom (𝐹 ∖ I ) ∧ dom (𝐹 ∖ I ) ≈ 2o) → (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}) = 𝑥)
4241ancoms 459 . . . . . . . 8 ((dom (𝐹 ∖ I ) ≈ 2o𝑥 ∈ dom (𝐹 ∖ I )) → (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}) = 𝑥)
4340, 42sylan 580 . . . . . . 7 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}) = 𝑥)
4439, 43eqtrd 2778 . . . . . 6 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → if( (dom (𝐹 ∖ I ) ∖ {𝑥}) ∈ dom (𝐹 ∖ I ), (dom (𝐹 ∖ I ) ∖ { (dom (𝐹 ∖ I ) ∖ {𝑥})}), (dom (𝐹 ∖ I ) ∖ {𝑥})) = 𝑥)
4537, 44eqtrd 2778 . . . . 5 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (𝐹 (dom (𝐹 ∖ I ) ∖ {𝑥})) = 𝑥)
4620, 45eqtrd 2778 . . . 4 (((𝐹𝑅𝑥𝐷) ∧ 𝑥 ∈ dom (𝐹 ∖ I )) → (𝐹‘(𝐹𝑥)) = 𝑥)
4710ffnd 6601 . . . . . . . 8 (𝐹𝑅𝐹 Fn 𝐷)
48 fnelnfp 7049 . . . . . . . 8 ((𝐹 Fn 𝐷𝑥𝐷) → (𝑥 ∈ dom (𝐹 ∖ I ) ↔ (𝐹𝑥) ≠ 𝑥))
4947, 48sylan 580 . . . . . . 7 ((𝐹𝑅𝑥𝐷) → (𝑥 ∈ dom (𝐹 ∖ I ) ↔ (𝐹𝑥) ≠ 𝑥))
5049necon2bbid 2987 . . . . . 6 ((𝐹𝑅𝑥𝐷) → ((𝐹𝑥) = 𝑥 ↔ ¬ 𝑥 ∈ dom (𝐹 ∖ I )))
5150biimpar 478 . . . . 5 (((𝐹𝑅𝑥𝐷) ∧ ¬ 𝑥 ∈ dom (𝐹 ∖ I )) → (𝐹𝑥) = 𝑥)
52 fveq2 6774 . . . . . 6 ((𝐹𝑥) = 𝑥 → (𝐹‘(𝐹𝑥)) = (𝐹𝑥))
53 id 22 . . . . . 6 ((𝐹𝑥) = 𝑥 → (𝐹𝑥) = 𝑥)
5452, 53eqtrd 2778 . . . . 5 ((𝐹𝑥) = 𝑥 → (𝐹‘(𝐹𝑥)) = 𝑥)
5551, 54syl 17 . . . 4 (((𝐹𝑅𝑥𝐷) ∧ ¬ 𝑥 ∈ dom (𝐹 ∖ I )) → (𝐹‘(𝐹𝑥)) = 𝑥)
5646, 55pm2.61dan 810 . . 3 ((𝐹𝑅𝑥𝐷) → (𝐹‘(𝐹𝑥)) = 𝑥)
57 fvco2 6865 . . . 4 ((𝐹 Fn 𝐷𝑥𝐷) → ((𝐹𝐹)‘𝑥) = (𝐹‘(𝐹𝑥)))
5847, 57sylan 580 . . 3 ((𝐹𝑅𝑥𝐷) → ((𝐹𝐹)‘𝑥) = (𝐹‘(𝐹𝑥)))
59 fvresi 7045 . . . 4 (𝑥𝐷 → (( I ↾ 𝐷)‘𝑥) = 𝑥)
6059adantl 482 . . 3 ((𝐹𝑅𝑥𝐷) → (( I ↾ 𝐷)‘𝑥) = 𝑥)
6156, 58, 603eqtr4d 2788 . 2 ((𝐹𝑅𝑥𝐷) → ((𝐹𝐹)‘𝑥) = (( I ↾ 𝐷)‘𝑥))
6214, 16, 61eqfnfvd 6912 1 (𝐹𝑅 → (𝐹𝐹) = ( I ↾ 𝐷))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wne 2943  Vcvv 3432  cdif 3884  wss 3887  ifcif 4459  {csn 4561   cuni 4839   class class class wbr 5074   I cid 5488  dom cdm 5589  ran crn 5590  cres 5591  ccom 5593  suc csuc 6268   Fn wfn 6428  wf 6429  cfv 6433  ωcom 7712  1oc1o 8290  2oc2o 8291  cen 8730  pmTrspcpmtr 19049
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-om 7713  df-1o 8297  df-2o 8298  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-pmtr 19050
This theorem is referenced by:  pmtrff1o  19071  pmtrfcnv  19072  symggen  19078  psgnunilem1  19101  cyc3genpmlem  31418
  Copyright terms: Public domain W3C validator