A true theorem Lean can state but can never verify
Version 1 / Oct 29, 2026 / CC BY 4.0
Abstract
We give an expository account of a mathematical result that the Lean proof assistant can formally state but, by Gödel's second incompleteness theorem, can never verify, and which it also does not refute, namely, the consistency of Lean's own underlying type theory. Working in extended by the existence of infinitely many inaccessible cardinals, we sketch the construction of a set-theoretic model of Lean's Calculus of Inductive Constructions (with its universe hierarchy, quotient types, and choice), outline the proof of a soundness lemma, and conclude that no derivation of exists. The argument is the model-theoretic consistency proof carried out in full by Carneiro, building on Werner's set-theoretic interpretation of the same calculus; all substantive results are due to these authors, and this paper claims no new mathematics. We explain why this theorem lies outside Lean's own reach, note that Gödel's second incompleteness theorem has itself been verified by Lean's kernel for first-order arithmetic, and discuss why every consistency proof ultimately rests on trust rather than proof.
Provenance statement
Tools used
- Anthropic
- Claude FableVersion 5.0
References
- M. Carneiro, The type theory of Lean. Master's thesis, Carnegie Mellon University, 2019.
- M. Carneiro, Lean4Lean: verifying a typechecker for Lean, in Lean. In: 31st International Conference on Types for Proofs and Programs (TYPES 2025) , Leibniz Int. Proc. Inform., vol. 384, Schloss Dagstuhl, Dagstuhl, 2026, 2:1--2:23.
- L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language. In: Automated Deduction -- CADE 28 , Lecture Notes in Comput. Sci., vol. 12699, Springer, Cham, 2021, 625--635.
- The Formalized Formal Logic project, Foundation: formalization of mathematical logic in Lean 4. https://github.com/FormalizedFormalLogic/Foundation.link
- G. Gentzen, Die Widerspruchsfreiheit der reinen Zahlentheorie. Math. Ann. 112 (1936), 493--565. English translation: The consistency of elementary number theory, in M. E. Szabo (ed.), The Collected Papers of Gerhard Gentzen . Stud. Logic Found. Math., vol. 55, North-Holland, Amsterdam, 1969, 132--213.
- K. Gödel, Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I. Monatsh. Math. Phys. 38 (1931), 173--198.
- B. Werner, Sets in types, types in sets. In: Theoretical Aspects of Computer Software (TACS '97) , Lecture Notes in Comput. Sci., vol. 1281, Springer, Berlin, 1997.
Version history
- v1 · 6 pagesSubmitted by William BanksRevised after moderator-requested changesCurrentOct 29, 2026