---
name: ★★ STEP 877 — Krasikov-Lagarias 0.84 bound Lean 4 統合 (zero-sorry corollaries)
description: 2026-04-18 pm. K-L 1993/2003 の c·X^0.84 ≤ goodCount(X) bound を Lean 4 axiom + 10 theorems zero-sorry で形式化. 14/14 TS cross-check. Rei counting density 枠組みに Tao 2019 の相補的 partial density 結果を encode.
type: project
originSessionId: 2026-04-18-krasikov-lagarias-step877
---

# STEP 877 — Krasikov-Lagarias 1993/2003 Lean 4 統合

## 一行要約

Krasikov-Lagarias の **#{N ≤ X : Col_min(N) = 1} ≫ X^0.84** (Tao 2019 p.1 引用) を Lean 4 で axiom + 10 zero-sorry corollary 形式化. Rei の counting framework に Tao 2019 (log density 1) と相補的な partial density 下界を encode.

## 成果物

- **Lean 4**: `data/lean4-mathlib/CollatzRei/KrasikovLagarias.lean`
  - 4 axioms (goodCount, goodCount_monotone, goodCount_le_X, krasikov_lagarias_1993)
  - 10 theorems proved zero-sorry
  - lake build 成功 (8.2s / 1953 jobs)
- **TS cross-check**: `test/krasikov-lagarias-cross-check-test.ts` (14/14 pass)

## 主要 axiom (honest)

```lean
axiom krasikov_lagarias_1993 :
  ∃ (c : ℝ) (X0 : ℕ), 0 < c ∧ ∀ X : ℕ, X0 ≤ X →
    (goodCount X : ℝ) ≥ c * (X : ℝ) ^ (0.84 : ℝ)
```

参照: Krasikov, I. & Lagarias, J. C. (2003). *Bounds for the 3x+1 problem using difference inequalities*. Acta Arithmetica 109, 237-258.
Tao 2019 (arXiv:1909.03562v5) p.1 で引用.

## 主要 corollaries (zero-sorry)

```lean
-- 存在 witness
theorem krasikov_lagarias_exists_witness

-- sandwich bound
theorem krasikov_lagarias_sandwich :
    ∃ c X0, 0 < c ∧ ∀ X ≥ X0,
      c · X^0.84 ≤ goodCount X ∧ goodCount X ≤ X

-- 指数解析
theorem exponent_exceeds_half : (0.84 : ℝ) > 0.5   -- beats √X
theorem exponent_less_than_one : (0.84 : ℝ) < 1     -- density 1 未達

-- 検証済範囲での trivial 成立
theorem krasikov_lagarias_trivially_holds_in_verified_range

-- 具体的有限 case (native_decide)
theorem goodCountK_120_100 : goodCountK 120 100 = 100     -- N ≤ 100 全 reach 1 in 120 steps
theorem goodCountK_180_500 : goodCountK 180 500 = 500

-- Meta summary
theorem KrasikovLagarias_summary
```

## TS cross-check 結果

| X | K | goodCount(X) | X^0.84 | ratio |
|---|---|---|---|---|
| 100 | 1000 | 100 | 47.86 | 2.09 |
| 1,000 | 1000 | 1,000 | 331.13 | 3.02 |
| 10,000 | 1000 | 10,000 | 2,290.87 | 4.37 |
| 100,000 | 1000 | 100,000 | 15,848.93 | 6.31 |
| 1,000,000 | 1000 | 1,000,000 | 109,647.82 | **9.12** |

★ 現 empirical regime (X ≤ 10⁶) では goodCount = X (全 N reach 1), ratio goodCount/X^0.84 は X→∞ で発散 (∵ 1/X^-0.16 → ∞). K-L 0.84 bound は trivially で満たす.

★ **Tao 2019 Remark 1.4** の重要性: constant bound "Col_min ≤ C_0" ですら almost all N で成立させるのは Collatz 本体とほぼ同等難度.

## Collatz 既知結果ラダー (Lean 4 形式化カバー)

| Year | Author | Result | Rei Lean 4 |
|---|---|---|---|
| 1976 | Terras, Everett | Col_min < N for almost all | step678 axiom |
| 1993/2003 | Krasikov-Lagarias | ≫ X^0.84 (pointwise count) | **本 STEP 877 axiom** |
| 2019/2022 | Tao | Col_min < f(N) log density 1 | step678 axiom |
| — | Rei | Two-Tier K ≤ 4.44 bl² (conditional) | Step691+STEP 876 |
| — | Rei | n=911 on-ramp (25 atomic cores) | STEP 875 |

## Decidable horizon-based variant

```lean
def goodCountK (K X : ℕ) : ℕ  -- #{N ∈ [1, X] : reach 1 within K steps}
```

`goodCountK 120 100 = 100` (native_decide): 実計算で 120 steps 以内に N ≤ 100 全 N が 1 に到達. TS cross-check 裏付け (max K(97) = 118 < 120).

## 環境注意

- `native_decide` で `goodCountK K X` に対し K×X 大きいと stack overflow (Windows, STATUS_STACK_BUFFER_OVERRUN). K ≤ 200, X ≤ 500 程度で安全.
- Mathlib `Real.rpow` 使用 (`Mathlib.Analysis.SpecialFunctions.Pow.Real` import).

## 次の候補

- Stopping time vs total stopping time の区別を Lean 4 で明示
- Korec 1994 の θ > log 3 / log 4 ≈ 0.7924 bound を同構造で追加
- Allouche 1979 の θ > 0.869 も統合 → 5 bound ladder

## 総 Lean 4 成果 累積 (本 session)

| STEP | File | Theorems | Status |
|---|---|---|---|
| 874 | LayerDNestedDot | 16+ | zero-sorry |
| 875 | Problem011N911OnRamp | 47 | zero-sorry |
| 876 | Tier2ResidualBound | 5 | zero-sorry |
| 877 | KrasikovLagarias | 10 + 4 axioms | zero-sorry proofs |

## メタ観察

Lean 4 で "classical analytic result を axiom 化 + elementary corollaries を 証明" パターン:
- Axiom は 1 つ (main theorem)
- Elementary consequences (exponent bounds, sandwich, trivially-holds) は全て proved
- 各 axiom に HONEST reference (論文 + ページ) を付記
- TS cross-check で empirical verification

これが Rei の "classical result との bridge" 標準形. Tao 2019, Terras 1976, Krasikov-Lagarias 全て同様.
