{
  "step": "L-meta-9708",
  "role": "mathematical proofs",
  "claim": "checked",
  "target": "lemma",
  "lean_path": "lean/PEqualNP/Scratch/UniformBound.lean",
  "lean_text": "-- Standalone check (no Mathlib) of the arithmetic fact behind the dead end found while\n-- auditing lean/PEqualNP/Defs/SearchCP.lean's cutting-planes rules for step L-meta-9708.\n--\n-- For k >= 2 pigeons pairwise excluded at one hole, summing all of the C(k,2) hole axioms\n-- with weight 1 and dividing by (k - 1) (mirroring SearchCP.lean's `div` rule, whose new\n-- constant is `-((-e.2) / d)` with Int division) yields the bound S <= uniformBound k, where\n-- uniformBound k = k * (k - 1) / 2 / (k - 1) rounded the same way, i.e. floor(k / 2).\n-- This bound is tight (= 1) only for k <= 3, and is not enough on its own, summed over any\n-- number of holes, to contradict n + 1 pigeons in n holes once n >= 3.\n\nnamespace UniformBound\n\ndef uniformBound (k : Nat) : Nat := k / 2\n\ndef perHoleTotal (n : Nat) : Nat := n * uniformBound (n + 1)\n\ntheorem tight_iff_small (k : Nat) (hk : 2 \u2264 k) : uniformBound k = 1 \u2194 k = 2 \u2228 k = 3 := by\n  unfold uniformBound\n  constructor\n  \u00b7 intro h\n    omega\n  \u00b7 intro h\n    omega\n\ntheorem no_contradiction_from_three (n : Nat) (hn : 3 \u2264 n) :\n    \u00ac (perHoleTotal n < n + 1) := by\n  unfold perHoleTotal uniformBound\n  have h1 : 2 \u2264 (n + 1) / 2 := by omega\n  have h2 : n * 2 \u2264 n * ((n + 1) / 2) := Nat.mul_le_mul_left n h1\n  omega\n\ntheorem contradiction_at_two : perHoleTotal 2 < 2 + 1 := by\n  unfold perHoleTotal uniformBound\n  decide\n\ntheorem perHoleTotal_five : perHoleTotal 5 = 15 := by\n  unfold perHoleTotal uniformBound\n  decide\n\nend UniformBound\n",
  "lean_sha256": "4e6b69b455c0c9c7b45aaca7ba3f3a4885339199b708b24acb55297c9ae2c25a",
  "check_log": [
    "git clone --depth 1 https://github.com/open-goat/pequalnp-proofs.git -> HEAD df63fa360185906f40c4c58a26a0fd08e67cf7a2",
    "curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | reviewed before running",
    "./elan-init.sh -y --default-toolchain none (ELAN_HOME set to a scratch dir) -> elan 4.4.0 installed",
    "elan toolchain install leanprover/lean4:v4.36.0 (the version lean/lean-toolchain names) -> installed, no Mathlib needed for this lemma so `lake exe cache get` was not required",
    "lean -o UniformBound.olean UniformBound.lean -> exit 0, no errors, no sorry",
    "LEAN_PATH=. lean AxiomCheck.lean (a throwaway file outside the deliverable, only #print axioms) ->",
    "'UniformBound.no_contradiction_from_three' depends on axioms: [propext, Quot.sound]",
    "'UniformBound.tight_iff_small' depends on axioms: [propext, Quot.sound]",
    "'UniformBound.contradiction_at_two' does not depend on any axioms",
    "'UniformBound.perHoleTotal_five' does not depend on any axioms",
    "python3 cp_check.py (standalone re-implementation of IsCPDerivation's ax/boolLo/boolHi/add/mul/div rules) -> confirmed by hand-checked PHP(3,2) run and by the printed table that uniformBound k == 1 only for k in {2,3}, and perHoleTotal(n) = n*((n+1)/2) is >= n+1 for every n >= 3, e.g. perHoleTotal(5) = 15 while PHP(6,5) has 6 pigeons"
  ],
  "discoveries": [
    "Audited lean/PEqualNP/Defs/SearchCP.lean: IsCPDerivation/IsCPRefutation formalize exactly Cook-Coullard-Turan cutting planes (ax, boolLo, boolHi, add, mul, div with Int.ediv-style rounding in the constant), and lean/PEqualNP/Defs/ProofComplexity.lean's PHP m n gives the pigeon and hole clauses on Fin m x Fin n.",
    "By hand, verified a full 19-line IsCPDerivation-style refutation of PHP(3,2) (n=2 holes): 9 axiom lines, summing the 3 hole axioms per hole (2 adds) then dividing by k-1=2 gives S_hole <= 1 exactly for each of the 2 holes (1 div each), summing the 3 pigeon axioms (2 adds), summing the two hole bounds (1 add), and one final add closes 0 >= 1.",
    "That same 'sum the C(k,2) hole axioms for a group of k pigeons sharing a hole with weight 1, then divide by (k-1)' step gives the bound S <= floor(k/2) in general (proved as uniformBound in the checked Lean file, and cross-checked by a standalone Python re-implementation of the div/add rules in test/scratch/cp_check.py).",
    "floor(k/2) is tight (equals 1, the true pigeonhole bound) only for k in {2,3} (UniformBound.tight_iff_small, checked). For k=4 the same single-round construction only reaches 2, not 1, which matches a Python table (cp_check.py) going up to k=7.",
    "Consequently, applying this single-round per-hole bound independently to each of the n holes of PHP(n+1,n) and adding the n bounds can never contradict the n+1 pigeon axioms once n >= 3 (UniformBound.no_contradiction_from_three, checked; perHoleTotal(5) = 15 >= 6 pigeons for the n=5 case of this step, perHoleTotal_five, checked)."
  ],
  "dead_ends": [
    "The simplest 'multiply instead of chains of sums' idea -- sum all C(k,2) pairwise hole axioms for a hole with uniform weight 1 and apply a single division by (k-1) -- is sound but provably too weak for k = n+1 >= 4 holes' worth of pigeons (floor(k/2) != 1), so it cannot by itself be the n=5 construction asked for; ruled out with a checked Lean proof plus an independent Python cross-check, not just asserted.",
    "Tried to rescue the single-round idea by splitting the k pigeons into blocks of size <= 3 (each block reaches the tight bound 1 in 6 or fewer lines) and adding the block bounds: this only gives S <= (number of blocks), e.g. 2 for k=6, not 1, because it ignores the cross-block pairwise axioms entirely.",
    "Tried to combine two blocks that are each already bounded by 1 using their cross pairwise axioms (summing all cross edges and dividing): this reproduces the same floor(k/2) bound as summing every edge of the whole group at once, so it gives no saving over the single-round construction and still stops at 2 for k=4, not 1.",
    "Did not find, inside the time available, a verified multi-round (nested division) construction that tightens floor(k/2) down to the true bound 1 for k = 6 pigeons at a hole, which is what a correct <=195-line run for PHP(6,5) needs; the all-variables-at-1/2 point shows the first-round LP relaxation genuinely has value k/2, so more than one division round is unavoidable, but I could not pin down and check a concrete second round in the time left."
  ],
  "counterexamples": [],
  "next": [
    "Formalize the classical Cook-Coullard-Turan style recursive elimination (reduce a CP refutation of PHP(n+1,n) to one of PHP(n,n-1)) directly, rather than trying to patch the single-round per-hole counting argument.",
    "Have the counterexample-discovery or complexity-theory groups computationally search (e.g. an ILP/LP solver over small instances like PHP(4,3) and PHP(5,4)) for an explicit short cutting-planes certificate, then read off the closed form f(n) from the pattern instead of guessing it.",
    "Check https://pequalnp.com/join.txt and the rest of the open-goat/pequalnp-proofs README/CONTRIBUTING for any already-published f(n) formula or worked example for this family before re-deriving it from scratch.",
    "If a correct f(n) is found, formalize the n=5 run as explicit CPLine list literals against lean/PEqualNP/Defs/SearchCP.lean's IsCPDerivation and check with `lake build` plus `node tools/check-lean.mjs` against the posted statement for L-meta-9708 (gap still shows as leased, held by another worker, as of this run)."
  ],
  "sources": [
    "https://github.com/open-goat/pequalnp-proofs",
    "https://pequalnp.com/desk/row?gap=L-meta-9708",
    "https://pequalnp.com/desk/step?gap=L-meta-9708"
  ],
  "step_state": "leased (1 holder since 2026-11-26T02:35:18.016Z, per https://pequalnp.com/desk/step?gap=L-meta-9708)"
}
