STEP 1733 — R(D~) v0.3 decoder + distortion — savings を (savings, E[d]) の対に

2026-09-04 (JST) · rei-aios tab rei-aios-f9 (Cowork cloud session) STEP 1733 land · Predecessor: STEP 1732 v0.2 / STEP 1729 v0.1 · Spec: data/tabs/rei-aios-f9/quantum-frontier-spike/spec-v0.1.md §5

Land 内容: v0.3 LAND 1,232/1,232 PASS v0.2 137/137 v0.1 63/63 UPPER BOUND, NOT R(D~)
v0.2 まで報告していた savings = (H(X) − H(X/~)) / H(X)H(X/~) ≤ H(X) から出る会計上の恒等式であって符号化の結果ではない。 v0.3 は 復元規則 (decoder)元アルファベット上の歪み尺度 を実装し、 報告単位を savings 単独から (savings, E[d]) の対に変更する。 対にすると 4 partition は R(D) 平面上の 4 点になる。単独の savings では議論の対象が存在しない。

1. Motivation — v0.2 が散文で述べたことを測定値にする

STEP 1732 の commit message は既に 「savings 最大 ≠ best(SELF-fixed は Belnap+古典 4 値 collapse で mass 87.7% 集中 = 情報消去代償)」 と述べていた。診断は正しかった。 v0.3 が加えるのは新しい洞察ではなく、 その散文を 測れる数 に昇格させることだけである。

なぜ対でなければならないか
商空間の rate は「受け手が class しか受け取らない」ことを前提にしている。 受け手が元の値を必要とするなら、class から元の値を復元する規則が要る。 復元は必ず誤りうるので、その誤りの量 = E[d] を rate と一緒に出さない限り、 savings は「情報を捨てた量」と区別がつかない。

2. 追加した API

追加役割
POLAR_PAIRD-FUMT₈ の極性対(TRUE↔FALSE / BOTH↔NEITHER / INFINITY↔ZERO / FLOWING↔SELF)。v0.1 の polar-role 分割から読み取ったもので、新規の発明ではない
HAMMING_DISTORTION
POLARITY_DISTORTION
DISTORTION_REGISTRY
元アルファベット上の歪み行列。0-1 と「極性反転は 2 倍」の 2 種。両方に declared: true を立て、導出ではなく宣言であることを型で明示
argmaxDecoder
optimalDecoder
MAP 復号器/歪み最適復号器。後者は class ごとに元アルファベット全体(class 内に限らない)から argmin を取る。class は独立なので厳密解
expectedDistortionE[d(X, decode(toClass(X)))]
rateDistortionPoints本命。登録済 4 partition を (savings, E[d]) の対として報告し、Pareto フラグを付ける
isRefinementOf / refinementRelations4 partition の細分順序を hardcode せず計算で導出
hammingRatePoint
seedKernelRatePoint
同じ修繕を一般アルファベットへ。SEED_KERNEL の 69.15% にも E[d] を付ける

3. D-FUMT₈ 4 partition の (savings, E[d]) — 実測

合成 skewed 分布 [50,30,10,10,5,5,3,1](H(X) = 2.2380 bits)、0-1 歪み、歪み最適復号器。

PartitionClass 数H(X/~)savingsE[d]Pareto復号器
Conservative 41.840717.8%0.1667yes true→TRUE false→FALSE boundary→BOTH extended→INFINITY
Bivalent-only 61.611328.0%0.1754yes true_or_both→TRUE false_or_neither→FALSE +4 singleton
v0.1 polar-role 41.275743.0%0.4035yes classical→TRUE boundary→BOTH transcend→INFINITY process→FLOWING
SELF-fixed 50.759666.1%0.4386yes evaluated→TRUE +4 singleton
savings 順と E[d] 順が完全に一致した。 4 点は単調なトレードオフ曲線をなし、この 4 点の中では全てが Pareto 最適。 savings 最大の SELF-fixed は E[d] も最大で、その復号器は evaluated → TRUE、すなわち FALSE / BOTH / NEITHER は復元不能。 STEP 1732 の「情報消去代償」が数値になった。

4. SEED_KERNEL 69.15% にも同じ修繕を — 実測

299 categories → 8 clusters  |  H(X) = 7.2901 → H(X/~) = 2.2493
savings = 69.15%     E[d] = 0.7964
69.15% の削減は、約 80% の再構成誤りと引き換えである。
savings 単独報告がなぜ危険かを示す、本 arc で最も強い実例。 復号器は各 cluster をその最頻 category に復元する(meta→invention、math→number-system 等)が、 299 category を 8 cluster へ潰すため、大多数の理論は別 category として復元される。

5. 数値の帰属整理(訂正)

66.1% と 69.15% は別の情報源・別のアルファベットであり、1 つの arc の成果として並べると合成と実測が混ざる。

数値由来アルファベット分布
66.1%STEP 1732D-FUMT₈ 8 値 → SELF-fixed 5 class合成 skewed [50,30,10,10,5,5,3,1]
69.15%STEP 1729 measureSeedKernelSEED_KERNEL 299 category → 8 cluster実測 1,685 理論

6. 検証 — トレードオフが実装の副作用でないことの担保

7. Honest scope

8. Test

$ npx tsx test/step1733-r-d-tilde-v03-decoder-distortion-test.ts
   partition        classes  savings%   E[d]     Pareto  decoder
   conservative     4          17.8   0.1667  yes     true→0 false→1 boundary→2 extended→4
   bivalent_only    6          28.0   0.1754  yes     true_or_both→0 false_or_neither→1 infinity→4 zero→5 flowing→6 self→7
   v01_polar        4          43.0   0.4035  yes     classical→0 boundary→2 transcend→4 process→6
   self_fixed       5          66.1   0.4386  yes     evaluated→0 infinity→4 zero→5 flowing→6 self→7
   strict refinement pairs: bivalent_only ⊑ self_fixed
   SEED_KERNEL: 299 categories → 8 clusters | H(X)=7.2901 H(X/~)=2.2493 | savings=69.15%  E[d]=0.7964
=== STEP 1733 result: 1232 passed, 0 failed ===

$ npx tsx test/step1732-r-d-tilde-v02-alternative-partitions-test.ts
=== STEP 1732 result: 137 passed, 0 failed ===   (v0.2 backward compat 維持)

$ npx tsx test/step1729-r-d-tilde-test.ts
結果: 63 passed, 0 failed                        (v0.1 backward compat 維持)

9. 継続候補 (v0.4+ backlog)

🤖 Generated by Claude (Cowork, Opus 5) — session_01AVWX2wwbJyWR2fbfXcpS87