TL;DR
This paper introduces two powerful techniques for making formal proofs more trustworthy: axiom hygiene (automated regression testing for foundational dependencies) and explicit trust boundaries (isolating external assumptions using typeclasses). The authors demonstrate these methods by formalizing a game-theoretic "handshake" mechanism in Lean 4, proving that binding commitments can guarantee cooperation in coordination games.
What Problem Does This Paper Address?
In the world of formal verification, a proof is only as strong as its foundations. However, modern proof assistants like Lean, Rocq, or Isabelle often "hide" the full list of axioms a proof depends on. A proof might type-check perfectly but silently rely on a controversial axiom or a "sorry" (an admitted but unproved goal).
This "axiom creep" is a major reliability risk, especially as we move toward AI-generated mathematics. If a Large Language Model (LLM) produces a formal proof, how do we know it didn't "cheat" by introducing an unsound axiom? Furthermore, many proofs involve a "trust assumption"—an interface with the real world (like an oracle or a hardware attestation) that cannot be proved mathematically. This paper seeks to make these hidden dependencies and trust boundaries machine-auditable.
Methods
The authors propose two transferable methods for "trustworthy formalization":
- Axiom Hygiene as a Regression Test: They use a combination of Lean’s
#print axiomscommand (which lists dependencies) and#guard_msgs(which fails the build if the output changes). This creates a "footprint" for every declaration. If a refactor or a new library import silently adds a new axiom dependency, the build fails. - The
TrustedOracleTypeclass: To handle the gap between math and reality, they isolate the "trust assumption" into a specific Lean typeclass. This typeclass defines what it means for an external attestation to be "truthful." The core mathematical proof is written to be oracle-agnostic—it works for any oracle that satisfies the typeclass, keeping the "math" and the "trust" strictly separated.
They apply these methods to a Verified Handshake: a software wrapper that mediates between players in a game. If all players commit to "Cooperate," the wrapper executes that action; otherwise, it defaults to "Defect."
Datasets
As a paper focused on formal verification and mechanism design, it does not use traditional training datasets. Instead, it evaluates its methods against its own codebase:
- The Formalization: A Lean 4 development consisting of 56 declarations.
- External Libraries: It uses
mathlib(Lean’s standard math library) specifically for rational arithmetic and finite-type support. - Benchmarks for Context: The authors discuss how their auditing method could be applied to existing AI-formalization benchmarks like
miniF2FandPutnamBench.
Key Insights and Ideas
- Axiom Auditing is Prover-Agnostic: While implemented in Lean 4, the concept of pinning an "axiom footprint" in Continuous Integration (CI) can be ported to any proof assistant that exposes kernel dependencies.
- Specialization for Correctness: The authors proved theorems for $n$-players and then obtained 2-player results through machine-checked specialization. This ensures that the simpler 2-player cases are mathematically consistent with the more complex general cases.
- The "Non-Vacuous" Check: To ensure their
TrustedOraclewasn't just a "magic wand," they implemented a "lying" counter-example. This proves that the truthfulness obligation is a real constraint that must be satisfied by any real-world implementation (like a Secure Enclave or a Smart Contract). - Relocating the Coordination Problem: The "handshake" doesn't eliminate the difficulty of cooperation; it moves it. Instead of worrying about every single move, players only need to make a one-time, auditable decision to use the verified wrapper.
Key Results
- Zero "Sorry"s: The entire development is complete and contains no unproved placeholders or custom axioms.
- Minimal Axiom Footprint: 8 declarations are entirely axiom-free (pure computation), while the rest rely only on a standard subset of Lean’s foundational axioms (propext, Classical.choice, Quot.sound).
- Verified Dominance: They proved that for any "Stag-Hunt" game (where mutual cooperation is best but risky), using the wrapper makes "Cooperate" the weakly dominant strategy.
- Performance: The entire audit and proof suite builds in approximately 30 seconds, proving that this level of scrutiny doesn't have to be a bottleneck in the development cycle.
Limitations and Future Work
- Adoption is still a Game: The proof assumes players have already agreed to use the wrapper. If adoption is voluntary, the decision to "wrap" the game is itself a coordination game that the paper doesn't solve.
- Pure Strategies Only: The current formalization only covers "pure" strategies (C or D) and does not yet account for mixed/probabilistic strategies.
- Single Oracle: The model assumes a single trusted oracle. Future work aims to extend this to Byzantine attestation oracles, where a quorum of multiple (potentially faulty) validators is required.
- LLM Validation: While the authors argue this is great for AI-generated proofs, they haven't yet published a large-scale study applying these "gates" to a massive batch of LLM-generated Lean code (this is noted as the "immediate next step").
Summary updated