gMath

Width as a type: one crate, every precision, no build profile

STATUS: IMPLEMENTED, branch width-types, released as 0.7.0. Every phase in the table of section 10 is done (phase 7.5, the inference extension, in docs/design/INFERENCE_EXTENSION.md). Sections 1 to 9 describe the 0.6.x starting point and the plan as written; the phase notes record what was built and measured. Migration for users: docs/UPGRADING_0.7.md.

1. Problem

Today the binary precision of the whole crate is one build-wide choice: GMATH_PROFILE (or one of the mutually exclusive profile features) becomes cfg(table_format = "...") in build.rs, and GMATH_FRAC_BITS becomes frac_config::FRAC_BITS. Cargo builds one copy of g_math per binary, so every crate in a dependency graph sees the same width. Two libraries that need different widths cannot share a binary, and when two profile features are enabled at once build.rs picks one by priority without an error, so one of them computes at a width it never asked for.

Measured (findings, 2026-10-05): a stripped release binary pays 0.84 MB (Q16.16) to 2.55 MB (Q256.256) for a representative workload; all five widths linked together cost 6.3 MB, about the sum of the parts. Size is not the obstacle. The build-global setting is.

2. Goal and non-goals

Goal: the width is part of the type. Any crate can use any supported width, any number of widths can coexist in one binary, and enabling more widths never changes a result anywhere.

Hard requirements, each with a gate in section 11:

Non-goals for 0.7.0: new fractional splits on the wide widths (for example Q88.40 in i128). The design admits them (section 4.3) but each needs its own mpmath gate, so they come after the migration, one at a time.

3. Shape of the public API

pub struct Fixed<S: Storage, const F: u32> { raw: S }   // #[repr(transparent)]

pub type Q16_16   = Fixed<i32, 16>;     // any Fixed<i32, F>, 2 <= F <= 30
pub type Q32_32   = Fixed<i64, 32>;
pub type Q64_64   = Fixed<i128, 64>;
pub type Q128_128 = Fixed<I256, 128>;
pub type Q256_256 = Fixed<I512, 256>;

pub struct FixedVector<T: FixedNum>  { data: Vec<T> }
pub struct FixedMatrix<T: FixedNum>  { rows: usize, cols: usize, data: Vec<T> }
pub struct Interval<T: FixedNum>     { lo: T, hi: T }
pub struct ComputeMatrix<T: FixedNum> { data: Vec<T::Compute> }

A consumer writes type Real = g_math::Q64_64; once. Another crate in the same binary writes type Real = g_math::Fixed<i32, 10>;. Code generic over width is ordinary Rust: fn norm<T: FixedNum>(v: &FixedVector<T>) -> T.

There is deliberately no default width. A default is the global knob again under a new name; the one-line alias is the whole migration cost for a consumer.

The fallible surface is unchanged in shape: operators panic on overflow, try_* twins return Err (0.6.4 contract), transcendentals keep their try_* forms and error variants.

4. The width traits

4.1 WideInt, Storage, CircleStorage (sealed): what a word can do

Three traits in src/fixed_point/width.rs (crate-private until phase 2 makes the surface public). They absorb what was spread over the BinaryStorage / ComputeStorage aliases, the Wide trait in imperative/wide_acc.rs and the near-uniform method surface of the wide integers.

// every integer word: i32, i64, i128, I256, I512, I1024, I2048
pub trait WideInt: Copy + Eq + Ord + Send + Sync + 'static
    + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Neg<Output = Self>
    + sealed::Sealed
{
    const BITS: u32;
    fn zero() -> Self;
    fn one() -> Self;
    fn from_i64(v: i64) -> Self;
    fn is_negative(self) -> bool;
    fn bit_length(self) -> u32;
    fn checked_add_wide(self, o: Self) -> Option<Self>;
    fn checked_sub_wide(self, o: Self) -> Option<Self>;
    fn checked_neg_wide(self) -> Option<Self>;
    fn shl_bits(self, n: u32) -> Self;
    fn shr_bits(self, n: u32) -> Self;
    fn mul_exact(self, o: Self) -> Self;                       // budget asserted
    fn add_exact(self, o: Self) -> Result<Self, OverflowDetected>;
}

