{
 "key": "res-ct2",
 "step": "L-pcx-166",
 "role": "complexity theory agent (r2, res-ct follow-up)",
 "strategy": "Parameterized structural/restriction obstruction for PHP(5,4) DAG resolution: soundness under a per-axiom critical restriction (assignment falsifying exactly one axiom) forces every axiom into every refutation, shared (DAG) or tree-like; formalized in Lean and checked. Hypotheses that distinguish shared vs tree/regular proofs examined (see discoveries).",
 "claim": "checked (auxiliary only; the posted 129-line exclusion is NOT proved)",
 "original_statement": {
  "text": "¬ (∃ π : List (PEqualNP.ProofComplexity.Clause (Fin 5 × Fin 4)), PEqualNP.ProofComplexity.IsRefutation (PEqualNP.ProofComplexity.PHP 5 4) π ∧ π.length ≤ 129)",
  "provenance": "Copied from input after-res-la (attempts-r1 res-la result, check_log.posted_statement, sha256 4f78325763134f65bb6fe9c3b6b258ac676a199869e9174f7bc2472ebd805b37). No desk call made by this worker. Definitions: lean/PEqualNP/Defs/ProofComplexity.lean at open-goat/pequalnp-proofs 80a20395576fcade85b5a837b0348e4c7f3d514e."
 },
 "discoveries": [
  "CHECKED (Lean, ACCEPTED by unmodified tools/check-lean.mjs, exit 0): for every list π with IsRefutation (PHP 5 4) π, every one of the 45 PHP(5,4) axioms occurs as a line of π, and π.length ≥ 46 (45 distinct axioms plus the empty clause, via π.toFinset). Axioms: propext, Quot.sound, Classical.choice only; no sorry/admit/native_decide/new axioms.",
  "Proof shape (general lemmas sound_aux, restrict, mem_of_critical work for any F and V): a derivation omitting axiom A is a derivation from F\\{A}; soundness under an assignment satisfying F\\{A} makes every line satisfied, contradicting ∅ ∈ π. Critical assignments are explicit hole maps hP (pigeon i0 unplaced, others bijective) and hC (i,i' share hole j, others bijective); their properties are kernel-decided (F1-F4, the largest a 10^4-case decide, which compiles in ~3 s).",
  "This is the first kernel-checked lower-bound-type obstruction for PHP(5,4) refutation length in the r1/r2 sibling set: r1 res-mp had the 'every axiom used' and 89-line arguments only informally; r1 res-la checked only PHP(3,2) ≤3 impossibility; r1 res-cd checked a 157-line upper bound.",
  "Shared vs tree hypothesis test: the critical-assignment argument is shape-independent, so it cannot separate DAG from tree-like proofs and it yields at most |axioms|+(#derived) style bounds. Its natural strengthening, the leaf-count argument (45 leaves ⇒ ≥44 resolvents ⇒ ≥89 lines), holds for tree-like proofs directly but for DAG proofs needs a pruning/contraction step (trace back from ∅, keep one occurrence per clause) that res-mp noted is unformalized; it still stops at 89, far below 130.",
  "Width/size route checked by reasoning only (not formalized): the Ben-Sasson–Wigderson size–width tradeoff is asymptotic with unspecified constants, and PHP(5,4) already has initial width 4 (pigeon clauses) with the 157-line Hall DAG at width 7 (r1 res-cd). So it gives no explicit bound of at least 130 lines at n=4. It was not pursued formally.",
  "The remaining gap for the posted statement is 46 (checked) / 89 (informal) vs 130 needed; upper bound 157 (checked by res-cd)."
 ],
 "dead_ends": [
  "Critical-restriction counting alone cannot exceed 45 axioms + O(1) forced derived clauses (∅ and two complementary units); the unit-clause extension to 48 was designed but not formalized for time.",
  "Hall-family restricted SAT UNSAT≤150 (r1 res-cd) and the 157-line Hall DAG do not transfer to general DAG resolution, as the brief notes; not reused as a bound.",
  "No literature exact minimum for PHP(5,4) resolution length was found (consistent with r1 res-ct)."
 ],
 "counterexamples": [],
 "originality_sources": "Original Lean formalization by this worker; standard minimally-unsatisfiable/critical-assignment soundness argument (folklore). Definitions from the referenced repository at the pinned commit. Sibling inputs used as evidence: after-res-ct, after-res-mp, after-res-la, after-res-cd.",
 "files": [
  {
   "path": "lean/PEqualNP/Outside/L_pcx_166_res_ct2.lean",
   "statement": "∀ π : List (PEqualNP.ProofComplexity.Clause (Fin 5 × Fin 4)), PEqualNP.ProofComplexity.IsRefutation (PEqualNP.ProofComplexity.PHP 5 4) π → (∀ C ∈ PEqualNP.ProofComplexity.PHP 5 4, C ∈ π) ∧ 46 ≤ π.length",
   "kind": "auxiliary",
   "claim": "checked",
   "lean_text": "import PEqualNP.Defs.ProofComplexity\n\n/-!\n# res-ct2 (L-pcx-166, auxiliary): every resolution refutation of PHP(5,4) contains every axiom\n\nAuxiliary obstruction lemma, not the posted step. Soundness of resolution plus one critical\nassignment per axiom (an assignment falsifying that axiom only) shows that a refutation which\nomits an axiom cannot exist. This holds for DAG (shared) refutations as well as tree-like ones.\n-/\n\nnamespace PEqualNP.Outside.ResCt2\n\nopen PEqualNP.ProofComplexity\n\ntheorem sound_aux {V : Type} [DecidableEq V] {F : Set (Clause V)} {a : V → Bool}\n    (hF : Satisfies a F) :\n    ∀ {π : List (Clause V)}, IsDerivation F π → ∀ C ∈ π, ClauseSat a C := by\n  intro π h\n  induction h with\n  | nil => intro C hC; simp at hC\n  | ax _ hCF ih =>\n    intro E hE\n    rcases List.mem_cons.1 hE with rfl | hE\n    · exact hF _ hCF\n    · exact ih E hE\n  | res _ hC hD hR ih =>\n    intro E hE\n    rcases List.mem_cons.1 hE with rfl | hE\n    · obtain ⟨v, _, _, rfl⟩ := hR\n      obtain ⟨l, hl, hla⟩ := ih _ hC\n      obtain ⟨l', hl', hla'⟩ := ih _ hD\n      by_cases hv : a v = true\n      · refine ⟨l', Finset.mem_union_right _ (Finset.mem_erase.2 ⟨?_, hl'⟩), hla'⟩\n        rintro rfl\n        simp [hv] at hla'\n      · refine ⟨l, Finset.mem_union_left _ (Finset.mem_erase.2 ⟨?_, hl⟩), hla⟩\n        rintro rfl\n        exact hv hla\n    · exact ih E hE\n\ntheorem restrict {V : Type} [DecidableEq V] {F : Set (Clause V)} {A : Clause V} :\n    ∀ {π : List (Clause V)}, IsDerivation F π → A ∉ π → IsDerivation (F \\ {A}) π := by\n  intro π h\n  induction h with\n  | nil => intro _; exact IsDerivation.nil\n  | ax _ hCF ih =>\n    intro hA\n    rw [List.mem_cons, not_or] at hA\n    exact IsDerivation.ax (ih hA.2) ⟨hCF, fun h' => hA.1 (Set.mem_singleton_iff.1 h').symm⟩\n  | res _ hC hD hR ih =>\n    intro hA\n    rw [List.mem_cons, not_or] at hA\n    exact IsDerivation.res (ih hA.2) hC hD hR\n\ntheorem mem_of_critical {V : Type} [DecidableEq V] {F : Set (Clause V)} {A : Clause V}\n    {π : List (Clause V)} (hπ : IsRefutation F π) (a : V → Bool)\n    (ha : Satisfies a (F \\ {A})) : A ∈ π := by\n  by_contra hA\n  obtain ⟨l, hl, _⟩ := sound_aux ha (restrict hπ.1 hA) ∅ hπ.2\n  simp at hl\n\ndef asg (h : Fin 5 → Option (Fin 4)) : Fin 5 × Fin 4 → Bool :=\n  fun x => decide (h x.1 = some x.2)\n\ndef pig (i : Fin 5) : Clause (Fin 5 × Fin 4) :=\n  Finset.univ.image (fun j : Fin 4 => ((i, j), true))\n\ndef col (i i' : Fin 5) (j : Fin 4) : Clause (Fin 5 × Fin 4) :=\n  {((i, j), false), ((i', j), false)}\n\ntheorem sat_of (h : Fin 5 → Option (Fin 4)) (A : Clause (Fin 5 × Fin 4))\n    (hp : ∀ k, pig k ≠ A → h k ≠ none)\n    (hc : ∀ k k' l, k ≠ k' → h k = some l → h k' = some l → col k k' l = A) :\n    Satisfies (asg h) (PHP 5 4 \\ {A}) := by\n  rintro C ⟨hC, hCA⟩\n  have hCA' : C ≠ A := fun e => hCA (Set.mem_singleton_iff.2 e)\n  rcases hC with ⟨k, rfl⟩ | ⟨k, k', l, hkk, rfl⟩\n  · have hne := hp k hCA'\n    rcases hk : h k with _ | j\n    · exact absurd hk hne\n    · exact ⟨((k, j), true), Finset.mem_image.2 ⟨j, Finset.mem_univ _, rfl⟩, by simp [asg, hk]⟩\n  · by_cases h1 : h k = some l\n    · by_cases h2 : h k' = some l\n      · exact absurd (hc k k' l hkk h1 h2) hCA'\n      · exact ⟨((k', l), false), by simp, by simp [asg, h2]⟩\n    · exact ⟨((k, l), false), by simp, by simp [asg, h1]⟩\n\n/-- Critical assignment for the pigeon axiom of `i0`: `i0` sits nowhere, the other four pigeons\nfill the four holes bijectively. -/\ndef hP (i0 : Fin 5) : Fin 5 → Option (Fin 4) := fun p =>\n  if p = i0 then none\n  else some ⟨(if p.val < i0.val then p.val else p.val - 1) % 4, Nat.mod_lt _ (by decide)⟩\n\n/-- Critical assignment for the collision axiom `(i, i', j)`: `i` and `i'` share hole `j`, the\nother three pigeons fill the other three holes bijectively. -/\ndef hC (i i' : Fin 5) (j : Fin 4) : Fin 5 → Option (Fin 4) := fun k =>\n  if k = i ∨ k = i' then some j\n  else\n    let r := k.val - (if i.val < k.val then 1 else 0) - (if i'.val < k.val then 1 else 0)\n    some ⟨(if r < j.val then r else r + 1) % 4, Nat.mod_lt _ (by decide)⟩\n\ntheorem F1 : ∀ i0 p : Fin 5, p ≠ i0 → hP i0 p ≠ none := by decide\n\ntheorem F2 : ∀ i0 k k' : Fin 5, ∀ l : Fin 4, k ≠ k' → ¬ (hP i0 k = some l ∧ hP i0 k' = some l) := by\n  decide\n\ntheorem F3 : ∀ (i i' : Fin 5) (j : Fin 4) (k : Fin 5), hC i i' j k ≠ none := by decide\n\ntheorem F4 : ∀ (i i' : Fin 5) (j : Fin 4) (k k' : Fin 5) (l : Fin 4), i ≠ i' → k ≠ k' →\n    hC i i' j k = some l → hC i i' j k' = some l →\n    ((k = i ∧ k' = i') ∨ (k = i' ∧ k' = i)) ∧ l = j := by\n  decide\n\ntheorem uses_all {π : List (Clause (Fin 5 × Fin 4))} (hπ : IsRefutation (PHP 5 4) π) :\n    ∀ C ∈ PHP 5 4, C ∈ π := by\n  rintro C (⟨i0, rfl⟩ | ⟨i, i', j, hii, rfl⟩)\n  · refine mem_of_critical hπ (asg (hP i0)) (sat_of _ _ ?_ ?_)\n    · intro k hk\n      apply F1 i0 k\n      rintro rfl\n      exact hk rfl\n    · intro k k' l hkk h1 h2\n      exact absurd ⟨h1, h2⟩ (F2 i0 k k' l hkk)\n  · refine mem_of_critical hπ (asg (hC i i' j)) (sat_of _ _ ?_ ?_)\n    · intro k _\n      exact F3 i i' j k\n    · intro k k' l hkk h1 h2\n      obtain ⟨(⟨rfl, rfl⟩ | ⟨rfl, rfl⟩), rfl⟩ := F4 i i' j k k' l hii hkk h1 h2\n      · rfl\n      · exact Finset.pair_comm _ _\n\n/-- The 45 axioms of PHP(5,4) (pigeon clauses, and collision clauses with `i < i'`) and the\nempty clause, as one finset of clauses. -/\ndef axE : Finset (Clause (Fin 5 × Fin 4)) :=\n  insert ∅ (Finset.univ.image pig ∪\n    (Finset.univ.filter (fun p : Fin 5 × Fin 5 × Fin 4 => p.1 < p.2.1)).image\n      (fun p => col p.1 p.2.1 p.2.2))\n\ntheorem axE_card : axE.card = 46 := by decide\n\ntheorem axE_sub {π : List (Clause (Fin 5 × Fin 4))} (hπ : IsRefutation (PHP 5 4) π) :\n    axE ⊆ π.toFinset := by\n  intro C hC\n  rw [List.mem_toFinset]\n  simp only [axE, Finset.mem_insert, Finset.mem_union, Finset.mem_image, Finset.mem_univ,\n    true_and, Finset.mem_filter] at hC\n  rcases hC with rfl | ⟨i, rfl⟩ | ⟨⟨i, i', j⟩, hlt, rfl⟩\n  · exact hπ.2\n  · exact uses_all hπ _ (Or.inl ⟨i, rfl⟩)\n  · exact uses_all hπ _ (Or.inr ⟨i, i', j, Fin.ne_of_lt hlt, rfl⟩)\n\nend PEqualNP.Outside.ResCt2\n\nopen PEqualNP.ProofComplexity in\n/-- res-ct2 auxiliary obstruction for L-pcx-166: every resolution refutation of PHP(5,4),\nDAG-shaped or not, contains each of the 45 axioms as a line, and has at least 46 lines. -/\ntheorem PEqualNP.Outside.L_pcx_166_res_ct2 :\n    ∀ π : List (Clause (Fin 5 × Fin 4)), IsRefutation (PHP 5 4) π →\n      (∀ C ∈ PHP 5 4, C ∈ π) ∧ 46 ≤ π.length := by\n  intro π hπ\n  refine ⟨PEqualNP.Outside.ResCt2.uses_all hπ, ?_⟩\n  have h1 := Finset.card_le_card (PEqualNP.Outside.ResCt2.axE_sub hπ)\n  rw [PEqualNP.Outside.ResCt2.axE_card] at h1\n  exact Nat.le_trans h1 (List.toFinset_card_le π)\n",
   "decoded_sha256": "d2f495e7cbb712eaaf983b6b6927327a673fe819a66e5decbf762be203f2ceeb",
   "commands": [
    "git clone https://github.com/open-goat/pequalnp-proofs && git checkout 80a20395576fcade85b5a837b0348e4c7f3d514e",
    "for each lake-manifest package: git init; git fetch --depth 1 origin <manifest rev>; git checkout FETCH_HEAD; cp -a .imd/fetch/lean-packages/<pkg>/.lake into it (seed only)",
    "export PEQUALNP_HOME=<task scratch>/pqhome PEQUALNP_REAL_LAKE=.imd/fetch/lean/lean-4.36.0-linux/bin/lake PATH=.imd/fetch/lean/lean-4.36.0-linux/bin:$PATH",
    "cd lean && ../tools/build.sh Mathlib   (only root oleans e.g. Batteries.olean were missing from seed)",
    "cd lean && ../tools/build.sh +PEqualNP.Outside.L_pcx_166_res_ct2  -> Build completed successfully",
    "node tools/check-lean.mjs lean/PEqualNP/Outside/L_pcx_166_res_ct2.lean ../statement.txt check"
   ],
   "exit_code": 0,
   "check_log": [
    "checker stage: started t=0s",
    "checker stage: build lock taken t=0s",
    "checker stage: building the verifier t=0s",
    "checker stage: building the file and the definitions root t=1s",
    "checker stage: verifier reading the built file t=1s",
    "",
    "MANIFEST {\"rests_on\":[{\"module\":\"PEqualNP.Outside.L_pcx_166_res_ct2\",\"sha256\":\"d2f495e7cbb712eaaf983b6b6927327a673fe819a66e5decbf762be203f2ceeb\"}],\"defs\":[{\"module\":\"PEqualNP.Defs\",\"sha256\":\"76a3954170372cea159b1b31fcdd01f7aeffe00286e88964ebae2bc34b1971c5\"},{\"module\":\"PEqualNP.Defs.AffinePlane\",\"sha256\":\"cdbe8c67613572eba45565d50202ecb7ebecaf642b61b0e092e876d8888bf553\"},{\"module\":\"PEqualNP.Defs.Algebraic\",\"sha256\":\"3a63e982154f8681af693149da8dbef279f62a4943e0b955c11920d9318a0456\"},{\"module\":\"PEqualNP.Defs.AndCountCircuit\",\"sha256\":\"4e9aa467f041254025f1d29d39b5f21dcc4bf31adb64de2e7d3d7fd36bd02530\"},{\"module\":\"PEqualNP.Defs.Base\",\"sha256\":\"6b010a3577605e43ecd3f9121c1c2d0cfa82d8cfeb204c89a2c231",
    "ACCEPTED (check): PEqualNP.Outside.L_pcx_166_res_ct2; axioms [propext, Quot.sound, Classical.choice]; kernel re-checked 1741 constants of [PEqualNP.Defs.Base, PEqualNP.Defs.Classes, PEqualNP.Defs.CircuitLowerBounds, PEqualNP.Defs.MetaComplexity, PEqualNP.Defs.MetaComplexityLocal, PEqualNP.Defs.MetaComplexitySparse, PEqualNP.Defs.MetaComplexityMinimal, PEqualNP.Defs.MetaComplexityLgp, PEqualNP.Defs.MetaComplexityLgpMono, PEqualNP.Defs.BinaryCircuit, PEqualNP.Defs.MetaComplexityCoverCircuit, PEqualNP.Defs.ProofComplexity, PEqualNP.Defs.ProofComplexityLin, PEqualNP.Defs.ProofComplexityLinK, PEqualNP.Defs.ProofComplexityLift, PEqualNP.Defs.ProofComplexityResK, PEqualNP.Defs.ProofComplexityRestri",
    "exit=0"
   ]
  }
 ],
 "agent_contributions": "Single worker res-ct2: audited tools/build.sh, tools/bin/lake, tools/check-lean.mjs (read before running; no pnp.sh, no lease/submission); wrote and checked the auxiliary lemma.",
 "submission_status": "Not submitted; anonymous preparation only, no leases held.",
 "next": [
  "Formalize the unit-clause extension (∅ needs complementary units {x},{¬x}, neither an axiom) to get ≥48.",
  "Formalize the trace-back DAG pruning to reach the 89-line bound for shared proofs.",
  "Beyond 89: need a genuinely new argument (e.g., counting critical-assignment-witnessed derived clauses per Hall level); exact SAT minimum search between 89 and 157 with symmetry breaking remains the most plausible route to a certificate."
 ],
 "carry": {
  "key": "res-ct",
  "encoding": "zlib+base64",
  "sha256": "a2d14568255221a62cde3d5985edcbc1bfc65ff503bc1c28f5ed4e74a24f0f96",
  "data": "eNqFVu9v4zYS/b5/xSBf1kYt+Uccd9d7e4ctrocuEGCDTYoD7nANKGlscS2RqkjFMdre3943pCTHe0UPyAeHIocz7715w19e0ZXz3Fxt6eo2afLnZLnZXM2w2tqKZTW3dVPxs/Yn8iXb9kRqz8bT5GDs0VDLrqu8o51unZ+Gk3mldC1HjTUcVrxq9+xlqeK6VmGtYmUeG+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