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 / docs / numeric / E1_GAP_TABLE.md

312 lines · 35360 bytes Raw Blame History Rendered
1# E1 Numerical Closure: Gap Table
2
3Status 2026-10-02: E1 CLOSED on the fb36109 chip campaign, receipt `evidence/E1-CLOSURE/e7851c69d34ac777a9436af16d0bdd5d69264c8528c62d562b600f5d89153061.json`; see the closure section at the end. Everything between here and there is dated history and is kept as written.
4
5Status: research note, 2026-09-30, read-only survey of `origin/main` at `529ebfa`; rows refreshed 2026-10-01 (see the status summary below).
6The 2026-10-01 rows were built and run; see the update section below.
7
8Update 2026-10-02: Gate 5 chip PASS on the corrected #225 candidate 1720a8d + physics e95e3ed, receipt `evidence/OMEGA-NUMERIC-0/3bb806d2...e5bab8.json`. M19 on that pair is INCOMPLETE: accuracy and build/tooling PASS; endurance NOT ESTABLISHED (the 1,000-job loop exited before its first GPU job), so M19 is not qualified and #225 is neither qualified nor disqualified by it. Endurance reruns on current main after E1. See `evidence/GATE14-FOUNDATION/legs-1720a8d/README.md`.
9
10Plan source: `aien-architecture/CURRENT_EXECUTION_PLAN.md`, section 8, "E1. Numerical closure"
11(must close before M20 tensor training). Evidence source: the merged M19R Gate 5
12(OMEGA-NUMERIC-0, omega#107, merge `62f5ba5`), canonical receipt
13`evidence/OMEGA-NUMERIC-0/dc4e6012...f860db.json` (run on omega `8024e9a` + physics `e95e3ed`, PASS 23/23).
14
15
16## Status summary, 2026-10-01 (reconciled at omega `07004a8`)
17
18**E1 is NOT closed. Verdict: PARTIAL, 2 of 6 exit requirements met.** (This was true on 2026-10-01. Superseded 2026-10-02: see "Closure, 2026-10-02" at the end of this file.) Rows 1 to 10 below were refreshed on
19this date; sections 1 and 4 and the "Existing evidence (file:line)" figures for rows 2 and 6 to 8 are the
20original 2026-09-30 survey and are kept as history. Merges: #124 `d3194f6`, #127 `7a5a13c`, #134 `c54d492`,
21#147 `2d8cd68`, #152 `07004a8` (all verified).
22
23The six exit requirements are those in aien-architecture `CURRENT_EXECUTION_PLAN.md` section 8, E1:
24
25| Req | Subject | State | Evidence |
26|---|---|---|---|
27| 1 | General load/store | Not met | Row 2 unchanged: fixed addressing patterns only |
28| 2 | Scalar FP32 ops | Met | #124 (CPU) and #147 (GB10); receipts `evidence/OMEGA-NUMERIC-0/f4f6d362...json` (untrusted: produced while the #147 provenance-copy overflow was live, fixed by #152) and `dafb645a...json`; no receipt yet on merged main |
29| 3 | Reductions incl. MAX/MIN/MEAN on GB10 | Partial | SUM/MAX/MIN/MEAN chip parity PASS, 380 cases, 0 mismatches (`evidence/E1-REDUCE/a04f4f7f...json`, omega#157, pre-rebase commit 689ad4d); MEAN final division is a declared host step; no receipt yet on merged main |
30| 4 | Defined DIV and SQRT | Met on the main GB10 path | #152: Gate 5 PASS 26/26, 47 parity lines incl. DIV and SQRT, receipt `evidence/OMEGA-NUMERIC-0/dafb645a9692aab551327c4de7c5dfd7d194504b1ae2ac998a0f5480c687cbb2.json`, run on commit `7852570`, code unchanged at merge |
31| 5 | Transcendentals | Partial | Owner decision made: aien-architecture #76 (merge `15808f9`) chose Option 1, frozen sequences with a declared per-op error bound, bit-identical on CPU and GB10; RSQRT, DIV and SQRT stay correctly rounded. Nine ops on CPU (#127); `test-numeric-transc` runs in PR smoke CI. GB10: EXP2, LOG2, SIGMOID, TANH chip bit parity over all 2^32 inputs (row 10, `evidence/E1-TRANSC-GB10/`). RSQRT, ERF, SIN, COS, GELU have no GB10 kernel; EXP/LOG of `OP_TABLE` still refused on GB10 |
32| 6 | CPU/GB10 parity | Partial | Holds for the ops in the Gate 5 receipt; not for MAX/MIN/MEAN or transcendentals |
33
34Receipt naming caveat: a receipt's file name is its internal `receipt_digest`, not the sha256 of the file.
35For `dafb645a...` and `dc4e6012...` the file hashes differently (`dafb645a...` file sha256 begins `3e6bfec8`).
36Verify content through the receipt's own fields (`digest_meaning` in each receipt says "integrity only,
37not authenticity").
38
39## Update, branch `e1-gap-close` (convergence plan item 3, part 2)
40
41Classification of every row (C3 = the unwritten-output bug, branch `c3-h1-fence`, not touched here):
42
43| Row | Class | State |
44|---|---|---|
45| 1, 3, 4, 6, 7 | Already closed | No change |
46| 2 | Closed in code, chip run queued (e1-gap-close-2) | General LDG/STG kernels (all widths, signed and unsigned narrow loads, byte strides, signed 24-bit offsets) built from nvdisasm-read encodings; host model equals a byte oracle; 148 table kernels decode with nvdisasm; chip job `E1B-LDST-CHIP` queued |
47| 5 | Closed in code, chip receipt pending | MEAN divides on the GB10 DIV kernel, mutant hook in the build |
48| 8 | Already closed (decided) | No change |
49| 9 | Closed | CI runs the check; full-domain CPU run PASS |
50| 10 | Closed in code for all five ops (e1-gap-close, e1-gap-close-2), chip receipts pending | SIN, COS, ERF, GELU (e1-gap-close) and RSQRT (e1-gap-close-2, exact-rounding by FMA error-free transforms, no integer multiply) equal the CPU tier on the host model; chip jobs `E1-CLOSE-TRANSC-CHIP` and `E1B-RSQRT-CHIP` queued |
51| 11 | Open, needs the receipts from rows 5 and 10 and a Gate 5 expected-ID extension | Gate 5 rerun queued (`E1-CLOSE-GATE5`) on commit `9d11565`, the first commit of this PR, not on the PR head (`b48d132`); the rerun on the head is still to be queued |
52| 12 | Closed in code (e1-gap-close-2) | FP32 is an explicit program IR type (tag `0x0E`) with an explicit `CONVERT` op; the type check refuses mixed types; evaluation uses the library tier; `make test-program-fp32` PASS 33/33; `spec/program-fp32.md`. Amendment to the ratified type table, no existing id changes |
53| Unwritten-output root cause (row 10 note) | Blocked on C3 | Not touched |
54
55Chip evidence for rows 5, 10 and 11 comes from the shared forge queue (`E1-CLOSE-REDUCE`,
56`E1-CLOSE-TRANSC-CHIP`, `E1-CLOSE-GATE5`); the receipts are added to this table when they land.
57
58## 1. What Gate 5 actually counts
59
60The brief for this note said "about 36 checks". No artifact on `origin/main` has 36. The real counts:
61
62| Count | What it is | Source |
63|---|---|---|
64| 23 | Gate 5 test IDs, all PASS on chip (9 host positive, 5 chip-only, 9 negative) | receipt `test_results`; `tests/test_omega_numeric.c` `report(...)` calls, lines 551-1042 |
65| 22 | GB10 parity lines (FFMA x8 constant values + 14 other ops), 4096 inputs each (REDUCE_SUM: 128 sums) | receipt `gb10_parity`; `tools/test_numeric_qualify.sh:99` |
66| 33 | Pre-submission `CHECK:` markers on the kernel/patch/QMD validator, each proven load-bearing by mutation | `src/omega_numeric.c`; `tools/numeric_check_sweep.sh` |
67| 133 | Self-checks of the gate runner/qualifier (physics pin, log parsing, receipt writer) | `tools/test_numeric_qualify.sh` |
68
69The orchestrator should decide which count the plan means. This table maps the plan to the 23 gate
70tests and the 22 parity lines, since those are the evidence of numeric behavior.
71
72### The 23 Gate 5 tests (file `tests/test_omega_numeric.c`)
73
74| Test ID | Line | Covers |
75|---|---|---|
76| FPCR_RNE_NO_FTZ_REQUIRED | 551 | Host FP mode is round-to-nearest-even, no flush-to-zero |
77| PROVENANCE_MATCHES_EXECUTOR | 574 | Opcode provenance table matches the words the executor sends |
78| NOT_ENCODED_OPS_REFUSED_BEFORE_SUBMISSION | 623 | DIV, SQRT, EXP, LOG and unencoded variants refused before any device work (line 580) |
79| NEG_BAD_SHARED_AND_WARP_SHAPES_REFUSED | 651 | Bad CTA/warp sizes refused |
80| NEG_PATCH_STRUCTURE_CHECKED_BEFORE_SUBMISSION | 735 | Mutated kernel words caught by the 33 checks |
81| FP32_SIMT_OPCODES_ENCODED | 751 | 15 encoded ops build and pass structural checks |
82| OMEGA_MATH_SEQUENCES_QUALIFIED | 846 | CPU DIV/SQRT bit-exact vs IEEE + hard cases; EXP/LOG edge and self-consistency |
83| WARP_REDUCTION_ORDER_DECLARED | 862 | CPU 32-lane sum in frozen order `PAIRWISE_TREE_LANE_DELTA_16_8_4_2_1` |
84| CPU_TIER_EQUALS_REFERENCE | 874 | CPU realization equals reference for every op |
85| CPU_TIER_SUBNORMALS_PRESERVED | 875 | CPU keeps subnormals |
86| CPU_TIER_INDEPENDENT_ORACLE | 877 | Integer soft-float oracle; binary128 EXP/LOG ulp bounds (EXP 40, LOG 4; lines 379-380) |
87| CPU_GB10_BIT_PARITY | 908 | 22 GB10 parity lines, 0 mismatches |
88| SUBNORMALS_PRESERVED_NO_FTZ | 909 | GB10 keeps subnormals |
89| MUFU_SEED_ONLY_NOT_COMPARED | 910 | MUFU RCP/RSQ only held to a 2^-20 seed bound, never bit-compared |
90| EDGE_CLASS_BEHAVIOR_VERIFIED | 911 | Per-class (zero, subnormal, normal, inf, NaN) parity |
91| HARDWARE_DESCRIPTOR_PROBED | 912 | Real device probe, not a fake descriptor |
92| NEG_FTZ_DETECTED_AND_REJECTED | 934 | A flush-to-zero result is caught |
93| NEG_UNORDERED_REDUCTION_DIVERGENCE_CAUGHT | 945 | A different sum order gives different bits and is caught |
94| NEG_RAW_MUFU_APPROX_REJECTED_WITHOUT_REFINEMENT | 961 | Raw MUFU is not accepted as division |
95| NEG_UNKNOWN_OPCODE_FAILS_CLOSED | 970 | Unknown op name refused |
96| NEG_OPCODE_PROVENANCE_INTEGRITY_VERIFIED | 999 | Tampered provenance caught |
97| NEG_NONDEFAULT_FPCR_REFUSED | 1032 | Non-default host FP mode refused |
98| NEG_COMPARATOR_CATCHES_ONE_BIT | 1042 | A one-bit difference fails the comparator |
99
100GB10-encoded ops (bit- or int-exact on chip): FADD, FSUB, FMUL, FFMA, FSETP_SEL, FSEL,
101FMNMX_MIN, FMNMX_MAX, I2FP, F2I, LDS_STS, SHFL_DOWN, REDUCE_SUM. Seed-bound only: MUFU_RCP, MUFU_RSQ.
102CPU-only (refused on GB10): DIV, SQRT, EXP, LOG (`src/omega_numeric.c:336-343`, `590-594`).
103
104## 2. Gap table
105
106Status key: **Covered**, **Partial**, **Missing**. Size: S (under a day), M (a few days), L (a week or more).
107GPU column: **Yes** means the step needs a chip run on the GB10. Those runs go one heavy test at a time,
108later, not now.
109
110| # | Plan item | Status | Existing evidence (file:line) | Gap | Next step | Size | GPU |
111|---|---|---|---|---|---|---|---|
112| 1 | FP32 arithmetic | Covered (CPU and main GB10 path) | FADD/FSUB/FMUL/FFMA bit-exact (`CPU_GB10_BIT_PARITY`); per-element FFMA_V (c loaded from memory) defined on CPU by omega#124 (merge `d3194f6`) and encoded on GB10 by omega#147 (merge `2d8cd68`); chip receipt `evidence/OMEGA-NUMERIC-0/f4f6d362ad540e736ba747c40fe8b594141821f378d50ccaf7d83f90db0ef81b.json` (PASS 26/26, 45 parity lines) and later `dafb645a9692aab551327c4de7c5dfd7d194504b1ae2ac998a0f5480c687cbb2.json` (PASS 26/26, 47 lines) | None named for the scalar ops. Original gap (FFMA third operand one constant per launch) closed by FFMA_V. | None | - | No |
113| 2 | FP32 load/store | Partial | Global STG fixed form (`src/omega_numeric.c:675` CHECK:stg_form); shared LDS_STS mirror exchange inside one 64-thread CTA (`omega_numeric.c:332`) | Only one fixed addressing pattern each; no general strided, offset or vector loads/stores | Define a load/store contract (offset, stride, alignment) with encoder checks, then chip parity | M | Yes |
114| 3 | Comparison / select | Covered (CPU and main GB10 path) | 13 `FSETP_*_SEL` predicates plus FSEL and FMNMX; CPU contract omega#124 (merge `d3194f6`, `docs/numeric/E1_SCALAR_CONTRACT.md`); GB10 encoding omega#147 (merge `2d8cd68`); chip parity lines with 0 mismatches in receipts `f4f6d362...` and `dafb645a...` (`evidence/OMEGA-NUMERIC-0/`) | None for the original gap (only GE existed) | None | - | No |
115| 4 | Conversion | Covered (CPU and main GB10 path) | I2FP, F2I; added `F2I_FLOOR/CEIL/RNI`, `F2U`, `I2FP_U32`, `F32<->F16`, `F32<->BF16` on CPU by omega#124 (merge `d3194f6`; 2^32-input exhaustive run on the 9 unary ops, 0 mismatches); GB10 encodings omega#147 (merge `2d8cd68`); chip parity 0 mismatches in receipts `f4f6d362...` and `dafb645a...` | FP16/BF16 arithmetic is not defined (conversions only) | None | - | No |
116| 5 | Reductions | Closed in code (MEAN divides on the GB10); chip receipt pending | omega#134 (merge `c54d492`): SUM, MAX, MIN, MEAN over any length n >= 0 in frozen order `RECURSIVE_TILE32_PAIRWISE_TREE_LANE_DELTA_16_8_4_2_1_PAD_IDENTITY_MIN_ONE_LEVEL`. GB10 SUM receipt `evidence/E1-REDUCE/be9d61ce...json` (omega 6da80bf); MAX/MIN via a reduce-owned SHFL.DOWN+FMNMX patch (omega#157): receipt `evidence/E1-REDUCE/a04f4f7f...json` (SUM/MAX/MIN/MEAN 380 cases, 0 mismatches, omega 689ad4d). This PR (`e1-gap-close`, commit `9d11565`): the final MEAN division now runs on the GB10 DIV kernel (`omega_ds_gb10_run(OMEGA_DS_DIV, ...)`), no host step; build flag `-DOMEGA_REDUCE_MUTATE_MEAN_DIV` divides by n+1 so the chip run must FAIL; `make test-numeric-reduce-cpu` PASS_EXCEPT_DECLARED_CHIP_ONLY and `make test-numeric-reduce-nvdisasm` PASS | Chip run of the new MEAN path and its mutant on a clean commit (queued: forge job `E1-CLOSE-REDUCE`); optional single-launch CTA kernel not built | Read the receipt when the forge job finishes | S | Yes |
117| 6 | Division and square root (definition) | Covered on CPU | Integer-only correctly rounded sequences, bit-exact vs IEEE, hard cases (`tests/test_omega_numeric.c:756-801`); header records full SQRT sweep and 10^9 DIV pairs (`src/omega_numeric.h:112-123`) | Full DIV sweep is sampled, not exhaustive (not feasible for two inputs; acceptable) | None for definition | - | No |
118| 7 | Division and square root on GB10 | Closed (chip PASS) | Standalone GB10 kernels `src/omega_numeric_divsqrt_gb10.c` (DIV 264 words, SQRT 336 words, every word from Omega's encoder and checked by nvdisasm); `make test-divsqrt-host`; gate `tools/run_divsqrt_gate.sh`; receipt `E1-DIVSQRT/de7b2dd6a930ae94529773cf4e31aa08aac7065602b1d771e13e6ed2784a9074.json` ; wired into the main GB10 path (`omega_numeric_gb10.c` dispatches DIV/SQRT to `omega_ds_gb10_run`); Gate 5 chip parity 0 of 4096 mismatches each, receipt `OMEGA-NUMERIC-0/dafb645a9692aab551327c4de7c5dfd7d194504b1ae2ac998a0f5480c687cbb2.json` | None for DIV/SQRT | None | - | No |
119| 8 | Transcendental: exact sequences (wording) | Met (decided) | EXP/LOG frozen polynomial sequences (`omega_numeric.h:125-131`); edge and round-trip checks (`test_omega_numeric.c:803-844`); binary128 oracle bound EXP 40 ulp, LOG 4 ulp (lines 379-380) | Decided by aien-architecture #76 (merge `15808f9`, Option 1): "exact" means a frozen sequence with a declared per-op error bound, bit-identical on CPU and GB10, not correct rounding. RSQRT, DIV and SQRT stay correctly rounded. EXP worst case 39 ulp against its 40 ulp bound (omega#107 notes) | None for the wording; GB10 parity is tracked in row 10 | - | No |
120| 9 | Transcendental: coverage | Closed on CPU | omega#127 (merge `7a5a13c`): SIGMOID, TANH, RSQRT, EXP2, LOG2, ERF, SIN, COS, GELU. Frozen binary32 sequences, bounded ulp (declared 3, 3, 0, 2, 2, 3, 2, 2, 3), checked against a binary128 oracle over all 2^32 inputs. CI: `.github/workflows/pr-smoke.yml` runs `test-numeric-transc` (sampled bound check and 10 mutants, must print `all 10 mutants killed`) and `host-suites-3.yml` runs it with `test-numeric-transc-digest`. Full-domain run `test-numeric-transc-full` PASS on omega `9d11565` (forge job `E1-CLOSE-TRANSC-FULL`, "E1 WP-B verdict: PASS", every op's full-domain digest matches the frozen one; GELU max 2 ulp at bound 3). The erfcx tables now live in one header, `src/omega_numeric_transc_tables.h`, read by both the CPU sequence and the GB10 kernels | pow variants not defined (no plan requirement); not in `OP_TABLE` dispatch | None | - | No |
121| 10 | Transcendental on GB10 | Closed (chip PASS, 2026-10-27): all eleven ops, EXP2, LOG2, SIGMOID, TANH, SIN, COS, ERF, GELU, RSQRT and natural EXP, LOG, bit-identical to the CPU tier on every 32-bit input, 0 mismatches each, at omega `cb6d201`, physics `048e5f5`. Receipts and digests: "Update, 2026-10-27" at the end of this file | Whole-program GB10 kernels (`src/omega_numeric_divsqrt_gb10.c`), same operation order and FMA placement as `src/omega_numeric_transc.c` (EXP, LOG: `src/omega_numeric.c`), no MUFU, digest-pinned. `tools/divsqrt_nvdisasm_check.sh` decodes every word of all 13 whole-program kernels with Omega's own `sm121dis` and compares with the encoder's listing (VERDICT PASS). Earlier states (merged-main receipt `96fbc78d…` for EXP2, LOG2, SIGMOID, TANH; commit `966c47c` adding SIN, COS, ERF, GELU; RSQRT exact-rounding design) are in "Closure, 2026-10-02" and git history | None for bit parity of these eleven ops. Their Gate 5 parity lines are row 11 | Row 11 | - | Yes (done) |
122| 11 | CPU/GB10 parity under frozen contracts | Partial | Gate 5 receipt `OMEGA-NUMERIC-0/dafb645a9692aab551327c4de7c5dfd7d194504b1ae2ac998a0f5480c687cbb2.json` (omega 7852570, physics e95e3ed): 40 encoded ops, 47 GB10 parity lines (FFMA x8), 0 mismatches over 4096 inputs each incl. subnormal/NaN/inf classes, DIV and SQRT included; frozen contracts = FPCR rule, declared reduction order, provenance table, physics.lock pin. EXP and LOG: Gate 5 receipt `OMEGA-NUMERIC-0/31c7119b9af30ac5a17bb69df564de1b72c265f2908846bd742963fb071f7559.json` (omega db1a7e6, physics 048e5f5, 2026-10-27): 42 encoded ops, 49 GB10 parity lines, EXP and LOG 0 of 4096 mismatches | The nine #127 ops are still refused on the main path and have no Gate 5 chip parity (NOT_RUN; chip parity from the transc receipts, row 10) | Rerun Gate 5 with each new op added; keep the 23 tests and extend the expected-ID list | M per batch | Yes |
123| 12 | Integration (not named in the plan, implied by "before tensor training") | Partial (tensor tier closed; program IR FP32 type open) | The M20 tensor CPU tier now calls the qualified library: `src/tensor/omega_tensor_cpu.c` routes elementwise ops through `omega_numeric_cpu_realize`, EXP2/LOG2/SIGMOID/TANH/SIN/COS/RSQRT/ERF/GELU through `omega_numeric_transc.c`, and reductions through `omega_tensor_reduce_seam.c` into `omega_reduce_cpu`; `tools/tensor_mutations.sh` and `tools/autodiff_mutations.sh` mutate those call sites. Program IR still refuses DIV (`tests/realize/test_program_realize.c:249`) and `src/omega_program.c` has no FP32 type | The program IR and visor do not carry FP32 values | Design decision (FP32 value type in the program IR) belongs to the program-IR owner and Drake; not code that can be closed by a test alone. Blocked on that decision | M | No |
124
125## 3. Counts
126
127Original 2026-09-30 counts: Covered 1 (row 6), Partial 7 (rows 1, 2, 3, 4, 5, 8, 11), Missing 4 (rows 7, 9, 10, 12).
128
129Counts at 2026-10-01: Covered 5 (rows 1, 3, 4, 6, 7), Partial 5 (rows 2, 5, 8, 9, 11), Missing 2 (rows 10, 12).
130
131## 4. Order of work
132
133CPU-only, can start now (no chip time):
134- Row 8 decision (plan wording vs tightening EXP/LOG).
135- Row 9 new transcendental CPU sequences with binary128 oracle bounds.
136- CPU references for rows 3, 4, 5 (new predicates, conversions, multi-level reduction order).
137- Row 12 integration decision with the M20 owner.
138
139Needs the GB10, later, one heavy test at a time:
140- Rows 7 and 10 (DIV/SQRT and transcendental kernels): the largest gaps.
141- Row 5 block reduction, rows 1-4 new encoded ops, then one Gate 5 rerun per batch (row 11).
142
143Largest three gaps:
1441. Row 7: DIV/SQRT on GB10. L, GPU.
1452. Row 10 with row 9: transcendental set and its GB10 kernels. L + L, CPU first then GPU.
1463. Row 5: reductions beyond one warp. L, GPU.
147
148## Update, branch `e1-gap-close-2` (based on `e1-gap-close` at `b48d132`)
149
150Row 4 of the brief (wording fix): the table line for row 11 said the Gate 5 rerun was queued "at this PR's
151head". The queued job `E1-CLOSE-GATE5` is pinned to commit `9d11565`, the first commit of PR #198, not to
152the head `b48d132`. The classification entry now says so, and the rerun on the head is still to be queued.
153
154Row 10, RSQRT (`src/omega_numeric_divsqrt_gb10.c`, `body_rsqrt`, 344 words). The CPU sequence decides rounding with
155a 128-bit midpoint test; the DS frame has no integer multiply. The kernel decides the same question with
156FP32 FMA error-free transforms: |x| is normalized to `x'` in [1,4) (a subnormal by an exact 2^24, the parity of
157the exponent folded into `x'`), a seed `y0` within one ulp of the correctly rounded 1/sqrt(x') comes from a magic
158number, three FMA Newton steps and one FMA residual correction, then the sign of `mu^2 x' - 1` and `ml^2 x' - 1`
159at the two midpoints `y0 +- 2^-25` is computed exactly (TwoProduct by FMA, Knuth TwoSum, Shewchuk
160GROW-EXPANSION; the sign of an expansion is the sign of its highest nonzero component). The result is
161`y0 + [mu^2 x' < 1] + [ml^2 x' < 1] - 1`, rescaled by an exact power of two (two exact FMULs). Evidence: `tools/divsqrt_nvdisasm_check.sh`
162decodes every word (all eleven kernels), `make test-numeric-transc-gb10-host` equals `omega_math_rsqrt` on the
163edge set, every 4093rd input and 10^6 random inputs, and the all-input host run (`--host-all RSQRT`, forge job
164`E1B-RSQRT-HOSTALL`) covers all 2^32. Chip job `E1B-RSQRT-CHIP`
165(`tools/run_numeric_transc_gate.sh RSQRT`).
166
167Row 2, general load/store (`src/omega_numeric_ldst_gb10.{h,c}`, `docs/numeric/E1_LDST_GB10.md`). Evidence source
168for the encodings: the verified vecadd words in `src/omega_blackwell_encoder.c` (the `LDG.E` and `STG.E` forms
169the existing kernels use), extended only for the fields nvdisasm 13.0.85 `-b SM121` decoded when each bit
170was varied one at a time: the signed 24-bit byte offset (word 1 bits 8 to 31, both LDG and STG), the access
171size (word 2 bits 9 to 11: U8, S8, U16, S16, 32, 64, 128 for loads; 8, 16, 32, 64, 128 for stores) and the
172stride immediate of `IMAD.WIDE.U32`. `make test-ldst-nvdisasm`: 148 of 148 table kernels decode word for word
173to the encoder's text (a flipped offset bit changes the decode, so the check is not vacuous);
174`make test-ldst-host`: 33 PASS (host model equals a typed-C byte oracle on every spec, 13 refusal rules,
17510 kernel mutations caught). Chip job `E1B-LDST-CHIP` (`tools/run_numeric_ldst_chip.sh`).
176
177Row 12, FP32 in the program IR: see `spec/program-fp32.md`. No program-IR owner document forbids it
178(`spec/type-system.md` is ratified for M4, so tag `0x0E` is an amendment, not a conflict).
179
180Chip failure classification for these jobs: a FAIL whose log shows bytes still equal to the fill pattern or
181block-aligned unwritten spans is the unwritten-output bug C3 (branch `c3-h1-fence`), not a defect of these kernels.
182
183C3 hardening (branch `e1-gap-close`): the reduce launcher (`run_chunk`) and the ldst launcher (`omega_ldst_gb10_run`) had the same
184pre-fix pattern as `omega_ds_gb10_run` and now take its L2 flush plus second release marker, waited on before every readback (step
185`marker2_wait`). A/B script: `~/workspace/scripts/lt-e1-c3-ab.sh` (control arm `-DOMEGA_C3_PROTECT_OFF`, compiles out only the new
186reduce and ldst protection). Round 1 result: bug not reproduced / comparison inconclusive (round 1 complete, rounds 2-5 not started); record `docs/numeric/E1_C3_REDUCE_LDST_AB_ROUND1.md`. No claim is made that this fixes the observed rc=-4.
187
188## Closure, 2026-10-02 (campaign on omega `fb36109`, merged as `40d1ea37` by #225)
189
190**E1 numerical closure receipt: `evidence/E1-CLOSURE/e7851c69d34ac777a9436af16d0bdd5d69264c8528c62d562b600f5d89153061.json`** (schema
191`AIEN_E1_CLOSURE_V1`, written by `tools/e1_combine.sh`, self-test `make test-e1-combine`). The receipt binds, and
192refuses to exist unless every one of these holds; the chip ran on candidate `fb36109d39bdf0ad55d5b683643c9a4a7b19b0fc`
193with Physics `e95e3ed2a86fe4bffe4d954fa94c27dfb5284280` (the `physics.lock` pin), both trees clean. The receipt says
194`chip_ran_on: candidate`; it never says the chip ran on main.
195
196| Constituent | Evidence | Result |
197|---|---|---|
198| Gate 5 (OMEGA-NUMERIC-0) | `evidence/OMEGA-NUMERIC-0/3b8f599518bd5f686a4b7b1ae97369f1f3930cc5734b76ac507d262c2a7a927f.json` | PASS 26/26 tests, 47 GB10 parity lines (FADD..FFMA_V, 13 FSETP_*_SEL, conversions, DIV, SQRT, REDUCE_SUM), 0 mismatches, hardware descriptor `91684948...` |
199| Reductions on GB10 | `evidence/E1-REDUCE/3faff6c5e763223d9b1388b2e9120000145b205e5d424d5995b54b50aa3c95b0.json` | SUM, MAX, MIN, MEAN: 380 cases, 0 mismatches; the MEAN division runs on the GB10 DIV kernel (no host step) |
200| MEAN mutant | `evidence/E1-REDUCE-MUTANT/6718c615bbea67ea135679606a020c8ce9474b2eacd7dbae560e1c1a8bc438c6.log` | `-DOMEGA_REDUCE_MUTATE_MEAN_DIV` build: MEAN FAIL (95 of 95 mismatches), SUM/MAX/MIN PASS; campaign line `E1 MEAN MUTANT: KILLED` |
201| Transcendentals on GB10, new ops | `evidence/E1-TRANSC-GB10/a2f1401631e5386ed0d5689960a4580be08aba0163c76a51ad9a037e72f6b3a6.json` | SIN, COS, ERF, GELU, RSQRT: every one of the 2^32 inputs each, 0 mismatches, 0 unwritten, bit-identical to the CPU tier |
202| Transcendentals on GB10, earlier ops | `evidence/E1-TRANSC-GB10/96fbc78df41fb62244e9d16cd59531182f64a01fb8c5ef1e02c8dadb8be6f556.json` (omega `4863803`, #165) | EXP2, LOG2, SIGMOID, TANH: all 2^32 inputs each, 0 mismatches. Not rerun on `fb36109`; the combiner requires the four kernel digests in this receipt to equal the same four kernels listed in the `a2f14016...` receipt, so the words that ran then are the words the candidate carries |
203| General load/store on GB10 | `evidence/E1-SIMT-C3/20261002T211613Z/ldst/chip.log` (sha256 `d246700b...`) | 148 of 148 table kernels PASS on chip (1000 elements each, 0 mismatches, 0 unwritten); host oracle 33/33; nvdisasm 148/148 decode |
204| Campaign log | `evidence/E1-SIMT-C3/20261002T211613Z/campaign.log` (sha256 `0b3b8399...`) | five steps, `VERDICT PASS`, zero `GB10_COMPLETION_UNCERTAIN` |
205| Candidate = main equivalence | `evidence/E1-SIMT-C3/e1-equivalence-fb36109-40d1ea37.json` (`tools/e1_manifest.sh`) | 71 E1 files: 70 byte-identical, 1 differs (`Makefile`, host class; the squash merge picked up VC1 Makefile rules). Every chip-class file identical. The four chip binaries rebuilt from main with the gate scripts' own compiler lines equal the binaries named in the Gate 5, reduce and transc receipts byte for byte |
206| Host tier rerun on main | `evidence/E1-HOST-RERUN/e2206f44234f49dc741711f7d565c37addb65aa48833c2585e5d3f8afd9720cb.json` (`tools/e1_host_rerun.sh`) | the six host lines of the campaign (GB10 compile both arms, numeric host suites, program FP32/realize/id/visor, transcendental sampled+digest+full-domain, chip-run manifest tests, all-input host model of SIN/COS/ERF/GELU/RSQRT) PASS on `40d1ea37`, tracked tree clean before and after |
207
208Why the host rerun: the only file that differs between the qualified candidate and main is `Makefile`. A chip rerun on
209main would re-prove nothing the binaries do not already prove (they are byte-identical), but the host-class Makefile
210difference is covered by evidence, not by assertion.
211
212The six exit requirements of aien-architecture `CURRENT_EXECUTION_PLAN.md` section 8, E1, after this campaign:
213
214| Req | Subject | State 2026-10-02 | Evidence |
215|---|---|---|---|
216| 1 | General load/store | Met | LDST 148 chip specs PASS (row 2) |
217| 2 | Scalar FP32 ops | Met | Gate 5 `3b8f5995...` on the candidate; rebuilt-from-main binary identical |
218| 3 | Reductions incl. MAX/MIN/MEAN on GB10 | Met | reduce `3faff6c5...`, MEAN divides on the chip, mutant killed (row 5) |
219| 4 | Defined DIV and SQRT | Met | Gate 5 parity lines DIV and SQRT, 0 mismatches (rows 6, 7) |
220| 5 | Transcendentals, declared bounds (owner decision aien-architecture #76) | Met for the nine declared ops | EXP2, LOG2, SIGMOID, TANH, SIN, COS, ERF, GELU, RSQRT bit-identical CPU/GB10 over all 2^32 inputs each. These are bounded-parity sequences (declared ulp bounds against a binary128 oracle), not correctly rounded, except RSQRT, DIV and SQRT which are correctly rounded |
221| 6 | CPU/GB10 parity under frozen contracts | Met for every op that has a GB10 kernel | Gate 5 + the two transc receipts + reduce + LDST |
222
223**Verdict 2026-10-02: E1 campaign PASS; E1 is closed on the evidence set above, with the exclusions below recorded.**
224The 2026-10-01 summary ("NOT closed, 2 of 6") stands as history of that date.
225
226Exclusions and remaining work (recorded, not hidden):
227
228- (History, superseded 2026-10-27, see "Update, 2026-10-27" below.) EXP and LOG (natural base, the 40 ulp / 4 ulp
229 bounded `OP_TABLE` sequences) had no GB10 kernel and were refused on the GB10 path. EXP2 and LOG2 are on the chip.
230 Nothing in the plan's six bullets names natural-base EXP/LOG; the chip kernels are the new row 10 entry.
231- Gate 5's expected-ID list was not extended with the transcendental ops (row 11 as written on 2026-10-01). Their
232 chip parity is established by the two `E1-TRANSC-GB10` receipts, not by Gate 5 parity lines.
233- Row 12 (FP32 in the program IR, `spec/program-fp32.md`) is merged and its tests ran in the host rerun
234 (`test-program-fp32`); the visor carrying FP32 values is not part of E1.
235- The C3 unwritten-output event is explained and fixed on this candidate (GPU-uncached completion marker page plus an
236 L2 flush and a second marker in all four launchers, #225); the campaign shows zero uncertain completions and zero
237 `OMEGA_DEVERR`. Older A/B records (`docs/numeric/E1_C3_REDUCE_LDST_AB_ROUND1.md`) stay as history.
238- Rows 2, 5, 10 and 11 of the "e1-gap-close" update tables above said "chip receipt pending" or "queued"; those
239 receipts are the ones in the constituent table. PR #198 (`e1-gap-close`, the same code before the C3 completion
240 hardening) is superseded by #225 and this receipt.
241
242Receipt naming: `tools/e1_combine.sh` writes `evidence/E1-CLOSURE/<receipt_digest>.json`, where `receipt_digest` is the
243SHA-256 of the canonical body without that field (`tools/json_canon.c`), the same rule as Gate 5 and Gate 14. The
244reduce, transc, host-rerun and mutant files are named for the SHA-256 of the file itself. Digests make alteration
245detectable; they are not signatures. To re-verify, run the combiner again on the same inputs with
246`E1_TIMESTAMP_UTC` set to the receipt's `timestamp_utc`: it must print the same digest.
247
248## Update, 2026-10-27: all eleven ops on the GB10, natural EXP and LOG included
249
250Row 10's last exclusion is closed on the chip. Commit `cb6d201` adds whole-program GB10 kernels for natural EXP
251(88 instruction words) and LOG (312), the unfused FMUL/FADD/FSUB sequences of `omega_math_exp` / `omega_math_log` in
252C order, LOG reusing the row 7 DIV core; no MUFU, no FFMA. `tools/run_numeric_transc_gate.sh` now defaults to all
253eleven ops. Three gate runs on omega `cb6d201`, physics `048e5f5`, each under `/tmp/aien-gb10.lock`:
254
255| Receipt (`evidence/E1-TRANSC-GB10/`) | Run (UTC) | Ops | Result |
256|---|---|---|---|
257| `b2f4afe91148931db0f10f40edec9b8cce4533db99ec8e7d9733492794fa2b0e.json` | 08:16:05 to 08:22:44 | EXP, LOG, EXP2 | 2^32 inputs each, 0 mismatches, 0 unwritten; host tier `SUMMARY passed=88 failed=0` |
258| `ae3a41238f689eedcd0173a024402737a867baf5361875a81190ed34d69b7b32.json` | 08:29:50 to 08:44:48 | SIGMOID, TANH, SIN, COS | same |
259| `d846fbe38fde84edd8be48ff4f7ad0c6f6113aae89b61f4b3071b4fcb5f71c24.json` | 08:46:43 to 08:59:35 | ERF, GELU, RSQRT, LOG2 | same |
260
261Each op's output digest (tree layout of `tests/test_omega_transc.c`) in these receipts equals the CPU-tier digest:
262the frozen digests for the nine earlier ops, and for EXP `413c3429...829c`, LOG `05e94f63...f51e`, the host-model
263digests recorded in `E1_DIVSQRT_GB10.md`. Chip logs are under `evidence/E1-TRANSC-GB10/blobs/`, named by sha256.
264
265Tensor path: commit `0919efc3` removes the tensor-layer refusal of the transcendental ops on the GB10. The tensor
266executor's `.transc` entry submits all eleven ops through these kernels (map `GB10_TRANSC_DS1`); ops without a
267kernel refuse with `NOT_ENCODED` and there is no CPU fallback (an `nm` check plus the `GB10_TRANSC_NO_CPU_FALLBACK`
268mutant). Chip run on omega `0919efc3`, finished 09:01:55Z, receipt
269`evidence/M20-TENSOR-GB10/a00b4178fe331647296d85a02b87f419ef55e53a38254ed2e879debf85209e2d.json`:
270`TENSOR_GB10_PARITY: PASS (99 of 99 cases bit-exact value ids)` (88 earlier cases plus 11 transcendental),
271`TENSOR_GB10_MUTANTS: PASS (3 of 3 caught on chip)`, `TENSOR_GB10_HOST: PASS (37 checks, 0 failed)`.
272
273Receipt field defect, found and fixed: `tools/manifests/numeric_transc.chiprun` captured the disassembler summary with
274`grep '^nvdisasm'`, which matched NVIDIA nvdisasm's version line in the earlier transc receipts. Since
275`tools/divsqrt_nvdisasm_check.sh` moved to Omega's own sm_121 disassembler it prints `disassembler: ...` and
276`VERDICT ...` lines instead, so the `nvdisasm_check` field is the empty string in all three receipts above. The check
277itself gated every run: the manifest refuses to continue unless the script exits 0. The receipts are unchanged; the
278manifest now captures `^disassembler|^VERDICT`. Rerun on the host at this commit: exit
2790, `VERDICT PASS` on 13 kernels (DIV, SQRT and the 11 transcendental kernels) with Omega's own sm_121 disassembler.
280
281Bounds of the natural ops (Wolfram derivation of the error model of the C sequences, kept as
282`evidence/E1-ULP-EXPLOG/20261027/exp-log-ulp-bounds.md`): EXP a priori at most 40 ulp (largest pre-rounding term
28339.15 ulp), equal to the declared `NUM_ORACLE_EXP_ULP`; LOG a priori at most 5 ulp (largest term 4.22 ulp, at
284exponent -1), one above the declared `NUM_ORACLE_LOG_ULP` of 4 in `tests/test_omega_numeric.c`. An a-priori bound
285is a ceiling, not a measurement. The measurement over all 2^32 inputs against the binary128 oracle,
286`test_omega_numeric_cpu --ulp-exhaustive EXP|LOG` (binary sha256 `aa42c9bd…a0c4`, equal to a rebuild at `db1a7e6`
287with the Makefile line), ran 2026-10-27 16:51:32Z-17:34:48Z (`OMEGA_ULP_PROCS=5`, cores 5-9), logs in
288`evidence/E1-ULP-EXPLOG/20261027-exhaustive-db1a7e6/`: EXP maximum 40 ulp on normal or infinite results (one input,
289`0xc187db53`), 20 ulp on subnormal or zero results, 0 over the bound, 0 NaN-class mismatches, `ULP exhaustive EXP
290verdict: PASS`; LOG maximum 3 ulp (5014 inputs at 3 ulp, argmax `0x3f2e5f63`), 0 over the bound, 0 NaN-class
291mismatches, `ULP exhaustive LOG verdict: PASS`. EXP reaches its declared bound of 40 exactly; LOG stays one below its
292declared 4. Both tolerances stand unchanged. Row 8's "EXP worst case 39 ulp" (from the omega#107 notes) is one below
293this exhaustive maximum.
294
295A second, independent tier: the same eleven ops as seeded Omega compiled to SPIR-V and run on PoCL, compared bit for
296bit with the CPU tier, is documented in `docs/numeric/E1_SPIRV_TIER.md` on branch `e1open/eleven-ops-three-tiers`
297(omega-mv #901, commit `83097b915`): all 2^32 inputs of each op, 0 mismatches, and every full-domain digest equal to
298the CPU-tier digest and to the GB10 receipt above. PoCL CPU device only.
299
300Gate 5 chip run, 2026-10-27 16:29:45Z-16:30:06Z, on the GB10 at omega `db1a7e6` (this branch, trees clean), physics
301`048e5f5`, `tests/run_numeric_gates.sh --record`, exit 0: `Gate 5 PASS: receipt digest
30231c7119b9af30ac5a17bb69df564de1b72c265f2908846bd742963fb071f7559`. Receipt
303`evidence/OMEGA-NUMERIC-0/31c7119b9af30ac5a17bb69df564de1b72c265f2908846bd742963fb071f7559.json` with its blobs
304(binary `68de9101…0302`, log `9fdfe092…c880`, stderr `6976a3c4…409c`); command output and run record in
305`evidence/OMEGA-NUMERIC-0/runs/`. 26 tests PASS, 49 GB10 parity lines, EXP and LOG `BIT_EXACT`, 4096 checked,
3060 mismatches each, hardware descriptor from FORGE_PROBE (sm_121).
307
308NOT_RUN after this update: Gate 5 chip parity lines for the nine ops of #127. They are not entries of
309`OmegaNumericOp` (`src/omega_numeric.h`), so the main path refuses them and Gate 5 has no line to run; adding them
310means nine registry entries, their CPU reference and realization (linking `src/omega_numeric_transc.c` into every
311binary that links `src/omega_numeric.c`), the Gate 5 manifest and the test counts. Their chip parity is established by
312the transc receipts, not by Gate 5, as for row 11 on 2026-10-02. No CI job runs any GB10 path.