فراشة الفوضى — البرهان الرياضي لأنظمة الذكاء الاصطناعي السيادية حيث الفشل ليس خياراً

Formal Verification × Sovereign AI

σ = 10.000
ρ = 28.000
β = 2.667

Mathematical proof for AI systems
that cannot afford to be wrong.

Lean 4 verified Machine-checked Open source
Proof engine Lean 4 · Mathlib
Coverage Every reachable state
Bases Abu Dhabi · Suzhou
Active proofs 2 in flight · 2026

§01 · Capabilities

Three layers between an AI system
and its deployment authorization.

We do not test. We do not audit. We provide mathematical evidence — the kind that withstands regulatory scrutiny across jurisdictions.

01 Layer A

Formal Verification

We translate AI system behaviors into mathematical propositions and prove them in Lean 4 — the same proof assistant used in algebraic topology and homotopy theory. Every claim is machine-checked.

02 Layer B

Safety Certification

For high-stakes deployments — autonomous transport, healthcare, energy, defense — we produce certificates suitable for the EU AI Act, the UAE AI Charter, and equivalent sovereign frameworks.

03 Layer C

Proof Infrastructure

SDK and tooling that embed verification directly into the AI deployment pipeline. Continuous proof for systems that continue to learn. Built for sovereign operators.

§02 · Thesis

Testing produces evidence.
Proof produces certainty.

A passing test is evidence of what a system did. A proof is a guarantee of what a system cannot do.

For ordinary software, the distinction is a craft preference. For an AI system deployed at scale — in clinical care, autonomous transport, or sovereign infrastructure — it is the difference between an approved deployment and an avoidable death. Statistical confidence, however large the dataset behind it, is not a mathematical guarantee.

We close the gap. For a system S and a safety property P, we prove in Lean 4 that S satisfies P for every reachable state — or we prove the precise boundary at which it does not.

proof.lean
Lean 4 · Mathlib
theorem safety_invariant (sys : AISystem) :
     s  sys.reachable, sys.safe s := by
  apply Lyapunov.stable_attractor
  exact sys.verified_proof  -- furnished at construction

§03 · Foundation

The proof pipeline.
From specification to machine-checked certificate.

We use the same proof assistant that mathematicians use to verify theorems in algebraic topology. Every claim we make is checked by a kernel — not by human review.

01 AI Specification System behaviors formalized as mathematical statements Input
02 Lean 4 Theorem Safety properties encoded as typed propositions Lean 4
03 Mathlib 400,000+ verified lemmas backing the proof Mathlib
04 Kernel Check Proof term verified by Lean's trusted kernel — zero human judgement Auto
05 Safety Certificate Regulator-ready proof artifact, jurisdiction-portable Output
100% Machine-checked Every claim verified by computer. No human approval in the proof path.
400k+ Mathlib lemmas The world's largest library of machine-verified mathematics, backing every proof.
2 Active open proofs CB-Attractor and FORMA — both public, auditable, and live.
Lean 4 · Mathlib · GitHub · NYU Abu Dhabi · XJTLU · MIDSAI

§04 · Who we serve

Where failure is not an option.

We work with the institutions building, deploying, and regulating sovereign AI — particularly across the Gulf region and the European regulatory perimeter.

  1. i.

    Government agencies & ministries

    Operators of AI in national defense, public health, transport, and energy — where deployment authorization demands more than statistical confidence.

  2. ii.

    Sovereign AI programs

    National-scale AI initiatives requiring verifiable safety guarantees in line with the country's own regulatory and strategic frameworks.

  3. iii.

    Regulators & certifying authorities

    Bodies tasked with assessing high-risk AI under the EU AI Act, UAE AI Charter, and equivalent frameworks — when "passed our tests" is insufficient.

  4. iv.

    Operators of critical infrastructure

    Smart-city, healthcare, energy, and autonomous-transport operators integrating AI into systems where the cost of failure is measured in lives.

  5. v.

    Research institutions

    Academic and corporate AI labs developing safety-critical models who require formal-verification capability beyond the available open-source tooling.

§05 · Work Featured

Public artifacts.
Two in flight.

Engagements with partners are confidential. The work below is open, public, and demonstrates the engine behind the engagements.

i. Active · 2026

CB-Attractor

Formal verification for neural networks

Formal verification of ReLU neural network decision regions in Lean 4. Proving that a classifier's decision boundary is mathematically stable under specified perturbations. The foundation of our certification engine.

View on GitHub
ii. Live demo

FORMA 2.0

Natural language → verified Lean 4

An end-to-end pipeline from natural-language mathematical statements to verified Lean 4 proofs, with a self-iterating error-correction loop. The translation layer between the human specification and the machine-checked theorem.

Try FORMA

§06 · Founder

Hongwei Wang  (王鸿玮)

Incoming MSc · NYU Abu Dhabi · MIDSAI '28

Mathematician and engineer with a focus on formal methods, Lean 4 proof engineering, and AI safety. Undergraduate at XJTLU; incoming MIDSAI researcher at NYU Abu Dhabi. Author of CB-Attractor and FORMA.

Academic homepage

§07 · Begin a conversation

Find the attractor.
Together.

We are in early conversations with government partners, sovereign AI programs, and operators of critical infrastructure across the UAE, the Gulf, and Europe. If you are building systems where failure is not an option, write to us.

hello@chaosbutterfly.ai
Request a briefing
Correspondence hello@chaosbutterfly.ai
Region UAE · Gulf · Europe
Languages English · العربية