Users' Mathboxes Mathbox for Mario Carneiro < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  subfacp1lem4 Structured version   Visualization version   GIF version

Theorem subfacp1lem4 32490
Description: Lemma for subfacp1 32493. The function 𝐹, which swaps 1 with 𝑀 and leaves all other elements alone, is a bijection of order 2, i.e. it is its own inverse. (Contributed by Mario Carneiro, 19-Jan-2015.)
Hypotheses
Ref Expression
derang.d 𝐷 = (𝑥 ∈ Fin ↦ (♯‘{𝑓 ∣ (𝑓:𝑥1-1-onto𝑥 ∧ ∀𝑦𝑥 (𝑓𝑦) ≠ 𝑦)}))
subfac.n 𝑆 = (𝑛 ∈ ℕ0 ↦ (𝐷‘(1...𝑛)))
subfacp1lem.a 𝐴 = {𝑓 ∣ (𝑓:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) ∧ ∀𝑦 ∈ (1...(𝑁 + 1))(𝑓𝑦) ≠ 𝑦)}
subfacp1lem1.n (𝜑𝑁 ∈ ℕ)
subfacp1lem1.m (𝜑𝑀 ∈ (2...(𝑁 + 1)))
subfacp1lem1.x 𝑀 ∈ V
subfacp1lem1.k 𝐾 = ((2...(𝑁 + 1)) ∖ {𝑀})
subfacp1lem5.b 𝐵 = {𝑔𝐴 ∣ ((𝑔‘1) = 𝑀 ∧ (𝑔𝑀) ≠ 1)}
subfacp1lem5.f 𝐹 = (( I ↾ 𝐾) ∪ {⟨1, 𝑀⟩, ⟨𝑀, 1⟩})
Assertion
Ref Expression
subfacp1lem4 (𝜑𝐹 = 𝐹)
Distinct variable groups:   𝑓,𝑔,𝑛,𝑥,𝑦,𝐴   𝑓,𝐹,𝑔,𝑥,𝑦   𝑓,𝑁,𝑔,𝑛,𝑥,𝑦   𝐵,𝑓,𝑔,𝑥,𝑦   𝜑,𝑥,𝑦   𝐷,𝑛   𝑓,𝐾,𝑛,𝑥,𝑦   𝑓,𝑀,𝑔,𝑥,𝑦   𝑆,𝑛,𝑥,𝑦
Allowed substitution hints:   𝜑(𝑓,𝑔,𝑛)   𝐵(𝑛)   𝐷(𝑥,𝑦,𝑓,𝑔)   𝑆(𝑓,𝑔)   𝐹(𝑛)   𝐾(𝑔)   𝑀(𝑛)

