Lean-Agent Protocol proves regulatory compliance of financial AI actions
Their Lean-Agent guardrail can guarantee SEC, FINRA, and OCC compliance by formally proving each action in Lean 4
Software arXiv 1 Apr 2026 Method Maturity unclear
Published as “Type-Checked Compliance: Deterministic Guardrails for Agentic Financial Systems Using Lean 4 Theorem Proving”
Why it matters
Financial firms could deploy autonomous trading agents with provable regulatory compliance, potentially eliminating costly manual oversight and reducing the risk of regulatory breaches.
Summary
The Lean-Agent Protocol can guarantee compliance with financial regulations by proving every proposed agentic action in Lean 4, achieving cryptographic-level certainty with verification latency of about 5 microseconds. It uses the Aristotle neural-symbolic model to auto-formalize natural-language policies into Lean 4 axioms and enforces them via a deterministic kernel at runtime. The paper demonstrates ultra-low latency and compares favorably to existing probabilistic guardrails, but acknowledges a critical vulnerability in the translation layer that could be exploited by an adversary.
What they found 3
- Compliance verification is performed with microsecond latency
“This architecture provides cryptographic-level compliance certainty at microsecond latency”
- Lean kernel type-checking averages 5 μs per verification
“evaluating a formalized access control input against the Lean model requires an average of only 5 microseconds”
- Aristotle model achieved gold-medal-equivalent performance on the 2025 IMO, solving 5 of 6 problems in Lean 4
“The system gained international prominence by achieving gold-medalequivalent performance on the 2025 International Mathematical Olympiad (IMO), successfully generating machine-verifiable solutions in Lean 4 for five out of the six competition problems”
Caveats 3
- If an adversary can manipulate the Aristotle model into generating structurally valid but semantically malicious Lean code, they can effectively bypass the policy constraints.
- the system’s primary vulnerability resides in the translation layer.
- The Lean-Agent Protocol must aggressively sanitize context hydration, utilizing static parsing to extract only necessary variables and completely stripping untrusted external text before the prompt reaches the formalization engine
What’s new here 4
- Formal verification of agentic actions using Lean 4 rather than probabilistic classifiers or schema validation
- Microsecond-scale runtime proof checking by decoupling proof generation from verification
- Automatic translation of natural-language regulations into dependently typed code via the Aristotle model
- Integration of a WASM sandbox to isolate execution of any generated code