STEP 1723v0.13.0-alpha FEAT
benchtop-mcp v0.13.0-alpha — relational_compression_bound (K(x|y) 条件付き圧縮長上界)
1. 経緯 (chat-Claude 2026-09-03 arc)
入口: 藤本さん質問 「仮想デスクトップ空間にて、あるファイルが有ります。そのファイル容量は-1000000バイトなのです」。
chat-Claude 応答 (要旨): 「負の情報」は実在する。 量子情報理論の負条件付きエントロピー (S(A|B) < 0) が Nature 2005 論文で示された operational 意味は、 Alice が自分の状態を Bob に 0 量子ビットで送ることができ、 かつ送信後に |S(A|B)| 個のもつれが手元に残る = 「送ると資源が増えるファイル」。 但し 3 種類の「負のサイズ」 (メタデータの数値 / 重複排除の参照 / 量子的な負情報) は 全て「既にどこかで支払われたもの」に対する信用 = 条件付き量に統一される。 「絶対量ではなく、 条件付き量を見よ」。
藤本さん次段 質問: 「上記を踏まえると現実でも仮想空間にヒントが隠されていますか?」
chat-Claude 応答 (要旨): dedup / 差分符号化 / LLM 圧縮 / もつれ支援プロトコル の 4 つは 全て 「受け手が 既に何を持っているか」 を設計する仕事 = shared prior 設計。 D-FUMT₈ が本当に効く場所は 予測器の中ではなく、 送り手と受け手が共有する構造そのもの。
私 (Claude Code) 応答: Rei stack で 既に 「関係量」 として動いている 7 engine (Brotli/Zstd 辞書 / .seed 通信 / Content-addressed 検索 / Alphabet Reduction + F-Entropy / benchtop physics-limits / octatheoria envelope / SEED_KERNEL mirror) を並べ、 3 選択肢 (memory のみ / SEED 理論登録 / STEP 1 本 benchtop 拡張) 提示。 藤本さん directive 「3. STEP 1 本 (benchtop 拡張) — relational_compression_bound tool を benchtop-mcp に追加、 receiver's shared prior を引数に取り Kolmogorov-style 条件付き下限を返す」 → 本 STEP 実装。
2. Tool signature + 4 modes
relational_compression_bound(
payload_bits: int,
prior_kind: "dedup" | "delta" | "model" | "entanglement",
prior_capacity_bits: int = 0,
conditional_entropy_bits_per_symbol: float | None = None,
overlap_fraction: float | None = None,
mutual_information_bits: float | None = None,
pointer_bits_override: int | None = None,
) -> dict
4 modes の semantics
| mode | required extra arg | formula (signed_bound_bits) | chat-Claude 4 対応 |
|---|---|---|---|
dedup | overlap_fraction ∈ [0,1] | (1 − overlap) × N + pointer_bits | 「受け手が既にその blob を持っている」 |
delta | conditional_entropy ∈ [0,1] | N × H(X|Y_prev) + ⌈log₂(N+1)⌉ | 「受け手が既に前のバージョンを持っている」 |
model | conditional_entropy ∈ [0,1] | N × H(X|M) + 2 | 「受け手が既にモデルを持っている」 |
entanglement | mutual_information ∈ [0,2] | N × (1 − I(X;Y)) ← 負可 | 「受け手が既にもつれの片割れを持っている」 |
Return dict の 主要 fields
absolute_bound_bits: baseline (H=1, N bits raw)signed_bound_bits: 条件付き上界 (entanglement mode で 負値化 可)channel_bits_min = max(0, signed_bound): 実 通信路 の 最小 bit (常に ≥ 0)credit_bits = absolute − channel_bits_min: 引き当てられる creditebit_ledger_bits: entanglement mode のみ 意味あり、 負値可is_negative_size: signed_bound < 0 sentinel (chat-Claude 「-1,000,000 バイト」 相当)is_upper_bound: True (K uncomputable disclaimer 継続)kolmogorov_note,honest_scope,citation,assumptions
3. 実行例
Case A: dedup 80% 一致
relational_compression_bound(
payload_bits=1000, prior_kind="dedup",
prior_capacity_bits=1024, overlap_fraction=0.8,
)
→ signed_bound_bits = 207.0 (= 200 residual + 7 pointer)
channel_bits_min = 207.0
credit_bits = 793.0 (= 79.3% saved)
is_negative_size = False
ebit_ledger_bits = 0.0
Case B: delta H(X|Y_prev)=0.1 per bit
relational_compression_bound(
payload_bits=1000, prior_kind="delta",
conditional_entropy_bits_per_symbol=0.1,
)
→ signed_bound_bits = 110.0 (= 100 residual + 10 log-N overhead)
credit_bits = 890.0 (= 89.0% saved)
Case C: model H(X|LLM)=0.3 per bit
relational_compression_bound(
payload_bits=1000, prior_kind="model",
conditional_entropy_bits_per_symbol=0.3,
)
→ signed_bound_bits = 302.0 (= 300 residual + 2 arithmetic-coding overhead)
credit_bits = 698.0 (= 69.8% saved)
Case D: entanglement I(X;Y)=1.5 per bit → signed_bound = −500 (NEGATIVE)
relational_compression_bound(
payload_bits=1000, prior_kind="entanglement",
mutual_information_bits=1.5,
)
→ signed_bound_bits = −500.0 ← chat-Claude 「-1,000,000 バイト」 の operational 形
channel_bits_min = 0.0 ← 物理 通信路 は 常に ≥ 0
ebit_ledger_bits = −500.0 ← 事前共有した ebit への 引き当て credit
credit_bits = 1000.0 ← absolute (1000) − channel_min (0) = full credit
is_negative_size = True ← sentinel flag
citation = [..., "Horodecki-Oppenheim-Winter 2005, Nature 436:673", ...]
これが chat-Claude 「送ると資源が増えるファイル」 の operational wrap。 負のサイズは 「事前共有した資源への 信用」 であって 通信路 の 物理 bit が減る訳ではない。 会計 layer で 見える化 する だけ。
4. Honest scope (★ CRITICAL — chat-Claude arc discipline 継承)
K(x|y) uncomputable disclaimer: Kolmogorov 条件付き複雑性 K(x|y) は Turing-uncomputable (Chaitin 1975)。 本 tool は Slepian-Wolf (1973) / Wyner-Ziv (1976) 統計的上界のみを返し、 実 K(x|y) では ない。 「Kolmogorov-style 下限」 と 呼ぶ 時も その 上界 の 一つ の 位置付け。
entanglement mode の意味: signed_bound_bits < 0 は 「事前共有した ebit への 引き当て credit」 の 会計であり、 実 通信路 の 物理 bit が 負に なる ことでは ない。 channel_bits_min = max(0, signed) は 常に ≥ 0。 Horodecki-Oppenheim-Winter 2005 Nature の quantum state merging 定理は 「事前共有した entanglement (前払いした資源) 込みで 全 系 で 足せば ≥ 0」 を主張している。 本 tool は そこの 「引き当てられる credit」 だけ を 見える化 する 会計 layer。
dedup overlap_fraction は trust input: overlap_fraction は 呼出側 が 独立に verify した trust input として 受け取る。 本 tool は 実 data から overlap を 計算 しない。 誤 overlap 主張 → 誤 credit 結果。 dedup 実装 自体 は 別 layer (rsync / IPFS / borg 等 の 実 tool)。
pure calc / 状態なし: 全 tool と 同様、 stdlib のみ、 network / file I/O なし。 remote MCP としても そのまま deploy 可能。 hardware 送出は 行わない。
「世界初」 主張ゼロ: 本 tool は Shannon 1948 + Slepian-Wolf 1973 + Wyner-Ziv 1976 + Horodecki-Oppenheim-Winter 2005 の 4 論文 (最 新 でも 21 年前) の operational wrap layer のみ。 feedback-super-naming-siren-family-pattern + feedback-world-uniqueness-claim-controllable 継承。
5. Test 結果
module 側 selftest: benchtop_physics_limits.py 内 [6] section で 27 assertion 追加、 84/84 PASS (既存 57 + 新規 27)。
MCP wire selftest: benchtop_mcp.py [20g] section で 4 mode + 4 invalid input = 8 assertion 追加、 全 PASS。 「全テスト成功。実機が無くてもこのサーバーは動作します。」 line 発生 verify。
commit: c66e6a9 push 済 (benchtop-mcp main branch、 2 files changed / 594 insertions)。 version bump 0.12.0-alpha → 0.13.0-alpha。
6. Rei stack 内 の 位置付け (関係量の 一等市民化)
Rei stack で 既に 「関係量」 として 動いている 7 engine + 本 STEP で 8 engine に:
| # | 層 | engine | 関係量 としての 正体 |
|---|---|---|---|
| 1 | compression | Brotli/Zstd 辞書 (STEP 59-70) | size = size(payload | dictionary) |
| 2 | p2p | .seed 通信 (STEP 434-460) | 辞書 sync 込み で payload 差分 |
| 3 | axiom-os | コンテンツアドレス検索 (STEP 277) | hash 参照 = 「既にどこかにある」 |
| 4 | axiom-os | Alphabet Reduction + F-Entropy (Paper 58) | 記号集合を先に共有 → 条件付き化 |
| 5 | benchtop-mcp | physics-limits (STEP 1348) | 絶対量の壁 = 関係量の下限 |
| 6 | aios/octatheoria | 4 domain unified envelope (STEP 1020-1023) | 8軸 projection = shared prior |
| 7 | axiom-os | SEED_KERNEL 1,685 理論 mirror (STEP 1352) | mirror = 「受け手が既に持っている」 |
| 8 | benchtop-mcp | relational_compression_bound (STEP 1723) | 4 mode の credit を 単位付き 計算 |
7. 次候補 (defer、 藤本さん directive 待ち)
- SEED_KERNEL 理論登録: 「Conditional Cost Primacy」 = 龍樹 相依性 + Horodecki 負条件エントロピー + 重複排除 の 三位一体、 SEED_KERNEL 1,685 → 1,686 に 1 理論追加 candidate。 chat-Claude 元 recommendation 2。
- d8_verdict integration: dedup / delta / model / entanglement の 4 mode を D-FUMT₈ 8 値に mapping、 「絶対量 quadrant」 と 「関係量 quadrant」 の 境界を verdict field で 見せる。
- reflex integration: rei-aios discovery-worker で 「新 理論候補」 出力時、 conditional_entropy を LLM cross-entropy から 推定 → tool を 呼ぶ pipeline。
- Rei-solver との 相補: solver output の 上界 vs 本 tool の relational 上界を 併記、 「予測器を強くする」 vs 「shared prior を設計する」 の 2 軸 で design space を 見せる。
8. 参照
References (60+ 年 〜 21 年 前既知、 全 教科書/Nature 事項)
- Shannon 1948, "A Mathematical Theory of Communication", Bell System Technical Journal 27:379
- Slepian-Wolf 1973, "Noiseless coding of correlated information sources", IEEE Trans. Inf. Theory 19:471
- Wyner-Ziv 1976, "The rate-distortion function for source coding with side information at the decoder", IEEE Trans. Inf. Theory 22:1
- Horodecki-Oppenheim-Winter 2005, "Partial quantum information", Nature 436:673
- Chaitin 1975, "A theory of program size formally identical to information theory", J.ACM 22:329
Related
- benchtop-mcp v0.6 STEP 1348 (絶対 compression_upper_bound)
- SEED_KERNEL 1685 理論 memory mirror index
- feedback-super-naming-siren-family-pattern (K uncomputable 命名 discipline)
- feedback-world-uniqueness-claim-controllable (「世界初」 主張ゼロ discipline)
Source
- benchtop-mcp: commit c66e6a9 (v0.13.0-alpha, MIT irrevocable)
- rei-aios memory:
memory/project_step1723_relational_compression_bound_2026-09-03.md