---
name: project-step1251-1252-collatz-buchi-mod25-spot-2026-07-03
description: STEP 1251 pure Python Collatz Büchi mod-25 over-approximation + STEP 1252 Spot 2.15.1 CLI integration、 chat-Claude 「無限に見えて有限」 3 層 question follow-up、 私 (Claude Code) 3 連続 fact-check 不足 honest correction
metadata: 
  node_type: memory
  type: project
  originSessionId: aee9a4d4-1e0c-46fc-a09d-0f70575aaf8f
---

# STEP 1251 + 1252 Collatz Büchi mod-25 tool 化 (2026-07-03)

## Trigger (chat-Claude 3 層 question follow-up)

藤本さん質問「無限の様に見えて実は有限であるというツールは Git やそれ以外のオープンソースに御座いますか?」 → chat-Claude が **3 層 articulation** で応答:

1. **表現有限・指示対象無限** (遅延評価/余帰納) — Git partial clone (promisor remote / promisor object)、 Haskell lazy、 Coq/Lean coinductive types (Rei-project STEP 1166 で活用済)
2. **対象有限・見かけ無限** (内容アドレス/有限状態) — Git SHA、 IPFS Merkle DAG、 delta 圧縮、 yes / /dev/urandom
3. **自己言及の閉包** (不動点/循環) — Y combinator、 Floyd 循環検出、 **Büchi automaton / Spot** (最も純度高い答え)

★ **chat-Claude 「Collatz を 95% ほど形式化していた Büchi automaton」 phrasing** = Rei fact-check 対象。

## Rei honest correction — chat-Claude 「95%」 phrasing

Rei memory (STEP 930) 実 record: **「Büchi-25 × Q33 Bridge (honest: coset vs value-level 区別)」**

- coset-level 95% = STEP 930 の実 record
- 全 orbit-level 解決 ≠ chat-Claude 「95%」 phrasing の暗黙意味
- STEP 1178 で automata descent certificate route は破断点 (world-open) として identify 済

Rei articulated correction:
- Original: 「Collatz を 95% ほど形式化していた Büchi automaton」
- Corrected: **「Büchi-25 で Collatz の一定 coset structure を 95% 形式化 (STEP 930)、 全 orbit descent certificate は依然 open (STEP 1178)」**

= chat-Claude phrasing の overclaim risk を evaluation symmetry principle per honest 訂正。

## 藤本さん (C) 「Spot install + STEP 1178 automata route の実 tool 化 attempt」 選択

Options 提示:
- (A) 何もしない
- (B) memory reference 記録
- **(C) Spot install + tool 化 attempt** ← 選択
- (D) chat-Claude 訂正 conversation

## STEP 1251 pure Python 実装 (Spot 非依存で即 deliver)

- File: `scripts/collatz-buchi-mod25-explore.py` (314 行、 Python stdlib のみ)
- Output: `data/collatz-buchi-mod25/latest.json`

**Content**:
- Collatz standard map T(n) = n/2 if even, 3n+1 if odd
- Z/25Z 上 non-deterministic over-approximation
- STEP 1178 automata route wall の **precise 4-point articulation**:
  - (a) **parity ambiguity**: mod-25 は mod-2 を determine しない (gcd(25,2)=1)
  - (b) **multi-successor**: 全 25 state で non-deterministic
  - (c) **over-approximation direction**: Collatz⇒acc であるが逆は不成立
  - (d) **2-adic descent gap**: 有限 memory O(log 25) vs 無限 v_2(n) = 原理的 wall

**Empirical evidence** (JSON 内):
- **25/25 classes contain BOTH even and odd n** → (a) confirmation
- **25/25 states have ≥ 2 successors** → (b) universal non-determinism
- **BFS reachability from state 1: 25/25** = fully connected graph → (c) Büchi acceptance trivially satisfiable

**Rei-internal cross-check** (JSON 内 embed):
- STEP 930 coset-level 95% + STEP 1178 route 5 wall + chat-Claude phrasing correction record

## STEP 1252 Spot 2.15.1 CLI integration (install 3 連続 mismatch 経験)

### Install path (fujimoto user session record)

