AETHER Verified Kernel
Formally Verified LLM Inference Primitives
Machine-checked Lean 4 proofs for four mathematical cores of AETHER runtime
Teerth Sharma | Independent Researcher | March 2026
CID: bafybeiav6i76eskrs6kchduzfyioxhzzzce2o22q7jgyzeqsedysg6vweq
Abstract
This formalization provides machine-checked Lean 4 proofs for the four mathematical cores of Teerth Sharma's AETHER runtime: Cauchy-Schwarz block pruning for zero-false-negative attention sparsification, Lyapunov-stable PD governors with energy-based convergence certificates, Chebyshev GC guards bounding false collection rates at , and Betti approximation bounds bridging heuristic TDA with exact homology. All 23 theorems are sorry-free and kernel-checked, with verified C and safe Rust artifacts. Six rounds of hostile adversarial audit completed, final two consecutive CLEAN.
Modules
4 + 4
Core + sanity tests
Theorems
23
Machine-verified
Lines
818
Proof code
Sorry
0
Zero gaps
Audit Rounds
6
Final 2 CLEAN
Paper ↔ Proof Correspondence
Each AETHER runtime component has a corresponding Lean 4 module with machine-checked proofs covering all mathematical claims.
| Component | Lean Module | Status |
|---|---|---|
| Phase 1 | AetherPruning.lean | PROVED |
| Phase 2 | AetherGovernor.lean | PROVED |
| Phase 3 | AetherChebyshev.lean | PROVED |
| Phase 4 | AetherBetti.lean | PROVED |
| Pipeline | C + Rust transpilations | PROVED |
Key Mathematics
Cauchy-Schwarz Pruning Bound
Zero false negatives: every relevant token is preserved.
PD Governor Error Contraction
Lyapunov descent: .
Chebyshev GC Guard
At most false collection rate (25% at ).
Betti Error Bound
Heuristic overcounts bounded by window overlap factor.
Module Dependencies
Hover over a module to trace its imports. Solid lines show direct dependencies; dashed lines show transitive imports.
Proof Modules
Each module below shows two views. Mathematics renders the definitions and theorems in standard mathematical notation. Lean 4 shows the corresponding formal proof code.
Verified C Artifacts
Generated via CAB pipeline: Lean 4 → LambdaIR → MiniC → C. Each file carries a correctness certificate verifying semantic preservation.
aether_pruning.c
Block pruning with Cauchy-Schwarz bound | from AetherPruning
aether_governor.c
PD governor with Lyapunov stability | from AetherGovernor
aether_chebyshev.c
Chebyshev GC guard analysis | from AetherChebyshev
aether_betti.c
Betti approximation bounds | from AetherBetti
Safe Rust Artifacts
Transpiled from verified C to idiomatic safe Rust. Raw pointers replaced with owned types, slices, and iterators. Correctness inherited from the C verification chain. Download the full crate (includes Cargo.toml and lib.rs) and run cargo test.
Cargo.toml
Crate manifest (cargo build) | from Crate
lib.rs
Crate root — declares all modules | from Crate
aether_pruning.rs
Block pruning (safe Rust) | from AetherPruning
aether_governor.rs
PD governor (safe Rust) | from AetherGovernor
aether_chebyshev.rs
GC guard (safe Rust) | from AetherChebyshev
aether_betti.rs
Betti bounds (safe Rust) | from AetherBetti
Provenance Chain
AETHER Runtime Primitives
Teerth Sharma's AETHER-Link and AETHER-Lang. Four mathematical cores: Cauchy-Schwarz pruning, PD governor, Chebyshev GC, TDA authentication.
Lean 4 Formalization
4 modules + 4 sanity tests, 23 theorems, 818 lines. Kernel-verified by Lean 4 + Mathlib. Imports HeytingLean chain complex and cycle rank infrastructure. Zero sorry/admit.
Hostile Audit (6 rounds)
R1: 6H/4M/3L. R2: 0H/3M/1L. R3: CLEAN. R4: 0H/1M/0L. R5: CLEAN. R6: CLEAN. All findings resolved. Final two consecutive CLEAN.
CAB-Certified C
Lean 4 → LambdaIR → MiniC → C. Each transformation step carries a certificate hash verifying semantic preservation.
Safe Rust
C → Rust transpilation. Ownership semantics, no unsafe blocks. Correctness inherited from verified C source.
IPFS Pinned
All artifacts content-addressed and pinned to IPFS. CID: bafybeiav6i76eskrs6kchduzfyioxhzzzce2o22q7jgyzeqsedysg6vweq. Immutable, globally retrievable via any IPFS gateway.
