An open Lean library
AI Safety Formalization Atlas (AISFA)
An open Lean 4 library of machine-checked AI-safety mathematics, with a ledger that records each result’s source and scope.
Testing can show that a system fails, never that it cannot fail. A
proof covers every case its assumptions allow. The Atlas collects the mathematics of AI
safety (impossibility results, learning, control, oversight, reward
corruption, causal models) in one library that Lean’s kernel
checks, with no sorry and no axioms beyond Lean's standard three. Each result
defines its objects once, so others can reuse them.
The problem it targets
AI systems are getting good at writing proofs. The hard part is now stating the right theorem: a correct proof of the wrong statement looks like success. The Atlas grades each Lean statement that transcribes a printed claim against the published wording, so that a wrong statement or an error in print can be caught before anyone builds on it.
As of v0.9.0, the Atlas holds 144 ledger rows, 111 of them with Lean, in about 176,000 lines of Lean (status). It has served as a public verifier for nine community solutions to Math for AI Safety open problems: four checked, three partial and two conditional (verdicts).
Who builds it
AI coding agents wrote all of the Atlas's own Lean. Mario Brcic chooses what gets formalized and rules in cases of doubt. At v0.9.0, 30 of the 37 bridges that read a result as a claim about AI systems carry a recorded interpretation review, and 7 a statement review only. Independent review of any row is welcome. A theorem is not a safety case: applying one to a real system takes a separate, reviewed step.
Read more
Open an issue.
If you can make a safety property precise, this is where it becomes something machine-checked.
Get in touch