interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / OM2-COMPILER / s3 / fuel / ir-trap / RESULT.md

70 lines · 6943 bytes Raw Blame History Source

Seeded Omega IR trap repair (L524)

Scope and ancestry

This is a bounded repair to the experimental R6 scalar IR emitter, not completion of R6 and not general IR qualification. The source milestone is 6849cae160ef890a147eb829ae39c3c68f733eda on fix/seed-ir-trap, based on the structs milestone 57f5f4258cebf3d5b2c22853cd062e351265c525.

The starting IR implementation was inherited uncommitted work in the L408 worktree. Its source SHA-256 is 04fc0d5f6dcfba93bcd9adecaf63bbc7c883adb05d7e48a7401af3fb9d9b4ecd; inherited-ir.patch preserves that input separately. repair.patch shows this repair alone. The original compiler source remains unchanged there; this repair has its own worktree and branch.

Compiler source under test: seed/omc/omc.om, SHA-256 6ce0e53fbf7a99454cfbfe1e6790c6c0065f4e1d8538dd95fad9ad9b8b571f51. Compiler ELF: SHA-256 d61d76156688320aa7f70327a34cc34901814bfbaa15e4659bc9cf13714fbf76.

The rebuilt ancestry is seed0 handwritten hex -> hex1 -> asm2 -> om4 -> Omega-written omc -> two self-builds. The outside initial conversion is the disclosed POSIX-shell load0.sh; shell/file/hash utilities and Linux remain host dependencies. No C compiler builds omc in that reconstruction. Fixed-point identity is self-consistency, not independent proof of compiler correctness.

Defect and repair

kw maps trap, break, and own to the same unsupported-word code, 77. The experimental IR dispatcher let that code fall into assignment parsing. Thus if gt a 10; trap 3; end; ret a emitted accepted IR which returned a for 11 instead of trapping.

The repair implements ir_trap in Omega:

Verified checks

Wolfram verification

wolfram.wl and wolfram-result.txt contain actual Wolfram Language evaluator input/output. They independently check:

C-built Omegese/omega_emit/checker2, the OSC interpreter/native backend and Rust-built tokcount are explicitly test oracles, not build/runtime dependencies of the reconstructed seed-born compiler. In particular, IR behavior is exercised through the reference native backend; this does not claim a completed seed-native IR loader/backend.

Reproduction

On AArch64 Linux, in a full checkout:

make omegese omega-emit checker2       # legacy test oracles only
sh seed/omc/qualify-ir-trap.sh

The harness rejects failed compiler exits and empty/non-AArch64 ELF artifacts before execution. No GPU model, service, driver, module or boot setting is changed.

Limits and outstanding acceptance

Final qualification disposition

Completed, RC=0. qualification.log records successful seed replay, the new trap/refusal/mutation gates, inherited scalar and struct gates, Gate5 correctness, and the normal plus ASan/UBSan make test-omegese suite. The sanitizer run reports no ASan or UBSan finding and finishes its 2,799 byte-prefix probes. The default tokenizer check was skipped by that inherited script; a separate real-tokenizer check executed all 49 fixed words against both the original 30B and current 35B tokenizers, with no multi-token word (tokenizer.json).

lineage.sha256 binds the actual sources and reconstructed compiler. elf-header.txt identifies AArch64 ELF; elf-dynamic.txt reports no dynamic section. The original L408 compiler source still hashes to 04fc0d5f6dcfba93bcd9adecaf63bbc7c883adb05d7e48a7401af3fb9d9b4ecd.

The bounded host trap repair is complete and independently reviewed. The explicit full-Gate5 timing and general-R6 limitations above remain; this is a checkpoint for L408 integration, not whole-language or production-retirement acceptance.