// the five words a value can be stored in: i32, i64, i128, I256, I512
pub trait Storage: WideInt {
    type Compute: WideInt;   // i32->i64, i64->i128, i128->I256, I256->I512, I512->I1024
    type Orient: WideInt;    // exact accumulator: i128, I256, I512, I1024, I2048
    fn widen(self) -> Self::Compute;
    fn mul_wide(self, o: Self) -> Self::Compute;               // exact product
    fn narrow(c: Self::Compute) -> Option<Self>;               // checked
    fn orient(self) -> Self::Orient;
    fn widen_product(a: Self::Compute, b: Self::Compute) -> Self::Orient;
}

// the four storage words with a second accumulator (not I512)
pub trait CircleStorage: Storage {
    type Circle: WideInt;
    fn circle(self) -> Self::Circle;
}

Two deviations from the first draft of this section, both forced by the type chain ending at I2048:

Wide in wide_acc.rs is now a re-export of WideInt; exact_product, widen_storage, widen_product and the acc aliases delegate to Storage, so the existing suite exercises the trait impls on every profile. The wide integers gained the missing methods (is_negative, checked_sub, checked_neg on I1024 and I2048); the shift operators keep their historical argument types (I256 >> u32, the others usize) and shl_bits / shr_bits are the uniform form.

4.2 FixedNum (sealed): the kernels of one format

Implemented once per storage word in src/fixed_point/fixed_num.rs: impl<const F: u32> FixedNum for Fixed<i32, F>, and for the four wide widths with their single admitted F. All five impls compile in every build.

The trait works on raw words, not on Fixed values, so the profile-bound layers that have not been made generic yet can call it through ProfileFormat (the format the build profile selects). Its methods are exactly the functions that used to carry one cfg arm per profile:

Every body was moved from its cfg arm by a script that specialises the old function for one profile, not retyped, and the old free functions now delegate to the trait. Three facts the move made visible, all preserved as they were:

The scalar type is generic on top of the kernels (src/fixed_point/imperative/fixed_point.rs):

impl<S: Storage, const F: u32> Fixed<S, F> where Self: FixedNum<Storage = S> {
    pub const ZERO: Self; pub fn one() -> Self; pub fn from_int(v: i32) -> Self;
    // conversions, the float boundary, operators and their try_ twins,
    // all 18 transcendentals with their try_ twins, sincos, sinhcosh, inv_sqrt
}
pub type FixedPoint = Fixed<BinaryStorage, { frac_config::FRAC_BITS }>;

FixedPoint is now an alias, so the whole crate above the scalar type and the whole test suite run on the generic code without a change.

Still bound to the profile's format until phase 5, because they evaluate through the canonical layer: from_str / try_from_str, Display, try_pow, try_atan2. sincos_wide and sincos_wide_q64 exist on Fixed<i32, F> and Fixed<i64, 32>, as before.

Resolved in phase 3: the containers keep ONE type parameter with the scalar as its default, FixedVector<T = FixedPoint> and FixedMatrix<T = FixedPoint>, and every impl is written on the concrete scalar, impl<S: Storage, const F: u32> FixedVector<Fixed<S, F>> where Fixed<S, F>: FixedNum<Storage = S>. User code names a width as FixedVector<Q22_10> and the methods come from that impl; nothing moved onto a trait. Expression-position constructors whose type is not fixed by an argument need an annotation (let id: FixedMatrix = FixedMatrix::identity(n)), which a handful of tests needed. The compute-tier state uses ComputeMatrix<T: FixedNum = FixedPoint> the same way.

Phase 4a settled the second half of the question, the user-implemented traits. Manifold, LieGroup, MetricProvider, OdeSystem, HamiltonianSystem, FiberBundle and BundleConnection take the scalar as a type parameter with the profile's format as its default, pub trait Manifold<T: Scalar = FixedPoint>, so impl OdeSystem for Mine still compiles and impl OdeSystem<Q22_10> for Mine names a width. The library's own types implement them for every format at once (impl<S, const F> Manifold<Fixed<S, F>> for Sphere). Scalar is a sealed trait implemented by every Fixed<S, F>: it carries the operators and comparisons and, hidden, the three operations the traits' default methods need (a square root, a matrix inverse, a vector difference), which is what lets a default body be written against T while every inherent method stays on Fixed<S, F>. A method with no scalar in its arguments, such as dimension() on a non-generic manifold, needs the trait named at the call site (<Sphere as Manifold>::dimension(&s)); a handful of tests did. Per-format constants became functions of the storage width and the split: the Rodrigues small-angle threshold is 2^F / 10^k rounded to nearest for k chosen by the word (3, 5, 10, 20), identical to what from_str made of the literals, and the curvature differentiation step is 2^-((F + 1) / 3) on every format (the five profile arms were that formula).