1. **Ubuntu-22.04 (jammy)** + LRDE repo → Spot 2.15.1 依存 (libc ≥ 2.38 / libstdc++ ≥ 14 / Python ≥ 3.13) と mismatch → install 不可
2. **LRDE repo disable → Ubuntu 22.04 default repo で spot 2.10 install** ← 私 recommend、 実測で **Ubuntu 22.04 default repo に spot package 不存在** → 私の Pattern 5 hallucination 1st
3. **Ubuntu-24.04 switch** (fujimoto user 初回 setup 完了) → LRDE repo 継承 → 「Ubuntu 24.04 universe に spot 2.11 available」 私 recommend、 実測で **LRDE 経由 2.15.1 のみ** → 私 hallucination 2nd
4. **python3-spot は Python 3.13 要求で Ubuntu 24.04 Python 3.12 mismatch** → 「spot 2.14 fallback 必要」 私 recommend、 実測で **spot 2.15.1 CLI 単独 Ubuntu 24.04 (libstdc++ 14) で clean install** → 私 conservative overshoot 3rd
5. **`sudo apt install -y spot`** (python3-spot skip) → **Spot 2.15.1 CLI + graphviz 依存 lib 群 fully install 成功** (23.5 MB)

### 私 (Claude Code) 3 連続 fact-check 不足 honest correction record

1. 「Ubuntu 22.04 default repo に spot 2.10」 → 実測で不存在 = Pattern 5 hallucination
2. 「Ubuntu 24.04 universe に spot 2.11」 → 実測で LRDE 経由 2.15.1 のみ = Pattern 5 hallucination
3. 「Ubuntu 24.04 で 2.14 fallback 必要」 → 実際 2.15.1 clean install = conservative overshoot

evaluation symmetry principle per record: 藤本さん実測 evidence が私の推測を精密化する pattern の operational reinforcement。 fact-check 前提の推奨は avoid、 apt-cache 実測を fact-based answer の baseline とする。

### Spot integration script

- File: `scripts/collatz-buchi-mod25-spot-integration.py` (275 行、 Python stdlib + subprocess)
- Pattern: **Windows Python → subprocess → `wsl.exe -d Ubuntu-24.04 -- <spot-cmd>` shell out**
- Output: `data/collatz-buchi-mod25-spot/latest.json` + `mod25-non-det.hoa`

### Spot empirical results (data/collatz-buchi-mod25-spot/latest.json)

- Spot version: `ltl2tgba (spot) 2.15.1` ✅
- HOA v1 export: 25 states / initial=1 / accepting={1} / Büchi Inf(0)
- `autfilt --stats`: **25 states / 50 edges / 1 acc-set / non-deterministic** = ★ STEP 1251 pure Python 実装と完全一致 = independent tool cross-check ✅
- `autfilt --is-empty`: **False (non-empty)** = STEP 1251 wall (c) 「over-approximation trivially satisfiable」 の Spot 独立 confirmation ✅
- `autfilt --is-universal`: **False (not universal)** = STEP 1251 未 articulate refinement (acceptance は non-trivial だが Collatz を certify するには insufficient)
- Reference `ltl2tgba 'GF acc'`: 1 state / 2 edges / 1 acc-set / deterministic = canonical minimum Büchi

## Wall articulation strengthening

- STEP 1251 (c) over-approximation direction gap: Spot 独立 tool で empirical confirm
- STEP 1251 (d) 2-adic descent gap: Spot も finite-state abstraction 上で動く = **Spot integration が gap を close するものではない** = 「大 tool 導入 = problem 解決」 SF-inflation を防ぐ honest disclaimer

## Honest scope (unchanged from STEP 1251)

- `does_NOT_solve_collatz`: True
- `spot_verifies_syntactic_properties`: True
- `spot_does_NOT_close_2_adic_gap`: True
- `cross_check_of_step_1251`: True (evaluation symmetry per, 独立 tool 経由)

## Rei-project 統合 pattern (Spot install choice の record)

- Windows Python → subprocess → wsl -d Ubuntu-24.04 → Spot CLI
- Disk cost: 23.5 MB (Spot + graphviz + libs)
- **Python bindings SKIPPED** (Python 3.12 vs 3.13 mismatch)、 subprocess CLI 呼び出しで STEP 1251/1252 scope に十分
- Future ω-language operation (product / complement) は同 pattern で拡張可能

## Commits
- `4905de4ec` STEP 1251 (pure Python)
- `74ac36315` STEP 1252 (Spot integration)

## Related memory
- [[reference-spot-omega-automaton-install-2026-07-03]] (Spot install protocol reference)
- [[feedback-evaluation-symmetry-principle]] (私 fact-check 3 連続不足の honest correction record)
- [[feedback-world-uniqueness-claim-controllable]]
- [[feedback-no-rush-publication]]

## Related STEP
- STEP 930 (Büchi-25 × Q33 Bridge coset-level 95% origin)
- STEP 1166 (Kim 2008 stream coalgebra Lean 4 axiom-free)
- STEP 1178 (Collatz frontier 7 routes wall audit、 route 5 automata = descent certificate 無 world-open)
