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
omega-mv / om / sha256 / om2-evidence / s4 / README.txt
| 1 | Full unit under S4 (L838, 2026-10-25). Evidence class HOST (GB10 host CPU, AArch64 Linux), no GPU. |
| 2 | This is the author's run; it does not qualify the unit (L836 does). |
| 3 | |
| 4 | Compiler: aien-dev/om2/compiler-s4 @ f6a6492fd (draft PR #764), omc sha256 |
| 5 | 499236398aabc652e2dae27fe4bdc4c5db3d3726314356e0dbef23e3345803ec, born here from that commit by |
| 6 | nice -n 19 sh seed/omega-from-seed.sh (rc 0, birth-f6a6492f.log); equals CompilerS4's binary |
| 7 | /tmp/om2c/s4/omc-s4-f6a6492f, which was used for the runs below. |
| 8 | Unit: om/sha256/sha256-om2.om (344 lines), sha256 |
| 9 | dbf002dd6aa36585632b9d01d98ac3f0bd2fa0f0475082940de53638847994bb |
| 10 | omc < sha256-om2.om: exit 0, 21340 bytes, sha256 27775fb2106dc0695d32417b1545af0027c136fe05bcdc4abd12cb473460570b, |
| 11 | byte-identical on a second compile. |
| 12 | Bridge: aien-dev/omega-bridge feat/slice-abi @ 3bb8b8a (AbiLane: 1392549 plus tests/docs; src/native.om |
| 13 | and tools/native unchanged; outputs here are byte-identical to 1392549's). |
| 14 | OMEGA_NATIVE_OMC=<seed omc 734f0a39> OMEGA_NATIVE_OMC2=<S4 omc> tools/native OUT \ |
| 15 | om/sha256/sha256-om2.om om/blake3/b3unit.om rc 0 |
| 16 | ident.txt: sha256_om2 abi=2 profile=OM-2 src=dbf002dd… omc=49923639…; b3unit abi=1 profile=OM-1. |
| 17 | omega_api.h.generated: sha256_ctx {uint32_t state[8]; uint64_t count; uint8_t buf[64];} with |
| 18 | static asserts (104; 0, 32, 40), SHA256_DIGEST_SIZE/BLOCK_SIZE, static inline sha256_init/update/ |
| 19 | final/hash -> omega2_sha256_* with abort() on a nonzero status. Field `buf` (src/sha256.h says |
| 20 | `buffer`; no caller touches fields, AUDIT-L838.txt item 5). |
| 21 | sha256: omega_native.c 21b58846…, omega_api.h 79c7de9c…, libomega_native.so 0f8d029c… |
| 22 | |
| 23 | Harness t.c (oracle side, outside the closure): cc 13.3.0 -std=gnu11 -O2 -Wall -Wextra -Werror, |
| 24 | omega_native.c + t.c + the historical C (src/sha256.c @ a647b6a9, sha a8fb8861…, renamed orc_*). |
| 25 | python3 harness.py ./t vec vectors pass=158 fail=0 (each vector also through random update |
| 26 | splits 0..4096 bytes; exit 4 if they differ) |
| 27 | ./t receipts all PASS (receipts.out): |
| 28 | lengths 0..9000, hash and split update == C |
| 29 | 2000 random lengths < 20000, hash and split update == C |
| 30 | E3 (2) hash(d,32,d) iterated 100x == C; hash(d,64,d) (digest over the first 32 bytes) == C |
| 31 | E3 (1) byte copy of a live context after k = 0..299 updates of 7 bytes, both continued, == C |
| 32 | section 7: init/update/final after a final == fresh context |
| 33 | section 7: hash(n) == init/update(0,NULL)/update(n)/update(0)/final, n = 0..299 (empty updates) |
| 34 | omega2_ident_sha256_om2() names unit sha256_om2, profile OM-2 |
| 35 | ./t big PASS update of 2^32+4094 bytes (after 3) == C; |
| 36 | PASS hash of 2^32+4097 bytes == C (50.9 s wall, both arms) |
| 37 | These go through blocks/run: 128 runs of 2^25 bytes plus the rest. The top level (2^44 bytes) |
| 38 | is exercised only by the scaled desk check (deskcheck/RESULT.txt). |
| 39 | |
| 40 | Code (objdump 2.42 on the unit's code only): 21340 bytes, 5335 insns, ROR immediate 576 (64 x 6 + |
| 41 | 48 x 4), RORV 0, LDR immediate 376, LDR register 87, SVC 0 (section 8: no system calls). |
| 42 | |
| 43 | Compile-time refusals of the full unit (sed on a copy): |
| 44 | schedule loads 15 words (w[15] unwritten) omc: line 127: error 27 (fresh, obligation=init) |
| 45 | field count at 31 (overlaps state) omc: line 25: error 29 (the field line) |
| 46 | put c count 1 ... (index on scalar field) omc: line 287: error 5 (E8) |
| 47 | blocks without part (whole d) compiles (part is not required by the types; kept for |
| 48 | the 1e6-pass loop limit) |
| 49 | Change made for S4 (see AUDIT-L838.txt item 7): absorb's tail copy exceeded 16 registers (error 12 at |
| 50 | line 268 @ 4c8aa0ff7, reported by CompilerS4); the copy into the buffer is now fn tobuf, used by |
| 51 | absorb and by sha256_update's short path; absorb reads n = len d instead of a parameter. |
| 52 | NOT_RUN here: runtime mutants of the full unit, trace-equivalence scan, paired timing; L836 owns them. |