BTWAVE-P0: Pure Seeded OM-2 Balanced-Ternary Waveguide and Give-Before-Take Compute Engine
Outcome and Scope
EXERCISED on Linux AArch64 (NVIDIA GB10 Grace-Blackwell SoC, Arm Cortex-X925 cores 16-18 @ 3900 MHz, nice 10; Lean 4 checked on Arm Cortex-A725 cores 0-1 @ 2808 MHz, nice 10):
BTWAVE PASS mutants_killed=23/23 type_swaps_refused=4/4 trace_sha256=b0c6399a7ae894148e8e1678a272add68385bdf67d6221044ded82216fb73575
- Pure OM-2 implementation and gate:
native/btwave/{trit.om,ledger.om,wave_ipc.om,main.om,gate.om}contains zero C, C++, Rust, Python, or shell implementation or gate code (DIRECTIVE-20261107-pure-omega.md). - Deterministic replay: two consecutive executions of the compiled pure-OM-2
gate.ombinary produced byte-identicalevidence/BTWAVE-P0/receipt.tsv(66linesMEASURED). - Wrong-compiler negative control: passing
/bin/trueas<omc_path>printedBTWAVE NOT_RUN omc sha256 does not match pinned seed/out/omcand exited77(MEASURED). - Cross-core Cortex-X925 waveguide IPC: forked parent on core
16and child on core17(cpuset+cpunow, cores3, 7, 15forbidden) executed8full-duplex raw80-bytepipe frames with liveH16error correction and chained SHA-256 Give-Before-Take ledger settlement in168,610 ns(0.169 msMEASURED, varies per run,evidence/BTWAVE-P0/ipc.stdout). The host credits a Give round only when the returned job wave equalsjob_wave(sym)(-46otherwise) and the receipt matches (-44); any host refusal closes the host pipe ends beforewaitpidsobtwave ipcexits65/66/67cleanly without blocking.
Pins
| Subject | Value |
|---|---|
aien-train base | 07a6411b5a51714f9eed728c0673dbe13ca250e2 (feat/btwave-ternary-p0) |
| Root bootstrap seed | omega-mv seed/rung0/seed0.hex sha256 baaf081fe6055a768485c5d25d7435681ce00b04cfa80b26c48169f78944e14d |
| Seeded compiler source | omega-mv 713c9c079c2d97b58a2832495ddc7a374d462758 seed/omc/omc.om sha256 c86159627820cf5741be0a2a4c05df0efb78f5c91a652b986fec5d745baa62ed |
Pinned omc binary | 3-stage seed/out/omc sha256 f4fa7951816bbd09c5eaaae6692852a70c3c305164b365027c5b683dec7d63e9 (674,212 B MEASURED) |
Concatenated product .om | cat trit.om ledger.om wave_ipc.om main.om sha256 29de9fda42b04b1bf51b459a0bc4612fdcfa7f93d192d0f6ad3bdd9454191689 |
| Product ELF binary | sha256 583209bf9bcf8dda9a3a976e2e45e4d19ac6cdd28a0b2dbe7e1147deb9d975a2 (79,472 B MEASURED, 3x identical) |
| Gate ELF binary | cat trit.om gate.om -> sha256 06e7304aa22af1b04b8607ba31c6265e3dec19311fb70d99bbbc16a6fd181a05 (91,996 B MEASURED, not committed) |
| Wolfram oracle | oracle-query.wl, oracle-wolfram-raw.json, expected-trace.out (sha256 b0c6399a7ae894148e8e1678a272add68385bdf67d6221044ded82216fb73575) |
| Lean 4 toolchain | lean-verify 8b969194, leanprover/lean4:v4.35.0, Mathlib v4.35.0 (lean/BtWaveProofs.lean, lean/lean-check.log) |
Independent Wolfram Oracle (oracle-query.wl -> oracle-wolfram-raw.json)
Submitted verbatim to https://agenttools.wolfram.com/mcp (WolframLanguageEvaluator), returning:
bt6_states -> 729,bt6_bijection -> True,bt6_neg_sym -> True,bt6_dark_zero -> True(MODELED&MEASURED:729/729bijective states on[-364, 364], unique zero-power Dark Consensus state atu = 0, total active carrier sum2,916 trits).hc3_16_of_16 -> True,nl1_central_r3_max -> 14,nl1_affine_r3_max -> 15(MODELED:M = 3balanced trits reconstruct16/16hypercube corners vs<= 14/16for any4central binary hyperplanes inR^3).h16_min_dist -> 8,h16_counts -> {32, 512, 360, 1120, 70}(MODELED&MEASURED:d_H = 8,100%recovery up to3corruptions,70/70fail-closed refusals on4-carrier odd-lane flips).sha256_abc_hi64 -> 13436514500253700074(0xba7816bf8f01cfeaFIPS 180-4"abc"self-check).vmax_ceiling -> {83886080, 9223372036854775807, True},ovf_sym0_sum -> 120,ovf_probe_overflows64 -> True(MODELEDoverflow bound and2^62 * 120overflow witness).ledger_invariant_holds -> True,ledger_summary -> {2, 2, 12, 90, 90},trace_sha256 -> "b0c6399a7ae894148e8e1678a272add68385bdf67d6221044ded82216fb73575".
Native btwave trace stdout matches expected-trace.out byte for byte (982 B, sha256
b0c6399a7ae894148e8e1678a272add68385bdf67d6221044ded82216fb73575 MEASURED).
Mutant Matrix (receipt.tsv: 22 Runtime/Contract/Trap Mutants + 1 IPC Peer Mutant + 4 Compile-Fail Swaps)
| ID | Target Guard / Invariant | Self-Test Verdict | Trace / Backstop Verdict |
|---|---|---|---|
m01-guard-opcode | Drop opcode op in {1, 2} guard (-1) | SELFTEST_CAUGHT (21) | ORACLE_KILLED |
m02-guard-epoch | Drop sequential epoch + 1 guard (-2) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m03-guard-give-work | Drop GIVE work range guard (-3) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m04-guard-h16-tie | Bypass H16 tie refusal (-4) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m05-guard-active-power | Drop 32-carrier active power guard (-5) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m06-guard-scale-zero | Drop scale_bad range guard (-6) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m07-guard-sha256-rcpt | Drop constant-time SHA-256 receipt check (-7) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m08-guard-take-bounds | Drop TAKE grant range guard (-8) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m09-guard-give-first | Drop contributed > 0 parasite guard (-9) | SELFTEST_CAUGHT (21) | ORACLE_KILLED |
m10-guard-reciprocity | Drop extracted + take <= contributed (-10) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m11-guard-chain-anchor | Neutralize stale chain-anchor detection (-11) | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m12-trit-neg-ident | Replace rotr a 32 negation with identity | SELFTEST_CAUGHT (10) | ORACLE_KILLED |
m13-trit-dot-sum | Replace pp - nn inner product with pp + nn | SELFTEST_CAUGHT (16) | ORACLE_KILLED |
m14-bt6-dark-bias | Shift bt6enc offset 364 -> 365 (breaks Dark Zero) | SELFTEST_CAUGHT (10) | ORACLE_KILLED |
m15-hc3-14of16-drop | Narrow hc3dec to 14/16 hypercube corners | SELFTEST_CAUGHT (12) | ORACLE_KILLED |
m16-h16-allow-4flip-tie | Accept bestd <= 4 midpoint ties | SELFTEST_CAUGHT (14) | ORACLE_KILLED |
m17-mutate-before-verdict | Mutate extracted prior to recip_ok check | SELFTEST_CAUGHT (23) | ORACLE_KILLED |
m18-trap-trit-overlap | Inject (pos & neg) != 0 in t32mul (Trit32mk) | TRAP10 (110) | TRAP10 (110) |
m19-trap-wavedup-holds | Break dup32 mirror in wdup_tag (holds WaveDup) | TRAP10 (110) | TRAP10 (110) |
m20-trap-bt6-requires | Off-by-one u = 365 into bt6enc (requires) | TRAP9 (109) | TRAP9 (109) |
m21-vmax-ceiling-blowup | Widen VMAX past INT64_MAX / 1280 (ovf-probe) | SELFTEST_CAUGHT (23) | ORACLE_KILLED + TRAP1 (101) |
m22-coordinated-selftest-blind | Perturb build_swar_vec outside selftest | SELFTEST_MISSED (0) | ORACLE_KILLED |
m23-ipc-peer-wrong-job | Node B returns job_wave(sym xor 1) with a self-consistent receipt | not run (ipc only) | IPC_REFUSED_65 (btwave ipc exit 65, empty stdout) |
x1-swap-credit-for-grant | Pass CreditJ as GrantJ to recip_ok | COMPILE_REFUSED_7 | omc exit 7 |
x2-swap-grant-for-credit | Pass GrantJ as CreditJ to recip_ok | COMPILE_REFUSED_7 | omc exit 7 |
x3-raw-ulong-as-trit32 | Pass raw ulong as Trit32 to h16dec | COMPILE_REFUSED_7 | omc exit 7 |
x4-swap-grant-as-wavedup | Pass GrantJ as WaveDup to wdup_chk | COMPILE_REFUSED_7 | omc exit 7 |
Formal Proofs in Lean 4 (lean/BtWaveProofs.lean, lean/lean-check.log)
Checked with lake env lean (leanprover/lean4:v4.35.0, Mathlib v4.35.0, rc 0). Every theorem's
#print axioms output uses only subsets of [propext, Classical.choice, Quot.sound] (zero
sorryAx, zero native_decide, zero custom axiom):
bt6_valid_and_left_inv,bt6_right_inv,bt6_neg_sym,bt6_dark_zero,hc3_reconstructs_16_of_16: two-sided bijection on[-364, 364], 1-op negation symmetry, Dark Zerobt6Pow(bt6Enc u) = 0 <-> u = 0, and16/16hypercube corner reconstruction.swar_lane_mul_iso,swar_popcount_dot_iso,h16_min_dist_eight,h16_unique_decode_le_three:(pos, neg)SWAR bitplane algebra isomorphism andH16minimum distance8implying unique nearest-neighbor decoding for<= 3corruptions.ledger_give_before_take_invariant,wave_eval_fits_signed64: inductive Give-Before-Take invariantextracted <= contributedacross arbitrary event traces and signed 64-bit overflow freedom under|sc| <= 65536.- Load-bearing negative controls:
nl1_four_central_hyperplanes_r3_at_most_14(<= 14 < 16strict sign orthants for any4central hyperplanes inR^3),h16_four_flip_tie_witness(distance-4tie under4flips),dropping_reciprocity_guard_violates_invariant, andovf_probe_without_scale_guard_overflows64.
Reproduce
T=$(mktemp -d)
cat native/btwave/trit.om native/btwave/gate.om | "$OMC" > "$T/gate"
chmod +x "$T/gate"
cp -r evidence/BTWAVE-P0 "$T/ev"
"$T/gate" "$OMC" "$T/ev"; rc=$?
rm -rf "$T"
(exit "$rc")
Run these commands from the repository root. The gate opens native/btwave/*.om relative to the
working directory; from any other directory it prints BTWAVE FAIL gate check failed at step 5.
The gate rewrites receipt.tsv and ipc.stdout in the directory it is given (ipc.stdout
elapsed_ns varies per run); pass a copy of evidence/BTWAVE-P0 to keep the committed receipts
unchanged. The block works in a private mktemp -d directory and ends with the gate's exit status.
No compiled ELF binaries are stored in evidence/BTWAVE-P0/.
Not Run or Not Claimed
- GB10 GPU kernels, multi-host sockets/RDMA, LLM weight training, and AEGIS authority:
NOT_RUN. - x86-64 build:
NOT_RUN(omcemits static Linux AArch64 ELF binaries). - GitHub CI:
NOT_RUN(Radicle-only local bundle handoff).