Pith. sign in

REVIEW 5 cited by

Lean4Lean: Verifying a Typechecker for Lean, in Lean

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2403.14064 v3 pith:ZCYB3UPR submitted 2024-03-21 cs.PL

classification cs.PL
keywords leancheckeritselfkerneltheoryimplementationprovetype
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

In this paper we present a new "external checker" for the Lean theorem prover, written in Lean itself. This is the first complete typechecker for Lean 4 other than the reference implementation in C++ used by Lean itself, and our new checker is competitive with the original, running between 20% and 50% slower and usable to verify all of Lean's mathlib library, forming an additional step in Lean's aim to self-host the full elaborator and compiler. Moreover, because the checker is written in a language which admits formal verification, it is possible to state and prove properties about the kernel itself, and we report on progress to formalize the Lean type theory abstractly and prove some theorems about it. Finally, we combine these to get a proof of correctness of parts of the kernel. We plan to use this project to help justify any future changes to the kernel and type theory and ensure unsoundness does not sneak in through either the abstract theory or implementation bugs. The verification is already paying off, as one soundness bug has been spotted and fixed as a result of this work.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 5 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Definitional Inversion, Without Normalisation

    cs.LO 2026-07 conditional novelty 8.0 of 10

    A domain-theoretic logical-relations technique proves injectivity and no-confusion of type constructors for non-normalising dependent type theories with η laws, including type-in-type systems, without relying on norma...

  2. LeanCSP: A Framework for Certifying Constraint Reformulation and Solving in Lean

    cs.AI 2026-07 accept novelty 7.0 of 10 full

    LeanCSP certifies both parametric CSP reformulations and external solver certificates in Lean, yielding end-to-end (un)satisfiability without trusting solvers.

  3. Misquoted No More: Securely Extracting F* Programs with IO

    cs.PL 2026-02 conditional novelty 7.0 of 10

    SEIO★ extracts shallowly embedded F* IO programs into a deep λ-calculus and machine-checks a strong secure-compilation guarantee called RrHP.

  4. Eigenius: A Typed Knowledge-Graph DBMS with Epistemic Stratification and Institution-Mediated Reasoning

    cs.DB 2026-08 conditional novelty 6.0 of 10

    A typed knowledge-graph database that makes provenance and proof checking structural commit-time invariants, demonstrated by re-encoding a Nature study.

  5. Dependent Types Simplified

    math.LO 2025-07 conditional novelty 6.0 of 10

    Two simplified dependent type systems are introduced and proven sound with respect to set-theoretic interpretations, so their consistency is as solid as that of ZFC.

Pith tools