| Mathbox for Mario Carneiro |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > subfacval | Structured version Visualization version GIF version | ||
| Description: The subfactorial is defined as the number of derangements (see derangval 35680) of the set (1...𝑁). (Contributed by Mario Carneiro, 21-Jan-2015.) |
| Ref | Expression |
|---|---|
| derang.d | ⊢ 𝐷 = (𝑥 ∈ Fin ↦ (♯‘{𝑓 ∣ (𝑓:𝑥–1-1-onto→𝑥 ∧ ∀𝑦 ∈ 𝑥 (𝑓‘𝑦) ≠ 𝑦)})) |
| subfac.n | ⊢ 𝑆 = (𝑛 ∈ ℕ0 ↦ (𝐷‘(1...𝑛))) |
| Ref | Expression |
|---|---|
| subfacval | ⊢ (𝑁 ∈ ℕ0 → (𝑆‘𝑁) = (𝐷‘(1...𝑁))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | oveq2 7431 | . . 3 ⊢ (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁)) | |
| 2 | 1 | fveq2d 6892 | . 2 ⊢ (𝑛 = 𝑁 → (𝐷‘(1...𝑛)) = (𝐷‘(1...𝑁))) |
| 3 | subfac.n | . 2 ⊢ 𝑆 = (𝑛 ∈ ℕ0 ↦ (𝐷‘(1...𝑛))) | |
| 4 | fvex 6901 | . 2 ⊢ (𝐷‘(1...𝑁)) ∈ V | |
| 5 | 2, 3, 4 | fvmpt 6996 | 1 ⊢ (𝑁 ∈ ℕ0 → (𝑆‘𝑁) = (𝐷‘(1...𝑁))) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 ∧ wa 401 = wceq 1570 ∈ wcel 2146 {cab 2744 ≠ wne 2961 ∀wral 3082 ↦ cmpt 5197 –1-1-onto→wf1o 6542 ‘cfv 6543 (class class class)co 7423 Fincfn 8952 1c1 11119 ℕ0cn0 12522 ...cfz 13553 ♯chash 14386 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1943 ax-6 2000 ax-7 2041 ax-8 2148 ax-9 2156 ax-10 2179 ax-11 2195 ax-12 2216 ax-ext 2738 ax-sep 5262 ax-nul 5274 ax-pr 5409 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2100 df-mo 2570 df-eu 2600 df-clab 2745 df-cleq 2758 df-clel 2841 df-nfc 2915 df-ne 2962 df-ral 3083 df-rex 3093 df-rab 3420 df-v 3460 df-dif 3911 df-un 3913 df-in 3915 df-ss 3925 df-nul 4290 df-if 4493 df-sn 4595 df-pr 4597 df-op 4601 df-uni 4878 df-br 5115 df-opab 5179 df-mpt 5198 df-id 5561 df-xp 5672 df-rel 5673 df-cnv 5674 df-co 5675 df-dm 5676 df-iota 6499 df-fun 6545 df-fv 6551 df-ov 7426 |
| This theorem is used by: derangen2 35687 subfaclefac 35689 subfac0 35690 subfac1 35691 subfacp1lem6 35698 |
| Copyright terms: Public domain | W3C validator |