lean-check

Featured

Formalize a self-authored lemma or theorem in Lean 4/mathlib and require a clean `lake build` without `sorry`. Use when the mathematical claim can be stated faithfully and machine-checked. For numerical falsification or symbolic algebra, use $numerical-check or $symbolic-check.

AI & Automation 144 stars 27 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
72
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Lean Check: Machine-Prove a Self-Authored Lemma Formalize a lemma/theorem in Lean 4 + mathlib and let the kernel check it. A `lake build` that succeeds **with no `sorry` and no extra axioms** is a machine-verified proof — the strongest guarantee available. ## When to Use - A **critical lemma** whose correctness you want beyond doubt (the load-bearing step of a theorem). - `lean-check`, "formalize this in Lean", "machine-check this lemma", "prove this in Lean 4". - After `numerical-check` fails to falsify a claim and it's important enough to *prove*. ## When NOT to Use | Situation | Use instead | |---|---| | Stress-test / hunt a counterexample to a distributional claim | `numerical-check` (R1) | | Verify an algebra / derivative / limit / closed-form step | `symbolic-check` (R2) | | A statement too rich to faithfully formalize in reasonable time (heavy measure theory, bespoke objects) | `domain-reviewer` — do NOT force a lossy Lean statement | ## Position in the verification spectrum **R3 — formal machine proof.** The top rung: `lake build` (clean, `sorry`-free) = a kernel-checked theorem. Cost is high (formalization effort + statement fidelity), so reserve it for the claims that matter most; use R1/R2 to triage first. ## Toolchain (pre-seeded — do not re-download) - **Machine:** Mac Mini (`[server]`). Check `hostname`; if on the MacBook, run via `ssh mini`. - **Project:** `~/lean-verify/mathlib_verify/` — Lean `4.31.0`, mathlib `v4.31.0` (cache-backed, ~7.2 GB `.lak...

Details

Author
flonat
Repository
flonat/flonat-research
Created
7 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category