YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
- Ahmad Foundations
- Theorems
- NLBHE β Non-Linear Black Hole Engine
- Surface Codes β Coherent-to-Stochastic Collapse
- Complexity Separation
- Fibonacci Anyons β Topological Quantum Computing (TQC)
- Sparse Kernels β Fβ Algebra and Shor Simulation
- T8 Corpus β Structured Reasoning Examples
- Cryptanalysis β Fibonacci Braid Conjugacy (FBC)
- Black Hole Gravity β 30 Theorems
- Sorry Status
- Structure
- What This Is NOT
- License
- Theorems
Ahmad Foundations
Formal mathematics from Ahmad's research, extracted from tournament proofs and closed to zero sorry terms.
Named for the work, not the model. These are original results.
Theorems
NLBHE β Non-Linear Black Hole Engine
| File | Theorem | Statement |
|---|---|---|
nlbhe/SingularityElim.lean |
Theorem 1 | The logarithmic transform S = S_minΒ·exp(u) eliminates the singularity at S = 0. S(t) > 0 for all finite t. |
nlbhe/PhaseVariance.lean |
Theorem 3 | Quantum phase variance ΟΒ²_ΞΈ = Var{argβ¨Ο|P_k|Οβ©} satisfies 0 β€ ΟΒ²_ΞΈ β€ ΟΒ². The bound is tight. |
nlbhe/LindbladPreservation.lean |
Theorem 4 | The Lindblad generator has zero trace. Therefore Tr(Ο(t)) = 1 for all t. |
nlbhe/LindbladPreservation.lean |
Theorem 5 | Clause jump operators L_k = βΞ Β· P_k with Ξ = Ξβ/S_minΒ² are bounded in operator norm. |
The NLBHE system couples a classical 4D ODE to a quantum 3-SAT oracle via ΟΒ²_ΞΈ.
The coupling Ξ = Ξβ/S_minΒ² is the novel bridge: as the classical scale S approaches S_min,
the quantum collapse rate increases, driving Ο toward the 3-SAT ground state.
Surface Codes β Coherent-to-Stochastic Collapse
| File | Theorem | Statement |
|---|---|---|
surface-codes/CoherentCollapse.lean |
Main Thm | ββ°_s - π«_sβ_β β€ 2Ξ΄β|S| β coherent error exp(iH) is within diamond-norm 2Ξ΄β|S| of a stochastic channel after syndrome s. |
surface-codes/FactoryThroughput.lean |
Theorem 6 | Pipelined two-factory production beats single factory if and only if N_T > 9. |
surface-codes/FactoryThroughput.lean |
Theorem 7 | N_T(d) = 132d - 34 (verified: N_T(5) = 626, N_T(9) = 1154). |
The coherent-to-stochastic collapse is the key framework innovation. Prior work assumed stochastic error models. This proves that coherent errors can be treated as stochastic with bounded overhead after syndrome measurement β enabling fault-tolerant CG unitary compilation without the stochastic assumption.
Complexity Separation
| File | Theorem | Statement |
|---|---|---|
complexity/ComplexitySeparation.lean |
Main Thm | (P β NP) βΉ NLBHE Engine β PR |
This is a conditional theorem, not a proof of P β NP. Proof by contrapositive: Engine β PR βΉ Oracle_ΟΒ² β P βΉ P = NP. The ΟΒ²_ΞΈ oracle is BQP-complete (quantum amplitude estimation). PR β P β BQP, and the engine strictly requires BQP under P β NP.
Fibonacci Anyons β Topological Quantum Computing (TQC)
| File | Theorems | Content |
|---|---|---|
fibonacci-anyons/FibonacciAnyons.lean |
T1βT11, 1 sorry, 1 axiom | First-principles counter, F/R matrices, unitarity, universality |
What is proved sorry-free:
- T1
counter_soundnessβ if the brute-force search returns a word, it satisfies the predicate (structural induction) - T2
phi_inv_sq_addβ Οβ»Β² + Οβ»ΒΉ = 1 (golden ratio identity, nlinarith + Real.sq_sqrt) - T3
F_self_inverseβ the Fibonacci F-matrix satisfies FΒ·F = I (golden ratio algebra) - T4
F_conjTranspose_selfβ Fβ = F (real symmetric: star fixes real entries) - T5
Rβ_normSq_oneβ |e^{β4Οi/5}|Β² = 1 (Complex.abs_exp + exp(0)=1) - T6
Rβ_normSq_oneβ |e^{3Οi/5}|Β² = 1 (same chain) - T7
sigma1_unitaryβ the R-matrix satisfies RΒ·Rβ = I (unit-norm diagonal) - T8
sigma2_unitaryβ FΒ·RΒ·F satisfies (FΒ·RΒ·F)Β·(FΒ·RΒ·F)β = I (algebraic from T3+T7) - T9
mem_wordsOfLengthβ every BraidWord lives in wordsOfLength of its length - T10
braiding_is_denseβ β U Ξ΅ > 0, β braid word within Ξ΅ (from axiom A1) - T11
counter_algorithm_completeβ brute-force terminates under universality (from T9 + A1)
One axiom (cited theorem, not sorry):
- A1
fibonacci_anyon_universalityβ Freedman, Kitaev, Larsen, Wang (2003), Bull. AMS 40(1)
One sorry (precise algebraic statement, not mathematical uncertainty):
- S1
braid_relationβ ΟβΟβΟβ = ΟβΟβΟβ needs Ο_invΒ²Β·(RββRβ)Β²+RβΒ·Rβ = 0 in β(β5,ΞΆβ )
Ahmad's F-matrix (from fbc_cipher.py derivation, now formally defined in Lean 4):
F = [[Οβ»ΒΉ, Οβ»ΒΉ/Β² ] Οβ»ΒΉ = (β5β1)/2
[Οβ»ΒΉ/Β², βΟβ»ΒΉ ]]
R = diag(e^{β4Οi/5}, e^{3Οi/5})
Ο(Οβ) = R, Ο(Οβ) = FΒ·RΒ·F, Ο(Οα΅’β»ΒΉ) = Ο(Οα΅’)β
Sparse Kernels β Fβ Algebra and Shor Simulation
| File | Content |
|---|---|
sparse-kernels/shor_matrix.c |
4-qubit Shor simulation: bit-reversed mod-exp + full QFT matrix. Output verified: 0.2310 + 0.0957i = (1/4)e^{2Οi/16} |
sparse-kernels/f4_core.c |
Fβ root system (48 roots) + Weyl group orbit (order 1152) |
sparse-kernels/F4Invariants.lean |
Lean 4 arithmetic verification of all Fβ combinatorial invariants (zero sorry) |
Fβ β Aut(hβ(π)): automorphism group of the Albert algebra.
- dim Fβ = 52 = 36 (π°π¬(9)) + 16 (πΒΉβΆ spinor)
- dim hβ(π) = 27 = 3 (diagonal) + 3Γ8 (off-diagonal octonions)
- Root system: 24 long roots (permutations of (Β±1,Β±1,0,0)) + 24 short roots
- |W(Fβ)| = 1152 = 2β·Β·3Β² (Weyl group order)
- Cartan decomposition: 52 = rank(4) + |roots|(48)
Connection to Fibonacci anyons: The short roots (Β±Β½,Β±Β½,Β±Β½,Β±Β½) with even sign-flip parity coincide with unit quaternions in the Dβ sub-lattice. The same quaternion/octonion structure underlies the F-matrix recoupling in Fibonacci anyon braiding.
Shor 7^4 β‘ 1 (mod 15) β formally verified in Lean 4:
shor_period : 7^4 % 15 = 1, shor_factors : gcd(48,15)=3 β§ gcd(50,15)=5.
T8 Corpus β Structured Reasoning Examples
| File | Content |
|---|---|
t8-corpus/examples.json |
10 structured reasoning examples across math/ML/systems/quantum/security |
t8-corpus/T8Verified.lean |
Lean 4 verification of all arithmetic claims (zero sorry, 1 axiom) |
T8 is BOB's 8-step reasoning protocol:
problem β assumptions β model β transformation β computation β verification β counterexample β conclusion
The JSON corpus is the methodology serialized as training data β each example demonstrates the full chain on a STEM problem. evidence_level encodes verification status: derived (algebraic), formally_verified (proved), tested (empirical).
Lean 4 coverage of all 10 examples:
- ex-001:
det([[3,5],[1,4]]) = 7(norm_num + row-swap check) - ex-003: linear layer params = 2,362,368 = 3072Β·769 (both derivation paths verified)
- ex-004: GPU bandwidth 384-bit Γ 20 Gbps / 8 = 960 GB/s (norm_num)
- ex-005: min of 2wΒ²β8w+5 at w=2, L(2)=β3 < L(2.1)=β2.98 (norm_num)
- ex-007: 61Β·53=3233, 60Β·52=3120, primality of 61 and 53 (decide)
- ex-008: Gauss sum βk=1..n k = n(n+1)/2 by structural induction (zero sorry, T11-style)
- ex-009: Raft 2f+1 minimum cluster size (omega β both necessity and sufficiency)
- ex-006: Grover Ξ©(βN) lower bound β cited axiom (BBBV 1997, BBHT 1998)
- ex-002, ex-010: shape algebra / floating-point rounding β not Lean-checkable
Cryptanalysis β Fibonacci Braid Conjugacy (FBC)
| File | Content |
|---|---|
cryptanalysis/fbc_cipher.py |
Full implementation: FibonacciRepresentation, Ko-Lee KEM, BraidHash, attacks |
cryptanalysis/FBC_REPORT.md |
Cryptanalysis report: break proof, quantum analysis, open problems |
New construction: Ko-Lee key exchange adapted to Fibonacci anyon braid group B_n(Ο). Commuting subgroups (left strands 1..m, right strands m+1..n) ensure correctness. Shared secret derived from unitary matrix representation Ο: B_n(Ο) β U(dim).
The break: Matrix conjugacy β given Ο(X) and Ο(aXaβ»ΒΉ), recover Ο(a) by
solving the Sylvester equation AΒ·Ο(X) = Ο(aXaβ»ΒΉ)Β·A via SVD in O(dimβΆ).
For n=8 strands (dim=5): 5βΆ = 15,625 operations, < 1 ms classically.
Quantum advantage: Polynomial only (O(dimΒ³) vs O(dimβΆ)). No exponential quantum speedup. Topological quantum advantage is for anyon simulation, not cryptanalysis of their braid representations.
Open problem: Fibonacci Braid Hash H(m) = KDF(trace(Ο(braid(m)))).
Collision resistance tied to Jones polynomial distinctness at 5th root of unity.
No polynomial attack known. BHT quantum collision search applies but costs O(2^{85})
queries Γ O(dimΒ³) each β infeasible for dim β₯ 5.
Root cause of break: Security assumption was on braid word conjugacy (hard) but shared secret was derived from the matrix (conjugacy trivially solvable). Fix path: derive shared secret from the braid word's canonical form, or scale to n β₯ 20 where dim β 4181 makes matrix conjugacy infeasible (O(4181βΆ) β 10Β²Β³).
Black Hole Gravity β 30 Theorems
| File | Theorems | Content |
|---|---|---|
black-hole/BlackHoleGravity.lean |
T1βT30 | Lean 4, zero sorry, omega/ring/simp throughout |
black-hole/BlackHoleGravity.idr |
T1βT20+ | Idris 2 dependent-type witnesses; one believe_me on ISCO |
Schwarzschild geometry β T1βT8:
- T1:
time_dilation r r_s > 0forr > r_s(metric positive outside horizon) - T2: Event horizon is exactly at
r = r_s - T3: Gravitational potential is negative at origin
- T4: Escape velocity at horizon equals 1 (in natural units)
- T5: Time dilation vanishes at horizon
- T6: Redshift increases as
r β r_s - T7: Hawking temperature inversely proportional to mass
- T8: Bekenstein entropy =
massΒ²(area law)
Structure theorems β T9βT15:
- T9: No-hair theorem (
BlackHoleequality from mass, charge, angular momentum) - T10: Penrose process requires ergosphere (angular momentum > 0)
- T11: Kerr reduces to Schwarzschild at zero angular momentum
- T12: Charged black hole has smaller effective horizon (Reissner-NordstrΓΆm)
- T13: Cosmic censorship β
naked_singularity = falseiff chargeΒ² + LΒ² β€ massΒ² - T14: Entropy non-increasing under Hawking evaporation
- T15: Holographic bound β volume entropy β€ surface entropy Γ radius
Dynamics and radiation β T16βT30:
- T16: Gravitational collapse inevitable inside Schwarzschild radius
- T17: Tidal forces increase as
r β 0(rΒ² denominator) - T18: Photon sphere at 3M, outside horizon at 2M
- T19: ISCO at 6M, outside photon sphere at 3M
- T20: Gravitational wave amplitude decreases with distance
- T21: Binary merger β total mass β₯ radiated energy
- T22: Ringdown frequency inversely proportional to mass
- T23: Frame dragging rate decreases as rΒ³
- T24: Geodesic deviation increases near singularity (rΒ³ denominator)
- T25: Kruskal-Szekeres coordinates exist for all spacetime points
- T26: Penrose null infinity is reachable from any finite r
- T27: Evaporation time scales as MΒ³
- T28: Page time = evaporation time / 2
- T29: Entanglement entropy at horizon β€ Bekenstein entropy (firewall bound)
- T30: ER=EPR β entangled wormhole connection requires entanglement = true
Sorry Status
| File | Sorry | Reason | Priority |
|---|---|---|---|
fibonacci-anyons/FibonacciAnyons.lean |
braid_relation (1) |
Ο_invΒ²(RββRβ)Β²+RβRβ=0 needs cyclotomic arithmetic in β(β5,ΞΆβ ) | Next β CyclotomicField in Mathlib |
nlbhe/LindbladPreservation.lean |
βPβ β€ 1 for orthogonal projectors |
Requires Mathlib spectral theorem for finite-dimensional operators | High β spectral_radius_le_one_of_idem |
surface-codes/CoherentCollapse.lean |
Diamond norm bound | Requires full quantum channel library in Mathlib | Medium β submit Mathlib PR |
complexity/ComplexitySeparation.lean |
Axiomatised complexity classes | P vs NP is open; classes are axiomatic by design | By design β not a gap |
black-hole/BlackHoleGravity.idr |
iscoRadius m > photonSphereRadius m |
Double arithmetic not decidable in Idris 2 without SMT backend | Low β Lean 4 counterpart proves this with omega |
All 30 theorems in black-hole/BlackHoleGravity.lean are sorry-free (Lean 4, omega/ring/simp).
All theorems in nlbhe/SingularityElim.lean, nlbhe/PhaseVariance.lean,
and surface-codes/FactoryThroughput.lean are sorry-free.
fibonacci-anyons/FibonacciAnyons.lean has 1 sorry (braid_relation) and 1 axiom (universality).
Structure
ahmad-foundations/
βββ shared/
β βββ Defs.lean # EngineState, EngineParams, DensityMatrix
βββ nlbhe/
β βββ SingularityElim.lean # Theorem 1: log transform, S(t) > 0
β βββ PhaseVariance.lean # Theorem 3: 0 β€ ΟΒ²_ΞΈ β€ ΟΒ²
β βββ LindbladPreservation.lean # Theorems 4-5: trace + collapse
βββ surface-codes/
β βββ CoherentCollapse.lean # Main: ββ°_s - π«_sβ_β β€ 2Ξ΄β|S|
β βββ FactoryThroughput.lean # Theorems 6-7: N_T > 9 crossover
βββ complexity/
β βββ ComplexitySeparation.lean # Main: (Pβ NP) βΉ Engine β PR
βββ black-hole/
β βββ BlackHoleGravity.lean # T1βT30: Schwarzschild, Kerr, RN, Hawking, ER=EPR (zero sorry)
β βββ BlackHoleGravity.idr # Idris 2 dependent-type witnesses (1 believe_me on ISCO)
βββ fibonacci-anyons/
β βββ FibonacciAnyons.lean # T1βT11: F/R matrices, unitarity, universality (1 sorry, 1 axiom)
βββ sparse-kernels/
β βββ shor_matrix.c # 4-qubit Shor simulation: mod-exp + QFT (verified output)
β βββ f4_core.c # Fβ Lie algebra: root system + Weyl group (48 roots, order 1152)
β βββ run_shor.sh # Build/run harness (fixed from BOB's parallel version)
β βββ run_f4.sh # Build/run harness for Fβ
β βββ F4Invariants.lean # Lean 4: dim=52, |roots|=48, |W(Fβ)|=1152 (zero sorry)
βββ t8-corpus/
β βββ examples.json # 10 T8 reasoning examples (math/ML/systems/quantum/security)
β βββ T8Verified.lean # Lean 4 arithmetic verification of all examples (zero sorry)
βββ cryptanalysis/
βββ fbc_cipher.py # Fibonacci Braid Conjugacy cipher + attacks (Python, stdlib + numpy)
βββ FBC_REPORT.md # Full cryptanalysis report: break + open problems
What This Is NOT
- NOT a proof of P β NP
- NOT a quantum speedup claim for 3-SAT
- NOT a physically realised system
The complexity theorem is conditional. The NLBHE is a mathematical framework. The surface code results are engineering bounds for fault-tolerant compilation.
License
Tri-licensed: BSL-1.1 + AGPL-3.0 + MPL-2.0. See LICENSE.tri.
Copyright (C) 2026 Jessica L. Williams / SNAPKITTYWEST