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.
All nine derangements of a four-element set listed, and the count checked against the formula and both recurrences
Example
Take and write a bijection as the tuple . The derangements of (The derangement number : the number of bijections of an -element set with no fixed point) are exactly
so . Each tuple lists four distinct values, hence is a bijection, and no entry equals its position.
Against the formula. , with the term at equal to and gives
Against the two recurrences. The earlier values are , , and, by the first recurrence, . Then for , and for gives from its first clause, and from its second.
Facts & Assumptions
Given: , the tuple notation above, and the canonical natural (The canonical natural of a field).
(The cardinality of a finite set, clause (a)), so (A finite set with has exactly bijections onto itself, and bijections onto any set of the same cardinality, The factorial and the falling factorial , defined by recursion in ); and a tuple of four distinct entries drawn from is a bijection , a function on a finite set being injective exactly when it is a bijection (Injection, surjection, bijection, A subset of a finite set is finite, with , and equality holds if and only if , clause 4).
For every finite set , is the set of bijections with for every , and ; hence because (The derangement number : the number of bijections of an -element set with no fixed point, The cardinality of a finite set, clause (a)). The values , and are also recorded in the cited definition.
For every , . For , ; and for , (, with the term at equal to and , for , and for ).
Factorials: , , , , (The factorial and the falling factorial , defined by recursion in ).
Real finite sums and the arithmetic of : recursion clause, additivity and scaling (Finite sums and finite products, by recursion, Laws of finite sums and finite products, Ordered field); and , (Integer powers ).
Cardinality of a listed set with distinct entries (The cardinality of a finite set, clauses (a) and (c)).
The canonical natural is additive, multiplicative and injective (Laws of finite sums and products in , and , clauses 0 and 7).
Verification
Each of the nine listed tuples has four distinct entries and no entry equal to its position, so each is a derangement of by [L1] and [L2]; and the nine tuples are pairwise distinct, so the listed set has nine elements by [L6].
The enumeration is complete, and the cases are indexed by the value , which is , or since .
Case . Then . If the remaining values go to positions and with , forcing . If the remaining values are with , forcing . If the remaining values are with , forcing .
Case . Then . If the remaining values go to positions and with , forcing . If the remaining values are and neither placement is excluded, giving and .
Case . Then . If the remaining values go to positions and with , forcing . If the remaining values are and neither placement is excluded, giving and .
The three cases are exhaustive and produce exactly the nine listed tuples, so .
Against the formula. By [L3] and [L4], ; the bracket is by [L5], so , matching step 3.1.
Against the recurrences. By [L2] and the first clause of [L3], , so by injectivity of . Then ; by the second clause, . Both match step 3.1.
The list, the formula and the two recurrences therefore all give .
Remarks
-
The case analysis is on and then on , and the remaining two positions are then forced or free according to whether the two leftover values can be placed without creating a fixed point. Where exactly one placement avoids a fixed point the tuple is determined; where both do, the subcase splits. The branching pattern therefore differs between the cases even though each contributes the same number of derangements.
-
The recurrences are checked at their first legal indices too. The first recurrence is used at and at , both at least ; the second at , which is at least . Neither is evaluated where its hypothesis fails.
Depends on
- The derangement number $D_n$: the number of bijections of an $n$-element set with no fixed point
- $\iota(D_n) = \iota(n!)\sum_{i<n+1}(-1)^{i}/\iota(i!)$, with the term at $i = 0$ equal to $1$ and $D_0 = 1$
- $\iota(D_n) = \iota(n)\,\iota(D_{n-1}) + (-1)^{n}$ for $n \ge 1$, and $D_n = (n-1)(D_{n-1} + D_{n-2})$ for $n \ge 2$
- A finite set $A$ with $\lvert A\rvert = n$ has exactly $n!$ bijections onto itself, and $n!$ bijections onto any set of the same cardinality
- The factorial $n!$ and the falling factorial $n^{\underline{k}}$, defined by recursion in $\mathbb{N}$
- The canonical natural $\iota(n) = n \cdot 1_F$ of a field
- Integer powers $a^m$
- The cardinality $\lvert A\rvert$ of a finite set
- Finite sums and finite products, by recursion
- Laws of finite sums and finite products
- Injection, surjection, bijection
- Ordered field
- A subset of a finite set is finite, with $\lvert B\rvert \le \lvert A\rvert$, and equality holds if and only if $B = A$
- Laws of finite sums and products in $\mathbb{N}$, and $\iota\big(\sum_{k<n} a_k\big) = \sum_{k<n} \iota(a_k)$
Used by
Nothing in the library uses this result yet.
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 96 results over 32 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
- Derangement (Wikipedia) (standard reference, not scraped)
- Rencontres numbers (Wikipedia) (standard reference, not scraped)
- Principle of Inclusion and Exclusion (Open Math Books) (standard reference, not scraped)