{"step": "L-meta-9708", "role": "Lean 4 automation (certificate compression)", "claim": "unchecked", "target": "lemma", "lean_path": "lean/PEqualNP/Outside/L_meta_9708.lean", "lean_text": "import PEqualNP.Defs\n\nopen PEqualNP.Search PEqualNP.ProofComplexity\n\nnamespace PEqualNP.Outside.L_meta_9708\n\nabbrev V : Type := Fin (5 + 1) × Fin 5\nabbrev SL : Type := List (ℕ × ℤ) × ℤ\nabbrev St : Type := ℕ × ℕ × ℕ × SL\n\ndef ev (l : List (ℕ × ℤ)) (n : ℕ) : ℤ :=\n  l.foldr (fun p acc => if p.1 = n then p.2 + acc else acc) 0\n\ndef idx (v : V) : ℕ := v.1.val * 5 + v.2.val\n\ndef toL (s : SL) : CPLine V := (fun v => ev s.1 (idx v), s.2)\n\ndef leq (l : SL) (f : ℕ → ℤ) (c : ℤ) : Bool :=\n  (List.range 30).all (fun n => ev l.1 n == f n) && l.2 == c\n\ndef ok (π : List SL) (s : St) : Bool :=\n  match s with\n  | (t, a, b, l) =>\n    match t with\n    | 0 => decide (a < 6) && leq l (fun n => if n / 5 = a then 1 else 0) 1\n    | 1 =>\n      match π[a]?, π[b]? with\n      | some x, some y => leq l (fun n => ev x.1 n + ev y.1 n) (x.2 + y.2)\n      | _, _ => false\n    | 2 =>\n      match π[a]? with\n      | some x => leq l (fun n => (b : ℤ) * ev x.1 n) ((b : ℤ) * x.2)\n      | none => false\n    | 3 =>\n      match π[a]? with\n      | some x =>\n        decide (0 < b) && (List.range 30).all (fun n => ev x.1 n % (b : ℤ) == 0) &&\n          leq l (fun n => ev x.1 n / (b : ℤ)) (-((-x.2) / (b : ℤ)))\n      | none => false\n    | t + 4 =>\n      decide (t < 5 ∧ a < 6 ∧ b < 6 ∧ a ≠ b) &&\n        leq l (fun n => if n = a * 5 + t ∨ n = b * 5 + t then -1 else 0) (-1)\n\ndef run : List SL → List St → Option (List SL)\n  | π, [] => some π\n  | π, s :: rest => if ok π s then run (s.2.2.2 :: π) rest else none\n\nlemma idx_lt (v : V) : idx v < 30 := by\n  unfold idx\n  have h1 := v.1.isLt\n  have h2 := v.2.isLt\n  omega\n\nlemma leq_sound {l : SL} {f : ℕ → ℤ} {c : ℤ} (h : leq l f c = true) :\n    (∀ v : V, ev l.1 (idx v) = f (idx v)) ∧ l.2 = c := by\n  simp only [leq, Bool.and_eq_true, List.all_eq_true, List.mem_range, beq_iff_eq] at h\n  exact ⟨fun v => h.1 _ (idx_lt v), h.2⟩\n\nlemma toL_eq {l : SL} {g : V → ℤ} {c : ℤ} (h : ∀ v : V, ev l.1 (idx v) = g v) (hc : l.2 = c) :\n    toL l = (g, c) := by\n  unfold toL\n  exact Prod.ext (funext h) hc\n\nlemma clause_pig (i : Fin (5 + 1)) :\n    clauseCP (Finset.univ.image (fun j : Fin 5 => ((i, j), true))) =\n      ((fun v : V => if v.1 = i then 1 else 0), 1) := by\n  unfold clauseCP\n  refine Prod.ext (funext fun v => ?_) ?_\n  · dsimp only\n    rw [Finset.sum_image (by intro x _ y _ h; simpa using h)]\n    obtain ⟨v1, v2⟩ := v\n    by_cases hi : v1 = i\n    · subst hi\n      simp [Prod.ext_iff]\n    · have : ∀ j : Fin 5, ¬ ((i, j) = (v1, v2)) := by\n        intro j hj\n        exact hi (Prod.ext_iff.1 hj).1.symm\n      simp [this, hi]\n  · show 1 - _ = 1\n    rw [Finset.sum_eq_zero (fun x hx => ?_)]\n    · simp\n    · obtain ⟨j, _, rfl⟩ := Finset.mem_image.1 hx\n      simp\n\nlemma clause_hole (i i' : Fin (5 + 1)) (j : Fin 5) (h : i ≠ i') :\n    clauseCP ({((i, j), false), ((i', j), false)} : Finset (V × Bool)) =\n      ((fun v : V => if v = (i, j) ∨ v = (i', j) then -1 else 0), -1) := by\n  unfold clauseCP\n  have hne : (((i, j), false) : V × Bool) ≠ ((i', j), false) := by simpa using h\n  refine Prod.ext (funext fun v => ?_) ?_\n  · dsimp only\n    rw [Finset.sum_insert (by simpa using hne), Finset.sum_singleton]\n    obtain ⟨v1, v2⟩ := v\n    by_cases h1 : (v1, v2) = (i, j)\n    · have h2 : ¬ ((v1, v2) = (i', j)) := by\n        intro h2\n        exact h (by simp_all [Prod.ext_iff])\n      simp [h1, h2, eq_comm, h, Ne.symm h]\n    · by_cases h2 : (v1, v2) = (i', j)\n      · simp [h1, h2, eq_comm, h, Ne.symm h]\n      · have a1 : ¬ (i = v1 ∧ j = v2) := fun ⟨x, y⟩ => h1 (by rw [← x, ← y])\n        have a2 : ¬ (i' = v1 ∧ j = v2) := fun ⟨x, y⟩ => h2 (by rw [← x, ← y])\n        simp [a1, a2]\n        exact ⟨fun x y => a1 ⟨x.symm, y.symm⟩, fun x y => a2 ⟨x.symm, y.symm⟩⟩\n  · rw [Finset.sum_insert (by simpa using hne), Finset.sum_singleton]\n    norm_num\n\nlemma mem_of {π : List SL} {a : ℕ} {x : SL} (h : π[a]? = some x) : toL x ∈ π.map toL :=\n  List.mem_map_of_mem (List.mem_of_getElem? h)\n\nlemma ok_sound (π : List SL) (s : St) (h : ok π s = true)\n    (hπ : IsCPDerivation (PHP (5 + 1) 5) (π.map toL)) :\n    IsCPDerivation (PHP (5 + 1) 5) (toL s.2.2.2 :: π.map toL) := by\n  obtain ⟨t, a, b, l⟩ := s\n  show IsCPDerivation _ (toL l :: _)\n  rcases t with _ | _ | _ | _ | t\n  · simp only [ok, Bool.and_eq_true, decide_eq_true_eq] at h\n    obtain ⟨ha, hl⟩ := h\n    obtain ⟨h1, h2⟩ := leq_sound hl\n    have e : toL l = clauseCP (Finset.univ.image (fun j : Fin 5 => (((⟨a, ha⟩ : Fin (5 + 1)), j), true))) := by\n      rw [clause_pig]\n      refine toL_eq (fun v => ?_) h2\n      rw [h1 v]\n      have hv : idx v / 5 = v.1.val := by\n        have := v.2.isLt\n        unfold idx\n        omega\n      by_cases hc : v.1.val = a\n      · have : v.1 = ⟨a, ha⟩ := Fin.ext hc\n        simp [hv, hc, this]\n      · have : v.1 ≠ ⟨a, ha⟩ := fun hh => hc (by rw [hh])\n        simp [hv, hc, this]\n    rw [e]\n    exact IsCPDerivation.ax _ hπ (Set.mem_union_left _ ⟨_, rfl⟩)\n  · cases ha : π[a]? with\n    | none => simp [ok, ha] at h\n    | some x =>\n      cases hb : π[b]? with\n      | none => simp [ok, ha, hb] at h\n      | some y =>\n        simp only [ok, ha, hb] at h\n        obtain ⟨h1, h2⟩ := leq_sound h\n        have e : toL l = ((toL x).1 + (toL y).1, (toL x).2 + (toL y).2) :=\n          toL_eq (fun v => by rw [h1 v]; rfl) h2\n        rw [e]\n        exact IsCPDerivation.add hπ (mem_of ha) (mem_of hb)\n  · cases ha : π[a]? with\n    | none => simp [ok, ha] at h\n    | some x =>\n      simp only [ok, ha] at h\n      obtain ⟨h1, h2⟩ := leq_sound h\n      have e : toL l = ((b : ℤ) • (toL x).1, (b : ℤ) * (toL x).2) :=\n        toL_eq (fun v => by rw [h1 v]; rfl) h2\n      rw [e]\n      exact IsCPDerivation.mul b hπ (mem_of ha)\n  · cases ha : π[a]? with\n    | none => simp [ok, ha] at h\n    | some x =>\n      simp only [ok, ha, Bool.and_eq_true, decide_eq_true_eq, List.all_eq_true,\n        List.mem_range, beq_iff_eq] at h\n      obtain ⟨⟨hb, hd⟩, hl⟩ := h\n      obtain ⟨h1, h2⟩ := leq_sound hl\n      have hdv : ∀ v, (b : ℤ) ∣ (toL x).1 v := fun v =>\n        Int.dvd_of_emod_eq_zero (hd _ (idx_lt v))\n      have e : toL l = (fun v => (toL x).1 v / (b : ℤ), -((-(toL x).2) / (b : ℤ))) :=\n        toL_eq (fun v => by rw [h1 v]; rfl) h2\n      rw [e]\n      exact IsCPDerivation.div b hπ (mem_of ha) hb hdv\n  · simp only [ok, Bool.and_eq_true, decide_eq_true_eq] at h\n    obtain ⟨⟨ht, ha, hb, hab⟩, hl⟩ := h\n    obtain ⟨h1, h2⟩ := leq_sound hl\n    have key : ∀ (v : V) (c : Fin (5 + 1)), idx v = c.val * 5 + t ↔ v = (c, (⟨t, ht⟩ : Fin 5)) := by\n      intro v c\n      obtain ⟨v1, v2⟩ := v\n      have := v2.isLt\n      simp only [idx, Prod.ext_iff, Fin.ext_iff]\n      omega\n    have e : toL l = clauseCP ({(((⟨a, ha⟩ : Fin (5 + 1)), (⟨t, ht⟩ : Fin 5)), false),\n        (((⟨b, hb⟩ : Fin (5 + 1)), (⟨t, ht⟩ : Fin 5)), false)} : Finset (V × Bool)) := by\n      rw [clause_hole _ _ _ (fun hh => hab (by simpa [Fin.ext_iff] using hh))]\n      refine toL_eq (fun v => ?_) h2\n      rw [h1 v]\n      have ka := key v ⟨a, ha⟩\n      have kb := key v ⟨b, hb⟩\n      simp only [] at ka kb\n      simp only [ka, kb]\n    rw [e]\n    exact IsCPDerivation.ax _ hπ (Set.mem_union_right _ ⟨_, _, _, fun hh => hab (by simpa [Fin.ext_iff] using hh), rfl⟩)\n\nlemma run_sound (steps : List St) :\n    ∀ (π π' : List SL), run π steps = some π' →\n      IsCPDerivation (PHP (5 + 1) 5) (π.map toL) →\n      IsCPDerivation (PHP (5 + 1) 5) (π'.map toL) := by\n  induction steps with\n  | nil =>\n    intro π π' h hπ\n    simp only [run, Option.some.injEq] at h\n    subst h\n    exact hπ\n  | cons s rest ih =>\n    intro π π' h hπ\n    simp only [run] at h\n    split_ifs at h with hok\n    exact ih _ _ h (by simpa using ok_sound π s hok hπ)\n\ndef chk (steps : List St) : Bool :=\n  match run [] steps with\n  | some π => decide (π.head? = some ([], 1)) && decide (π.length ≤ 196)\n  | none => false\n\nlemma chk_sound (steps : List St) (h : chk steps = true) :\n    ∃ π : List (CPLine (Fin (5 + 1) × Fin 5)),\n      IsCPRefutation (PHP (5 + 1) 5) π ∧ π.length ≤ 196 := by\n  unfold chk at h\n  cases hr : run [] steps with\n  | none => simp [hr] at h\n  | some π' =>\n    simp only [hr, Bool.and_eq_true, decide_eq_true_eq] at h\n    obtain ⟨hh, hlen⟩ := h\n    refine ⟨π'.map toL, ⟨run_sound steps [] π' hr IsCPDerivation.nil, ?_⟩, by simpa using hlen⟩\n    cases π' with\n    | nil => simp at hh\n    | cons l rest =>\n      simp only [List.head?_cons, Option.some.injEq] at hh\n      subst hh\n      refine List.mem_map.2 ⟨([], 1), List.mem_cons_self, ?_⟩\n      exact Prod.ext (funext fun v => by simp [toL, ev]) rfl\n\nnoncomputable def cert0 : List St :=\n  [(0, 0, 0, ([(0, 1), (1, 1), (2, 1), (3, 1), (4, 1)], 1)),\n    (0, 1, 0, ([(5, 1), (6, 1), (7, 1), (8, 1), (9, 1)], 1)),\n    (0, 2, 0, ([(10, 1), (11, 1), (12, 1), (13, 1), (14, 1)], 1)),\n    (0, 3, 0, ([(15, 1), (16, 1), (17, 1), (18, 1), (19, 1)], 1)),\n    (0, 4, 0, ([(20, 1), (21, 1), (22, 1), (23, 1), (24, 1)], 1)),\n    (0, 5, 0, ([(25, 1), (26, 1), (27, 1), (28, 1), (29, 1)], 1)),\n    (4, 0, 1, ([(0, -1), (5, -1)], -1)),\n    (4, 2, 0, ([(0, -1), (10, -1)], -1))]\n\nnoncomputable def cert1 : List St :=\n  [(4, 2, 1, ([(5, -1), (10, -1)], -1)),\n    (1, 1, 0, ([(0, -1), (5, -1), (10, -2)], -2)),\n    (1, 0, 3, ([(0, -2), (5, -2), (10, -2)], -3)),\n    (3, 0, 2, ([(0, -1), (5, -1), (10, -1)], -1)),\n    (4, 3, 0, ([(0, -1), (15, -1)], -1)),\n    (4, 3, 1, ([(5, -1), (15, -1)], -1)),\n    (4, 3, 2, ([(10, -1), (15, -1)], -1)),\n    (1, 2, 1, ([(0, -1), (5, -1), (15, -2)], -2))]\n\nnoncomputable def cert2 : List St :=\n  [(1, 0, 1, ([(0, -1), (5, -1), (10, -1), (15, -3)], -3)),\n    (2, 5, 2, ([(0, -2), (5, -2), (10, -2)], -2)),\n    (1, 1, 0, ([(0, -3), (5, -3), (10, -3), (15, -3)], -5)),\n    (3, 0, 3, ([(0, -1), (5, -1), (10, -1), (15, -1)], -1)),\n    (4, 4, 0, ([(0, -1), (20, -1)], -1)),\n    (4, 4, 1, ([(5, -1), (20, -1)], -1)),\n    (4, 4, 2, ([(10, -1), (20, -1)], -1)),\n    (4, 4, 3, ([(15, -1), (20, -1)], -1))]\n\nnoncomputable def cert3 : List St :=\n  [(1, 3, 2, ([(0, -1), (5, -1), (20, -2)], -2)),\n    (1, 0, 2, ([(0, -1), (5, -1), (10, -1), (20, -3)], -3)),\n    (1, 0, 2, ([(0, -1), (5, -1), (10, -1), (15, -1), (20, -4)], -4)),\n    (2, 7, 3, ([(0, -3), (5, -3), (10, -3), (15, -3)], -3)),\n    (1, 1, 0, ([(0, -4), (5, -4), (10, -4), (15, -4), (20, -4)], -7)),\n    (3, 0, 4, ([(0, -1), (5, -1), (10, -1), (15, -1), (20, -1)], -1)),\n    (4, 5, 0, ([(0, -1), (25, -1)], -1)),\n    (4, 5, 1, ([(5, -1), (25, -1)], -1))]\n\nnoncomputable def cert4 : List St :=\n  [(4, 5, 2, ([(10, -1), (25, -1)], -1)),\n    (4, 5, 3, ([(15, -1), (25, -1)], -1)),\n    (4, 5, 4, ([(20, -1), (25, -1)], -1)),\n    (1, 4, 3, ([(0, -1), (5, -1), (25, -2)], -2)),\n    (1, 0, 3, ([(0, -1), (5, -1), (10, -1), (25, -3)], -3)),\n    (1, 0, 3, ([(0, -1), (5, -1), (10, -1), (15, -1), (25, -4)], -4)),\n    (1, 0, 3, ([(0, -1), (5, -1), (10, -1), (15, -1), (20, -1), (25, -5)], -5)),\n    (2, 9, 4, ([(0, -4), (5, -4), (10, -4), (15, -4), (20, -4)], -4))]\n\nnoncomputable def cert5 : List St :=\n  [(1, 1, 0, ([(0, -5), (5, -5), (10, -5), (15, -5), (20, -5), (25, -5)], -9)),\n    (3, 0, 5, ([(0, -1), (5, -1), (10, -1), (15, -1), (20, -1), (25, -1)], -1)),\n    (5, 0, 1, ([(1, -1), (6, -1)], -1)),\n    (5, 2, 0, ([(1, -1), (11, -1)], -1)),\n    (5, 2, 1, ([(6, -1), (11, -1)], -1)),\n    (1, 1, 0, ([(1, -1), (6, -1), (11, -2)], -2)),\n    (1, 0, 3, ([(1, -2), (6, -2), (11, -2)], -3)),\n    (3, 0, 2, ([(1, -1), (6, -1), (11, -1)], -1))]\n\nnoncomputable def cert6 : List St :=\n  [(5, 3, 0, ([(1, -1), (16, -1)], -1)),\n    (5, 3, 1, ([(6, -1), (16, -1)], -1)),\n    (5, 3, 2, ([(11, -1), (16, -1)], -1)),\n    (1, 2, 1, ([(1, -1), (6, -1), (16, -2)], -2)),\n    (1, 0, 1, ([(1, -1), (6, -1), (11, -1), (16, -3)], -3)),\n    (2, 5, 2, ([(1, -2), (6, -2), (11, -2)], -2)),\n    (1, 1, 0, ([(1, -3), (6, -3), (11, -3), (16, -3)], -5)),\n    (3, 0, 3, ([(1, -1), (6, -1), (11, -1), (16, -1)], -1))]\n\nnoncomputable def cert7 : List St :=\n  [(5, 4, 0, ([(1, -1), (21, -1)], -1)),\n    (5, 4, 1, ([(6, -1), (21, -1)], -1)),\n    (5, 4, 2, ([(11, -1), (21, -1)], -1)),\n    (5, 4, 3, ([(16, -1), (21, -1)], -1)),\n    (1, 3, 2, ([(1, -1), (6, -1), (21, -2)], -2)),\n    (1, 0, 2, ([(1, -1), (6, -1), (11, -1), (21, -3)], -3)),\n    (1, 0, 2, ([(1, -1), (6, -1), (11, -1), (16, -1), (21, -4)], -4)),\n    (2, 7, 3, ([(1, -3), (6, -3), (11, -3), (16, -3)], -3))]\n\nnoncomputable def cert8 : List St :=\n  [(1, 1, 0, ([(1, -4), (6, -4), (11, -4), (16, -4), (21, -4)], -7)),\n    (3, 0, 4, ([(1, -1), (6, -1), (11, -1), (16, -1), (21, -1)], -1)),\n    (5, 5, 0, ([(1, -1), (26, -1)], -1)),\n    (5, 5, 1, ([(6, -1), (26, -1)], -1)),\n    (5, 5, 2, ([(11, -1), (26, -1)], -1)),\n    (5, 5, 3, ([(16, -1), (26, -1)], -1)),\n    (5, 5, 4, ([(21, -1), (26, -1)], -1)),\n    (1, 4, 3, ([(1, -1), (6, -1), (26, -2)], -2))]\n\nnoncomputable def cert9 : List St :=\n  [(1, 0, 3, ([(1, -1), (6, -1), (11, -1), (26, -3)], -3)),\n    (1, 0, 3, ([(1, -1), (6, -1), (11, -1), (16, -1), (26, -4)], -4)),\n    (1, 0, 3, ([(1, -1), (6, -1), (11, -1), (16, -1), (21, -1), (26, -5)], -5)),\n    (2, 9, 4, ([(1, -4), (6, -4), (11, -4), (16, -4), (21, -4)], -4)),\n    (1, 1, 0, ([(1, -5), (6, -5), (11, -5), (16, -5), (21, -5), (26, -5)], -9)),\n    (3, 0, 5, ([(1, -1), (6, -1), (11, -1), (16, -1), (21, -1), (26, -1)], -1)),\n    (6, 0, 1, ([(2, -1), (7, -1)], -1)),\n    (6, 2, 0, ([(2, -1), (12, -1)], -1))]\n\nnoncomputable def cert10 : List St :=\n  [(6, 2, 1, ([(7, -1), (12, -1)], -1)),\n    (1, 1, 0, ([(2, -1), (7, -1), (12, -2)], -2)),\n    (1, 0, 3, ([(2, -2), (7, -2), (12, -2)], -3)),\n    (3, 0, 2, ([(2, -1), (7, -1), (12, -1)], -1)),\n    (6, 3, 0, ([(2, -1), (17, -1)], -1)),\n    (6, 3, 1, ([(7, -1), (17, -1)], -1)),\n    (6, 3, 2, ([(12, -1), (17, -1)], -1)),\n    (1, 2, 1, ([(2, -1), (7, -1), (17, -2)], -2))]\n\nnoncomputable def cert11 : List St :=\n  [(1, 0, 1, ([(2, -1), (7, -1), (12, -1), (17, -3)], -3)),\n    (2, 5, 2, ([(2, -2), (7, -2), (12, -2)], -2)),\n    (1, 1, 0, ([(2, -3), (7, -3), (12, -3), (17, -3)], -5)),\n    (3, 0, 3, ([(2, -1), (7, -1), (12, -1), (17, -1)], -1)),\n    (6, 4, 0, ([(2, -1), (22, -1)], -1)),\n    (6, 4, 1, ([(7, -1), (22, -1)], -1)),\n    (6, 4, 2, ([(12, -1), (22, -1)], -1)),\n    (6, 4, 3, ([(17, -1), (22, -1)], -1))]\n\nnoncomputable def cert12 : List St :=\n  [(1, 3, 2, ([(2, -1), (7, -1), (22, -2)], -2)),\n    (1, 0, 2, ([(2, -1), (7, -1), (12, -1), (22, -3)], -3)),\n    (1, 0, 2, ([(2, -1), (7, -1), (12, -1), (17, -1), (22, -4)], -4)),\n    (2, 7, 3, ([(2, -3), (7, -3), (12, -3), (17, -3)], -3)),\n    (1, 1, 0, ([(2, -4), (7, -4), (12, -4), (17, -4), (22, -4)], -7)),\n    (3, 0, 4, ([(2, -1), (7, -1), (12, -1), (17, -1), (22, -1)], -1)),\n    (6, 5, 0, ([(2, -1), (27, -1)], -1)),\n    (6, 5, 1, ([(7, -1), (27, -1)], -1))]\n\nnoncomputable def cert13 : List St :=\n  [(6, 5, 2, ([(12, -1), (27, -1)], -1)),\n    (6, 5, 3, ([(17, -1), (27, -1)], -1)),\n    (6, 5, 4, ([(22, -1), (27, -1)], -1)),\n    (1, 4, 3, ([(2, -1), (7, -1), (27, -2)], -2)),\n    (1, 0, 3, ([(2, -1), (7, -1), (12, -1), (27, -3)], -3)),\n    (1, 0, 3, ([(2, -1), (7, -1), (12, -1), (17, -1), (27, -4)], -4)),\n    (1, 0, 3, ([(2, -1), (7, -1), (12, -1), (17, -1), (22, -1), (27, -5)], -5)),\n    (2, 9, 4, ([(2, -4), (7, -4), (12, -4), (17, -4), (22, -4)], -4))]\n\nnoncomputable def cert14 : List St :=\n  [(1, 1, 0, ([(2, -5), (7, -5), (12, -5), (17, -5), (22, -5), (27, -5)], -9)),\n    (3, 0, 5, ([(2, -1), (7, -1), (12, -1), (17, -1), (22, -1), (27, -1)], -1)),\n    (7, 0, 1, ([(3, -1), (8, -1)], -1)),\n    (7, 2, 0, ([(3, -1), (13, -1)], -1)),\n    (7, 2, 1, ([(8, -1), (13, -1)], -1)),\n    (1, 1, 0, ([(3, -1), (8, -1), (13, -2)], -2)),\n    (1, 0, 3, ([(3, -2), (8, -2), (13, -2)], -3)),\n    (3, 0, 2, ([(3, -1), (8, -1), (13, -1)], -1))]\n\nnoncomputable def cert15 : List St :=\n  [(7, 3, 0, ([(3, -1), (18, -1)], -1)),\n    (7, 3, 1, ([(8, -1), (18, -1)], -1)),\n    (7, 3, 2, ([(13, -1), (18, -1)], -1)),\n    (1, 2, 1, ([(3, -1), (8, -1), (18, -2)], -2)),\n    (1, 0, 1, ([(3, -1), (8, -1), (13, -1), (18, -3)], -3)),\n    (2, 5, 2, ([(3, -2), (8, -2), (13, -2)], -2)),\n    (1, 1, 0, ([(3, -3), (8, -3), (13, -3), (18, -3)], -5)),\n    (3, 0, 3, ([(3, -1), (8, -1), (13, -1), (18, -1)], -1))]\n\nnoncomputable def cert16 : List St :=\n  [(7, 4, 0, ([(3, -1), (23, -1)], -1)),\n    (7, 4, 1, ([(8, -1), (23, -1)], -1)),\n    (7, 4, 2, ([(13, -1), (23, -1)], -1)),\n    (7, 4, 3, ([(18, -1), (23, -1)], -1)),\n    (1, 3, 2, ([(3, -1), (8, -1), (23, -2)], -2)),\n    (1, 0, 2, ([(3, -1), (8, -1), (13, -1), (23, -3)], -3)),\n    (1, 0, 2, ([(3, -1), (8, -1), (13, -1), (18, -1), (23, -4)], -4)),\n    (2, 7, 3, ([(3, -3), (8, -3), (13, -3), (18, -3)], -3))]\n\nnoncomputable def cert17 : List St :=\n  [(1, 1, 0, ([(3, -4), (8, -4), (13, -4), (18, -4), (23, -4)], -7)),\n    (3, 0, 4, ([(3, -1), (8, -1), (13, -1), (18, -1), (23, -1)], -1)),\n    (7, 5, 0, ([(3, -1), (28, -1)], -1)),\n    (7, 5, 1, ([(8, -1), (28, -1)], -1)),\n    (7, 5, 2, ([(13, -1), (28, -1)], -1)),\n    (7, 5, 3, ([(18, -1), (28, -1)], -1)),\n    (7, 5, 4, ([(23, -1), (28, -1)], -1)),\n    (1, 4, 3, ([(3, -1), (8, -1), (28, -2)], -2))]\n\nnoncomputable def cert18 : List St :=\n  [(1, 0, 3, ([(3, -1), (8, -1), (13, -1), (28, -3)], -3)),\n    (1, 0, 3, ([(3, -1), (8, -1), (13, -1), (18, -1), (28, -4)], -4)),\n    (1, 0, 3, ([(3, -1), (8, -1), (13, -1), (18, -1), (23, -1), (28, -5)], -5)),\n    (2, 9, 4, ([(3, -4), (8, -4), (13, -4), (18, -4), (23, -4)], -4)),\n    (1, 1, 0, ([(3, -5), (8, -5), (13, -5), (18, -5), (23, -5), (28, -5)], -9)),\n    (3, 0, 5, ([(3, -1), (8, -1), (13, -1), (18, -1), (23, -1), (28, -1)], -1)),\n    (8, 0, 1, ([(4, -1), (9, -1)], -1)),\n    (8, 2, 0, ([(4, -1), (14, -1)], -1))]\n\nnoncomputable def cert19 : List St :=\n  [(8, 2, 1, ([(9, -1), (14, -1)], -1)),\n    (1, 1, 0, ([(4, -1), (9, -1), (14, -2)], -2)),\n    (1, 0, 3, ([(4, -2), (9, -2), (14, -2)], -3)),\n    (3, 0, 2, ([(4, -1), (9, -1), (14, -1)], -1)),\n    (8, 3, 0, ([(4, -1), (19, -1)], -1)),\n    (8, 3, 1, ([(9, -1), (19, -1)], -1)),\n    (8, 3, 2, ([(14, -1), (19, -1)], -1)),\n    (1, 2, 1, ([(4, -1), (9, -1), (19, -2)], -2))]\n\nnoncomputable def cert20 : List St :=\n  [(1, 0, 1, ([(4, -1), (9, -1), (14, -1), (19, -3)], -3)),\n    (2, 5, 2, ([(4, -2), (9, -2), (14, -2)], -2)),\n    (1, 1, 0, ([(4, -3), (9, -3), (14, -3), (19, -3)], -5)),\n    (3, 0, 3, ([(4, -1), (9, -1), (14, -1), (19, -1)], -1)),\n    (8, 4, 0, ([(4, -1), (24, -1)], -1)),\n    (8, 4, 1, ([(9, -1), (24, -1)], -1)),\n    (8, 4, 2, ([(14, -1), (24, -1)], -1)),\n    (8, 4, 3, ([(19, -1), (24, -1)], -1))]\n\nnoncomputable def cert21 : List St :=\n  [(1, 3, 2, ([(4, -1), (9, -1), (24, -2)], -2)),\n    (1, 0, 2, ([(4, -1), (9, -1), (14, -1), (24, -3)], -3)),\n    (1, 0, 2, ([(4, -1), (9, -1), (14, -1), (19, -1), (24, -4)], -4)),\n    (2, 7, 3, ([(4, -3), (9, -3), (14, -3), (19, -3)], -3)),\n    (1, 1, 0, ([(4, -4), (9, -4), (14, -4), (19, -4), (24, -4)], -7)),\n    (3, 0, 4, ([(4, -1), (9, -1), (14, -1), (19, -1), (24, -1)], -1)),\n    (8, 5, 0, ([(4, -1), (29, -1)], -1)),\n    (8, 5, 1, ([(9, -1), (29, -1)], -1))]\n\nnoncomputable def cert22 : List St :=\n  [(8, 5, 2, ([(14, -1), (29, -1)], -1)),\n    (8, 5, 3, ([(19, -1), (29, -1)], -1)),\n    (8, 5, 4, ([(24, -1), (29, -1)], -1)),\n    (1, 4, 3, ([(4, -1), (9, -1), (29, -2)], -2)),\n    (1, 0, 3, ([(4, -1), (9, -1), (14, -1), (29, -3)], -3)),\n    (1, 0, 3, ([(4, -1), (9, -1), (14, -1), (19, -1), (29, -4)], -4)),\n    (1, 0, 3, ([(4, -1), (9, -1), (14, -1), (19, -1), (24, -1), (29, -5)], -5)),\n    (2, 9, 4, ([(4, -4), (9, -4), (14, -4), (19, -4), (24, -4)], -4))]\n\nnoncomputable def cert23 : List St :=\n  [(1, 1, 0, ([(4, -5), (9, -5), (14, -5), (19, -5), (24, -5), (29, -5)], -9)),\n    (3, 0, 5, ([(4, -1), (9, -1), (14, -1), (19, -1), (24, -1), (29, -1)], -1)),\n    (1, 185, 184, ([(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1)], 2)),\n    (1, 0, 184, ([(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1)], 3)),\n    (1, 0, 184, ([(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1)], 4)),\n    (1, 0, 184, ([(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1)], 5)),\n    (1, 0, 184, ([(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1), (25, 1), (26, 1), (27, 1), (28, 1), (29, 1)], 6)),\n    (1, 149, 113, ([(0, -1), (1, -1), (5, -1), (6, -1), (10, -1), (11, -1), (15, -1), (16, -1), (20, -1), (21, -1), (25, -1), (26, -1)], -2))]\n\nnoncomputable def cert24 : List St :=\n  [(1, 0, 78, ([(0, -1), (1, -1), (2, -1), (5, -1), (6, -1), (7, -1), (10, -1), (11, -1), (12, -1), (15, -1), (16, -1), (17, -1), (20, -1), (21, -1), (22, -1), (25, -1), (26, -1), (27, -1)], -3)),\n    (1, 0, 43, ([(0, -1), (1, -1), (2, -1), (3, -1), (5, -1), (6, -1), (7, -1), (8, -1), (10, -1), (11, -1), (12, -1), (13, -1), (15, -1), (16, -1), (17, -1), (18, -1), (20, -1), (21, -1), (22, -1), (23, -1), (25, -1), (26, -1), (27, -1), (28, -1)], -4)),\n    (1, 0, 8, ([(0, -1), (1, -1), (2, -1), (3, -1), (4, -1), (5, -1), (6, -1), (7, -1), (8, -1), (9, -1), (10, -1), (11, -1), (12, -1), (13, -1), (14, -1), (15, -1), (16, -1), (17, -1), (18, -1), (19, -1), (20, -1), (21, -1), (22, -1), (23, -1), (24, -1), (25, -1), (26, -1), (27, -1), (28, -1), (29, -1)], -5)),\n    (1, 4, 0, ([], 1))]\n\nnoncomputable def cert : List St :=\n  cert0 ++ cert1 ++ cert2 ++ cert3 ++ cert4 ++ cert5 ++ cert6 ++ cert7 ++ cert8 ++ cert9 ++ cert10 ++ cert11 ++ cert12 ++ cert13 ++ cert14 ++ cert15 ++ cert16 ++ cert17 ++ cert18 ++ cert19 ++ cert20 ++ cert21 ++ cert22 ++ cert23 ++ cert24\n\nset_option maxRecDepth 100000 in\nlemma cert_chk : chk cert = true := by decide +kernel\n\nend PEqualNP.Outside.L_meta_9708\n\ntheorem PEqualNP.Outside.L_meta_9708 :\n    ∃ π : List (PEqualNP.Search.CPLine (Fin (5 + 1) × Fin 5)),\n      PEqualNP.Search.IsCPRefutation (PEqualNP.ProofComplexity.PHP (5 + 1) 5) π ∧ π.length ≤ 196 :=\n  PEqualNP.Outside.L_meta_9708.chk_sound _ PEqualNP.Outside.L_meta_9708.cert_chk\n\n", "lean_sha256": "c646a506e0131b8840c3ee0ca858d9b1e1172ae407fba3ffb31f7477ea7b1072", "check_log": ["lake build PEqualNP.Outside.L_meta_9708 (lean 4.36.0, Mathlib cache): Build completed successfully (5151 jobs)", "#print axioms PEqualNP.Outside.L_meta_9708: depends on axioms: [propext, Classical.choice, Quot.sound]", "node tools/check-lean.mjs ... check: CHECKER FAULT, verifier did not build (tools/bin/lake needs elan, not installed here); no ACCEPTED printed, so claim is unchecked. The file proves the 196-line bound, not the posted 195, so it would be rejected against the step statement anyway.", "Kernel timings on the 196-line run (whole file, wall): decide +kernel 6.5s; rfl 10.2s; explicit term of_decide_eq_true (Eq.refl true) 10.8s; plain decide 10.1s. Peak memory about 3.2 GB; file 22.5 KB."], "discoveries": ["Theorem proved: exists pi, IsCPRefutation (PHP (5+1) 5) pi and pi.length <= 196 (lemma file; the posted bound is 195, which this does not reach).", "The 196-line run: 6 pigeon axioms; per hole 36 lines (S2 from one pair axiom; S_k for k=3..6 from k-1 pair axioms, k-2 adds, a multiple of S_{k-1}, one add, one division by k-1, costing 6, 8, 10, 12); 5 adds over pigeon lines, 4 over hole lines, 1 final add giving 0 >= 1. Total 6+180+5+4+1 = 196. No Boolean axioms are needed.", "Encoding: sparse lines as List (Nat x Int) x Int with ev summing duplicate coefficients; premises named by relative index into the newest-first list; mem_of turns an index into the membership IsCPDerivation asks for; each step carries its claimed line, checked by a Bool over 30 coordinates; the final line 0 >= 1 is found by evaluation in chk.", "Writing the certificate as one 196-tuple list literal cost 151 s of typeclass inference at elaboration; chunks of 8 steps bring it to 0.5 s. noncomputable def avoids code generation.", "decide +kernel is the fastest way of the four tried; the kernel part itself is about 2.6 s."], "dead_ends": ["Did not find a 195-line run; the per-hole chain is the standard one and no saving was searched beyond it.", "One-literal certificate list: elaboration too slow (see above)."], "counterexamples": [], "next": ["Search for a one-line saving (shared pair axioms, a different final summation) with a small solver; the twin step L-meta-9710 claims none exists.", "Run tools/check-lean.mjs where elan is available.", "Any 195-line run can reuse this encoding by changing only the certificate and the bound."], "sources": ["https://github.com/open-goat/pequalnp-proofs", "https://pequalnp.com/desk/row?gap=L-meta-9708"], "step_state": "leased by another holder (desk step read: state leased, holders 1); row level open, answer_known false"}