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

Theorem subfacval 32447
 Description: The subfactorial is defined as the number of derangements (see derangval 32441) 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 7154 . . 3 (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁))
21fveq2d 6663 . 2 (𝑛 = 𝑁 → (𝐷‘(1...𝑛)) = (𝐷‘(1...𝑁)))
3 subfac.n . 2 𝑆 = (𝑛 ∈ ℕ0 ↦ (𝐷‘(1...𝑛)))
4 fvex 6672 . 2 (𝐷‘(1...𝑁)) ∈ V
52, 3, 4fvmpt 6757 1 (𝑁 ∈ ℕ0 → (𝑆𝑁) = (𝐷‘(1...𝑁)))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 399   = wceq 1538   ∈ wcel 2115  {cab 2802   ≠ wne 3014  ∀wral 3133   ↦ cmpt 5133  –1-1-onto→wf1o 6343  ‘cfv 6344  (class class class)co 7146  Fincfn 8501  1c1 10532  ℕ0cn0 11892  ...cfz 12892  ♯chash 13693 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-sep 5190  ax-nul 5197  ax-pr 5318 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  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-ral 3138  df-rex 3139  df-v 3482  df-sbc 3759  df-dif 3922  df-un 3924  df-in 3926  df-ss 3936  df-nul 4277  df-if 4451  df-sn 4551  df-pr 4553  df-op 4557  df-uni 4826  df-br 5054  df-opab 5116  df-mpt 5134  df-id 5448  df-xp 5549  df-rel 5550  df-cnv 5551  df-co 5552  df-dm 5553  df-iota 6303  df-fun 6346  df-fv 6352  df-ov 7149 This theorem is referenced by:  derangen2  32448  subfaclefac  32450  subfac0  32451  subfac1  32452  subfacp1lem6  32459
 Copyright terms: Public domain W3C validator