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

Theorem derangsn 32035
Description: The derangement number of a singleton. (Contributed by Mario Carneiro, 19-Jan-2015.)
Hypothesis
Ref Expression
derang.d 𝐷 = (𝑥 ∈ Fin ↦ (♯‘{𝑓 ∣ (𝑓:𝑥1-1-onto𝑥 ∧ ∀𝑦𝑥 (𝑓𝑦) ≠ 𝑦)}))
Assertion
Ref Expression
derangsn (𝐴𝑉 → (𝐷‘{𝐴}) = 0)
Distinct variable groups:   𝑥,𝑓,𝑦,𝐴   𝑓,𝑉
Allowed substitution hints:   𝐷(𝑥,𝑦,𝑓)   𝑉(𝑥,𝑦)

Proof of Theorem derangsn
StepHypRef Expression
1 snfi 8390 . . . 4 {𝐴} ∈ Fin
2 derang.d . . . . 5 𝐷 = (𝑥 ∈ Fin ↦ (♯‘{𝑓 ∣ (𝑓:𝑥1-1-onto𝑥 ∧ ∀𝑦𝑥 (𝑓𝑦) ≠ 𝑦)}))
32derangval 32032 . . . 4 ({𝐴} ∈ Fin → (𝐷‘{𝐴}) = (♯‘{𝑓 ∣ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)}))
41, 3ax-mp 5 . . 3 (𝐷‘{𝐴}) = (♯‘{𝑓 ∣ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)})
5 f1of 6442 . . . . . . . . . 10 (𝑓:{𝐴}–1-1-onto→{𝐴} → 𝑓:{𝐴}⟶{𝐴})
65adantr 473 . . . . . . . . 9 ((𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦) → 𝑓:{𝐴}⟶{𝐴})
7 snidg 4468 . . . . . . . . 9 (𝐴𝑉𝐴 ∈ {𝐴})
8 ffvelrn 6673 . . . . . . . . 9 ((𝑓:{𝐴}⟶{𝐴} ∧ 𝐴 ∈ {𝐴}) → (𝑓𝐴) ∈ {𝐴})
96, 7, 8syl2anr 588 . . . . . . . 8 ((𝐴𝑉 ∧ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)) → (𝑓𝐴) ∈ {𝐴})
10 simpr 477 . . . . . . . . . 10 ((𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦) → ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)
11 fveq2 6497 . . . . . . . . . . . 12 (𝑦 = 𝐴 → (𝑓𝑦) = (𝑓𝐴))
12 id 22 . . . . . . . . . . . 12 (𝑦 = 𝐴𝑦 = 𝐴)
1311, 12neeq12d 3023 . . . . . . . . . . 11 (𝑦 = 𝐴 → ((𝑓𝑦) ≠ 𝑦 ↔ (𝑓𝐴) ≠ 𝐴))
1413rspcva 3528 . . . . . . . . . 10 ((𝐴 ∈ {𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦) → (𝑓𝐴) ≠ 𝐴)
157, 10, 14syl2an 587 . . . . . . . . 9 ((𝐴𝑉 ∧ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)) → (𝑓𝐴) ≠ 𝐴)
16 nelsn 4474 . . . . . . . . 9 ((𝑓𝐴) ≠ 𝐴 → ¬ (𝑓𝐴) ∈ {𝐴})
1715, 16syl 17 . . . . . . . 8 ((𝐴𝑉 ∧ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)) → ¬ (𝑓𝐴) ∈ {𝐴})
189, 17pm2.21dd 187 . . . . . . 7 ((𝐴𝑉 ∧ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)) → 𝑓 ∈ ∅)
1918ex 405 . . . . . 6 (𝐴𝑉 → ((𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦) → 𝑓 ∈ ∅))
2019abssdv 3930 . . . . 5 (𝐴𝑉 → {𝑓 ∣ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)} ⊆ ∅)
21 ss0 4233 . . . . 5 ({𝑓 ∣ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)} ⊆ ∅ → {𝑓 ∣ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)} = ∅)
2220, 21syl 17 . . . 4 (𝐴𝑉 → {𝑓 ∣ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)} = ∅)
2322fveq2d 6501 . . 3 (𝐴𝑉 → (♯‘{𝑓 ∣ (𝑓:{𝐴}–1-1-onto→{𝐴} ∧ ∀𝑦 ∈ {𝐴} (𝑓𝑦) ≠ 𝑦)}) = (♯‘∅))
244, 23syl5eq 2821 . 2 (𝐴𝑉 → (𝐷‘{𝐴}) = (♯‘∅))
25 hash0 13542 . 2 (♯‘∅) = 0
2624, 25syl6eq 2825 1 (𝐴𝑉 → (𝐷‘{𝐴}) = 0)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 387   = wceq 1508  wcel 2051  {cab 2753  wne 2962  wral 3083  wss 3824  c0 4173  {csn 4436  cmpt 5005  wf 6182  1-1-ontowf1o 6185  cfv 6186  Fincfn 8305  0cc0 10334  chash 13504
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1759  ax-4 1773  ax-5 1870  ax-6 1929  ax-7 1966  ax-8 2053  ax-9 2060  ax-10 2080  ax-11 2094  ax-12 2107  ax-13 2302  ax-ext 2745  ax-sep 5057  ax-nul 5064  ax-pow 5116  ax-pr 5183  ax-un 7278  ax-cnex 10390  ax-resscn 10391  ax-1cn 10392  ax-icn 10393  ax-addcl 10394  ax-addrcl 10395  ax-mulcl 10396  ax-mulrcl 10397  ax-mulcom 10398  ax-addass 10399  ax-mulass 10400  ax-distr 10401  ax-i2m1 10402  ax-1ne0 10403  ax-1rid 10404  ax-rnegex 10405  ax-rrecex 10406  ax-cnre 10407  ax-pre-lttri 10408  ax-pre-lttrn 10409  ax-pre-ltadd 10410  ax-pre-mulgt0 10411
This theorem depends on definitions:  df-bi 199  df-an 388  df-or 835  df-3or 1070  df-3an 1071  df-tru 1511  df-ex 1744  df-nf 1748  df-sb 2017  df-mo 2548  df-eu 2585  df-clab 2754  df-cleq 2766  df-clel 2841  df-nfc 2913  df-ne 2963  df-nel 3069  df-ral 3088  df-rex 3089  df-reu 3090  df-rab 3092  df-v 3412  df-sbc 3677  df-csb 3782  df-dif 3827  df-un 3829  df-in 3831  df-ss 3838  df-pss 3840  df-nul 4174  df-if 4346  df-pw 4419  df-sn 4437  df-pr 4439  df-tp 4441  df-op 4443  df-uni 4710  df-int 4747  df-iun 4791  df-br 4927  df-opab 4989  df-mpt 5006  df-tr 5028  df-id 5309  df-eprel 5314  df-po 5323  df-so 5324  df-fr 5363  df-we 5365  df-xp 5410  df-rel 5411  df-cnv 5412  df-co 5413  df-dm 5414  df-rn 5415  df-res 5416  df-ima 5417  df-pred 5984  df-ord 6030  df-on 6031  df-lim 6032  df-suc 6033  df-iota 6150  df-fun 6188  df-fn 6189  df-f 6190  df-f1 6191  df-fo 6192  df-f1o 6193  df-fv 6194  df-riota 6936  df-ov 6978  df-oprab 6979  df-mpo 6980  df-om 7396  df-1st 7500  df-2nd 7501  df-wrecs 7749  df-recs 7811  df-rdg 7849  df-1o 7904  df-er 8088  df-en 8306  df-dom 8307  df-sdom 8308  df-fin 8309  df-card 9161  df-pnf 10475  df-mnf 10476  df-xr 10477  df-ltxr 10478  df-le 10479  df-sub 10671  df-neg 10672  df-nn 11439  df-n0 11707  df-z 11793  df-uz 12058  df-fz 12708  df-hash 13505
This theorem is referenced by:  subfac1  32043
  Copyright terms: Public domain W3C validator