4.3 Admitted fractional splits

F is checked at compile time with an inline const in every constructor path:

impl<S: Storage, const F: u32> Fixed<S, F> {
    const VALID: () = assert!(S::admits_frac_bits(F), "unsupported F for this storage");
}

0.7.0 admits exactly today's set: i32 with 2..=30, i64 with 32, i128 with 64, I256 with 128, I512 with 256. Fixed<i128, 40> is a compile error, not a runtime surprise.

As built: a combination without a FixedNum impl has no methods (Fixed<i128, 40>::one() does not resolve). For the 32-bit word, where the impl is generic over F, the range is asserted in the associated constant FRAC_BITS and every split-dependent kernel reads the split through it, so Fixed<i32, 31> fails at build time with "F must be between 2 and 30" at its first use. Both are pinned by compile_fail doctests on Fixed. The check fires in cargo build and cargo test; cargo check does not instantiate the constant. The 32-bit mechanism (upshift by 64 - 2F into the Q64.64 engine, shift back) generalises to other splits on other storage words, which is how splits like Q88.40 can be admitted later, each behind its own gate.

5. Kernels: one name, one meaning

The survey found the main hazard: today's wrappers exp_binary_i128, exp_binary_i256 and their siblings change meaning per profile (exp_binary_i128 is native Q64.64 on the Q64.64 profile and upscales to Q128.128 on the Q128.128 profile). Under types, a function name has one meaning.

Phase 1 result. All 28 engines compile on every profile under one name each: exp, ln, sqrt, sincos, atan and atan2 at Q64.64, Q128.128, Q256.256 and Q512.512 (*_native), plus atan_q128_128_compute, atan2_q128_128_compute, atan_q256_256_compute and atan2_q256_256_compute. The atan engines really are two per format: _native carries the series terms for the format's own precision (55 at Q128.128, 105 at Q256.256), _compute carries the terms needed when that format is the compute tier of the storage format half its width (33 and 65). They return different integers at the compute tier, so they stay separate functions and each width keeps the one it uses today. The sin/cos engines had the same duplication but with identical bodies; those were merged. engine_identity_tests (in transcendental/mod.rs) pins a digest of every engine's output on a fixed input set, and the same digests hold on all five profiles.

6. Constants that depend on F

Associated consts on stable Rust can be computed from F (const ROUND_BIT: S = 1 << (F - 1)), but types cannot (no generic_const_exprs). That is enough: every F-dependent quantity today is a value (FRAC_ROUND_BIT, NATIVE_UPSHIFT, MAX_DECIMAL_DIGITS, convergence thresholds 2^-(3F/2), stagnation shifts, differentiation steps), and every type that varies is a function of the storage word only (Compute, Orient, Circle). Shifts by these consts compile to immediates exactly as the frac_config consts do today, which is what R-PERF needs.

7. The canonical (FASC) layer

LazyExpr becomes LazyExpr<T: FixedNum>. Literals stay text until evaluation, so the width is inferred from where the tree is used:

let e = gmath("1.5").exp() + gmath("0.1");
let v = evaluate::<Q64_64>(&e)?;          // or: let v: StackValue<Q64_64> = evaluate(&e)?;

Refined for the build (2026-10-06, after phase 4), in three sub-phases:

8. Other modules

Refined for the build (2026-10-10, after phase 5), in two sub-phases:

9. Cargo features

w32, w64, w128, w256, w512, one per storage word, additive. A feature compiles that width's Storage/FixedNum impls, engines and tables. Default: all five. A consumer that wants a small build writes default-features = false, features = ["w32"]. The profile features and GMATH_PROFILE / GMATH_FRAC_BITS are removed in 0.7.0; build.rs no longer emits table_format. Two crates enabling different widths get both; nothing changes for either.

Binary size is pay-per-use regardless of features, because the linker drops unused widths (measured: realtime plus Q64.64 together cost 1.8 MB above std). Features bound compile time, not binary size.

10. Migration plan (each phase green before the next starts)

The trick that keeps every phase verifiable: until phase 7, FixedPoint remains, defined as Fixed<BinaryStorage, FRAC_BITS> from the old cfg. The entire existing test suite therefore keeps running per profile against the new generic code, while new tests exercise all widths in one build.

