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 31291
Description: Lemma for subfacp1 31294. 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 6212 . . . . . 6 ( I ↾ 𝐾):𝐾1-1-onto𝐾
109a1i 11 . . . . 5 (𝜑 → ( I ↾ 𝐾):𝐾1-1-onto𝐾)
111, 2, 3, 4, 5, 6, 7, 8, 10subfacp1lem2a 31288 . . . 4 (𝜑 → (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) ∧ (𝐹‘1) = 𝑀 ∧ (𝐹𝑀) = 1))
1211simp1d 1093 . . 3 (𝜑𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)))
13 f1ocnv 6187 . . 3 (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) → 𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)))
14 f1ofn 6176 . . 3 (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) → 𝐹 Fn (1...(𝑁 + 1)))
1512, 13, 143syl 18 . 2 (𝜑𝐹 Fn (1...(𝑁 + 1)))
16 f1ofn 6176 . . 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 31287 . . . . . . . 8 (𝜑 → ((𝐾 ∩ {1, 𝑀}) = ∅ ∧ (𝐾 ∪ {1, 𝑀}) = (1...(𝑁 + 1)) ∧ (#‘𝐾) = (𝑁 − 1)))
1918simp2d 1094 . . . . . . 7 (𝜑 → (𝐾 ∪ {1, 𝑀}) = (1...(𝑁 + 1)))
2019eleq2d 2716 . . . . . 6 (𝜑 → (𝑥 ∈ (𝐾 ∪ {1, 𝑀}) ↔ 𝑥 ∈ (1...(𝑁 + 1))))
2120biimpar 501 . . . . 5 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → 𝑥 ∈ (𝐾 ∪ {1, 𝑀}))
22 elun 3786 . . . . 5 (𝑥 ∈ (𝐾 ∪ {1, 𝑀}) ↔ (𝑥𝐾𝑥 ∈ {1, 𝑀}))
2321, 22sylib 208 . . . 4 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝑥𝐾𝑥 ∈ {1, 𝑀}))
241, 2, 3, 4, 5, 6, 7, 8, 10subfacp1lem2b 31289 . . . . . . . 8 ((𝜑𝑥𝐾) → (𝐹𝑥) = (( I ↾ 𝐾)‘𝑥))
25 fvresi 6480 . . . . . . . . 9 (𝑥𝐾 → (( I ↾ 𝐾)‘𝑥) = 𝑥)
2625adantl 481 . . . . . . . 8 ((𝜑𝑥𝐾) → (( I ↾ 𝐾)‘𝑥) = 𝑥)
2724, 26eqtrd 2685 . . . . . . 7 ((𝜑𝑥𝐾) → (𝐹𝑥) = 𝑥)
2827fveq2d 6233 . . . . . 6 ((𝜑𝑥𝐾) → (𝐹‘(𝐹𝑥)) = (𝐹𝑥))
2928, 27eqtrd 2685 . . . . 5 ((𝜑𝑥𝐾) → (𝐹‘(𝐹𝑥)) = 𝑥)
30 vex 3234 . . . . . . 7 𝑥 ∈ V
3130elpr 4231 . . . . . 6 (𝑥 ∈ {1, 𝑀} ↔ (𝑥 = 1 ∨ 𝑥 = 𝑀))
3211simp2d 1094 . . . . . . . . . . 11 (𝜑 → (𝐹‘1) = 𝑀)
3332fveq2d 6233 . . . . . . . . . 10 (𝜑 → (𝐹‘(𝐹‘1)) = (𝐹𝑀))
3411simp3d 1095 . . . . . . . . . 10 (𝜑 → (𝐹𝑀) = 1)
3533, 34eqtrd 2685 . . . . . . . . 9 (𝜑 → (𝐹‘(𝐹‘1)) = 1)
36 fveq2 6229 . . . . . . . . . . 11 (𝑥 = 1 → (𝐹𝑥) = (𝐹‘1))
3736fveq2d 6233 . . . . . . . . . 10 (𝑥 = 1 → (𝐹‘(𝐹𝑥)) = (𝐹‘(𝐹‘1)))
38 id 22 . . . . . . . . . 10 (𝑥 = 1 → 𝑥 = 1)
3937, 38eqeq12d 2666 . . . . . . . . 9 (𝑥 = 1 → ((𝐹‘(𝐹𝑥)) = 𝑥 ↔ (𝐹‘(𝐹‘1)) = 1))
4035, 39syl5ibrcom 237 . . . . . . . 8 (𝜑 → (𝑥 = 1 → (𝐹‘(𝐹𝑥)) = 𝑥))
4134fveq2d 6233 . . . . . . . . . 10 (𝜑 → (𝐹‘(𝐹𝑀)) = (𝐹‘1))
4241, 32eqtrd 2685 . . . . . . . . 9 (𝜑 → (𝐹‘(𝐹𝑀)) = 𝑀)
43 fveq2 6229 . . . . . . . . . . 11 (𝑥 = 𝑀 → (𝐹𝑥) = (𝐹𝑀))
4443fveq2d 6233 . . . . . . . . . 10 (𝑥 = 𝑀 → (𝐹‘(𝐹𝑥)) = (𝐹‘(𝐹𝑀)))
45 id 22 . . . . . . . . . 10 (𝑥 = 𝑀𝑥 = 𝑀)
4644, 45eqeq12d 2666 . . . . . . . . 9 (𝑥 = 𝑀 → ((𝐹‘(𝐹𝑥)) = 𝑥 ↔ (𝐹‘(𝐹𝑀)) = 𝑀))
4742, 46syl5ibrcom 237 . . . . . . . 8 (𝜑 → (𝑥 = 𝑀 → (𝐹‘(𝐹𝑥)) = 𝑥))
4840, 47jaod 394 . . . . . . 7 (𝜑 → ((𝑥 = 1 ∨ 𝑥 = 𝑀) → (𝐹‘(𝐹𝑥)) = 𝑥))
4948imp 444 . . . . . 6 ((𝜑 ∧ (𝑥 = 1 ∨ 𝑥 = 𝑀)) → (𝐹‘(𝐹𝑥)) = 𝑥)
5031, 49sylan2b 491 . . . . 5 ((𝜑𝑥 ∈ {1, 𝑀}) → (𝐹‘(𝐹𝑥)) = 𝑥)
5129, 50jaodan 843 . . . 4 ((𝜑 ∧ (𝑥𝐾𝑥 ∈ {1, 𝑀})) → (𝐹‘(𝐹𝑥)) = 𝑥)
5223, 51syldan 486 . . 3 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝐹‘(𝐹𝑥)) = 𝑥)
5312adantr 480 . . . 4 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → 𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)))
54 f1of 6175 . . . . . 6 (𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) → 𝐹:(1...(𝑁 + 1))⟶(1...(𝑁 + 1)))
5512, 54syl 17 . . . . 5 (𝜑𝐹:(1...(𝑁 + 1))⟶(1...(𝑁 + 1)))
5655ffvelrnda 6399 . . . 4 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝐹𝑥) ∈ (1...(𝑁 + 1)))
57 f1ocnvfv 6574 . . . 4 ((𝐹:(1...(𝑁 + 1))–1-1-onto→(1...(𝑁 + 1)) ∧ (𝐹𝑥) ∈ (1...(𝑁 + 1))) → ((𝐹‘(𝐹𝑥)) = 𝑥 → (𝐹𝑥) = (𝐹𝑥)))
5853, 56, 57syl2anc 694 . . 3 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → ((𝐹‘(𝐹𝑥)) = 𝑥 → (𝐹𝑥) = (𝐹𝑥)))
5952, 58mpd 15 . 2 ((𝜑𝑥 ∈ (1...(𝑁 + 1))) → (𝐹𝑥) = (𝐹𝑥))
6015, 17, 59eqfnfvd 6354 1 (𝜑𝐹 = 𝐹)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wo 382  wa 383   = wceq 1523  wcel 2030  {cab 2637  wne 2823  wral 2941  {crab 2945  Vcvv 3231  cdif 3604  cun 3605  cin 3606  c0 3948  {csn 4210  {cpr 4212  cop 4216  cmpt 4762   I cid 5052  ccnv 5142  cres 5145   Fn wfn 5921  wf 5922  1-1-ontowf1o 5925  cfv 5926  (class class class)co 6690  Fincfn 7997  1c1 9975   + caddc 9977  cmin 10304  cn 11058  2c2 11108  0cn0 11330  ...cfz 12364  #chash 13157
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991  ax-cnex 10030  ax-resscn 10031  ax-1cn 10032  ax-icn 10033  ax-addcl 10034  ax-addrcl 10035  ax-mulcl 10036  ax-mulrcl 10037  ax-mulcom 10038  ax-addass 10039  ax-mulass 10040  ax-distr 10041  ax-i2m1 10042  ax-1ne0 10043  ax-1rid 10044  ax-rnegex 10045  ax-rrecex 10046  ax-cnre 10047  ax-pre-lttri 10048  ax-pre-lttrn 10049  ax-pre-ltadd 10050  ax-pre-mulgt0 10051
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1055  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-nel 2927  df-ral 2946  df-rex 2947  df-reu 2948  df-rmo 2949  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-pss 3623  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-tp 4215  df-op 4217  df-uni 4469  df-int 4508  df-iun 4554  df-br 4686  df-opab 4746  df-mpt 4763  df-tr 4786  df-id 5053  df-eprel 5058  df-po 5064  df-so 5065  df-fr 5102  df-we 5104  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-pred 5718  df-ord 5764  df-on 5765  df-lim 5766  df-suc 5767  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-riota 6651  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-om 7108  df-1st 7210  df-2nd 7211  df-wrecs 7452  df-recs 7513  df-rdg 7551  df-1o 7605  df-oadd 7609  df-er 7787  df-en 7998  df-dom 7999  df-sdom 8000  df-fin 8001  df-card 8803  df-cda 9028  df-pnf 10114  df-mnf 10115  df-xr 10116  df-ltxr 10117  df-le 10118  df-sub 10306  df-neg 10307  df-nn 11059  df-2 11117  df-n0 11331  df-z 11416  df-uz 11726  df-fz 12365  df-hash 13158
This theorem is referenced by:  subfacp1lem5  31292
  Copyright terms: Public domain W3C validator