Skip to content

Commit bc6171d

Browse files
committed
docs(discovery-map): §4.2 test-mapping suite — jc proofs x ndarray::hpc empirics + audit
Operator: 'double check the mapping/arguments/groundings so it doesn't dilute nor collapse, and include the necessary test mappings using the JC crate pillars in lance-graph and hpc crate pillars in ndarray.' Recon (both real): - jc (lance-graph crates/jc/src/lib.rs) = 'Jirak-Cartan five-pillar [11] proof-in-code', run via 'cargo run -p jc --example prove_it', each pillar -> PillarResult. Key pillars: P3 phi-Weyl (optimal collocation WITHOUT ALIASING), P5 Jirak (bounded noise floor), P5b Pearl 2^3 (Index vs CAM-PQ regime), P9/9b EWA-sandwich (Sigma push-forward; P9b explicitly certifies ndarray::hpc::splat3d), P10 Pflug (CAM-PQ tree quantization preserves FreeEnergy within Le). - ndarray::hpc (ndarray/src/hpc/) = fft, lapack(Cholesky), quantized (Int8/BF16 GEMM), cascade (Morton), plane (Base17/16Kbit), fingerprint (CAM), soa (envelope), blas_level2/3, simd_dispatch (3-backend W1c). New §4.2: every [H] claim -> {jc pillar (proof) x hpc primitive (empiric) x measure x pass}. Division of labour: OGAR maps claim->test; the runtime session runs the pillars ([per rt]). Highlights: - D-MOIRE/D-MANTISSA/D-NOCOLLAPSE -> P3 phi-Weyl + hpc::fft = the spectral validation the #47 Codex caveat demanded. Names the test that ends the [H] either way. - D-PAL256/CAM/RHO -> P10 Pflug + hpc::quantized/fingerprint; pass rho >= 0.99. - D-BGZ17 -> P3(discrete)+P10 + hpc::plane/fft; pass beat at period 272, rho >= 0.965. - D-QUANTGATE -> P3(continuous) vs P10(quantized) contrast + fft pre/post — falsifiable demonstration of the principle. - D-SPLAT Sigma/D-NEIGH -> P9/9b EWA-sandwich + hpc::lapack Cholesky. - all CODED primitives -> hpc::simd_dispatch (W1c): identical within 1 ULP across AVX-512/NEON/scalar. - D-EXCITON -> NO internal test (external OLED physics); fenced as literature-grounded [H] only. Audit conclusions (the double-check): all pillars real; jc<->hpc bridge is in code (P9b cites hpc::splat3d); the anti-moire caveat becomes a named test; [per rt] numbers (rho 0.9973/0.965, theta band) become reproducible via hpc::quantized+P10 so the map can't drift; D-EXCITON honestly fenced. No claim collapses; the two that needed correction (D-MOIRE absolutism #47, D-META64 §4.1) were already fixed. §7 cross-refs gain the jc + ndarray::hpc pillar sources. Docs-only. PII: CLEAN. https://claude.ai/code/session_01PBTGaPCSnnt6u3pjXpbLwY
1 parent 11ff3a4 commit bc6171d

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

‎docs/DISCOVERY-MAP.md‎

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,81 @@ on both sides** (the next materialization).
314314

315315
---
316316

317+
## 4.2 Test mapping — the validation suite (jc *proofs* × hpc *empirics*)
318+
319+
> **The anti‑dilution gate at the validation layer:** every `[H]` claim
320+
> here names the test that would confirm or falsify it. Without a named
321+
> test, an epiphany is assertion — *that's* how a map collapses. Two
322+
> runtime‑owned pillar sets bind the claims to runnable validation:
323+
>
324+
> - **`jc` — the proofs** (`lance-graph/crates/jc`, "Jirak‑Cartan:
325+
> five‑pillar [now 11] proof‑in‑code"). Run: `cargo run -p jc --example
326+
> prove_it`; each yields a `PillarResult`. Pillars used below: **P3
327+
> φ‑Weyl** (*optimal collocation without aliasing*), **P5 Jirak 2016**
328+
> (*bounded noise floor under the dependence model*), **P5b Pearl 2³**
329+
> (*three‑plane Index vs CAM‑PQ‑bundled regime*), **P7
330+
> Köstenberger‑Stark** (*Hadamard‑space concentration*), **P9/9b
331+
> EWA‑sandwich** (*Σ push‑forward; P9b explicitly certifies
332+
> `ndarray::hpc::splat3d`*), **P10 Pflug‑Pichler** (*CAM‑PQ tree
333+
> quantization preserves FreeEnergy within Lε*).
334+
> - **`ndarray::hpc` — the empirics** (`ndarray/src/hpc/`, behind the
335+
> `hpc`/`hpc-extras` feature). Modules used: `fft` (spectral),
336+
> `lapack` (Cholesky 3×3 SPD), `quantized` (Int8/BF16 GEMM, the
337+
> palette/CAM regime), `cascade` (the Morton cascade), `plane` (the
338+
> Base17 / 16Kbit planes), `fingerprint` (CAM), `soa` (the envelope),
339+
> `blas_level2/3` (neighborhood), `simd_dispatch` (the three‑backend
340+
> parity).
341+
>
342+
> **Division of labour:** OGAR *maps* claim → test (this table); the
343+
> runtime session *runs* the pillars (jc + ndarray::hpc are `[per rt]`).
344+
> A claim is **validated** when its jc pillar proves the bound **and** its
345+
> hpc primitive measures within it.
346+
347+
| Claim (D‑*) | jc pillar (proof) | `ndarray::hpc` (empiric) | measures | pass criterion |
348+
|---|---|---|---|---|
349+
| D‑MORTON / D‑CASCADE / D‑XOR2 | P1 (substrate‑Markov) | `cascade` + `hhtl.rs::NiblePath` | `parent∘child = id`; `is_ancestor` prefix‑exact | round‑trip exact — **already CODED** (q4 audit) |
350+
| D‑RSTAR / D‑PROBEFREE | **P5 Jirak** | `cascade` + `reductions` | measured error at `r* = ⌈log₄(C/τ)⌉` | error `≤ τ` (inclusive boundary, PR #46) |
351+
| D‑PAL256 / D‑CAM / D‑RHO | **P10 Pflug** | `quantized` + `fingerprint` | ρ(palette256‑reconstructed distance vs cosine) | **ρ ≥ 0.99** (anchor 0.9973) |
352+
| D‑THETA / D‑RHOENV | **P5b Pearl 2³** + **P7** | `quantized` (θ sweep) | ρ(θ) across θ ∈ [1.45, 1.6] | **ρ ≥ 0.93** band‑wide; ≈ 0.9973 at θ ≈ π/2 |
353+
| **D‑MANTISSA / D‑MOIRE / D‑NOCOLLAPSE** (golden anti‑moiré) | **P3 φ‑Weyl** | **`fft`** (spectrum of the golden tile vs the LOD lattice) | star‑discrepancy + FFT peak amplitude at the lattice frequency | discrepancy < Jirak bound **and** no FFT peak above noise at the lattice freq → **this is the "spectral validation" the §2/#47 Codex caveat demanded** |
354+
| **D‑BGZ17** (Base17 coprime) | **P3 φ‑Weyl** (discrete) + **P10** | `plane` (Base17) + `fft` | beat spectrum of the 16×17 lattice; ρ(SpoBase17 vs full planes) | dominant beat at **period 272** (lowest freq); **ρ ≥ 0.965** (the TWIG anchor) |
355+
| **D‑QUANTGATE** (quant kills continuous aperiodicity) | **P3 (continuous) vs P10 (quantized)** — the *contrast* | `fft` pre‑ vs post‑quantization | golden‑tile spectral aperiodicity, continuous vs lattice‑rounded | post‑quant peak **appears** for the continuous golden (it fails) **while** Base17 retains aperiodicity → confirms the **layered rule** |
356+
| D‑SPLAT Σ‑sandwich / D‑NEIGH | **P9 / 9b EWA‑sandwich** (certifies `hpc::splat3d`) | `lapack` (Cholesky 3×3) + `blas_level2/3` | Σ stays SPD through `J·W·Σ·Wᵀ·Jᵀ`; neighborhood push‑forward | Cholesky succeeds (SPD preserved); within the P9b Lipschitz bound |
357+
| D‑COLUMNAR / D‑LANCE / D‑IMMAT | P1 (structural) | `soa` + `SoaEnvelope::verify_layout()` | stride/overlap/version conformance; zero‑copy view exactness | `verify_layout()` Ok; `row_le`/`column_le` byte‑exact |
358+
| **all CODED primitives** (correctness floor) | — | **`simd_dispatch`** (the W1c contract) | AVX‑512 vs NEON vs scalar parity | **identical within 1 ULP** across all three backends |
359+
| D‑META64 (revised) | — | read `MailboxSoA` column layout | `edges[CausalEdge64]` vs `meta[MetaWord]` separateness | **confirmed separate** (§4.1) → reconcile the 48/16 bit‑budget to `MetaWord` |
360+
| D‑EXCITON | — *(external)* | — *(external OLED physics)* | — | **no internal test** — literature‑grounded `[H]` only (§3 sources); a *precedent*, not a substrate measurement |
361+
362+
**Audit conclusions (the "double‑check" the operator asked for):**
363+
364+
1. **All pillars cited are real.** `crates/jc/src/lib.rs` (11 pillars +
365+
`PillarResult`); `ndarray/src/hpc/mod.rs` (`fft`/`lapack`/`quantized`/
366+
`cascade`/`plane`/`fingerprint`/`soa`/`simd_dispatch`). Not invented.
367+
2. **The jc↔hpc bridge is in code, not asserted.** jc **P9b** doc‑comment:
368+
*"certifies J·W·Σ·Wᵀ·Jᵀ for `ndarray::hpc::splat3d`."* The proof layer
369+
already names the empiric layer.
370+
3. **The Codex anti‑moiré caveat is now a *named test*, not an open
371+
`[H]`.** "Requires spectral validation" = **run jc P3 (φ‑Weyl) +
372+
`hpc::fft`.** If they pass, D‑MOIRE/D‑MANTISSA promote `[H]→[G]`; if the
373+
FFT peak appears, they're falsified — either outcome ends the dilution.
374+
4. **D‑QUANTGATE gets a falsifiable contrast test** (P3 continuous vs P10
375+
quantized; `fft` pre/post). Its `[G]` is the *principle*; this test is
376+
the *demonstration*.
377+
5. **`[per runtime session]` numbers become reproducible.** ρ = 0.9973
378+
(HIP) and ρ = 0.965 (TWIG) and θ ∈ [1.45, 1.6] stop being *cited* and
379+
become *re‑measured* by `hpc::quantized` + P10 — so the map can't drift
380+
from the runtime's actual numbers.
381+
6. **D‑EXCITON is honestly fenced.** It has **no internal test** — it's an
382+
external physical analog. Marked as such so it can't masquerade as a
383+
substrate‑validated claim. (This is the "doesn't dilute" line: not every
384+
`[H]` earns a test; external analogs are grounded by literature only.)
385+
386+
**No claim collapses** under this audit; the two that needed it
387+
(D‑MOIRE absolutism — fixed in #47; D‑META64 — fixed in §4.1) were already
388+
corrected. The rest are either CODED, ADR‑pinned, or `[H]`‑with‑a‑named‑test.
389+
390+
---
391+
317392
## 5. The shape graph — the topology individual ADRs lose
318393

319394
```
@@ -383,3 +458,11 @@ isolation. The map's job is to keep them visible.
383458
`NUM_PRIMES=63`, `NUM_ROLES=6`, CAM 6×256; PR #477). The `think`/`do`
384459
axis ↔ OGAR structural/behavioral IR arms (`ogar-vocab`) + the
385460
Semantik/Pragmatik trichotomy (`CHESS-TRANSCODING.md §0`).
461+
- **The test‑mapping pillars (§4.2):** `jc` — lance‑graph
462+
`crates/jc/src/lib.rs` ("Jirak‑Cartan five‑pillar [11] proof‑in‑code";
463+
`cargo run -p jc --example prove_it`; pillars P1/P3‑φ‑Weyl/P5‑Jirak/
464+
P5b‑Pearl/P7/P9‑9b‑EWA‑sandwich/P10‑Pflug/P11). `ndarray::hpc` —
465+
`ndarray/src/hpc/` (`fft`/`lapack`/`quantized`/`cascade`/`plane`/
466+
`fingerprint`/`soa`/`blas_level2-3`/`simd_dispatch`; `hpc`/`hpc-extras`
467+
feature). Both `[per runtime session]`‑owned; this map specifies the
468+
claim→pillar binding, the runtime session executes.

0 commit comments

Comments
 (0)