Phase Work Exit gate
0 Fixes that belong on main regardless (section 12), merged into the branch. DONE: 0.6.5 main CI green
1 Storage trait, uniform wide-integer surface, engines renamed to format names, *_binary_iN meanings frozen. IMPLEMENTED full sweep, 5 profiles + F = 8..24, unchanged
2 Fixed<S, F>, FixedNum, operators, conversions, 18 transcendentals; FixedPoint aliased. IMPLEMENTED differential gate (11.1) on scalars, all widths
3 FixedVector/FixedMatrix/ComputeMatrix, linalg, decompositions, matrix functions. IMPLEMENTED (3a kernels, 3b containers, 3c compute matrix + decompositions + derived, 3d matrix functions + the 32-bit wide matrix) differential gate on linear algebra
4 Geometry layers, ODE, tensors (4a, IMPLEMENTED), fused ops, compute_tier (4b, IMPLEMENTED), Interval, predicates (4c, IMPLEMENTED), tq19 (4d, IMPLEMENTED) differential gate, certified-geometry gates
5 FASC generic (LazyExpr<T>, StackValue<T>, per-format evaluators), canonical API. IMPLEMENTED (5a format trait, 5b typed value + registry, 5c matrix layer + scalar string paths) differential gate on the FASC corpus
6 DecimalFixed compute tier by D (6a); serialization v2 (6b). IMPLEMENTED decimal gates per D, legacy-read tests
7 Remove profiles, frac_config, table_format; tests generic over width; CI one build per toolchain. IMPLEMENTED (7a library, 7b tests, 7c one build, 2026-10-16) full gate set in one build
7.5 The inference module (tq19) moved to the separate crate g_math_inference; inference feature and rayon removed from the core; Compute<T> and the wide integers exported. IMPLEMENTED (2026-10-17) extension tests equal to the moved ones; differential of the extension against 0.6.7 at six builds; core full suite
8 Docs (README, guides, PUBLIC_API regen, CHANGELOG, CONTRACT, ROADMAP, crate docs, panic texts), upgrade guide docs/UPGRADING_0.7.md, 0.7.0. IMPLEMENTED (2026-10-17) doc tests of every guide example, release checklist

11. Acceptance gates

11.1 Differential bit-identity (R-BIT)

g_math 0.6.5 from crates.io is a renamed dev-dependency (g_math_065). 0.6.5 still reads GMATH_PROFILE / GMATH_FRAC_BITS; the branch crate ignores them. So one test binary built with GMATH_PROFILE=p compares the old crate at profile p against the new crate's matching type on the same inputs: every public scalar function, the linear algebra and geometry surface, FASC expressions and decimal functions, on the existing mpmath corpora plus a seeded random corpus. Required result: zero differing bits, including identical Err variants. Run for the five profiles and for F = 2..30 on the 32-bit width.

As built for the scalar surface: tests/differential_065_validation.rs. Inputs are raw integers of every magnitude (random bit length, random sign) plus the extremes; each call's outcome is a value, an error variant or a panic, and all three must match. It runs with the ordinary suite on every profile and split. tests/width_types_validation.rs is the other half that only this design allows: every width in one binary, the same generic code checked for exact identities at ten formats, and each narrower format compared with Q256.256 (at most one unit apart; measured: exact on 136 to 141 of 141 cases per format).

11.2 Precision gates

The existing mpmath gates (fasc_ulp_validation, one_rounding_validation, decimal, certified geometry, decomposition corpora, wide tier) become generic over width and run for every width in one build.

11.3 Performance (R-PERF)

Criterion benches for the scalar operators, the 18 transcendentals, dot, matvec, LU, SVD, softmax, tq19 matvec, FASC evaluate, per width, run against g_math_065 in the matching profile on the same machine. Any regression beyond 2 percent blocks the phase.

Measured for the scalar layer after phase 2 (2026-10-06, against crates.io 0.6.7). Method that works: one binary per crate with the same harness, best of 25 rounds, five alternating process runs, minimum per op. A harness that links both crates into one binary is unusable at this resolution: code alignment moved 0.6.7's own numbers by 20 to 60 percent between builds in which 0.6.7 did not change, and sub-nanosecond operations quantise to whole cycles. Two real costs were found and removed before parity was reached:

