Abstract
This paper provides a comprehensive survey of the formal deductive systems that serve as the foundations for modern interactive theorem provers (ITPs). It maps the landscape from classical first-order logic and set theory to the sophisticated type theories that allow computers to verify everything from abstract mathematical theorems to critical software kernels. We analyze the fundamental tension between simplicity and expressivity in foundational design and discuss how these logical frameworks influence the architecture of contemporary tools like Lean, Coq, and Isabelle.
1. Introduction
The goal of interactive theorem proving is to verify claims stated in precise mathematical terms. To achieve this, a proof assistant requires a formal foundation: a set of rules and a language that determines what objects can be defined and what constitutes a valid proof. Jeremy Avigad explores the design space of these foundations, highlighting the balance between a simple foundation (easier to trust and verify) and an expressive one (more natural for human communication).
2. Logical Frameworks and Deductive Systems
The paper synthesizes and compares the core logical frameworks used in the field. At the most basic level is First-Order Logic (FOL), which provides the language of connectives ($\wedge, \vee, \to, \neg$) and quantifiers ($\forall, \exists$). Deductive systems for FOL, such as natural deduction, define how conclusions are derived from premises through specific inference rules.
Beyond FOL, several other systems are prominent in the ITP landscape:
- Simply Typed Lambda Calculus: A framework for reasoning about functions, introducing computation (reduction) as a core part of logic.
- Set Theory (ZFC): The traditional foundation for mathematics, where every object is a set. It serves as the basis for provers like Mizar and Isabelle/ZF.
- Simple Type Theory (Higher-Order Logic): An extension of FOL allowing quantifying over functions and relations, used by the HOL family of provers.
- Dependent Type Theory: A modern framework where types can depend on values (e.g., "a vector of length $n$"). This enables the Propositions-as-Types paradigm, where writing a proof is equivalent to writing a computer program.
3. Key Insights: The Trusted Kernel and Curry-Howard
A central concept in ITP design is the Trusted Kernel. Most proof assistants rely on a small core of code that implements the foundation's rules. If the kernel is correct, every proof accepted by the system is guaranteed valid, even if the surrounding software has bugs.
One of the most profound insights in modern logic is the Curry-Howard Correspondence. It establishes a deep isomorphism between logic and computation: a proposition is a type, and a proof is a program. This is why many modern provers, such as Coq and Lean, feel like functional programming languages. To maintain consistency and avoid paradoxes like Russell's Paradox, these systems often employ Universes and Stratification, using a hierarchy of types ($Type_0, Type_1, \dots$) to prevent a type from containing itself.
4. The Landscape of Modern Provers
The underlying logic significantly influences the capabilities and user experience of a prover:
- Set Theory-based: Mizar, Isabelle/ZF, Metamath.
- Simple Type Theory-based: HOL4, Isabelle/HOL, HOL Light.
- Dependent Type Theory-based: Coq, Agda, Lean, PVS, Nuprl.
Automation also plays a critical role. Foundations that integrate decision procedures for decidable fragments of logic, such as Presburger arithmetic, are much more productive for engineers and mathematicians. However, there remains a significant User-Kernel Gap, requiring complex "elaborators" to translate high-level user input into the low-level rules of the kernel.
5. Conclusion and Future Directions
While current foundations are powerful, they face trade-offs. Adding axioms like the Axiom of Choice or Function Extensionality can improve expressivity but may break canonicity—the ability of the system to compute values.
The paper concludes by pointing toward Homotopy Type Theory (HoTT) as a promising frontier. By treating types as topological spaces and introducing the Univalence Axiom, HoTT aims to formalize the mathematical practice of treating isomorphic structures as equal. Making HoTT computationally efficient remains an active area of research, with developments like Cubical Type Theory leading the way.
Summary updated