The Monk
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.
- Stem-cell seedseed/rung0/seed0.hex (408 B)
- Base & grammar0x400000 · # comments
- Role in helixReference compiler & proof gate
- Formal backingHelixSoundness.lean (0 sorry)
Click to inspect how The Monk guards the compiler and GPU.
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.
01. Bootstrap ladder from 408 bytes to omc6 stages · zero C
The Monk starts with 408 bytes of hex-encoded AArch64 machine code (seed0.hex) 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 seed/out/omc binary.
seed/rung0/seed0.hex (408 B)
-> seed0.bin (hex loader at 0x400000)
-> hex1.bin (label-aware hex assembler)
-> asm2.bin (AArch64 macro assembler)
-> om4.bin (stage-0 Omega compiler)
-> s0_s1 (self-hosted omc generation 1)
-> omc_s0 (SHA-256: 708fdc0f81866594ed6df2f492b7a8a6bc7456f2d733a838b7f840549ebba6c3)
02. Six in-memory SM121 proof checks before VRAM uploadhxMonkVerify
Before an evolved kernel from The Predator, The Trickster or The Ascetic is uploaded to GB10 VRAM, helix_jit.om passes it through Monk's in-process verifier. Failure on a single check drops the candidate immediately and preserves the untouched reference kernel.
1. 128-bit functional equality outside SM121 control word w3[9..25]
2. Exact bijection permutation (blocks duplication and truncation)
3. Anchor pinning: flow != 0, guard != 7, ISETP, FSETP, basic-block leaders
4. RAW / WAR / WAW register dependency preservation across swaps
5. Full CFG worklist fixed-point scoreboard dataflow: hazards == 0
6. Fixed-latency ALU RAW cycle floor >= min(ref_cycles, rawFloor) at branch/exit boundaries
03. Startup 3-mutant negative self-test3/3 KILLED
On first initialization inside helix_jit.om, Monk tests itself against three deliberate kernel corruptions before trusting its own verdict:
Mutant A: functional opcode bit smuggle -> KILLED
Mutant B: LDG/LDS wait-barrier mask strip -> KILLED
Mutant C: illegal fixed-latency stall shave -> KILLED
Result: 3/3 caught before live kernel evolution begins
04. EGP2 structural dual-checker & RFC 8032 Ed25519 receiptsdual_checker.om
The Monk does not trust The Predator's e-graph optimizer by name. dual_checker.om replays the serialized EGP2 union-find proof table independently, checks concrete semantic equivalence (eval_checks=12), rejects unsound rewrite rule 99 and structural spoofs (neg_controls=2/2), and signs canonical Diverse Double Compilation manifests with pure-Omega RFC 8032 Ed25519 (sign_ddc.om).
05. Run The Monk cold-regrowth & Lean 4 gate yourselfAArch64 Linux
On 64-bit Arm Linux from an omega-mv clone (no C, no Python, no CUDA):
sh seed/helix/cold-regrowth.sh --lean
sh seed/helix/braid4-verify.sh
What you can check today Strand 0 (The Monk) starts from 408 bytes in seed/rung0/seed0.hex, implements the standalone SM121 proof verifier (monk_check.om) and in-process JIT verifier (helix_jit.om), and converges bit-for-bit on seed/out/omc alongside the other three strands. monk_check.om helix_jit.om Helix README