{
  "id": "rp.bipartite-ramsey-b22-eq-5",
  "wikidata_q": null,
  "item_type": "law",
  "name": {
    "ja": "二部Ramsey数 b(2, 2) = 5（Lean 4 で下界・上界ともに native_decide で実証、MathlibPrep）",
    "en": null
  },
  "summary": {
    "ja": "二部完全グラフ 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` は両者の連言。\n\n**信頼の層（この証明の読み方）**: 本定理は `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 とは別の層）。",
    "en": null
  },
  "formula": "bipartite_ramsey_2_2 : hasMonoK22 4 4 witness22 = false ∧ upperCheck22 = true",
  "expression_latex": "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)",
  "symbols": [
    {
      "name": "b(s, t)",
      "meaning": "二部Ramsey数：K_{N,N} の 2 色塗り分けに必ず単色 K_{s,t} が現れる最小の N",
      "type": "ℕ × ℕ → ℕ"
    },
    {
      "name": "K_{N,N}",
      "meaning": "N × N の完全二部グラフ（Lean 4 では c : ℕ → ℕ → Bool で2色塗り分けを表現）",
      "type": "Nat → Nat → Bool（coloring として）"
    },
    {
      "name": "hasMonoK22",
      "meaning": "2色塗り分け c に単色 K_{2,2}（4点の2×2部分グラフ）が存在するかの判定関数",
      "type": "Nat → Nat → (Nat → Nat → Bool) → Bool"
    },
    {
      "name": "witness22",
      "meaning": "下界の明示 witness：4×4 の 2 色塗り分けで単色 K_{2,2} を含まない構成",
      "type": "Nat → Nat → Bool"
    },
    {
      "name": "upperCheck22",
      "meaning": "上界総当たり：2^25 通り全ての 5×5 2色塗り分けに単色 K_{2,2} が存在することの Bool 結果",
      "type": "Bool"
    },
    {
      "name": "native_decide",
      "meaning": "Lean 4 の kernel verified native 計算による decide タクティク（kernel で normalize + Bool 判定）",
      "type": "tactic"
    }
  ],
  "example": {
    "description": {
      "ja": "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 経由で本項目を更新する。",
      "en": null
    },
    "code": "import CollatzRei.MathlibPrep.BipartiteRamsey\nopen Mathlib.Combinatorics.BipartiteRamsey\n#check @bipartite_ramsey_2_2\n#print axioms bipartite_ramsey_2_2",
    "expected_output": "bipartite_ramsey_2_2 : hasMonoK22 4 4 witness22 = false ∧ upperCheck22 = true\n'Mathlib.Combinatorics.BipartiteRamsey.bipartite_ramsey_2_2' depends on axioms: [Lean.ofReduceBool, Lean.trustCompiler, propext]"
  },
  "sources": [
    {
      "title": "On a bipartite form of the Ramsey problem",
      "author": "Beineke, L. W. and Schwenk, A. J.",
      "year": 1976,
      "url": null,
      "wayback_url": null,
      "retrieved_at": null,
      "license": null,
      "license_note": "Congressus Numerantium 15 (1976), 17-22。DOI不明 (Congressus Numerantiumは旧刊、オンラインDOIが付与されていない時期の論文)。典拠はCollatzRei/MathlibPrep/BipartiteRamsey.lean file headerのReferences section (本論文を1976年の原典として引用)。著者initialはWikipedia「L. W. Beineke」 (Lowell Wayne Beineke、Purdue FW graph theory教授、2026-11-18 STEP 2646でverify) と標準graph theory loreからL. W.と判定 (旧record「J. A.」は誤記を訂正)。本論文本体の独立fetchable verifyはCongressus Numerantiumのオンライン版不在で不能、本人institutional経由の一次verify推奨"
    },
    {
      "title": "On the Ramsey problem for multicolor bipartite graphs",
      "author": "Carnielli, W. A. and Monte Carmelo, E. L.",
      "year": 1999,
      "url": "https://doi.org/10.1006/aama.1998.0620",
      "wayback_url": null,
      "retrieved_at": null,
      "license": null,
      "license_note": "Adv. Appl. Math. 22 (1999), 48-59。DOI prefix 10.1006はElsevier/Academic Press旧コード。DOI resolveと権威metadata (Crossref・OpenAlex・zbMATH、2026-11-18 STEP 2646で実測) が全一致でPASS。Abstract本文はElsevier paywallでfetchせず (HTTP 403)、本論文は題名とMSC 05C55から多色 (k≥3) bipartite Ramsey拡張を扱うと推定、b(2,2)=5の第一典拠としては引用していない (本項目では関連文献位置づけ、第一典拠はsources[0] Beineke-Schwenk 1976)"
    },
    {
      "title": "Bipartite Ramsey theory",
      "author": "Hattingh, J. H. and Henning, M. A.",
      "year": 1998,
      "url": null,
      "wayback_url": null,
      "retrieved_at": null,
      "license": null,
      "license_note": "Util. Math. 53 (1998), 217-230。DOI 不明。典拠は本 Lean 4 file header の References section"
    },
    {
      "title": "Rei-AIOS Lean 4 file: CollatzRei/MathlibPrep/BipartiteRamsey.lean（2026-05-01 STEP 1000 で land された MathlibPrep PR-ready module 群の 1 つ）",
      "author": "Fujimoto, N.",
      "year": 2026,
      "url": null,
      "wayback_url": null,
      "retrieved_at": null,
      "license": "Apache 2.0 (Mathlib contribution standard、本 file header 明記)"
    },
    {
      "title": "Rei-AIOS MathlibPrep INDEX.md — Section F. Combinatorics",
      "author": "Fujimoto, N.",
      "year": 2026,
      "url": null,
      "wayback_url": null,
      "retrieved_at": null,
      "license": "AGPL-3.0 + Commercial",
      "license_note": "本項目を Paper 131 (BipartiteRamsey related) の Mathlib contribution candidate と位置付ける内部参照。「High Mathlib PR readiness」の分類"
    }
  ],
  "relations": [
    {
      "kind": "related_to",
      "target_id": "rp.belnap4-embed-injective",
      "note": "両者とも Rei-AIOS Lean 4 CollatzRei project 内で axiom profile を検査する候補の定理。本項目は組合せ論（二部 Ramsey、native_decide による finite 列挙証明）、関連項目は非古典論理（Belnap 四値論理、axiom-free + propext のみ）、位相的に独立だが Rei stack の Lean 4 verified corpus として同じ cluster"
    },
    {
      "kind": "related_to",
      "target_id": "rp.homogeneous-vanishing-fn",
      "note": "本項目は Lean.ofReduceBool + Lean.trustCompiler + propext の実測 3 公理 (workflow run 44225699625、 Lean v4.27.0 時点) に 依存 する native_decide 証明 (S1 層)、 関連項目 rp.homogeneous-vanishing-fn は mathlib base (S2 層) で 性質 が 違う"
    }
  ],
  "verify_source_theorem": "Mathlib.Combinatorics.BipartiteRamsey.bipartite_ramsey_2_2",
  "verify_source_file": "CollatzRei/MathlibPrep/BipartiteRamsey.lean",
  "authors": [
    {
      "kind": "AI",
      "name": "Claude （Rei-AIOS）",
      "model": "claude-opus-4-7",
      "contribution": "項目本文（一行説明・式・記号表・走る最小例・出典・関係リンク）を起草、axiom profile は workflow run 44225699625 実測値 (Lean v4.27.0) に基づき S1 層として明示",
      "at": "2026-11-18T00:20:00+09:00"
    }
  ],
  "corrections": [],
  "learning_log": [],
  "authorship": {
    "created_by": [
      {
        "agent": "rei-aios-session",
        "model": "claude-opus-4-7",
        "session": "rei-aios-1a",
        "role": "draft",
        "date": "2026-11-18"
      }
    ],
    "reviewed_by": [
      {
        "agent": "claude-code-subagent",
        "kind": "independent",
        "session": "claude-code-subagent:rei-aios-1a:step2636-item3-bipartite-ramsey-review:2026-11-18",
        "date": "2026-11-18"
      },
      {
        "agent": "claude-code-subagent",
        "kind": "independent",
        "session": "claude-code-subagent:rei-aios-1a:step2645-item3-rewrite-review:2026-11-18",
        "date": "2026-11-18"
      },
      {
        "agent": "claude-code-subagent",
        "kind": "independent",
        "session": "claude-code-subagent:rei-aios-e5:step2646-citations-fix-review:2026-11-19",
        "date": "2026-11-19"
      }
    ],
    "human_approver": "fujimoto-nobuki",
    "approval_date": "2026-11-19"
  },
  "inspected_at": null,
  "reinspect_due": null,
  "inspector_error_rate": null,
  "inspection": {
    "state": "S1",
    "state_label": "検査済み (native_decide floor)",
    "axioms": [
      "Lean.ofReduceBool",
      "Lean.trustCompiler",
      "propext"
    ],
    "is_zero_axiom": false,
    "is_mathlib_base": false,
    "has_sorry_ax": false,
    "has_native_decide": true,
    "has_user_axiom": false,
    "source": "gha",
    "generated_at": "2026-11-18T23:32:40.687Z",
    "gha_run_id": "44420857760",
    "lean_toolchain": "leanprover/lean4:v4.27.0",
    "verify_source_theorem": "Mathlib.Combinatorics.BipartiteRamsey.bipartite_ramsey_2_2",
    "verify_source_file": "CollatzRei/MathlibPrep/BipartiteRamsey.lean"
  }
}