Result: transcendentals at parity or faster on realtime, compact and embedded (sqrt, atan, asin 9 to 18 percent faster on the narrow profiles; compact sincos 47 percent faster, it now uses the fused engine); to_f64 at parity or 11 to 27 percent faster; mul, div, add, sub at parity; from_int / to_int within one cycle per call in either direction. The inference kernels are measured when their phase lands.

Measured for the containers and linear algebra after phase 3 (2026-10-06, realtime Q22.10, same method, scratch perf3/src/bin/lin.rs): dot of 3, 32 and 1024 elements 7, 13 and 0 percent faster; 64x64 matvec within 1.4 percent; 16x16 matmul 20 percent faster (the generic dot kernel); LU, QR, Cholesky, Jacobi eigen, SVD, matrix exp and sqrt all within 2 percent (LU 8x8 read +3.2 percent plain and -0.8 percent under LTO, the measurement band). Two real costs were found and removed:

Phase 3 changed no scalar kernel; the scalar div re-read +7.7 percent at Q22.10 without LTO, +2.8 under LTO, +1.6 at Q16.16 and -0.8 on compact, which is the band of a 14 ns operation in this method.

Measured for the canonical layer after phase 5 (2026-10-06 to 2026-10-10, realtime Q22.10, compact, embedded, balanced; same method, scratch perf3/src/bin/fasc.rs): the cheapest tree (an integer add, 207 ns in 0.6.7) read +6.2 percent with the evaluator registry alone and -6 percent with a one-entry last-used cache in front of it; decimal mix and chain, division, parse, exp and display at parity or faster on every profile; after 5c from_str, Display and try_pow within 1 percent, from_str of a fraction 11 percent faster. One false regression was chased to the end: sqrt and atan2 read +28 to +31 percent at Q22.10 on the tree while the engine and the I256 division it runs are byte-identical in both binaries, and a bisect over the phase commits is bimodal (phase 4b and 5a at parity, phase 2, 4a, 5b and 5c slow) with no engine change between them. With -C llvm-args=-x86-branches-within-32B-boundaries both crates read the same (the tree 2 to 3 percent faster) and both 10 to 25 percent faster than unpadded: the bit-serial I256 division (256 data-dependent branches per quotient, 7 quotients per square root) is branch-bound and its cost follows the consumer's link layout on Skylake-family cores. The balanced sqrt note of phase 5b (I512, same shape) is the same effect. The lasting fix is a word-serial division (ROADMAP follow-up), not a change to the generic layers.

11.4 Size

The 2026-10-05 probe (sizeprobe, allprobe) rerun on the new crate: per-width cost at most the 0.6.5 profile cost, all-widths cost at most the five-copy measurement.

12. What changes on main before the branch lands

Defects and additive APIs that are independent of the width design ship from main as 0.6.x and are merged into this branch, so consumers are not held hostage to the refactor. Every item below was verified on 0.6.4 (5d0ecb2) before being listed; the probes live in the 2026-10-05 session scratchpad.

12.1 Defects (found or confirmed 2026-10-05; fixed in 0.6.5 unless noted)

0.6.5 is the foundation this branch builds on. D1 to D5, D7 and D8 are fixed there (gate tests/defects_065_validation.rs); the infallible tq19 forms panic and no try_ twins were added; D3 keeps 0x05 for Q16.16 and writes 0x80 | F for other realtime splits; D6 was resolved by correcting the documentation, and making the compute-tier decimal intermediates half-even stays open for 0.7.0 behind an output-difference measurement.