Proof of Theorem subfacp1lem4
StepHypRef Expression
1 derang.d . . . . 5 𝐷 = (𝑥 ∈ Fin ↦ (♯‘{𝑓 ∣ (𝑓:𝑥1-1-onto𝑥 ∧ ∀𝑦𝑥 (𝑓𝑦) ≠ 𝑦)}))
2 subfac.n . . . . 5 𝑆 = (𝑛 ∈ ℕ0 ↦ (𝐷‘(1...𝑛)))
3 subfacp1lem.a . . . . 5 𝐴 = {𝑓 ∣ (𝑓:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) ∧ ∀𝑦 ∈ (1...(𝑁 + 1))(𝑓𝑦) ≠ 𝑦)}
4 subfacp1lem1.n . . . . 5 (𝜑𝑁 ∈ ℕ)
5 subfacp1lem1.m . . . . 5 (𝜑𝑀 ∈ (2...(𝑁 + 1)))
6 subfacp1lem1.x . . . . 5 𝑀 ∈ V
7 subfacp1lem1.k . . . . 5 𝐾 = ((2...(𝑁 + 1)) ∖ {𝑀})
8 subfacp1lem5.f . . . . 5 𝐹 = (( I ↾ 𝐾) ∪ {⟨1, 𝑀⟩, ⟨𝑀, 1⟩})
9 f1oi 6644 . . . . . 6 ( I ↾ 𝐾):𝐾1-1-onto𝐾
109a1i 11 . . . . 5 (𝜑 → ( I ↾ 𝐾):𝐾1-1-onto𝐾)
111, 2, 3, 4, 5, 6, 7, 8, 10subfacp1lem2a 32487 . . . 4 (𝜑 → (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) ∧ (𝐹‘1) = 𝑀 ∧ (𝐹𝑀) = 1))
1211simp1d 1139 . . 3 (𝜑𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)))
13 f1ocnv 6619 . . 3 (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) → 𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)))
14 f1ofn 6608 . . 3 (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) → 𝐹 Fn (1...(𝑁 + 1)))
1512, 13, 143syl 18 . 2 (𝜑𝐹 Fn (1...(𝑁 + 1)))
16 f1ofn 6608 . . 3 (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) → 𝐹 Fn (1...(𝑁 + 1)))
1712, 16syl 17 . 2 (𝜑𝐹 Fn (1...(𝑁 + 1)))
181, 2, 3, 4, 5, 6, 7subfacp1lem1 32486 . . . . . . . 8 (𝜑 → ((𝐾 ∩ {1, 𝑀}) = ∅ ∧ (𝐾 ∪ {1, 𝑀}) = (1...(𝑁 + 1)) ∧ (♯‘𝐾) = (𝑁 − 1)))
1918simp2d 1140 . . . . . . 7 (𝜑 → (𝐾 ∪ {1, 𝑀}) = (1...(𝑁 + 1)))
2019eleq2d 2901 . . . . . 6 (𝜑 → (𝑥 ∈ (𝐾 ∪ {1, 𝑀}) ↔ 𝑥 ∈ (1...(𝑁 + 1))))
2120biimpar 481 . . . . 5 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → 𝑥 ∈ (𝐾 ∪ {1, 𝑀}))
22 elun 4112 . . . . 5 (𝑥 ∈ (𝐾 ∪ {1, 𝑀}) ↔ (𝑥𝐾𝑥 ∈ {1, 𝑀}))
2321, 22sylib 221 . . . 4 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝑥𝐾𝑥 ∈ {1, 𝑀}))
241, 2, 3, 4, 5, 6, 7, 8, 10subfacp1lem2b 32488 . . . . . . . 8 ((𝜑𝑥𝐾) → (𝐹𝑥) = (( I ↾ 𝐾)‘𝑥))
25 fvresi 6927 . . . . . . . . 9 (𝑥𝐾 → (( I ↾ 𝐾)‘𝑥) = 𝑥)
2625adantl 485 . . . . . . . 8 ((𝜑𝑥𝐾) → (( I ↾ 𝐾)‘𝑥) = 𝑥)
2724, 26eqtrd 2859 . . . . . . 7 ((𝜑𝑥𝐾) → (𝐹𝑥) = 𝑥)
2827fveq2d 6666 . . . . . 6 ((𝜑𝑥𝐾) → (𝐹‘(𝐹𝑥)) = (𝐹𝑥))
2928, 27eqtrd 2859 . . . . 5 ((𝜑𝑥𝐾) → (𝐹‘(𝐹𝑥)) = 𝑥)
30 vex 3484 . . . . . . 7 𝑥 ∈ V
3130elpr 4574 . . . . . 6 (𝑥 ∈ {1, 𝑀} ↔ (𝑥 = 1 ∨ 𝑥 = 𝑀))
3211simp2d 1140 . . . . . . . . . . 11 (𝜑 → (𝐹‘1) = 𝑀)
3332fveq2d 6666 . . . . . . . . . 10 (𝜑 → (𝐹‘(𝐹‘1)) = (𝐹𝑀))
3411simp3d 1141 . . . . . . . . . 10 (𝜑 → (𝐹𝑀) = 1)
3533, 34eqtrd 2859 . . . . . . . . 9 (𝜑 → (𝐹‘(𝐹‘1)) = 1)
36 2fveq3 6667 . . . . . . . . . 10 (𝑥 = 1 → (𝐹‘(𝐹𝑥)) = (𝐹‘(𝐹‘1)))
37 id 22 . . . . . . . . . 10 (𝑥 = 1 → 𝑥 = 1)
3836, 37eqeq12d 2840 . . . . . . . . 9 (𝑥 = 1 → ((𝐹‘(𝐹𝑥)) = 𝑥 ↔ (𝐹‘(𝐹‘1)) = 1))
3935, 38syl5ibrcom 250 . . . . . . . 8 (𝜑 → (𝑥 = 1 → (𝐹‘(𝐹𝑥)) = 𝑥))
4034fveq2d 6666 . . . . . . . . . 10 (𝜑 → (𝐹‘(𝐹𝑀)) = (𝐹‘1))
4140, 32eqtrd 2859 . . . . . . . . 9 (𝜑 → (𝐹‘(𝐹𝑀)) = 𝑀)
42 2fveq3 6667 . . . . . . . . . 10 (𝑥 = 𝑀 → (𝐹‘(𝐹𝑥)) = (𝐹‘(𝐹𝑀)))
43 id 22 . . . . . . . . . 10 (𝑥 = 𝑀𝑥 = 𝑀)
4442, 43eqeq12d 2840 . . . . . . . . 9 (𝑥 = 𝑀 → ((𝐹‘(𝐹𝑥)) = 𝑥 ↔ (𝐹‘(𝐹𝑀)) = 𝑀))
4541, 44syl5ibrcom 250 . . . . . . . 8 (𝜑 → (𝑥 = 𝑀 → (𝐹‘(𝐹𝑥)) = 𝑥))
4639, 45jaod 856 . . . . . . 7 (𝜑 → ((𝑥 = 1 ∨ 𝑥 = 𝑀) → (𝐹‘(𝐹𝑥)) = 𝑥))
4746imp 410 . . . . . 6 ((𝜑 ∧ (𝑥 = 1 ∨ 𝑥 = 𝑀)) → (𝐹‘(𝐹𝑥)) = 𝑥)
4831, 47sylan2b 596 . . . . 5 ((𝜑𝑥 ∈ {1, 𝑀}) → (𝐹‘(𝐹𝑥)) = 𝑥)
4929, 48jaodan 955 . . . 4 ((𝜑 ∧ (𝑥𝐾𝑥 ∈ {1, 𝑀})) → (𝐹‘(𝐹𝑥)) = 𝑥)
5023, 49syldan 594 . . 3 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝐹‘(𝐹𝑥)) = 𝑥)
5112adantr 484 . . . 4 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → 𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)))
52 f1of 6607 . . . . . 6 (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) → 𝐹:(1...(𝑁 + 1))⟶(1...(𝑁 + 1)))
5312, 52syl 17 . . . . 5 (𝜑𝐹:(1...(𝑁 + 1))⟶(1...(𝑁 + 1)))
5453ffvelrnda 6843 . . . 4 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝐹𝑥) ∈ (1...(𝑁 + 1)))
55 f1ocnvfv 7028 . . . 4 ((𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) ∧ (𝐹𝑥) ∈ (1...(𝑁 + 1))) → ((𝐹‘(𝐹𝑥)) = 𝑥 → (𝐹𝑥) = (𝐹𝑥)))
5651, 54, 55syl2anc 587 . . 3 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → ((𝐹‘(𝐹𝑥)) = 𝑥 → (𝐹𝑥) = (𝐹𝑥)))
5750, 56mpd 15 . 2 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝐹𝑥) = (𝐹𝑥))
5815, 17, 57eqfnfvd 6797 1 (𝜑𝐹 = 𝐹)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wo 844   = wceq 1538  wcel 2115  {cab 2802  wne 3014  wral 3133  {crab 3137  Vcvv 3481  cdif 3917  cun 3918  cin 3919  c0 4277  {csn 4551  {cpr 4553  cop 4557  cmpt 5133   I cid 5447  ccnv 5542  cres 5545   Fn wfn 6339  wf 6340  1-1-ontowf1o 6343  cfv 6344  (class class class)co 7150  Fincfn 8506  1c1 10537   + caddc 10539  cmin 10869  cn 11637  2c2 11692  0cn0 11897  ...cfz 12897  chash 13698
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 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-rep 5177  ax-sep 5190  ax-nul 5197  ax-pow 5254  ax-pr 5318  ax-un 7456  ax-cnex 10592  ax-resscn 10593  ax-1cn 10594  ax-icn 10595  ax-addcl 10596  ax-addrcl 10597  ax-mulcl 10598  ax-mulrcl 10599  ax-mulcom 10600  ax-addass 10601  ax-mulass 10602  ax-distr 10603  ax-i2m1 10604  ax-1ne0 10605  ax-1rid 10606  ax-rnegex 10607  ax-rrecex 10608  ax-cnre 10609  ax-pre-lttri 10610  ax-pre-lttrn 10611  ax-pre-ltadd 10612  ax-pre-mulgt0 10613
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ne 3015  df-nel 3119  df-ral 3138  df-rex 3139  df-reu 3140  df-rmo 3141  df-rab 3142  df-v 3483  df-sbc 3760  df-csb 3868  df-dif 3923  df-un 3925  df-in 3927  df-ss 3937  df-pss 3939  df-nul 4278  df-if 4452  df-pw 4525  df-sn 4552  df-pr 4554  df-tp 4556  df-op 4558  df-uni 4826  df-int 4864  df-iun 4908  df-br 5054  df-opab 5116  df-mpt 5134  df-tr 5160  df-id 5448  df-eprel 5453  df-po 5462  df-so 5463  df-fr 5502  df-we 5504  df-xp 5549  df-rel 5550  df-cnv 5551  df-co 5552  df-dm 5553  df-rn 5554  df-res 5555  df-ima 5556  df-pred 6136  df-ord 6182  df-on 6183  df-lim 6184  df-suc 6185  df-iota 6303  df-fun 6346  df-fn 6347  df-f 6348  df-f1 6349  df-fo 6350  df-f1o 6351  df-fv 6352  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-om 7576  df-1st 7685  df-2nd 7686  df-wrecs 7944  df-recs 8005  df-rdg 8043  df-1o 8099  df-oadd 8103  df-er 8286  df-en 8507  df-dom 8508  df-sdom 8509  df-fin 8510  df-dju 9328  df-card 9366  df-pnf 10676  df-mnf 10677  df-xr 10678  df-ltxr 10679  df-le 10680  df-sub 10871  df-neg 10872  df-nn 11638  df-2 11700  df-n0 11898  df-z 11982  df-uz 12244  df-fz 12898  df-hash 13699
This theorem is referenced by:  subfacp1lem5  32491
  Copyright terms: Public domain W3C validator