|
| 1 | +--- |
| 2 | +tags: cyber, core, article |
| 3 | +crystal-type: process |
| 4 | +crystal-domain: cyber |
| 5 | +date: 2026-03-23 |
| 6 | +--- |
| 7 | + |
| 8 | +# superintelligence core β implementation plan |
| 9 | + |
| 10 | +## ground truth: what exists |
| 11 | + |
| 12 | +| layer | repo | LOC | tests | status | |
| 13 | +|---|---|---|---|---| |
| 14 | +| field arithmetic | [[nebu]] | 1,526 | 73 pass | DONE | |
| 15 | +| hash + tree | [[hemera]] | 5,084 | 209 pass | DONE | |
| 16 | +| VM execution | [[nox]] | 80 (stubs) | 0 | EMPTY | |
| 17 | +| proof system | [[zheng]] | 6 (stub) | 0 | EMPTY | |
| 18 | +| authenticated state | [[BBG]] | 6 (stub) | 0 | EMPTY | |
| 19 | +| post-quantum crypto | [[mudra]] | 6 (stub) | 0 | EMPTY | |
| 20 | +| provable language | [[trident]] | 57,736 | compiles | SUBSTANTIAL | |
| 21 | +| graph publisher | [[optica]] | 10,626 | 3 suites | PRODUCTION | |
| 22 | + |
| 23 | +the foundation (nebu + hemera) is solid. the publisher (optica) works. the compiler (trident) has frontend + IR + verification hooks. everything between β the proof system, the VM, the state layer, the crypto β is specification only. |
| 24 | + |
| 25 | +## the critical path |
| 26 | + |
| 27 | +``` |
| 28 | +nebu (DONE) β hemera (DONE) β nox β zheng β bbg β foculus β provable consensus |
| 29 | +``` |
| 30 | + |
| 31 | +each layer depends on the one below. nox needs hemera for hashing. zheng needs nox for execution traces. bbg needs zheng for state proofs. foculus needs bbg for authenticated state. provable consensus needs all of them. |
| 32 | + |
| 33 | +mudra (post-quantum crypto) is independent β can be built in parallel. |
| 34 | +trident (compiler) feeds INTO nox β trident compiles programs, nox executes them. |
| 35 | + |
| 36 | +## six milestones |
| 37 | + |
| 38 | +### M1: nox β the VM that proves (target: 4 sessions) |
| 39 | + |
| 40 | +the smallest useful unit. 16 reduction patterns over [[Goldilocks field]], each producing a STARK-compatible execution trace. |
| 41 | + |
| 42 | +deliverables: |
| 43 | +- `noun.rs` β binary tree of field elements (the data structure) |
| 44 | +- `reduce.rs` β 16 patterns: axis, quote, compose, cons, branch, add, sub, mul, inv, eq, lt, and/or/xor, hash, hint |
| 45 | +- `trace.rs` β execution trace recorder (rows Γ 16 registers) |
| 46 | +- `focus.rs` β resource metering (each pattern costs focus) |
| 47 | +- `encode.rs` β canonical serialization (for content addressing) |
| 48 | + |
| 49 | +dependencies: nebu (field ops), hemera (hash pattern) |
| 50 | + |
| 51 | +test: execute a simple program (fibonacci, hash chain), produce execution trace, verify trace rows satisfy constraints manually. |
| 52 | + |
| 53 | +size estimate: ~3,000-5,000 LOC |
| 54 | + |
| 55 | +### M2: zheng β the proof (target: 8 sessions) |
| 56 | + |
| 57 | +SuperSpartan IOP + WHIR PCS + sumcheck. proves that a nox execution trace satisfies all constraints. |
| 58 | + |
| 59 | +deliverables: |
| 60 | +- `sumcheck.rs` β interactive sumcheck protocol (prover + verifier), bookkeeping table optimization |
| 61 | +- `whir.rs` β WHIR polynomial commitment (commit, open, verify), hemera-based Merkle |
| 62 | +- `superspartan.rs` β CCS constraint system, multilinear extensions, outer + inner sumcheck |
| 63 | +- `transcript.rs` β Fiat-Shamir via hemera sponge |
| 64 | +- `fold.rs` β IVC folding (accumulate proofs across epochs) |
| 65 | + |
| 66 | +dependencies: nebu (field), hemera (hash for Merkle + Fiat-Shamir), nox (execution trace format) |
| 67 | + |
| 68 | +test: prove fibonacci execution (small trace), verify proof. prove hemera hash (pattern 15), verify. benchmark constraint count vs specification. |
| 69 | + |
| 70 | +size estimate: ~8,000-12,000 LOC |
| 71 | + |
| 72 | +### M3: bbg core β authenticated state (target: 6 sessions) |
| 73 | + |
| 74 | +NMT indexes + MMR + mutator set. the minimum viable state layer. |
| 75 | + |
| 76 | +deliverables: |
| 77 | +- `nmt.rs` β namespace Merkle tree (insert, update, completeness proof, verify) |
| 78 | +- `mmr.rs` β Merkle mountain range (append, prove membership, peaks hash) |
| 79 | +- `swbf.rs` β sliding window Bloom filter (add, check, archive, verify) |
| 80 | +- `state.rs` β BBG_root composition (13 sub-roots, update, commit) |
| 81 | +- `logup.rs` β LogUp cross-index consistency argument |
| 82 | +- `transition.rs` β cyberlink state transition (touch 4-5 indexes per link) |
| 83 | + |
| 84 | +dependencies: hemera (tree hashing), zheng (proofs for state transitions) |
| 85 | + |
| 86 | +test: insert 1000 cyberlinks, verify NMT completeness proofs, verify cross-index LogUp, verify mutator set prevents double-spend. |
| 87 | + |
| 88 | +size estimate: ~6,000-10,000 LOC |
| 89 | + |
| 90 | +### M4: foculus β consensus by computation (target: 4 sessions) |
| 91 | + |
| 92 | +tri-kernel convergence on authenticated state. the minimum viable consensus. |
| 93 | + |
| 94 | +deliverables: |
| 95 | +- `trikernel.rs` β D (diffusion) + S (springs) + H (heat) operators as sparse matrix operations |
| 96 | +- `converge.rs` β iteration loop with contraction rate monitoring (spectral gap from convergence) |
| 97 | +- `finality.rs` β adaptive threshold Ο, nullifier commit, conflict detection |
| 98 | +- `gossip.rs` β signal propagation (cyberlinks + proofs) |
| 99 | + |
| 100 | +dependencies: bbg (state reads), zheng (per-signal validity proofs) |
| 101 | + |
| 102 | +test: simulate 100 neurons, 10K cyberlinks, verify convergence to unique Ο*, verify finality correctness, verify no double-finality under conflict. |
| 103 | + |
| 104 | +size estimate: ~4,000-6,000 LOC |
| 105 | + |
| 106 | +### M5: algebraic NMT β the acceleration (target: 6 sessions) |
| 107 | + |
| 108 | +replace hemera trees with polynomial commitments. the 33Γ speedup. enables provable consensus. |
| 109 | + |
| 110 | +deliverables: |
| 111 | +- `verkle.rs` β Verkle tree with PCS nodes (phase 1: tree structure preserved) |
| 112 | +- `pcs_update.rs` β incremental PCS recommit (O(log n) per update) |
| 113 | +- `batch.rs` β dirty-set tracking and deduplicated batch updates |
| 114 | +- `algebraic_completeness.rs` β LogUp range check over F_{pΒ²} for completeness proofs |
| 115 | +- migration: bbg state transitions using Verkle instead of NMT (parallel verification mode) |
| 116 | + |
| 117 | +dependencies: zheng (WHIR as PCS backend), nebu (F_{pΒ²} extension field) |
| 118 | + |
| 119 | +test: insert 10K entries, verify Verkle proofs match NMT proofs (hybrid verification), benchmark 33Γ constraint reduction. |
| 120 | + |
| 121 | +size estimate: ~5,000-8,000 LOC |
| 122 | + |
| 123 | +### M6: provable consensus circuit (target: 4 sessions) |
| 124 | + |
| 125 | +tri-kernel computation inside zheng circuit. the endgame. |
| 126 | + |
| 127 | +deliverables: |
| 128 | +- `consensus_circuit.rs` β tri-kernel as nox execution trace (graph read via algebraic NMT β SpMV β combine β iterate) |
| 129 | +- `epoch_proof.rs` β prove one epoch's Ο* computation |
| 130 | +- `fold_epochs.rs` β recursive IVC folding across epochs |
| 131 | +- `light_client.rs` β verify accumulated proof (50 ΞΌs) |
| 132 | + |
| 133 | +dependencies: all previous milestones |
| 134 | + |
| 135 | +test: prove Ο* for a 1000-particle test graph inside zheng circuit, verify in <1ms. fold 10 epochs, verify accumulated proof. |
| 136 | + |
| 137 | +size estimate: ~3,000-5,000 LOC |
| 138 | + |
| 139 | +## total estimate |
| 140 | + |
| 141 | +| milestone | sessions | LOC | depends on | |
| 142 | +|---|---|---|---| |
| 143 | +| M1 nox | 4 | ~4K | nebu, hemera | |
| 144 | +| M2 zheng | 8 | ~10K | nebu, hemera, nox | |
| 145 | +| M3 bbg | 6 | ~8K | hemera, zheng | |
| 146 | +| M4 foculus | 4 | ~5K | bbg, zheng | |
| 147 | +| M5 algebraic NMT | 6 | ~6K | zheng, nebu | |
| 148 | +| M6 provable consensus | 4 | ~4K | all above | |
| 149 | +| total | 32 sessions | ~37K LOC | | |
| 150 | + |
| 151 | +at 3 hours per session: ~96 hours of focused work. parallelizable: M1+M5 overlap, M3+M4 partially overlap after M2. |
| 152 | + |
| 153 | +critical path: M1 β M2 β M3 β M4 β M6 (26 sessions sequential) |
| 154 | +with parallelism: M1 β M2 β (M3 β₯ M5) β M4 β M6 (22 sessions) |
| 155 | + |
| 156 | +## immediate blockers |
| 157 | + |
| 158 | +### 1. fix Cargo dependency paths (5 minutes) |
| 159 | + |
| 160 | +zheng, bbg, and mudra reference `hemera = { path = "../hemera" }` but hemera is a workspace. must be `{ path = "../hemera/rs" }`. same for nebu. three repos broken by path typo. |
| 161 | + |
| 162 | +### 2. nebu F_{pΒ²} extension (needed for M5) |
| 163 | + |
| 164 | +nebu has Fp2/Fp3/Fp4 module stubs. extension field arithmetic (multiply, inverse in F_{pΒ²}) needed for LogUp Schwartz-Zippel over extension field. ~200 LOC. |
| 165 | + |
| 166 | +### 3. trident β nox bridge |
| 167 | + |
| 168 | +trident compiles programs. nox executes them. the IR format must match. trident's TIR (typed IR) needs a lowering pass to nox's 16 patterns. this can wait until M2 but should be designed during M1. |
| 169 | + |
| 170 | +## tracking |
| 171 | + |
| 172 | +each milestone produces: |
| 173 | +- working Rust code with tests |
| 174 | +- benchmark against specification numbers |
| 175 | +- integration test with layer below |
| 176 | +- documentation update in the repo |
| 177 | + |
| 178 | +progress tracked by: does `cargo test` pass for the milestone's deliverables? |
| 179 | + |
| 180 | +the seven algorithms described in [[cyber/research/algorithmic essence of superintelligence]] become running code in 32 sessions. the recursive closure β graph β convergence β model β proof β consensus β graph β becomes executable. |
| 181 | + |
| 182 | +see [[nebu]] for field arithmetic. see [[hemera]] for hash primitives. see [[nox]] for VM specification. see [[zheng]] for proof system specification. see [[BBG]] for state layer specification. see [[foculus]] for consensus specification. see [[algebraic state commitments]] for the acceleration. see [[cyber/research/provable consensus]] for the endgame circuit |
0 commit comments