A complete Lean 4 proof of the Marchenko–Pastur law for sample covariance matrices with independent fair-sign entries.
Read the paper · LaTeX source · Main theorem · Proof map · Verification record
The proof runs from exact finite walk counting to weak convergence in
probability. It includes the general ordered-tree bijection, Narayana moments,
explicit bias and variance bounds, and normalization of the limiting density
plus its atom at zero. Every positive aspect ratio is covered, including the
critical value
Let
Every eigenvalue is retained, including multiplicities and zeros. If
The limit is the explicit probability measure
with
The exact declaration is RandomMatrix.marchenkoPastur_theorem.
Each size has its own finite uniform probability space; no coupling across
sizes is assumed.
| Step | Mathematical content | Guide |
|---|---|---|
| 1 | Trace powers as alternating walks; exact finite pattern counts | Walks, patterns |
| 2 | Leading patterns as ordered rooted trees; Narayana coefficients | Trees, enumeration |
| 3 | Uniform finite-size bias and variance; moment concentration | Expected moments, concentration |
| 4 | Eigenvalue measures, trace moments, and the rectangular zero atom | Spectral measures |
| 5 | Normalization and every moment of the explicit density plus atom | Density analysis |
| 6 | Global polynomial bounds, moment determinacy, and weak convergence | Weak convergence |
The paper presents the mathematical argument in this order. The module map links all 62 mathematical modules. Development checkpoints preserve the intermediate stages.
Install Lean through elan, Git, and Python 3.
The repository pins Lean 4.28.0 and mathlib revision
8f9d9cff6bd728b17a24e163c9402775d9e6a365; the lockfile pins transitive dependencies.
From the repository root:
lake exe cache get
bash scripts/check.shThe check script builds the project, scans for unfinished proofs and forbidden shortcuts, audits theorem dependencies, and checks eleven deliberately false claims for rejection at their intended mathematical goals.
The recorded verification passed all 372 declaration audits, covering every
exported named theorem. Reported dependencies are confined to Lean's standard
propext, Classical.choice, and Quot.sound. No project-specific axioms or
proof placeholders are used. See the verification record
for logs, counts, and the trust boundary.
To rebuild the included paper, install Tectonic and run:
bash scripts/build-paper.shThe output is paper/marchenko-pastur.pdf.
Reproduction instructions cover the toolchain, paper,
source manifest, and optional experiments.
The repository includes exact finite enumerations, spectral checks, numerical density integration, and reproducible simulations. They provide independent checks and illustrations; the general theorem is proved in Lean.
The figure retains structural zeros for rectangular matrices. Error bars are sample standard deviations, not confidence intervals. See experiments and evidence for the recorded checks and their limitations.
This is a formalization of a classical theorem for independent fair-sign entries, with a positive finite limiting aspect ratio. General entry distributions, almost-sure convergence, spectral-edge limits, and convergence of individual atom masses are outside the proved scope. No claim of a new limit law or priority over other formalizations is made.
The paper and development were prepared with assistance from OpenAI Codex. Formal correctness claims refer to the checked Lean statements and pinned dependencies. The Python experiments and paper prose are not formally verified.
