二部完全グラフ K_{N,N} の辺を2色に塗り分けたとき、必ず単色の K_{2,2} が現れる最小の N は 5 である(Beineke–Schwenk 1976)。Lean 4 では (a) 下界 = `hasMonoK22 4 4 witness22 = false`(4×4 の明示 witness に単色 K_{2,2} が存在しないこと)と (b) 上界 = `upperCheck22 = true`(2^25 ≈ 33M 通り全ての 5×5 2色塗り分けを総当たり)の両方を `native_decide` で実証。主定理 `bipartite_ramsey_2_2` は両者の連言。 **信頼の層(この証明の読み方)**: 本定理は `native_decide` を使っている。これは Lean kernel の通常の型検査に加えて、**Lean コンパイラの正しさを信頼する層**(= `Lean.trustCompiler` と `Lean.ofReduceBool`)に依存する証明方式である。したがって本項目は、依存公理が無い(axiom-free)項目や mathlib の標準公理(`propext`・`Classical.choice`・`Quot.sound`)だけに依存する項目と、**同じ強さの形式証明として読んではならない**。具体的には、workflow run 44225699625(= `.github/workflows/lean-verify.yml` の workflow_dispatch、Lean v4.27.0 時点)の実測で、`bipartite_ramsey_2_2` の依存公理は `[Lean.ofReduceBool, Lean.trustCompiler, propext]` の 3 個であった(旧 推定 `[propext, Classical.choice, Lean.ofReduceBool, Quot.sound]` から実測で訂正)。Reipedia の `reipedia_state` は本事実を S1「形式証明済み (native_decide floor)」とラベルする(axiom-free の S2 とは別の層)。
式
LaTeX source
b(2, 2) = 5; \quad (\exists c : [4] \times [4] \to \{0, 1\}.\; \neg \exists \text{mono } K_{2,2} \subseteq c) \;\land\; (\forall c : [5] \times [5] \to \{0, 1\}.\; \exists \text{mono } K_{2,2} \subseteq c)記号表
| 記号 | 意味 | 型 |
|---|---|---|
| b(s, t) | 二部Ramsey数:K_{N,N} の 2 色塗り分けに必ず単色 K_{s,t} が現れる最小の N | ℕ × ℕ → ℕ |
| K_{N,N} | N × N の完全二部グラフ(Lean 4 では c : ℕ → ℕ → Bool で2色塗り分けを表現) | Nat → Nat → Bool(coloring として) |
| hasMonoK22 | 2色塗り分け c に単色 K_{2,2}(4点の2×2部分グラフ)が存在するかの判定関数 | Nat → Nat → (Nat → Nat → Bool) → Bool |
| witness22 | 下界の明示 witness:4×4 の 2 色塗り分けで単色 K_{2,2} を含まない構成 | Nat → Nat → Bool |
| upperCheck22 | 上界総当たり:2^25 通り全ての 5×5 2色塗り分けに単色 K_{2,2} が存在することの Bool 結果 | Bool |
| native_decide | Lean 4 の kernel verified native 計算による decide タクティク(kernel で normalize + Bool 判定) | tactic |
走る最小例
Lean 4 で主定理 `bipartite_ramsey_2_2` の型と axiom profile を出力する。`expected_output` 2 行目の axiom 一覧は workflow run 44225699625(= `.github/workflows/lean-verify.yml` の workflow_dispatch 走行、Lean toolchain v4.27.0 時点)の実測値(Lean v4.27.0 時点)。native_decide を使う本定理は `Lean.ofReduceBool` + `Lean.trustCompiler` + `propext` の 3 公理に依存し、axiom-free や mathlib base(`propext`・`Classical.choice`・`Quot.sound`)とは性質が違う(上の summary の「信頼の層」節を参照)。toolchain を更新した場合は `.github/workflows/lean-verify.yml` を workflow_dispatch で再走させ、`axiom-check-results.json` の auto-write-back 経由で本項目を更新する。
import CollatzRei.MathlibPrep.BipartiteRamsey open Mathlib.Combinatorics.BipartiteRamsey #check @bipartite_ramsey_2_2 #print axioms bipartite_ramsey_2_2
期待される出力:
bipartite_ramsey_2_2 : hasMonoK22 4 4 witness22 = false ∧ upperCheck22 = true 'Mathlib.Combinatorics.BipartiteRamsey.bipartite_ramsey_2_2' depends on axioms: [Lean.ofReduceBool, Lean.trustCompiler, propext]
検査状態
S1検査済み (native_decide floor)
検査の内訳を見る
| 定理 | Mathlib.Combinatorics.BipartiteRamsey.bipartite_ramsey_2_2 |
| Lean file | CollatzRei/MathlibPrep/BipartiteRamsey.lean |
| 公理 | [Lean.ofReduceBool, Lean.trustCompiler, propext] |
| 生成元 | gha (GHA run 44420857760) |
| 生成時刻 | 2026-11-18T23:32:40.687Z |
| Lean toolchain | leanprover/lean4:v4.27.0 |
関係項目
- rp.belnap4-embed-injective — 両者とも Rei-AIOS Lean 4 CollatzRei project 内で axiom profile を検査する候補の定理。本項目は組合せ論(二部 Ramsey、native_decide による finite 列挙証明)、関連項目は非古典論理(Belnap 四値論理、axiom-free + propext のみ)、位相的に独立だが Rei stack の Lean 4 verified corpus として同じ cluster [related_to]
- rp.homogeneous-vanishing-fn — 本項目は Lean.ofReduceBool + Lean.trustCompiler + propext の実測 3 公理 (workflow run 44225699625、 Lean v4.27.0 時点) に 依存 する native_decide 証明 (S1 層)、 関連項目 rp.homogeneous-vanishing-fn は mathlib base (S2 層) で 性質 が 違う [related_to]
出典
- On a bipartite form of the Ramsey problem — Beineke, L. W. and Schwenk, A. J. (1976)
- On the Ramsey problem for multicolor bipartite graphs — Carnielli, W. A. and Monte Carmelo, E. L. (1999) URL
- Bipartite Ramsey theory — Hattingh, J. H. and Henning, M. A. (1998)
- Rei-AIOS Lean 4 file: CollatzRei/MathlibPrep/BipartiteRamsey.lean(2026-05-01 STEP 1000 で land された MathlibPrep PR-ready module 群の 1 つ) — Fujimoto, N. (2026) Apache 2.0 (Mathlib contribution standard、本 file header 明記)
- Rei-AIOS MathlibPrep INDEX.md — Section F. Combinatorics — Fujimoto, N. (2026) AGPL-3.0 + Commercial
書き手と承認
| 下書き | Claude(AnthropicのAI)2026-11-18 |
| 独立レビュー | Claude(Code サブエージェント・独立レビュー) (2026-11-18) / Claude(Code サブエージェント・独立レビュー) (2026-11-18) / Claude(Code サブエージェント・独立レビュー) (2026-11-19) |
| 公開承認 | 藤本 伸樹2026-11-19 |
| ページ生成 | ボット(項目データから自動生成) |
訂正記録
訂正記録なし