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

Theorem subfacval 33979
Description: The subfactorial is defined as the number of derangements (see derangval 33973) of the set (1...𝑁). (Contributed by Mario Carneiro, 21-Jan-2015.)
Hypotheses
Ref Expression
derang.d 𝐷 = (𝑥 ∈ Fin ↦ (♯‘{𝑓 ∣ (𝑓:𝑥1-1-onto𝑥 ∧ ∀𝑦𝑥 (𝑓𝑦) ≠ 𝑦)}))
subfac.n 𝑆 = (𝑛 ∈ ℕ0 ↦ (𝐷‘(1...𝑛)))
Assertion
Ref Expression
subfacval (𝑁 ∈ ℕ0 → (𝑆𝑁) = (𝐷‘(1...𝑁)))
Distinct variable groups:   𝑓,𝑛,𝑥,𝑦,𝑁   𝐷,𝑛   𝑆,𝑛,𝑥,𝑦
Allowed substitution hints:   𝐷(𝑥,𝑦,𝑓)   𝑆(𝑓)

Proof of Theorem subfacval
StepHypRef Expression
1 oveq2 7398 . . 3 (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁))
21fveq2d 6879 . 2 (𝑛 = 𝑁 → (𝐷‘(1...𝑛)) = (𝐷‘(1...𝑁)))
3 subfac.n . 2 𝑆 = (𝑛 ∈ ℕ0 ↦ (𝐷‘(1...𝑛)))
4 fvex 6888 . 2 (𝐷‘(1...𝑁)) ∈ V
52, 3, 4fvmpt 6981 1 (𝑁 ∈ ℕ0 → (𝑆𝑁) = (𝐷‘(1...𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1541  wcel 2106  {cab 2708  wne 2939  wral 3060  cmpt 5221  1-1-ontowf1o 6528  cfv 6529  (class class class)co 7390  Fincfn 8919  1c1 11090  0cn0 12451  ...cfz 13463  chash 14269
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2702  ax-sep 5289  ax-nul 5296  ax-pr 5417
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2533  df-eu 2562  df-clab 2709  df-cleq 2723  df-clel 2809  df-nfc 2884  df-ne 2940  df-ral 3061  df-rex 3070  df-rab 3430  df-v 3472  df-dif 3944  df-un 3946  df-in 3948  df-ss 3958  df-nul 4316  df-if 4520  df-sn 4620  df-pr 4622  df-op 4626  df-uni 4899  df-br 5139  df-opab 5201  df-mpt 5222  df-id 5564  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-iota 6481  df-fun 6531  df-fv 6537  df-ov 7393
This theorem is referenced by:  derangen2  33980  subfaclefac  33982  subfac0  33983  subfac1  33984  subfacp1lem6  33991
  Copyright terms: Public domain W3C validator