interplane.io
Source of interplane.io: a Rust generator that renders the page from the protocol repository's public record, deployed hourly from the Spark.
Brought by drakestapleton
interplane.io / content / omega / monk / index.html
| 1 | title: The Monk: Strand 0 reference compiler and proof verifier | Omega | Interplane |
| 2 | description: Meet The Monk (Strand 0), Omega's 408-byte reference compiler, SM121 GPU proof-rung verifier, e-graph dual-checker and pure-Omega Ed25519 receipt signer. |
| 3 | --- |
| 4 | <section class="strand-hero theme-monk"><div class="shell"> |
| 5 | <nav class="strand-switcher" aria-label="Switch Omega compiler strand"> |
| 6 | <a class="strand-pill" href="/omega/">4-Strand Helix</a> |
| 7 | <a class="strand-pill p-monk active" href="/omega/monk/"><i class="dna-dot n-a"></i>The Monk</a> |
| 8 | <a class="strand-pill p-predator" href="/omega/predator/"><i class="dna-dot n-b"></i>The Predator</a> |
| 9 | <a class="strand-pill p-trickster" href="/omega/trickster/"><i class="dna-dot n-c"></i>The Trickster</a> |
| 10 | <a class="strand-pill p-ascetic" href="/omega/ascetic/"><i class="dna-dot n-d"></i>The Ascetic</a> |
| 11 | <a class="strand-pill p-arboris" href="/omega/arboris/"><i class="dna-dot n-spooky"></i>Arboris Nervous System</a> |
| 12 | <a class="strand-pill p-arcade" href="/omega/play/">Play Zero-JS Games</a> |
| 13 | </nav> |
| 14 | <span class="eyebrow">Strand 0 · The Skeleton · Genome G0</span> |
| 15 | <h1>The <em>Monk</em></h1> |
| 16 | <p class="lede">The Monk is Omega's brutally simple reference compiler and mechanical proof gate. Grown from 408 bytes of hand-written AArch64 machine code, it checks proposed GPU kernels in memory before a single instruction reaches VRAM. If one bit breaks the contract, the candidate dies on the spot.</p> |
| 17 | <div class="actions"> |
| 18 | <a class="button orange" href="/omega/#downloads">Download Omega</a> |
| 19 | <a class="button dark" href="https://interplane.io/drakestapleton/omega-mv/blob/main/seed/helix/monk_check.om">Read monk_check.om</a> |
| 20 | <a class="button dark" href="/omega/predator/">Next strand: The Predator →</a> |
| 21 | </div> |
| 22 | <ul class="seed-spec" aria-label="The Monk seed specification"> |
| 23 | <li><span class="spec-k">Stem-cell seed</span><span class="spec-v">seed/rung0/seed0.hex (408 B)</span></li> |
| 24 | <li><span class="spec-k">Base & grammar</span><span class="spec-v">0x400000 · # comments</span></li> |
| 25 | <li><span class="spec-k">Role in helix</span><span class="spec-v">Reference compiler & proof gate</span></li> |
| 26 | <li><span class="spec-k">Formal backing</span><span class="spec-v">HelixSoundness.lean (0 sorry)</span></li> |
| 27 | </ul> |
| 28 | </div></section> |
| 29 | |
| 30 | <div class="rope-band" aria-hidden="true"><img src="/public/strand-rope-a.svg" width="4480" height="240" alt=""></div> |
| 31 | |
| 32 | <section class="section"><div class="shell"><div class="col wide"> |
| 33 | <div class="sec-head"> |
| 34 | <div> |
| 35 | <span class="eyebrow">Interactive Monk lab</span> |
| 36 | <h2>Click to inspect how The Monk guards the compiler and GPU.</h2> |
| 37 | <p>Open any drawer below to step through the bootstrap ladder, the six in-memory SM121 proof checks, the startup self-test mutants and the cryptographic receipt pipeline.</p> |
| 38 | </div> |
| 39 | </div> |
| 40 | |
| 41 | <div class="lab-grid"> |
| 42 | <details class="lab-drawer d-monk" open> |
| 43 | <summary><span>01. Bootstrap ladder from 408 bytes to omc</span><span class="lab-tag">6 stages · zero C</span></summary> |
| 44 | <div class="lab-body"> |
| 45 | <p>The Monk starts with 408 bytes of hex-encoded AArch64 machine code (<code>seed0.hex</code>) and grows six stages without GCC, Clang, Rust, LLVM or Python. The final stage converges bit-for-bit with the other three independent strands on the 952,784-byte <code>seed/out/omc</code> binary.</p> |
| 46 | <pre class="wrap"><code>seed/rung0/seed0.hex (408 B) |
| 47 | -> seed0.bin (hex loader at 0x400000) |
| 48 | -> hex1.bin (label-aware hex assembler) |
| 49 | -> asm2.bin (AArch64 macro assembler) |
| 50 | -> om4.bin (stage-0 Omega compiler) |
| 51 | -> s0_s1 (self-hosted omc generation 1) |
| 52 | -> omc_s0 (SHA-256: 708fdc0f81866594ed6df2f492b7a8a6bc7456f2d733a838b7f840549ebba6c3)</code></pre> |
| 53 | </div> |
| 54 | </details> |
| 55 | |
| 56 | <details class="lab-drawer d-monk"> |
| 57 | <summary><span>02. Six in-memory SM121 proof checks before VRAM upload</span><span class="lab-tag">hxMonkVerify</span></summary> |
| 58 | <div class="lab-body"> |
| 59 | <p>Before an evolved kernel from The Predator, The Trickster or The Ascetic is uploaded to GB10 VRAM, <code>helix_jit.om</code> passes it through Monk's in-process verifier. Failure on a single check drops the candidate immediately and preserves the untouched reference kernel.</p> |
| 60 | <pre class="wrap"><code>1. 128-bit functional equality outside SM121 control word w3[9..25] |
| 61 | 2. Exact bijection permutation (blocks duplication and truncation) |
| 62 | 3. Anchor pinning: flow != 0, guard != 7, ISETP, FSETP, basic-block leaders |
| 63 | 4. RAW / WAR / WAW register dependency preservation across swaps |
| 64 | 5. Full CFG worklist fixed-point scoreboard dataflow: hazards == 0 |
| 65 | 6. Fixed-latency ALU RAW cycle floor >= min(ref_cycles, rawFloor) at branch/exit boundaries</code></pre> |
| 66 | </div> |
| 67 | </details> |
| 68 | |
| 69 | <details class="lab-drawer d-monk"> |
| 70 | <summary><span>03. Startup 3-mutant negative self-test</span><span class="lab-tag">3/3 KILLED</span></summary> |
| 71 | <div class="lab-body"> |
| 72 | <p>On first initialization inside <code>helix_jit.om</code>, Monk tests itself against three deliberate kernel corruptions before trusting its own verdict:</p> |
| 73 | <pre class="wrap"><code>Mutant A: functional opcode bit smuggle -> KILLED |
| 74 | Mutant B: LDG/LDS wait-barrier mask strip -> KILLED |
| 75 | Mutant C: illegal fixed-latency stall shave -> KILLED |
| 76 | Result: 3/3 caught before live kernel evolution begins</code></pre> |
| 77 | </div> |
| 78 | </details> |
| 79 | |
| 80 | <details class="lab-drawer d-monk"> |
| 81 | <summary><span>04. EGP2 structural dual-checker & RFC 8032 Ed25519 receipts</span><span class="lab-tag">dual_checker.om</span></summary> |
| 82 | <div class="lab-body"> |
| 83 | <p>The Monk does not trust The Predator's e-graph optimizer by name. <code>dual_checker.om</code> replays the serialized <code>EGP2</code> union-find proof table independently, checks concrete semantic equivalence (<code>eval_checks=12</code>), rejects unsound rewrite rule 99 and structural spoofs (<code>neg_controls=2/2</code>), and signs canonical Diverse Double Compilation manifests with pure-Omega RFC 8032 Ed25519 (<code>sign_ddc.om</code>).</p> |
| 84 | </div> |
| 85 | </details> |
| 86 | |
| 87 | <details class="lab-drawer d-monk"> |
| 88 | <summary><span>05. Run The Monk cold-regrowth & Lean 4 gate yourself</span><span class="lab-tag">AArch64 Linux</span></summary> |
| 89 | <div class="lab-body"> |
| 90 | <p>On 64-bit Arm Linux from an <code>omega-mv</code> clone (no C, no Python, no CUDA):</p> |
| 91 | <pre class="wrap"><code>sh seed/helix/cold-regrowth.sh --lean |
| 92 | sh seed/helix/braid4-verify.sh</code></pre> |
| 93 | </div> |
| 94 | </details> |
| 95 | </div> |
| 96 | |
| 97 | <div class="col prose"> |
| 98 | <p><span class="reg check">What you can check today</span> Strand 0 (The Monk) starts from 408 bytes in <code>seed/rung0/seed0.hex</code>, implements the standalone SM121 proof verifier (<code>monk_check.om</code>) and in-process JIT verifier (<code>helix_jit.om</code>), and converges bit-for-bit on <code>seed/out/omc</code> alongside the other three strands. <a href="https://interplane.io/drakestapleton/omega-mv/blob/main/seed/helix/monk_check.om">monk_check.om</a> <a href="https://interplane.io/drakestapleton/omega-mv/blob/main/seed/helix/helix_jit.om">helix_jit.om</a> <a href="https://interplane.io/drakestapleton/omega-mv/blob/main/seed/helix/README.md">Helix README</a></p> |
| 99 | </div> |
| 100 | </div></div></section> |