Alphabeta Math
CorollaryStatement: Literature-sourcedProof: AI-generatedSession-authored (Fable 5 assisted)precheck passjudge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

ι(Dn)=ι(n)ι(Dn1)+(1)n\iota(D_n) = \iota(n)\,\iota(D_{n-1}) + (-1)^{n} for n1n \ge 1, and Dn=(n1)(Dn1+Dn2)D_n = (n-1)(D_{n-1} + D_{n-2}) for n2n \ge 2

Statement

Let DnD_n be the derangement numbers (The derangement number DnD_n: the number of bijections of an nn-element set with no fixed point) and ι\iota the canonical natural (The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field). Then:

  1. For every n1n \ge 1, in R\mathbb{R}, ι(Dn)  =  ι(n)ι(Dn1)+(1)n.\iota(D_n) \;=\; \iota(n)\,\iota(D_{n-1}) + (-1)^{n} .
  2. For every n2n \ge 2, in N\mathbb{N}, Dn  =  (n1)(Dn1+Dn2).D_n \;=\; (n-1)\,\big(D_{n-1} + D_{n-2}\big).

All differences are the truncated ones (Finite sums and finite products of natural numbers, k<nak\sum_{k<n} a_k and k<nak\prod_{k<n} a_k in N\mathbb{N}), which in the stated ranges are the ordinary ones.

Both hypotheses are exactly what the proofs need, and nothing is asserted outside them. Clause 1 is proved from the identity n=(n1)+1n = (n-1)+1 and its consequence n!=(n1)!nn! = (n-1)!\cdot n, both of which fail at n=0n = 0 under the truncated difference, where n1n-1 is 00; so n=1n = 1 is its first legal index, and there it reads ι(D1)=ι(1)ι(D0)1=0\iota(D_1) = \iota(1)\,\iota(D_0) - 1 = 0. Clause 2 is derived by applying clause 1 twice, at nn and at n1n-1, so it needs n11n - 1 \ge 1; its first legal index is n=2n = 2, where it reads D2=1(D1+D0)=1D_2 = 1\cdot(D_1 + D_0) = 1. Under the truncated difference the two displayed formulas happen also to be true at n=0n = 0 and at n=1n = 1 respectively, both sides being 11 in the first case and 00 in the second, but neither of those readings is proved here and neither is claimed.

Facts & Assumptions

Given: A natural number nn with n1n \ge 1 in clause 1 and n2n \ge 2 in clause 2; the abbreviation p:=n1p := n-1, so that p+1=np + 1 = n (Order on the natural numbers, Finite sums and finite products of natural numbers, k<nak\sum_{k<n} a_k and k<nak\prod_{k<n} a_k in N\mathbb{N}, Every nonzero natural number is a successor).

[L1]

The derangement formula: ι(Dm)=ι(m!)i<m+1(1)i/ι(i!)\iota(D_m) = \iota(m!)\sum_{i<m+1}(-1)^{i}/\iota(i!) for every mNm \in \mathbb{N} (ι(Dn)=ι(n!)i<n+1(1)i/ι(i!)\iota(D_n) = \iota(n!)\sum_{i<n+1}(-1)^{i}/\iota(i!), with the term at i=0i = 0 equal to 11 and D0=1D_0 = 1).

[L2]

Recursion clause of the real finite sum: i<q+1ui=i<qui+uq\sum_{i<q+1}u_i = \sum_{i<q}u_i + u_q (Finite sums and finite products, by recursion, Laws of finite sums and finite products).

[L3]

Factorials: σ(m)!=m!σ(m)\sigma(m)! = m!\cdot\sigma(m), so n!=p!nn! = p!\cdot n when p+1=np+1 = n; and m!0m! \ne 0 for every mm (The factorial n!n! and the falling factorial nkn^{\underline{k}}, defined by recursion in N\mathbb{N}).

[L4]

ι\iota is additive and multiplicative with ι(1)=1\iota(1) = 1, and it is injective (Laws of finite sums and products in N\mathbb{N}, and ι(k<nak)=k<nι(ak)\iota\big(\sum_{k<n} a_k\big) = \sum_{k<n} \iota(a_k), clauses 0 and 7, The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field). In particular ι(n)1=ι(p)\iota(n) - 1 = \iota(p) when p+1=np+1 = n, and ι(m!)0\iota(m!) \ne 0.

[L5]

Powers of 1-1: (1)0=1(-1)^{0} = 1 and (1)q+1=(1)q(-1)^{q+1} = -(-1)^{q} (Integer powers ama^m).

[L6]

R\mathbb{R} is an ordered field, so subtraction and division by a nonzero element are available (Ordered field, Field).