# Defect Evidence Fix
D1 tq19 narrowing wraps silently: ops.rs narrow_to_storage and shift_right_frac_and_narrow use as casts; scalar accumulators use plain + trit_dot(&[1,1], &[2^30, 2^30]) = -2^31 (true 2^31); tq19_dot(&[MAX_RAW; 8], &[i32::MAX; 8]) = -436426 checked narrowing, panic in infallible forms, try_ twins; breaks the 0.4.28-0.4.31 rule otherwise
D2 fused::rms_norm_factor_eps_wide (and the storage-eps form) with negative eps returns Ok(0) sqrt_binary_i64 returns the sentinel i64::MIN for negative input; the caller checks only for zero Err(DomainError); audit every caller of the sentinel
D3 Serialization tag records the storage word but not F: Q16.16 bytes load silently as Q22.10 serialization.rs PROFILE_TAG 0x05 for every split new tag carrying F; legacy tag read only when the reader's F is 16 or through an explicit legacy call (owner decision: persisted data exists)
D4 Two profile features enabled at once: build.rs picks by priority, no error build.rs feature cascade compile_error on conflicting profile features or on env/feature disagreement
D5 Decimal UGOD tier 6 multiply and divide narrow I1024 to I512 with as_i512 (low words) decimal_multiplication.rs, decimal_division.rs checked narrowing, rational fallback like the binary ladder top; probably unreachable through FASC today, fixed anyway
D6 Docs say decimal rounding is half-even wherever it occurs; decimal compute-tier mul/div/div_int round half away from zero decimal_compute.rs make them half-even (moves FASC decimal-compute chains by at most one compute-tier unit before the final rounding; measure output change first) or correct the docs; owner decision
D7 Currency / HighPrecisionCurrency listed public in PUBLIC_API.md but reachable only through a doc-hidden path fixed_point/mod.rs re-exports re-export at g_math::fixed_point
D8 Undocumented Err conditions of fused::softmax, softmax_mix, rms_norm_factor_eps_wide doc comments state each condition with its width envelope (for example softmax_mix numerator overflow at n * 2^(31+F) >= 2^63)

Minor: DecimalFixed::convert_with_rounding has no try_ twin (panics on upscale overflow); a whitespace-only decimal string reports InvalidFormat rather than EmptyString; the tq19 module docs name a parallel feature that does not exist.

12.2 Additive APIs requested by consumers, verified as sound

A1 to A9 shipped in 0.6.5 with the defect fixes (the five-trit matrices on the realtime profile only; caller-provided output buffers not included). Each was compared bit for bit with the downstream code it replaces. Under this design they are ported in phase 4 like the rest of the fused and inference surface.

# API Why it is sound Width relevance
A1 Decimal rounding mode: RoundingMode for DecimalFixed::try_mul_with, try_div_with, convert_with_rounding_mode, mul_div; default stays half-even, so no existing result moves tie direction is policy, not arithmetic; the exact quotient is already computed (one rounding), only the tie decision changes; half-away is applied to the magnitude so f(-x) = -f(x) survives none: decimal arithmetic is profile-independent today
A2 DecimalFixed::mul_div(self, num, den) with one rounding from the exact a * b / c the two-step form (product at 6 dp, divide, narrow to 2 dp) differs from single rounding on 22 of 1,200,000 VAT cases, all at two-decimal rates, measured in an exact-rational model and on the crate none
A3 Documented contract: try_div rounds once from the exact quotient verified end to end, including the D256 path none
A4 #[repr(transparent)] on FixedPoint and documented FixedVector layout, with safe slice views one non-ZST field; size 4 / align 4 measured on Q22.10; adds a layout commitment, changes no value carried into Fixed<S, F> (section 8)
A5 Bounded unchecked dot: if len * max|a| * max|b| < 2^(2·BITS-1) sum without per-term checks, else the checked loop no partial sum can overflow in any order under the bound; identical integer and identical panic otherwise; measured 3-4x faster per 128-element dot with native codegen written once over Storage::BITS
A6 fused::softmax_mix body without the i128 detour, a weights-free variant, a flat-buffer variant; dot_many over one key buffer a port of the requested body matched today's on 3,000 of 3,000 random cases (outputs and weights); (e*v + 2^9) >> 10 equals compute_multiply(e, v << 10) algebraically generic over F
A7 Five-trit row-scaled projection matrices beside RowScaledTQ19 (i8 code in [-121, 121], Q32.32 row scale, matvec families, AVX2 with scalar fallback, stable byte layout) same contract shape as RowScaledTQ19; independent of storage width except the q2f shift and the AVX2 split for 32-bit activations belongs to the generic inference module
A8 Exact bit-pattern decoders (bf16, binary16 to fixed raws) and quantisers for the ternary formats integer shifts only; exhaustive over 65,536 patterns generic over F
A9 Fused RMS norm application (normalised weighted vector, in place and out of place), pair rotation (rotate_pairs with a rotary prefix), caller-buffer batch forms compositions of existing contracted ops with one rounding each generic over F

Declined or held, with the reason:

13. How the inference module fits the width design

The inference kernels are where the width design pays off first: they already combine a 32-bit storage split, a 64-bit compute tier, Q32.32 scales and Q64.64 wide kernels in one consumer, which is a multi-width program written by hand today. Under section 4: