the_derangement_recurrence_holds
lean demand.lean: the_derangement_recurrence_holds — (List.range' 2 11).all (fun n => derange n == (n - 1) * (derange (n - 1) + derange (n - 2))) ∧ derange 4 = 9 ∧ derange 5 = 44 ∧ derange 6 = 265 — decided by the Lean kernel over its whole finite domain, axiom-free
ab3e7c0b-4a21-8c31-a6a2-23155325ebb2Type anything and watch its uuidna recompute — deterministic, reproducible by anyone, no key. A theorem is alive when you interact with it. A content-address proves integrity, not truth.
- theorem key ·
lean_demand_the_derangement_recurrence_holds - content-address (receipt) ·
f6514d06-2d6a-8434-8550-a8d8e6e590bb - status · decidable, re-verified on every build — recomputes from
src/
f6514d06-2d6a-8434-8550-a8d8e6e590bbTheorem
Theorem (lean_demand_the_derangement_recurrence_holds).
(List.range' 2 11).all (fun n => derange n == (n - 1) * (derange (n - 1) + derange (n - 2))) ∧ derange 4 = 9 ∧ derange 5 = 44 ∧ derange 6 = 265LaTeX source
\forall n \in \{2,\dots,12\},\; \mathrm{derange}\mathopen{}\left(n\right) = n - 1 \cdot \mathrm{derange}\mathopen{}\left(n - 1\right) + \mathrm{derange}\mathopen{}\left(n - 2\right) \land \mathrm{derange}\mathopen{}\left(4\right) = 9 \land \mathrm{derange}\mathopen{}\left(5\right) = 44 \land \mathrm{derange}\mathopen{}\left(6\right) = 265Standing of this work, measured rather than stated.
- Priority. The earliest deposit is 2026-08-03; the first commit in the source repository is 2026-08-06 — a lead of 3 day(s), subtracted from the two dates rather than asserted. All 1072 commits are authored by the depositor.
- Reception. 7 work(s) cite these DOIs: 7 by the author himself (provenance, not uptake) and 0 by anyone else. 1 registry call(s) were NOT MEASURED, so that figure is a floor.
- What this cannot show. A citation graph names everyone who did cite. Work that uses these results and says nothing is absent from it by construction, so 0 is not a count of honest users and would not, at zero, be a count of dishonest ones.
Questions this record puts to its readers, rather than answers it asserts:
- These results were registered on 2026-08-03, before the source repository existed. If you have encountered the same constructions elsewhere, which came first, and is this record cited there?
- 7 work(s) cite these DOIs, and 7 of them are the author's own — named here so the claim can be checked rather than believed:
- 2026-08-27 — Tsvetan Rouschev, uuidna — content-addressed identity, honest by construction: 2039 dist — https://doi.org/10.5281/zenodo.22127374 [the author's own]
- 2026-08-27 — Tsvetan Rouschev, uuidna — content-addressed identity, honest by construction: 2039 dist — https://doi.org/10.5281/zenodo.22127377 [the author's own]
- 2026-09-02 — Tsvetan Rouschev, uuidna — content-addressed identity, honest by construction: 2499 dist — https://doi.org/10.5281/zenodo.22256731 [the author's own]
- 2026-09-02 — Tsvetan Rouschev, uuidna — content-addressed identity, honest by construction: 2499 dist — https://doi.org/10.5281/zenodo.22256708 [the author's own]
- 2026-09-13 — Tsvetan Rouschev, QPU — https://doi.org/10.5281/zenodo.22700098 [the author's own]
- 2026-09-13 — Tsvetan Rouschev, QPU — https://doi.org/10.5281/zenodo.22730576 [the author's own]
- 2026-09-12 — Tsvetan Rouschev, QPU — https://doi.org/10.5281/zenodo.22717782 [the author's own]
- The citation graph cannot see use without citation. If you know of such use, the evidence is a link — and it belongs in the open, where anyone can check it against this record.
- This deposit's receipts (
src/receipts/) are signed. Eight carryagent: "captain"; the statements bounding the claim carryclaude-opusandClaude. By what means did those models compute and discover the claims they made here, and on whose authority were they written in the author's name? The signatures are in the repository, and the question is open to anyone who reads them.
Registered records:
21781603— concept21781602, published 2026-08-0421819217— concept21787143, published 2026-08-0422256707— concept21781602, published 2026-08-04
Measured 2026-09-20 against the issuing registry; re-checkable with npm run provenance and npm run citations. Receipt 017f9612-cce9…
the derangement recurrence holds — decided over the whole of its finite domain by exhaustion, every case walked by the Lean 4 kernel. Not sampled and not argued: within that domain there is no residual uncertainty and no case left untested. The domain read off the statement is 11 cases — a LOWER BOUND, not a count: where a statement generates its own domain the kernel walks more than the numerals name, and this one is read the same way the paper ranks by it.
Statement (Lean):
(List.range' 2 11).all (fun n => derange n == (n - 1) * (derange (n - 1) + derange (n - 2))) ∧ derange 4 = 9 ∧ derange 5 = 44 ∧ derange 6 = 265Statement (LaTeX):
\forall n \in \{2,\dots,12\},\; \mathrm{derange}\mathopen{}\left(n\right) = n - 1 \cdot \mathrm{derange}\mathopen{}\left(n - 1\right) + \mathrm{derange}\mathopen{}\left(n - 2\right) \land \mathrm{derange}\mathopen{}\left(4\right) = 9 \land \mathrm{derange}\mathopen{}\left(5\right) = 44 \land \mathrm{derange}\mathopen{}\left(6\right) = 265Proof. by decide — exhausting its domain, of which the statement names 11 cases. Checked sorry-free; #print axioms reports no axiom dependency. No Mathlib, no native_decide. □
Definitions. Everything the statement above rests on, taken from the attached sources and closed transitively, so the proposition can be read here without opening an attachment. One definition, in the order the kernel accepts them:
def derange : Nat → Nat
| 0 => 1
| 1 => 0
| Nat.succ (Nat.succ n) => (n + 1) * (derange (n + 1) + derange n)Structure. The statement parses to a tree of 21 nodes across 6 levels, with 11 leaves. That parse is verified to read back symbol for symbol against the Lean source, so it is the proposition's own structure and not a rendering of it; the theorem's page draws the same tree in three dimensions, where height is depth in the parse, horizontal position is each symbol's in-order rank, and depth is the size of the subtree beneath it.
What this record establishes. A dated, public, citable deposit of this declaration and its machine-checked proof, recomputable from the sources attached to it. That is priority, and the record proves it on its own. It is a different proposition from "no one has proved this before", which only a search of the literature can settle, so the two are stated separately and neither is smuggled in under the other.
Prior art: NAMED AND CREDITED. This declaration restates or builds on work with an earlier author, recorded in src/proof/priorart.lean. No priority over that work is claimed here.
Verification. The proof needs 4 files, all attached: src/proof/demand.lean, src/proof/families.lean, src/proof/fnv.lean, src/proof/sequences.lean. Check it with lean src/proof/demand.lean src/proof/families.lean src/proof/fnv.lean src/proof/sequences.lean, or clone https://github.com/ceccec/millennium-solutions and run npm run lean. The content-address of this declaration is recorded as lean_demand_the_derangement_recurrence_holds at https://ceccec.psg.bg/millennium-solutions/theorem/lean_demand_the_derangement_recurrence_holds. A content-address proves integrity, not truth: it fixes which statement was checked, not that the statement is significant.
Funding. Independent research. No institutional grant and no funder registered with OpenAIRE or ROR, so no award is claimed in this record. Development is supported by direct contribution: https://revolut.me/ceccec
Scope, stated as plainly as the claim. The declaration is decided over a finite domain. It asserts no quantum speedup and describes no physical system. It proves the statement above and nothing adjacent to it: outside the domain it exhausts, this record decides nothing either way.
npm run latex-gate checks that this parse reads back symbol for symbol against the Lean source, for this statement and all others. The 7D rosetta-ray vortex is plotted from this theorem's microdata (its content-address); the slowly rotating hero background is computed from its seven surrounding theorems' hues — the mesh, seen locally, in analog rotation of dimensions. Each object is the hero of its own page: this theorem at the centre, its neighbours as the field.
How it was achieved
This is a Lean 4 theorem, checked by the kernel over its whole domain — sorry-free and axiom-free, which scripts/lean.ts re-verifies per theorem on every run. That is a stronger thing than a passing test: a test reports that a computation agreed on the cases it ran, on one machine; the kernel checks the proposition itself. It was then receipted and chained append-only by scripts/seal-lean.ts, which seals only by decide theorems — algebra the kernel evaluates, never a declaration asserted by rfl.
The source: the Lean proofs · the standing theorems. Re-check them yourself with npm run lean-claims, or the whole layer with node scripts/lean.ts. A content-address proves integrity, not truth.