Proof

technique · direct
1.1

Let n1n \ge 1 and put p:=n1p := n-1, so p+1=np+1 = n. Then n!=p!nn! = p!\cdot n by [L3], hence ι(n!)=ι(p!)ι(n)\iota(n!) = \iota(p!)\,\iota(n) by [L4], and both ι(n!)\iota(n!) and ι(p!)\iota(p!) are nonzero.

givenL3L4
1.2

The formula at pp. By [L1] and p+1=np+1 = n, ι(Dp)=ι(p!)i<n(1)i/ι(i!)\iota(D_p) = \iota(p!)\sum_{i<n}(-1)^{i}/\iota(i!).

L1
1.3

Splitting the sum at its last index. By [L2], i<n+1(1)i/ι(i!)=i<n(1)i/ι(i!)+(1)n/ι(n!)\sum_{i<n+1}(-1)^{i}/\iota(i!) = \sum_{i<n}(-1)^{i}/\iota(i!) + (-1)^{n}/\iota(n!).

L2
2.1

Clause 1. Multiplying step 1.3 by ι(n!)\iota(n!) and using [L1] at m=nm = n, step 1.1 and step 1.2, ι(Dn)=ι(n!)i<n(1)i/ι(i!)+(1)n=ι(n)ι(p!)i<n(1)i/ι(i!)+(1)n=ι(n)ι(Dp)+(1)n\iota(D_n) = \iota(n!)\sum_{i<n}(-1)^{i}/\iota(i!) + (-1)^{n} = \iota(n)\,\iota(p!)\sum_{i<n}(-1)^{i}/\iota(i!) + (-1)^{n} = \iota(n)\,\iota(D_p) + (-1)^{n}.

step 1.1step 1.2step 1.3L1L6
3.1

Now let n2n \ge 2, so that p=n11p = n-1 \ge 1 and p1=n2p - 1 = n-2. Applying step 2.1 at pp in place of nn gives ι(Dp)=ι(p)ι(Dn2)+(1)p\iota(D_p) = \iota(p)\,\iota(D_{n-2}) + (-1)^{p}, hence (1)p=ι(Dp)ι(p)ι(Dn2)(-1)^{p} = \iota(D_p) - \iota(p)\,\iota(D_{n-2}); and (1)n=(1)p+1=(1)p(-1)^{n} = (-1)^{p+1} = -(-1)^{p} by [L5], so (1)n=ι(p)ι(Dn2)ι(Dp)(-1)^{n} = \iota(p)\,\iota(D_{n-2}) - \iota(D_p).

step 2.1L5L6
4.1

Clause 2. Substituting step 3.1 into step 2.1, ι(Dn)=ι(n)ι(Dp)ι(Dp)+ι(p)ι(Dn2)=(ι(n)1)ι(Dp)+ι(p)ι(Dn2)=ι(p)(ι(Dp)+ι(Dn2))\iota(D_n) = \iota(n)\,\iota(D_p) - \iota(D_p) + \iota(p)\,\iota(D_{n-2}) = \big(\iota(n)-1\big)\iota(D_p) + \iota(p)\,\iota(D_{n-2}) = \iota(p)\big(\iota(D_p) + \iota(D_{n-2})\big), using ι(n)1=ι(p)\iota(n)-1 = \iota(p) from [L4]; the right-hand side is ι(p(Dn1+Dn2))\iota\big(p\,(D_{n-1} + D_{n-2})\big) by the additivity and multiplicativity of ι\iota, so Dn=(n1)(Dn1+Dn2)D_n = (n-1)(D_{n-1} + D_{n-2}) by injectivity.

step 2.1step 3.1L4L6algebra

Remarks

  • Clause 2 is derived from clause 1 and not from the formula. Two instances of clause 1, at nn and at n1n-1, are enough, and that is why clause 2 begins one index later: the second instance needs n11n-1 \ge 1.

  • Why clause 1 is stated in R\mathbb{R} and clause 2 in N\mathbb{N}. Clause 1 carries the term (1)n(-1)^{n}, which is not a natural number when nn is odd. Clause 2 has no signs left in it, both sides are counts, and injectivity of ι\iota carries the identity back into N\mathbb{N} where it belongs.

  • The truncated difference is why the hypotheses have to be written out. Under it the symbols Dn1D_{n-1} and Dn2D_{n-2} never become ill formed: at n=0n = 0 the first reads D0D_0 and at n=1n = 1 the second reads D0D_0 as well. So a reader cannot tell from the shape of the formula where it stops being proved, and the ranges n1n \ge 1 and n2n \ge 2 have to be stated rather than inferred.

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 89 results over 28 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources