interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / evidence / BTWAVE-P0

02de724 docs(btwave): use private mktemp dir and preserve gate exit status in Reproduce (bay 3) Drake Stapleton committed 2026-11-11
..
lean/
README.md10367
expected-trace.out982
ipc.stdout97
oracle-query.wl13326
oracle-wolfram-raw.json1906
receipt.tsv14979

README.md

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.om binary produced byte-identical evidence/BTWAVE-P0/receipt.tsv (66 lines MEASURED).
  • Wrong-compiler negative control: passing /bin/true as <omc_path> printed BTWAVE NOT_RUN omc sha256 does not match pinned seed/out/omc and exited 77 (MEASURED).
  • Cross-core Cortex-X925 waveguide IPC: forked parent on core 16 and child on core 17 (cpuset + cpunow, cores 3, 7, 15 forbidden) executed 8 full-duplex raw 80-byte pipe frames with live H16 error correction and chained SHA-256 Give-Before-Take ledger settlement in 168,610 ns (0.169 ms MEASURED, varies per run, evidence/BTWAVE-P0/ipc.stdout). The host credits a Give round only when the returned job wave equals job_wave(sym) (-46 otherwise) and the receipt matches (-44); any host refusal closes the host pipe ends before waitpid so btwave ipc exits 65/66/67 cleanly without blocking.

Pins

SubjectValue
aien-train base07a6411b5a51714f9eed728c0673dbe13ca250e2 (feat/btwave-ternary-p0)
Root bootstrap seedomega-mv seed/rung0/seed0.hex sha256 baaf081fe6055a768485c5d25d7435681ce00b04cfa80b26c48169f78944e14d
Seeded compiler sourceomega-mv 713c9c079c2d97b58a2832495ddc7a374d462758 seed/omc/omc.om sha256 c86159627820cf5741be0a2a4c05df0efb78f5c91a652b986fec5d745baa62ed
Pinned omc binary3-stage seed/out/omc sha256 f4fa7951816bbd09c5eaaae6692852a70c3c305164b365027c5b683dec7d63e9 (674,212 B MEASURED)
Concatenated product .omcat trit.om ledger.om wave_ipc.om main.om sha256 29de9fda42b04b1bf51b459a0bc4612fdcfa7f93d192d0f6ad3bdd9454191689
Product ELF binarysha256 583209bf9bcf8dda9a3a976e2e45e4d19ac6cdd28a0b2dbe7e1147deb9d975a2 (79,472 B MEASURED, 3x identical)
Gate ELF binarycat trit.om gate.om -> sha256 06e7304aa22af1b04b8607ba31c6265e3dec19311fb70d99bbbc16a6fd181a05 (91,996 B MEASURED, not committed)
Wolfram oracleoracle-query.wl, oracle-wolfram-raw.json, expected-trace.out (sha256 b0c6399a7ae894148e8e1678a272add68385bdf67d6221044ded82216fb73575)
Lean 4 toolchainlean-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/729 bijective states on [-364, 364], unique zero-power Dark Consensus state at u = 0, total active carrier sum 2,916 trits).
  • hc3_16_of_16 -> True, nl1_central_r3_max -> 14, nl1_affine_r3_max -> 15 (MODELED: M = 3 balanced trits reconstruct 16/16 hypercube corners vs <= 14/16 for any 4 central binary hyperplanes in R^3).
  • h16_min_dist -> 8, h16_counts -> {32, 512, 360, 1120, 70} (MODELED & MEASURED: d_H = 8, 100% recovery up to 3 corruptions, 70/70 fail-closed refusals on 4-carrier odd-lane flips).
  • sha256_abc_hi64 -> 13436514500253700074 (0xba7816bf8f01cfea FIPS 180-4 "abc" self-check).
  • vmax_ceiling -> {83886080, 9223372036854775807, True}, ovf_sym0_sum -> 120, ovf_probe_overflows64 -> True (MODELED overflow bound and 2^62 * 120 overflow 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)

IDTarget Guard / InvariantSelf-Test VerdictTrace / Backstop Verdict
m01-guard-opcodeDrop opcode op in {1, 2} guard (-1)SELFTEST_CAUGHT (21)ORACLE_KILLED
m02-guard-epochDrop sequential epoch + 1 guard (-2)SELFTEST_CAUGHT (23)ORACLE_KILLED
m03-guard-give-workDrop GIVE work range guard (-3)SELFTEST_CAUGHT (23)ORACLE_KILLED
m04-guard-h16-tieBypass H16 tie refusal (-4)SELFTEST_CAUGHT (23)ORACLE_KILLED
m05-guard-active-powerDrop 32-carrier active power guard (-5)SELFTEST_CAUGHT (23)ORACLE_KILLED
m06-guard-scale-zeroDrop scale_bad range guard (-6)SELFTEST_CAUGHT (23)ORACLE_KILLED
m07-guard-sha256-rcptDrop constant-time SHA-256 receipt check (-7)SELFTEST_CAUGHT (23)ORACLE_KILLED
m08-guard-take-boundsDrop TAKE grant range guard (-8)SELFTEST_CAUGHT (23)ORACLE_KILLED
m09-guard-give-firstDrop contributed > 0 parasite guard (-9)SELFTEST_CAUGHT (21)ORACLE_KILLED
m10-guard-reciprocityDrop extracted + take <= contributed (-10)SELFTEST_CAUGHT (23)ORACLE_KILLED
m11-guard-chain-anchorNeutralize stale chain-anchor detection (-11)SELFTEST_CAUGHT (23)ORACLE_KILLED
m12-trit-neg-identReplace rotr a 32 negation with identitySELFTEST_CAUGHT (10)ORACLE_KILLED
m13-trit-dot-sumReplace pp - nn inner product with pp + nnSELFTEST_CAUGHT (16)ORACLE_KILLED
m14-bt6-dark-biasShift bt6enc offset 364 -> 365 (breaks Dark Zero)SELFTEST_CAUGHT (10)ORACLE_KILLED
m15-hc3-14of16-dropNarrow hc3dec to 14/16 hypercube cornersSELFTEST_CAUGHT (12)ORACLE_KILLED
m16-h16-allow-4flip-tieAccept bestd <= 4 midpoint tiesSELFTEST_CAUGHT (14)ORACLE_KILLED
m17-mutate-before-verdictMutate extracted prior to recip_ok checkSELFTEST_CAUGHT (23)ORACLE_KILLED
m18-trap-trit-overlapInject (pos & neg) != 0 in t32mul (Trit32mk)TRAP10 (110)TRAP10 (110)
m19-trap-wavedup-holdsBreak dup32 mirror in wdup_tag (holds WaveDup)TRAP10 (110)TRAP10 (110)
m20-trap-bt6-requiresOff-by-one u = 365 into bt6enc (requires)TRAP9 (109)TRAP9 (109)
m21-vmax-ceiling-blowupWiden VMAX past INT64_MAX / 1280 (ovf-probe)SELFTEST_CAUGHT (23)ORACLE_KILLED + TRAP1 (101)
m22-coordinated-selftest-blindPerturb build_swar_vec outside selftestSELFTEST_MISSED (0)ORACLE_KILLED
m23-ipc-peer-wrong-jobNode B returns job_wave(sym xor 1) with a self-consistent receiptnot run (ipc only)IPC_REFUSED_65 (btwave ipc exit 65, empty stdout)
x1-swap-credit-for-grantPass CreditJ as GrantJ to recip_okCOMPILE_REFUSED_7omc exit 7
x2-swap-grant-for-creditPass GrantJ as CreditJ to recip_okCOMPILE_REFUSED_7omc exit 7
x3-raw-ulong-as-trit32Pass raw ulong as Trit32 to h16decCOMPILE_REFUSED_7omc exit 7
x4-swap-grant-as-wavedupPass GrantJ as WaveDup to wdup_chkCOMPILE_REFUSED_7omc 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):

  1. 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 Zero bt6Pow(bt6Enc u) = 0 <-> u = 0, and 16/16 hypercube corner reconstruction.
  2. swar_lane_mul_iso, swar_popcount_dot_iso, h16_min_dist_eight, h16_unique_decode_le_three: (pos, neg) SWAR bitplane algebra isomorphism and H16 minimum distance 8 implying unique nearest-neighbor decoding for <= 3 corruptions.
  3. ledger_give_before_take_invariant, wave_eval_fits_signed64: inductive Give-Before-Take invariant extracted <= contributed across arbitrary event traces and signed 64-bit overflow freedom under |sc| <= 65536.
  4. Load-bearing negative controls: nl1_four_central_hyperplanes_r3_at_most_14 (<= 14 < 16 strict sign orthants for any 4 central hyperplanes in R^3), h16_four_flip_tie_witness (distance-4 tie under 4 flips), dropping_reciprocity_guard_violates_invariant, and ovf_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 (omc emits static Linux AArch64 ELF binaries).
  • GitHub CI: NOT_RUN (Radicle-only local bundle handoff).