{
 "step": "L-meta-9695",
 "role": "complexity theory agent; strategy: lower-bound accounting by contradiction",
 "claim": "checked",
 "target": "lemma",
 "lean_path": "lean/PEqualNP/Outside/L_meta_9695.lean",
 "lemma_statement": "∀ π : List (PEqualNP.Search.CPLine (Fin (4 + 1) × Fin 4)), PEqualNP.Search.IsCPRefutation (PEqualNP.ProofComplexity.PHP (4 + 1) 4) π → (∀ C ∈ PEqualNP.ProofComplexity.PHP (4 + 1) 4, PEqualNP.Search.clauseCP C ∈ π) ∧ (∀ C ∈ PEqualNP.ProofComplexity.PHP (4 + 1) 4, ∀ C' ∈ PEqualNP.ProofComplexity.PHP (4 + 1) 4, PEqualNP.Search.clauseCP C = PEqualNP.Search.clauseCP C' → C = C') ∧ 45 + 1 ≤ π.length ∧ (∃ e ∈ π, ∃ d : ℕ, 2 ≤ d ∧ (∀ v, (d : ℤ) ∣ e.1 v) ∧ ((fun v => e.1 v / (d : ℤ), -((-e.2) / (d : ℤ))) ∈ π))",
 "lean_text": "import PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_meta_9695\n\nopen PEqualNP.ProofComplexity PEqualNP.Search\n\nabbrev Var : Type := Fin 5 × Fin 4\n\n-- The value of a literal under an assignment, as an integer in {0, 1}.\ndef litVal (a : Var → Bool) (l : Literal Var) : ℤ :=\n  if l.2 then (if a l.1 then 1 else 0) else 1 - (if a l.1 then 1 else 0)\n\ntheorem litVal_nonneg (a : Var → Bool) (l : Literal Var) : 0 ≤ litVal a l := by\n  unfold litVal; split_ifs <;> norm_num\n\ntheorem litVal_eq_one (a : Var → Bool) (l : Literal Var) (h : a l.1 = l.2) :\n    litVal a l = 1 := by\n  unfold litVal; cases hl : l.2 <;> rw [hl] at h <;> simp [h]\n\ntheorem litVal_eq_zero (a : Var → Bool) (l : Literal Var) (h : ¬ a l.1 = l.2) :\n    litVal a l = 0 := by\n  unfold litVal; cases hl : l.2 <;> rw [hl] at h <;> simp_all\n\n-- The left side of a clause line minus its constant, as a sum over the literals.\ntheorem clause_slack (a : Var → Bool) (C : Clause Var) :\n    (∑ v, (clauseCP C).1 v * (if a v then 1 else 0)) - (clauseCP C).2\n      = (∑ l ∈ C, litVal a l) - 1 := by\n  simp only [clauseCP, Finset.sum_mul]\n  rw [Finset.sum_comm]\n  have h1 : ∀ l ∈ C, (∑ v : Var, (if l.1 = v then (if l.2 then (1 : ℤ) else -1) else 0) *\n      (if a v then 1 else 0)) = (if l.2 then 1 else -1) * (if a l.1 then 1 else 0) := by\n    intro l _\n    simp only [ite_mul, zero_mul]\n    rw [Finset.sum_ite_eq]\n    simp\n  rw [Finset.sum_congr rfl h1]\n  have h2 : (∑ l ∈ C, litVal a l) = ∑ l ∈ C, ((if l.2 then (1 : ℤ) else -1) *\n      (if a l.1 then 1 else 0) + (if l.2 then 0 else 1)) := by\n    apply Finset.sum_congr rfl\n    intro l _\n    unfold litVal; split_ifs <;> ring\n  rw [h2, Finset.sum_add_distrib]\n  ring\n\ntheorem holds_iff (a : Var → Bool) (C : Clause Var) :\n    (clauseCP C).Holds a ↔ ClauseSat a C := by\n  have hs := clause_slack a C\n  unfold CPLine.Holds ClauseSat\n  constructor\n  · intro h\n    by_contra hn\n    simp only [not_exists, not_and] at hn\n    have hz : (∑ l ∈ C, litVal a l) = 0 :=\n      Finset.sum_eq_zero (fun l hl => litVal_eq_zero a l (hn l hl))\n    linarith\n  · rintro ⟨l, hl, hsat⟩\n    have h1 : litVal a l ≤ ∑ l ∈ C, litVal a l :=\n      Finset.single_le_sum (fun l _ => litVal_nonneg a l) hl\n    rw [litVal_eq_one a l hsat] at h1\n    linarith\n\n-- Soundness of every rule, for a derivation that never writes the line of the clause C0.\ntheorem sound_avoid (a : Var → Bool) (C0 : Clause Var)\n    (hsat : ∀ C ∈ PHP 5 4, C ≠ C0 → ClauseSat a C) :\n    ∀ π : List (CPLine Var), IsCPDerivation (PHP 5 4) π → clauseCP C0 ∉ π →\n      ∀ e ∈ π, e.Holds a := by\n  intro π hπ\n  induction hπ with\n  | nil => intro _ e he; simp at he\n  | ax C h hC ih =>\n    intro hn e he\n    have hn' : clauseCP C0 ∉ _ := fun hm => hn (List.mem_cons_of_mem _ hm)\n    rcases List.mem_cons.mp he with rfl | he\n    · have hne : C ≠ C0 := by\n        rintro rfl; exact hn (by simp)\n      exact (holds_iff a C).mpr (hsat C hC hne)\n    · exact ih hn' e he\n  | boolLo v h ih =>\n    intro hn e he\n    have hn' : clauseCP C0 ∉ _ := fun hm => hn (List.mem_cons_of_mem _ hm)\n    rcases List.mem_cons.mp he with rfl | he\n    · unfold CPLine.Holds\n      simp only [ite_mul, one_mul, zero_mul]\n      rw [Finset.sum_ite_eq']\n      simp only [Finset.mem_univ, ite_true]\n      split_ifs <;> norm_num\n    · exact ih hn' e he\n  | boolHi v h ih =>\n    intro hn e he\n    have hn' : clauseCP C0 ∉ _ := fun hm => hn (List.mem_cons_of_mem _ hm)\n    rcases List.mem_cons.mp he with rfl | he\n    · unfold CPLine.Holds\n      simp only [ite_mul, zero_mul]\n      rw [Finset.sum_ite_eq']\n      simp only [Finset.mem_univ, ite_true]\n      split_ifs <;> norm_num\n    · exact ih hn' e he\n  | add h he1 he2 ih =>\n    intro hn e he\n    have hn' : clauseCP C0 ∉ _ := fun hm => hn (List.mem_cons_of_mem _ hm)\n    rcases List.mem_cons.mp he with rfl | he\n    · have h1 := ih hn' _ he1\n      have h2 := ih hn' _ he2\n      unfold CPLine.Holds at *\n      simp only [Pi.add_apply, add_mul, Finset.sum_add_distrib]\n      linarith\n    · exact ih hn' e he\n  | mul k h he1 ih =>\n    intro hn e he\n    have hn' : clauseCP C0 ∉ _ := fun hm => hn (List.mem_cons_of_mem _ hm)\n    rcases List.mem_cons.mp he with rfl | he\n    · have h1 := ih hn' _ he1\n      unfold CPLine.Holds at *\n      simp only [Pi.smul_apply, smul_eq_mul, mul_assoc]\n      rw [← Finset.mul_sum]\n      exact mul_le_mul_of_nonneg_left h1 (by positivity)\n    · exact ih hn' e he\n  | @div π e0 d h he1 hd hdv ih =>\n    intro hn e he\n    have hn' : clauseCP C0 ∉ _ := fun hm => hn (List.mem_cons_of_mem _ hm)\n    rcases List.mem_cons.mp he with rfl | he\n    · have h1 := ih hn' _ he1\n      unfold CPLine.Holds at *\n      have hdz : (0 : ℤ) < d := by exact_mod_cast hd\n      set T := ∑ v, e0.1 v / (d : ℤ) * (if a v then 1 else 0) with hT\n      have hsum : (∑ v, e0.1 v * (if a v then (1 : ℤ) else 0)) = (d : ℤ) * T := by\n        rw [hT, Finset.mul_sum]\n        apply Finset.sum_congr rfl\n        intro v _\n        rw [← mul_assoc, Int.mul_ediv_cancel' (hdv v)]\n      rw [hsum] at h1\n      have h2 : (-((d : ℤ) * T)) / (d : ℤ) ≤ (-e0.2) / (d : ℤ) :=\n        Int.ediv_le_ediv hdz (by linarith)\n      have h3 : (-((d : ℤ) * T)) / (d : ℤ) = -T := by\n        rw [← mul_neg, Int.mul_ediv_cancel_left _ (ne_of_gt hdz)]\n      show -((-e0.2) / (d : ℤ)) ≤ T\n      linarith\n    · exact ih hn' e he\n\n-- The 45 clauses, by label: a pigeon, or a pair of pigeons (from a table) and a hole.\ndef pairTable : Fin 10 → Fin 5 × Fin 5 :=\n  ![(0,1),(0,2),(0,3),(0,4),(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)]\n\nabbrev Label : Type := Fin 5 ⊕ (Fin 10 × Fin 4)\n\ndef pigC (i : Fin 5) : Clause Var := Finset.univ.image (fun j : Fin 4 => ((i, j), true))\n\ndef pairC (i i' : Fin 5) (j : Fin 4) : Clause Var := {((i, j), false), ((i', j), false)}\n\ndef cl : Label → Clause Var\n  | .inl i => pigC i\n  | .inr e => pairC (pairTable e.1).1 (pairTable e.1).2 e.2\n\n-- For each label, an assignment that satisfies every other clause and falsifies its own.\ndef rk (i p : Fin 5) : ℕ := if p.val < i.val then p.val else p.val - 1\n\ndef asg : Label → Var → Bool\n  | .inl i => fun v => decide (v.1 ≠ i ∧ v.2.val = rk i v.1)\n  | .inr e => fun v =>\n      decide ((v.1 = (pairTable e.1).1 ∧ v.2 = e.2) ∨ (v.1 ≠ (pairTable e.1).1 ∧\n        v.2.val = (rk (pairTable e.1).1 v.1 + e.2.val + 4 - rk (pairTable e.1).1\n          (pairTable e.1).2) % 4))\n\n-- Clause satisfaction, written out for each label.\ndef satB (a : Var → Bool) : Label → Bool\n  | .inl i => decide (∃ j : Fin 4, a (i, j) = true)\n  | .inr e => decide (a ((pairTable e.1).1, e.2) = false ∨ a ((pairTable e.1).2, e.2) = false)\n\ntheorem satP_iff (a : Var → Bool) (k : Label) : ClauseSat a (cl k) ↔ satB a k = true := by\n  cases k with\n  | inl i =>\n    simp only [ClauseSat, cl, pigC, satB, Finset.mem_image, Finset.mem_univ, true_and,\n      decide_eq_true_eq]\n    constructor\n    · rintro ⟨l, ⟨j, rfl⟩, h⟩; exact ⟨j, h⟩\n    · rintro ⟨j, h⟩; exact ⟨_, ⟨j, rfl⟩, h⟩\n  | inr e =>\n    simp only [ClauseSat, cl, pairC, satB, Finset.mem_insert, Finset.mem_singleton,\n      decide_eq_true_eq]\n    constructor\n    · rintro ⟨l, rfl | rfl, h⟩\n      · exact Or.inl h\n      · exact Or.inr h\n    · rintro (h | h)\n      · exact ⟨_, Or.inl rfl, h⟩\n      · exact ⟨_, Or.inr rfl, h⟩\n\nset_option maxRecDepth 100000 in\nset_option maxHeartbeats 0 in\ntheorem asg_other : ∀ k k' : Label, k ≠ k' → satB (asg k) k' = true := by\n  decide +kernel\n\nset_option maxRecDepth 100000 in\nset_option maxHeartbeats 0 in\ntheorem asg_own : ∀ k : Label, satB (asg k) k = false := by\n  decide +kernel\n\ntheorem all_pairs : ∀ p q : Fin 5, p ≠ q →\n    ∃ k : Fin 10, pairTable k = (p, q) ∨ pairTable k = (q, p) := by\n  decide +kernel\n\ntheorem cl_surj (C : Clause Var) (hC : C ∈ PHP 5 4) : ∃ k : Label, cl k = C := by\n  rcases hC with ⟨p, rfl⟩ | ⟨p, q, h, ne, rfl⟩\n  · exact ⟨.inl p, rfl⟩\n  · obtain ⟨k, hk | hk⟩ := all_pairs p q ne\n    · exact ⟨.inr (k, h), by simp [cl, pairC, hk]⟩\n    · exact ⟨.inr (k, h), by simp [cl, pairC, hk, Finset.pair_comm]⟩\n\ntheorem cl_mem (k : Label) : cl k ∈ PHP 5 4 := by\n  cases k with\n  | inl i => exact Or.inl ⟨i, rfl⟩\n  | inr e =>\n    refine Or.inr ⟨(pairTable e.1).1, (pairTable e.1).2, e.2, ?_, rfl⟩\n    revert e; decide +kernel\n\ntheorem line_inj : Function.Injective (fun k : Label => clauseCP (cl k)) := by\n  intro k k' h\n  by_contra hne\n  have h1 : (clauseCP (cl k')).Holds (asg k) :=\n    (holds_iff _ _).mpr ((satP_iff _ _).mpr (asg_other k k' hne))\n  simp only at h\n  rw [← h, holds_iff, satP_iff, asg_own k] at h1\n  exact Bool.false_ne_true h1\n\n-- Every refutation writes the line of every one of the 45 clauses.\ntheorem every_clause (π : List (CPLine Var)) (h : IsCPRefutation (PHP 5 4) π) :\n    ∀ C ∈ PHP 5 4, clauseCP C ∈ π := by\n  intro C hC\n  obtain ⟨k, rfl⟩ := cl_surj C hC\n  by_contra hn\n  have hall := sound_avoid (asg k) (cl k) (by\n    intro C' hC' hne\n    obtain ⟨k', rfl⟩ := cl_surj C' hC'\n    have hk : k ≠ k' := by rintro rfl; exact hne rfl\n    exact (satP_iff _ _).mpr (asg_other k k' hk)) π h.1 hn _ h.2\n  unfold CPLine.Holds at hall\n  simp at hall\n\ntheorem forty_five (π : List (CPLine Var)) (h : IsCPRefutation (PHP 5 4) π) :\n    45 + 1 ≤ π.length := by\n  have hsub : insert ((0 : Var → ℤ), (1 : ℤ)) (Finset.univ.image (fun k : Label => clauseCP (cl k)))\n      ⊆ π.toFinset := by\n    intro e he\n    rw [Finset.mem_insert, Finset.mem_image] at he\n    rw [List.mem_toFinset]\n    rcases he with rfl | ⟨k, _, rfl⟩\n    · exact h.2\n    · exact every_clause π h _ (cl_mem k)\n  have hnot : ((0 : Var → ℤ), (1 : ℤ)) ∉ Finset.univ.image (fun k : Label => clauseCP (cl k)) := by\n    rw [Finset.mem_image]\n    rintro ⟨k, _, hk⟩\n    have hex : ∃ k' : Label, k' ≠ k := by\n      by_cases hk0 : k = .inl 0\n      · exact ⟨.inl 1, by rw [hk0]; decide⟩\n      · exact ⟨.inl 0, Ne.symm hk0⟩\n    obtain ⟨k', hk'⟩ := hex\n    have h1 : (clauseCP (cl k)).Holds (asg k') :=\n      (holds_iff _ _).mpr ((satP_iff _ _).mpr (asg_other k' k hk'))\n    rw [hk] at h1\n    unfold CPLine.Holds at h1\n    simp at h1\n  have hcard := Finset.card_le_card hsub\n  rw [Finset.card_insert_of_notMem hnot, Finset.card_image_of_injective _ line_inj] at hcard\n  have := List.toFinset_card_le π\n  simp only [Finset.card_univ, Fintype.card_sum, Fintype.card_prod, Fintype.card_fin] at hcard\n  omega\n\n-- The lines not among the 45 clause lines: at most the length less 45.\ndef clauseLines : Finset (CPLine Var) := Finset.univ.image (fun k : Label => clauseCP (cl k))\n\ntheorem card_clauseLines : clauseLines.card = 45 := by\n  rw [clauseLines, Finset.card_image_of_injective _ line_inj]\n  simp\n\ntheorem others_le (π : List (CPLine Var)) (h : IsCPRefutation (PHP 5 4) π) :\n    (π.filter (fun e => decide (e ∉ clauseLines))).length + 45 ≤ π.length := by\n  have hsplit := List.length_eq_length_filter_add (l := π) (fun e => decide (e ∈ clauseLines))\n  have hsub : clauseLines ⊆ (π.filter (fun e => decide (e ∈ clauseLines))).toFinset := by\n    intro e he\n    rw [List.mem_toFinset, List.mem_filter]\n    refine ⟨?_, by simpa using he⟩\n    obtain ⟨k, _, rfl⟩ := Finset.mem_image.mp he\n    exact every_clause π h _ (cl_mem k)\n  have h1 := Finset.card_le_card hsub\n  rw [card_clauseLines] at h1\n  have h2 := List.toFinset_card_le (π.filter (fun e => decide (e ∈ clauseLines)))\n  have h3 : (π.filter (fun e => decide (e ∉ clauseLines))) =\n      π.filter (fun e => !decide (e ∈ clauseLines)) := by\n    apply List.filter_congr; intro e _; simp\n  rw [h3]\n  omega\n\n-- The point with every variable one quarter satisfies every clause and Boolean line, so\n-- sums and multiples alone never reach 0 at least 1: some division by at least 2 is needed.\ndef Qtr (e : CPLine Var) : Prop := 4 * e.2 ≤ ∑ v, e.1 v\n\nset_option maxRecDepth 100000 in\nset_option maxHeartbeats 0 in\ntheorem qtr_cl : ∀ k : Label, 4 * (clauseCP (cl k)).2 ≤ ∑ v, (clauseCP (cl k)).1 v := by\n  decide +kernel\n\ndef divLine (e : CPLine Var) (d : ℕ) : CPLine Var :=\n  (fun v => e.1 v / (d : ℤ), -((-e.2) / (d : ℤ)))\n\ndef HasDiv (π : List (CPLine Var)) : Prop :=\n  ∃ e ∈ π, ∃ d : ℕ, 2 ≤ d ∧ (∀ v, (d : ℤ) ∣ e.1 v) ∧ divLine e d ∈ π\n\ntheorem hasDiv_cons {π : List (CPLine Var)} (x : CPLine Var) (h : HasDiv π) :\n    HasDiv (x :: π) := by\n  obtain ⟨e, he, d, hd, hdv, hm⟩ := h\n  exact ⟨e, List.mem_cons_of_mem _ he, d, hd, hdv, List.mem_cons_of_mem _ hm⟩\n\ntheorem qtr_or_div : ∀ π : List (CPLine Var), IsCPDerivation (PHP 5 4) π →\n    (∀ e ∈ π, Qtr e) ∨ HasDiv π := by\n  intro π hπ\n  induction hπ with\n  | nil => left; intro e he; simp at he\n  | ax C h hC ih =>\n    rcases ih with ih | ih\n    · left; intro e he\n      rcases List.mem_cons.mp he with rfl | he\n      · obtain ⟨k, rfl⟩ := cl_surj C hC\n        exact qtr_cl k\n      · exact ih e he\n    · exact Or.inr (hasDiv_cons _ ih)\n  | boolLo v h ih =>\n    rcases ih with ih | ih\n    · left; intro e he\n      rcases List.mem_cons.mp he with rfl | he\n      · unfold Qtr; rw [Finset.sum_ite_eq']; simp\n      · exact ih e he\n    · exact Or.inr (hasDiv_cons _ ih)\n  | boolHi v h ih =>\n    rcases ih with ih | ih\n    · left; intro e he\n      rcases List.mem_cons.mp he with rfl | he\n      · unfold Qtr; rw [Finset.sum_ite_eq']; simp\n      · exact ih e he\n    · exact Or.inr (hasDiv_cons _ ih)\n  | @add π e1 e2 h he1 he2 ih =>\n    rcases ih with ih | ih\n    · left; intro e he\n      rcases List.mem_cons.mp he with rfl | he\n      · have q1 := ih e1 he1\n        have q2 := ih e2 he2\n        unfold Qtr at *\n        simp only [Pi.add_apply, Finset.sum_add_distrib]; linarith\n      · exact ih e he\n    · exact Or.inr (hasDiv_cons _ ih)\n  | @mul π e1 k h he1 ih =>\n    rcases ih with ih | ih\n    · left; intro e he\n      rcases List.mem_cons.mp he with rfl | he\n      · have q1 := ih e1 he1\n        unfold Qtr at *\n        simp only [Pi.smul_apply, smul_eq_mul]\n        rw [← Finset.mul_sum]\n        have hk : (0 : ℤ) ≤ k := by positivity\n        nlinarith\n      · exact ih e he\n    · exact Or.inr (hasDiv_cons _ ih)\n  | @div π e0 d h he1 hd hdv ih =>\n    rcases ih with ih | ih\n    · by_cases hd1 : d = 1\n      · subst hd1\n        left; intro e he\n        rcases List.mem_cons.mp he with rfl | he\n        · have q1 := ih e0 he1\n          unfold Qtr at *\n          simpa using q1\n        · exact ih e he\n      · right\n        exact ⟨e0, List.mem_cons_of_mem _ he1, d, by omega, hdv, List.mem_cons_self⟩\n    · exact Or.inr (hasDiv_cons _ ih)\n\ntheorem refutation_has_div (π : List (CPLine Var)) (h : IsCPRefutation (PHP 5 4) π) :\n    HasDiv π := by\n  rcases qtr_or_div π h.1 with hq | hd\n  · exfalso\n    have := hq _ h.2\n    unfold Qtr at this\n    simp at this\n  · exact hd\n\nend PEqualNP.Outside.L_meta_9695\n\ntheorem PEqualNP.Outside.L_meta_9695 :\n    ∀ π : List (PEqualNP.Search.CPLine (Fin (4 + 1) × Fin 4)),\n      PEqualNP.Search.IsCPRefutation (PEqualNP.ProofComplexity.PHP (4 + 1) 4) π →\n        (∀ C ∈ PEqualNP.ProofComplexity.PHP (4 + 1) 4, PEqualNP.Search.clauseCP C ∈ π) ∧\n        (∀ C ∈ PEqualNP.ProofComplexity.PHP (4 + 1) 4, ∀ C' ∈ PEqualNP.ProofComplexity.PHP (4 + 1) 4,\n          PEqualNP.Search.clauseCP C = PEqualNP.Search.clauseCP C' → C = C') ∧\n        45 + 1 ≤ π.length ∧\n        (∃ e ∈ π, ∃ d : ℕ, 2 ≤ d ∧ (∀ v, (d : ℤ) ∣ e.1 v) ∧\n          ((fun v => e.1 v / (d : ℤ), -((-e.2) / (d : ℤ))) ∈ π)) := by\n  intro π h\n  refine ⟨PEqualNP.Outside.L_meta_9695.every_clause π h, ?_,\n    PEqualNP.Outside.L_meta_9695.forty_five π h,\n    PEqualNP.Outside.L_meta_9695.refutation_has_div π h⟩\n  intro C hC C' hC' heq\n  obtain ⟨k, rfl⟩ := PEqualNP.Outside.L_meta_9695.cl_surj C hC\n  obtain ⟨k', rfl⟩ := PEqualNP.Outside.L_meta_9695.cl_surj C' hC'\n  rw [PEqualNP.Outside.L_meta_9695.line_inj heq]\n",
 "lean_sha256": "cbb2ff31a42ead3529c1a605b3a739c68fd4c73b91b95548e3b404db007894ae",
 "check_log": [
  "toolchain: lean-4.36.0-linux from github.com/leanprover/lean4 releases v4.36.0; repo commit e6263d86c6bba23ec25d92e162a162d10b265c24; lake exe cache get -> Decompressed 9117 file(s)",
  "lake build PEqualNP.Outside.L_meta_9695 -> Build completed successfully (5151 jobs).",
  "node tools/check-lean.mjs lean/PEqualNP/Outside/L_meta_9695.lean lemma_statement.txt check (statement file = the lemma statement above, NOT the step statement) -> ACCEPTED (check): PEqualNP.Outside.L_meta_9695; axioms [propext, Quot.sound, Classical.choice]; kernel re-checked 1776 constants",
  "This lemma is not the posted step statement; checked against the step statement it would be rejected (different statement). The step itself (exists refutation of length <= 108) is NOT proved.",
  "python3 test/scratch/cp109.py (line-by-line CP checker of the standard construction) -> final line True 1 length 109; Counter({ax: 45, add: 44, div: 12, mul: 8})",
  "lake build PEqualNP.Outside.L_meta_9693 (existing repo file, no refutation of PHP(5,4) of length <= 100) -> Build completed successfully (5151 jobs); not re-run through the checker here"
 ],
 "discoveries": [
  "Proved in Lean (checker ACCEPTED against the lemma statement): every CP refutation of PHP(5,4) contains the line clauseCP C of each of the 45 clauses C, the 45 lines are pairwise distinct (clauseCP is injective on PHP(5,4)), so with the line 0 >= 1 every refutation has at least 46 lines.",
  "Method: for each clause C an explicit 0/1 assignment satisfies the other 44 clauses (pigeon clause i: pigeons other than i placed bijectively; pair clause (i,i',j): i in hole j, others bijectively with i' also in j); soundness of all five CP rules (division with ceiling) shows a derivation without the line of C keeps every line true, so it never writes 0 >= 1.",
  "Hence a refutation of length <= 108 has at most 63 lines that are not clause axioms (helper lemma others_le in the file states this count: filtered non-clause lines + 45 <= length).",
  "Proved in Lean: every refutation contains a division by some d >= 2 of one of its lines, since the all-1/4 point satisfies every clause line, Boolean line, sum and nonnegative multiple (4c <= sum of coefficients) but not 0 >= 1.",
  "Ran: the standard construction (per hole build x_0j+..+x_4j <= 1 by extending cliques: K3 = sum of 3 pair lines /2, K4 = 2*K3 + 3 pairs /3, K5 = 3*K4 + 4 pairs /4, then add 5 pigeon lines and 4 hole lines) is a valid refutation of exactly 109 lines: 45 axioms + 44 sums + 8 multiplications + 12 divisions = 45 + 4*14 + 8. This matches the desk note that its own run was one line over 108.",
  "Rank accounting: per hole the clique inequality has Chvatal rank 2 over the pair inequalities (the 1/3 point satisfies all triangle inequalities but has hole sum 5/3; a single division of pair sums gives at best sum <= 2), so a hole-by-hole proof needs at least 2 divisions per hole; the construction uses 3.",
  "Known window: an existing repository file L_meta_9693 (built here) shows no refutation of length <= 100, so the least length lies in 101..109; 108 is within 1 of the best run known and 7 above the proved floor. My own accounting floor (46 lines, at least one division) is far weaker than 101."
 ],
 "dead_ends": [
  "Axiom accounting alone cannot settle 108: it fixes 45 lines and leaves a budget of 63 inference lines against the 64 the standard construction uses.",
  "Variants tried by hand all cost 15 lines for the last hole including its use in the final sum: deriving K5 and adding it; the descending chain from the summed line x_0j+..+x_4j >= 2 (divisions by 3 and 2); combining x_4j >= 1 from S+K4 with S plus pairs /3; replacing the final division by 4*S + L. None saves the one line.",
  "Building K5 from two overlapping K4 (sharing K3 and its doubled line) costs 15 lines, interval cliques cost 18, five cyclic triangles summed /3 cost 20: all worse than 14.",
  "Merging holes before rounding fails: summing the per-hole lines 4*sum <= 7 over 4 holes and dividing once gives total <= 7, not 4."
 ],
 "counterexamples": [
  "For each of the 45 clauses, an explicit assignment satisfying exactly the other 44 (in the Lean file as asg; checked by decide +kernel): PHP(5,4) is minimally unsatisfiable."
 ],
 "next": [
  "Search for a 108-line refutation by exhaustive or SAT/ILP search over shared-sum structures across holes (e.g. reuse one doubled K3 line or the summed pigeon line inside a hole derivation), or for the twin L-meta-9698 strengthen the 101 lower bound of L_meta_9693 toward 109.",
  "A per-hole lower bound of 14 inference lines (2 divisions forced by rank 2, plus the sums each division needs) would give 45 + 56 + 8 = 109 only for hole-separable proofs; proving that general refutations decompose is the open part."
 ],
 "sources": [
  "https://pequalnp.com/desk/row?gap=L-meta-9695",
  "https://pequalnp.com/desk/step?gap=L-meta-9695",
  "https://github.com/open-goat/pequalnp-proofs",
  "https://raw.githubusercontent.com/open-goat/pequalnp-proofs/main/CONTRIBUTING.md",
  "https://raw.githubusercontent.com/open-goat/pequalnp-proofs/main/lean/PEqualNP/Defs/SearchCP.lean",
  "https://raw.githubusercontent.com/open-goat/pequalnp-proofs/main/lean/PEqualNP/Defs/ProofComplexity.lean"
 ],
 "step_state": "leased (holders 1, since 2026-11-26T02:12:55.258Z), read at the end via /desk/step; nothing leased or submitted by this worker (anonymous, no handle)"
}