{"agent":"CD06","group":"counterexample discovery","gap":"L-meta-17390","strategy":"One strategy: symmetry-broken SAT synthesis at 10–13 gates on 21 frontier rows, exhaustive mutation of the handed 14-gate witness, and annealed local search over 13-gate circuits.","status":"partial","summary":"No exact proof or refutation. New kernel-checked helper proves that the exact original 13-gate claim is equivalent to finding a size-13 Monotone2 circuit correct on the 21 frontier rows, including the bridge to every Fin 9 → Bool input and the official evaluator. SAT at 10, 11, 12 and 13 gates returned UNKNOWN. A finite mutation check rejected all 92,456 cases; local search made 67,153,942 proposals and its best candidate fails on 25 of 512 inputs. The inherited 14-gate companion was independently rechecked. No official submission.","desk":{"state":"open","time":"2026-11-26T06:27Z","timePrecision":"minute, UTC","getCount":1,"url":"https://pequalnp.com/desk/step?gap=L-meta-17390","observedSay":"Open: no pull request waiting and nobody holds it. Lease it with /desk/next before you build. Never change a file that is already on main. Every proof is a NEW file; a recorded proof is final.","action":"Read as data. No lease or write."},"statementSha256":"3a6b7a3a820272375169fb191a04fd1ac8594fdc1849ed746eaaf0eefe286e6a","target":{"statement":"∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 13 ∧ ∀ x : Fin 9 → Bool, C.eval (List.ofFn x) = ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) || (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) || (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6))","proved":false,"refuted":false,"officialFile":"lean/PEqualNP/Outside/L_meta_17390.lean","officialTheorem":"PEqualNP.Outside.L_meta_17390"},"claims":[{"statement":"(∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 13 ∧ ∀ x : Fin 9 → Bool, C.eval (List.ofFn x) = ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) || (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) || (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6))) ↔ (∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 13 ∧ ∀ a : Fin 512, a ∈ PEqualNP.Outside.L_meta_17390.minimalTrue ∨ a ∈ PEqualNP.Outside.L_meta_17390.maximalFalse → C.eval (PEqualNP.Outside.L_meta_17390.maskInput a) = PEqualNP.Outside.L_meta_17390.matching a)","kind":"helper","declaration":"PEqualNP.Outside.L_meta_17390.gap_iff_frontier","path":"artifacts/goal/batches/e4-p3-a/items/cd06/Frontier.lean","sha256":"9875259c99c89b0b113203fcd894050a84ee8d239eadccfa1f9c33dfcfed7f65","elaboration":{"status":"pass","exitCode":0,"tool":"Lean v4.36.0"},"guard":{"status":"fail","exitCode":1,"reason":"Expected: contains only helper theorems, not the exact top-level gap theorem. It is not a submission candidate."},"check-lean":{"mode":"check","exitCode":null,"status":"not-run","reason":"No exact official-form candidate exists; direct Lean elaboration is not official acceptance."},"axioms":"pass","axiomList":["propext","Classical.choice","Quot.sound"],"source":"New complete proof in Frontier.lean, using the unchanged pinned definitions root and the exact public statement on the left of the equivalence.","statementExplanation":"The exact original statement (recorded in target.statement) is equivalent to existence of C with Monotone2 C and C.size ≤ 13 such that C.eval (maskInput a) = matching a for every a in minimalTrue or maximalFalse. All definitions and the exact theorem type are in the embedded source."},{"statement":"∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 14 ∧ ∀ x : Fin 9 → Bool, C.eval (List.ofFn x) = ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) || (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) || (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6))","kind":"companion","path":"artifacts/goal/batches/e4-p3-a/items/cd06/Le14.lean","sha256":"c77f1dc0963842c7c07cde7420abeed6370c91cf974c70c0092d5525a1df28f2","elaboration":{"status":"pass","exitCode":0,"tool":"Lean v4.36.0"},"guard":{"status":"pass","exitCode":0,"scope":"imports/plain-file/namespace only"},"check-lean":{"mode":"check","exitCode":null,"status":"not-run","reason":"No exact official-form candidate exists; direct Lean elaboration is not official acceptance."},"axioms":"pass","axiomList":["propext","Quot.sound"],"source":"Exact source and witness inherited from after-p3, hash-checked and independently re-elaborated; not an original discovery."},{"statement":"None of the 92,456 cases in the explicitly specified contraction-plus-one-gate-replacement family computes the target. The best candidates have one frontier error and 25 all-input errors. This is not a general circuit lower bound.","kind":"evidence","path":"artifacts/goal/batches/e4-p3-a/items/cd06/verify.py","sha256":"3754f84c662c4b1e7f305cef958bcb2db18f4ccb1fda410f39cd76340f4b2859","elaboration":{"status":"not-run","exitCode":null},"guard":{"status":"not-run","exitCode":null},"check-lean":{"mode":null,"exitCode":null,"status":"not-run"},"axioms":"not-run","programCheck":{"exitCode":0,"inputs":512,"independentTarget":"All six permutations of right vertices, not search.py term list.","caseCountsIncludeDuplicates":true},"source":"Self-contained exhaustive verifier; complete code and output embedded."}],"artifacts":[{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/Frontier.lean","sha256":"9875259c99c89b0b113203fcd894050a84ee8d239eadccfa1f9c33dfcfed7f65","content":"import Mathlib\nimport PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_meta_17390\n\n\n/-- Binary edge-mask order; these are masks, not gate indices. -/\ndef Below (a b : Fin 512) : Prop := Nat.land a.val b.val = a.val\n\ndef matching (m : Fin 512) : Bool :=\n  let x := fun i => Nat.testBit m.val i\n  ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) ||\n   (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) ||\n   (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6))\n\ndef minimalTrue : List (Fin 512) := [84, 98, 140, 161, 266, 273]\ndef maximalFalse : List (Fin 512) :=\n  [63, 79, 121, 151, 186, 219, 295, 316, 365, 438, 455, 457, 466, 484, 504]\n\ndef covered (m : Fin 512) : Bool :=\n  if matching m then\n    minimalTrue.any (fun p => (Nat.land p.val m.val == p.val) && matching p)\n  else\n    maximalFalse.any (fun q => (Nat.land m.val q.val == m.val) && !matching q)\n\n/-- Closed finite certificate, expressed using Boolean list operations. -/\ntheorem all_covered : (List.finRange 512).all covered = true := by\n  decide +kernel\n\n/-- Every mask lies above a true frontier point or below a false frontier point. -/\ntheorem frontier_coverage : ∀ m : Fin 512,\n    (matching m = true → ∃ p ∈ minimalTrue, Below p m ∧ matching p = true) ∧\n    (matching m = false → ∃ q ∈ maximalFalse, Below m q ∧ matching q = false) := by\n  intro m\n  have hc : covered m = true := List.all_eq_true.mp all_covered m (by simp)\n  constructor\n  · intro hm\n    simpa [covered, hm, List.any_eq_true, Bool.and_eq_true, Below] using hc\n  · intro hm\n    simpa [covered, hm, List.any_eq_true, Bool.and_eq_true, Below] using hc\n\n/-- Any monotone truth table agreeing on the 21 listed rows agrees everywhere.\nThis is a helper about truth tables, not the 13-gate existence claim. -/\ntheorem frontier_suffices (g : Fin 512 → Bool)\n    (mono : ∀ a b, Below a b → g a = true → g b = true)\n    (agree : ∀ a, a ∈ minimalTrue ∨ a ∈ maximalFalse → g a = matching a) :\n    ∀ a, g a = matching a := by\n  intro a\n  cases ha : matching a with\n  | false =>\n    obtain ⟨b, hb, hab, hfb⟩ := (frontier_coverage a).2 ha\n    have hb0 : g b = false := (agree b (Or.inr hb)).trans hfb\n    cases hga : g a with\n    | false => rfl\n    | true =>\n      have hb1 := mono a b hab hga\n      rw [hb0] at hb1\n      contradiction\n  | true =>\n    obtain ⟨p, hp, hpa, hfp⟩ := (frontier_coverage a).1 ha\n    exact mono p a hpa ((agree p (Or.inl hp)).trans hfp)\n\nopen PEqualNP.CircuitLowerBounds\n\ndef TruthLE (a b : Bool) : Prop := a = true → b = true\n\ntheorem getD_mono {u v : List Bool} (h : List.Forall₂ TruthLE u v) :\n    ∀ i, u.getD i false = true → v.getD i false = true := by\n  induction h with\n  | nil => simp\n  | @cons a b u v hab huv ih =>\n    intro i\n    cases i with\n    | zero => simpa [TruthLE] using hab\n    | succ i => simpa using ih i\n\ntheorem gate_mono (g : Gate) (hop : g.op = .and ∨ g.op = .or)\n    {u v : List Bool} (hw : List.Forall₂ TruthLE u v) :\n    TruthLE (g.op.eval (g.inputs.map (fun i => u.getD i false)))\n      (g.op.eval (g.inputs.map (fun i => v.getD i false))) := by\n  intro ht\n  rcases hop with hop | hop\n  · simp only [hop, GateOp.eval, List.all_map, Function.comp_def, id_eq,\n      List.all_eq_true] at ht ⊢\n    intro i hi\n    exact getD_mono hw i (ht i hi)\n  · simp only [hop, GateOp.eval, List.any_map, Function.comp_def, id_eq,\n      List.any_eq_true] at ht ⊢\n    obtain ⟨i, hi, ht⟩ := ht\n    exact ⟨i, hi, getD_mono hw i ht⟩\n\ntheorem fold_mono (gs : List Gate) : ∀ u v : List Bool,\n    (∀ g ∈ gs, g.op = .and ∨ g.op = .or) →\n    List.Forall₂ TruthLE u v →\n    List.Forall₂ TruthLE\n      (gs.foldl (fun w g => w ++ [g.op.eval (g.inputs.map (fun i => w.getD i false))]) u)\n      (gs.foldl (fun w g => w ++ [g.op.eval (g.inputs.map (fun i => w.getD i false))]) v) := by\n  induction gs with\n  | nil => intro u v hg hw; exact hw\n  | cons g gs ih =>\n    intro u v hg hw\n    simp only [List.foldl_cons]\n    apply ih\n    · intro h hh\n      exact hg h (by simp [hh])\n    · exact List.rel_append hw (List.Forall₂.cons (gate_mono g (hg g (by simp)) hw) List.Forall₂.nil)\n\ntheorem circuit_eval_mono (C : Circuit) (hc : PEqualNP.MetaComplexity.Monotone2 C)\n    {u v : List Bool} (hw : List.Forall₂ TruthLE u v) :\n    TruthLE (C.eval u) (C.eval v) := by\n  have hops : ∀ g ∈ C.gates, g.op = .and ∨ g.op = .or := by\n    intro g hg\n    simpa using (hc g hg).1\n  exact getD_mono (fold_mono C.gates u v hops hw) C.output\n\ndef maskInput (m : Fin 512) : List Bool :=\n  List.ofFn (fun i : Fin 9 => Nat.testBit m.val i.val)\n\ntheorem below_bits {a b : Fin 512} (hab : Below a b) (i : Nat) :\n    TruthLE (Nat.testBit a.val i) (Nat.testBit b.val i) := by\n  have h := congrArg (fun n => Nat.testBit n i) hab\n  simp only [Nat.land_eq, Nat.testBit_and] at h\n  unfold TruthLE\n  cases ha : Nat.testBit a.val i <;> cases hb : Nat.testBit b.val i <;> simp_all\n\ntheorem maskInput_mono {a b : Fin 512} (hab : Below a b) :\n    List.Forall₂ TruthLE (maskInput a) (maskInput b) := by\n  simp only [maskInput, List.ofFn_succ]\n  repeat' apply List.Forall₂.cons\n  all_goals first | exact List.Forall₂.nil | exact below_bits hab _\n\n/-- The official evaluator needs only these 21 masks, even with the definition's\nconstant, unary, invalid-index and future-wire behaviours. -/\ntheorem circuit_frontier_suffices (C : Circuit)\n    (hc : PEqualNP.MetaComplexity.Monotone2 C)\n    (agree : ∀ a, a ∈ minimalTrue ∨ a ∈ maximalFalse →\n      C.eval (maskInput a) = matching a) :\n    ∀ a, C.eval (maskInput a) = matching a := by\n  apply frontier_suffices (fun a => C.eval (maskInput a))\n  · intro a b hab\n    exact circuit_eval_mono C hc (maskInput_mono hab)\n  · exact agree\n\ndef maskValue (a b c d e f g h i : Bool) : Nat :=\n  (if a then 1 else 0) + (if b then 2 else 0) + (if c then 4 else 0) +\n  (if d then 8 else 0) + (if e then 16 else 0) + (if f then 32 else 0) +\n  (if g then 64 else 0) + (if h then 128 else 0) + (if i then 256 else 0)\n\ntheorem mask_lt : ∀ a b c d e f g h i : Bool, maskValue a b c d e f g h i < 512 := by\n  decide +kernel\n\ntheorem decode_correct : ∀ a b c d e f g h i : Bool,\n    maskInput ⟨maskValue a b c d e f g h i, mask_lt a b c d e f g h i⟩ =\n      [a, b, c, d, e, f, g, h, i] := by\n  decide +kernel\n\ntheorem ofFn9 (x : Fin 9 → Bool) :\n    List.ofFn x = [x 0, x 1, x 2, x 3, x 4, x 5, x 6, x 7, x 8] := by\n  simp [List.ofFn_succ]\n\ntheorem represent_input (x : Fin 9 → Bool) :\n    ∃ m : Fin 512, maskInput m = List.ofFn x := by\n  refine ⟨⟨maskValue (x 0) (x 1) (x 2) (x 3) (x 4) (x 5) (x 6) (x 7) (x 8),\n    mask_lt (x 0) (x 1) (x 2) (x 3) (x 4) (x 5) (x 6) (x 7) (x 8)⟩, ?_⟩\n  rw [ofFn9]\n  exact decode_correct _ _ _ _ _ _ _ _ _\n\ndef target9 (x : Fin 9 → Bool) : Bool :=\n  ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) ||\n   (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) ||\n   (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6))\n\n/-- Frontier agreement suffices for precisely the input type in the gap. -/\ntheorem official_frontier_suffices (C : Circuit)\n    (hc : PEqualNP.MetaComplexity.Monotone2 C)\n    (agree : ∀ a, a ∈ minimalTrue ∨ a ∈ maximalFalse →\n      C.eval (maskInput a) = matching a) :\n    ∀ x : Fin 9 → Bool, C.eval (List.ofFn x) = target9 x := by\n  intro x\n  obtain ⟨m, hm⟩ := represent_input x\n  have heq : (fun i : Fin 9 => Nat.testBit m.val i.val) = x :=\n    List.ofFn_injective hm\n  calc\n    C.eval (List.ofFn x) = C.eval (maskInput m) := congrArg C.eval hm.symm\n    _ = matching m := circuit_frontier_suffices C hc agree m\n    _ = target9 x := by\n      change target9 (fun i : Fin 9 => Nat.testBit m.val i.val) = target9 x\n      rw [heq]\n\n/-- Exact finite semantic reduction. This equivalence proves neither side. -/\ntheorem gap_iff_frontier :\n    (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n      PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 13 ∧\n      ∀ x : Fin 9 → Bool, C.eval (List.ofFn x) =\n        ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) ||\n         (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) ||\n         (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6))) ↔\n    (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n      PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 13 ∧\n      ∀ a, a ∈ minimalTrue ∨ a ∈ maximalFalse →\n        C.eval (maskInput a) = matching a) := by\n  constructor\n  · rintro ⟨C, hc, hs, correct⟩\n    refine ⟨C, hc, hs, ?_⟩\n    intro a ha\n    exact correct (fun i : Fin 9 => Nat.testBit a.val i.val)\n  · rintro ⟨C, hc, hs, agree⟩\n    exact ⟨C, hc, hs, official_frontier_suffices C hc agree⟩\n\nend PEqualNP.Outside.L_meta_17390\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/Le14.lean","sha256":"c77f1dc0963842c7c07cde7420abeed6370c91cf974c70c0092d5525a1df28f2","content":"import Mathlib\nimport PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_meta_17390_le14\n\nopen PEqualNP.CircuitLowerBounds\n\ndef c14 : Circuit := ⟨[⟨.and, [1, 5]⟩, ⟨.and, [2, 4]⟩, ⟨.and, [0, 5]⟩, ⟨.or, [9, 10]⟩, ⟨.and, [2, 3]⟩, ⟨.and, [0, 4]⟩, ⟨.and, [1, 3]⟩, ⟨.or, [14, 15]⟩, ⟨.and, [6, 12]⟩, ⟨.and, [8, 16]⟩, ⟨.or, [11, 13]⟩, ⟨.and, [7, 19]⟩, ⟨.or, [18, 20]⟩, ⟨.or, [17, 21]⟩], 22⟩\n\ntheorem mono : PEqualNP.MetaComplexity.Monotone2 c14 := by\n  intro g hg\n  simp only [c14, List.mem_cons, List.not_mem_nil, or_false] at hg\n  rcases hg with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl <;> simp\n\ntheorem ofFn9 (x : Fin 9 → Bool) : List.ofFn x = [x 0, x 1, x 2, x 3, x 4, x 5, x 6, x 7, x 8] := by\n  simp [List.ofFn_succ]\n\ntheorem correct : ∀ a b c d e f g h i : Bool, c14.eval [a, b, c, d, e, f, g, h, i] =\n    ((a && e && i) || (a && f && h) || (b && d && i) || (b && f && g) || (c && d && h) || (c && e && g)) := by\n  decide +kernel\n\nend PEqualNP.Outside.L_meta_17390_le14\n\n/-- Companion, NOT the target: the same statement with 14 in place of 13. -/\ntheorem PEqualNP.Outside.L_meta_17390_le14 : ∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 14 ∧ ∀ x : Fin 9 → Bool, C.eval (List.ofFn x) = ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) || (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) || (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6)) := by\n  refine ⟨PEqualNP.Outside.L_meta_17390_le14.c14, PEqualNP.Outside.L_meta_17390_le14.mono, by decide, fun x => ?_⟩\n  rw [PEqualNP.Outside.L_meta_17390_le14.ofFn9 x]\n  exact PEqualNP.Outside.L_meta_17390_le14.correct _ _ _ _ _ _ _ _ _\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/search.py","sha256":"465b50d4dd690ce7a4d25a8cb09eff5a944dcba67e4b7c3d002d564fb1725730","content":"\"\"\"Bounded SAT synthesis and mutation search. No UNSAT theorem is claimed.\nRun: PYTHONDONTWRITEBYTECODE=1 python3 search.py sat K SECONDS SEED [proof]\n     PYTHONDONTWRITEBYTECODE=1 python3 search.py local SECONDS SEED\nVendored python-sat is used only by the SAT subcommand.\n\"\"\"\nimport sys, pathlib, itertools, random, time, json, math, hashlib, threading\nsys.dont_write_bytecode = True\nBASE = pathlib.Path(__file__).resolve().parent\nTERMS = ((0,4,8),(0,5,7),(1,3,8),(1,5,6),(2,3,7),(2,4,6))\ndef target(m):\n    return any(all((m >> i) & 1 for i in t) for t in TERMS)\nPOS = [m for m in range(512) if target(m) and all(not target(m ^ (1<<i)) for i in range(9) if (m>>i)&1)]\nNEG = [m for m in range(512) if not target(m) and all(target(m | (1<<i)) for i in range(9) if not (m>>i)&1)]\nROWS = POS + NEG\nINPUTS = [sum(((m>>i)&1)<<r for r,m in enumerate(ROWS)) for i in range(9)]\nWANT = (1 << len(POS))-1\nC14 = [(1,1,5),(1,2,4),(1,0,5),(0,9,10),(1,2,3),(1,0,4),(1,1,3),(0,14,15),(1,6,12),(1,8,16),(0,11,13),(1,7,19),(0,18,20),(0,17,21)]\ndef evaluate(gs, inputs=INPUTS):\n    w = inputs.copy()\n    for op,a,b in gs:\n        assert op in (0,1) and 0 <= a < len(w) and 0 <= b < len(w)\n        w.append(w[a] & w[b] if op else w[a] | w[b])\n    return w[-1]\ndef errors(gs):\n    return (evaluate(gs)^WANT).bit_count()\ndef check512(gs):\n    bad=[]\n    for m in range(512):\n        w=[(m>>i)&1 for i in range(9)]\n        for op,a,b in gs:\n            w.append((w[a]&w[b]) if op else (w[a]|w[b]))\n        if bool(w[-1]) != target(m): bad.append(m)\n    return bad\n\ndef sat(K, seconds, seed, proof=False, fixed=None):\n    sys.path.insert(0, str(BASE/'vendor'))\n    from pysat.solvers import Solver\n    from pysat.card import CardEnc, EncType\n    from pysat.formula import IDPool\n    pool=IDPool(); clauses=[]; sel=[]; ops=[]; vals=[]; prefixes=[]\n    # Ordered, distinct predecessors; one and only one selected pair per gate.\n    # Order pairs by (max predecessor, min predecessor).\n    for g in range(K):\n        pairs=[(a,b) for b in range(1,9+g) for a in range(b)]\n        s={p:pool.id(('s',g,*p)) for p in pairs};sel.append(s)\n        clauses.extend(CardEnc.equals(list(s.values()),bound=1,vpool=pool,encoding=EncType.seqcounter).clauses)\n        ops.append(pool.id(('op',g))) # true=AND, false=OR\n        vals.append([pool.id(('v',g,r)) for r in range(21)])\n        pref=[]\n        for j,p in enumerate(pairs):\n            v=pool.id(('prefix',g,j)); pref.append(v)\n            if j==0:\n                clauses.extend([[-v,s[p]],[v,-s[p]]])\n            else:\n                u=pref[-2]\n                clauses.extend([[-u,v],[-s[p],v],[-v,u,s[p]]])\n        prefixes.append(pref)\n        if g:\n            for j,p in enumerate(pairs):\n                if j < len(prefixes[g-1])-1:\n                    clauses.append([-s[p],prefixes[g-1][j]])\n                if p in sel[g-1]:\n                    # Equal pairs can only be AND followed by OR.\n                    clauses.append([-sel[g-1][p],-s[p],ops[g-1]])\n                    clauses.append([-sel[g-1][p],-s[p],-ops[g]])\n    # First gate: minimum pair orbit under row/column permutations and transpose.\n    # Greedy lexicographic topological order makes all pair keys nondecreasing.\n    # Across graph symmetries, the minimum possible pair is (0,1) (incident)\n    # or (1,3) (disjoint). These restrictions are for this search, not a Lean lemma.\n    clauses.append([sel[0][(0,1)],sel[0][(1,3)]])\n    def lit(w,r,neg=False):\n        t=bool((ROWS[r]>>w)&1) if w<9 else vals[w-9][r]\n        return (not t if neg else t) if isinstance(t,bool) else (-t if neg else t)\n    def add(pre, xs):\n        if any(x is True for x in xs): return\n        clauses.append(pre+[x for x in xs if x is not False])\n    for g in range(K):\n        for (a,b),s in sel[g].items():\n            for r in range(21):\n                z=vals[g][r]; x=lit(a,r); y=lit(b,r); nx=lit(a,r,True);ny=lit(b,r,True)\n                pre=[-s,-ops[g]]\n                add(pre,[-z,x]);add(pre,[-z,y]);add(pre,[z,nx,ny])\n                pre=[-s,ops[g]]\n                add(pre,[z,nx]);add(pre,[z,ny]);add(pre,[-z,x,y])\n    for r in range(21): clauses.append([vals[-1][r] if r<len(POS) else -vals[-1][r]])\n    for g in range(K-1):\n        clauses.append([s for h in range(g+1,K) for (a,b),s in sel[h].items() if 9+g in (a,b)])\n    random.Random(seed).shuffle(clauses)\n    h=hashlib.sha256()\n    for c in clauses: h.update((' '.join(map(str,c))+' 0\\n').encode())\n    print(json.dumps(dict(event='start',K=K,seconds=seconds,seed=seed,variables=pool.top,clauses=len(clauses),clauseSha256=h.hexdigest(),rows=ROWS)),flush=True)\n    # Glucose supports asynchronous interrupt; proof traces are retained when requested.\n    with Solver(name='glucose4',bootstrap_with=clauses,with_proof=proof) as solver:\n        timer=threading.Timer(seconds,solver.interrupt); timer.start(); start=time.monotonic()\n        try:\n            assumptions=[] if fixed is None else [q for g,(op,a,b) in enumerate(fixed) for q in (sel[g][a,b],ops[g] if op else -ops[g])]\n            res=solver.solve_limited(assumptions=assumptions,expect_interrupt=True)\n        finally: timer.cancel()\n        out=dict(event='result',K=K,seed=seed,result=('SAT' if res else 'UNSAT-unchecked' if res is False else 'UNKNOWN'),elapsed=time.monotonic()-start,stats=solver.accum_stats())\n        if res:\n            model=set(solver.get_model()); gs=[]\n            for g in range(K):\n                hits=[p for p,v in sel[g].items() if v in model]; assert len(hits)==1\n                a,b=hits[0];gs.append((int(ops[g] in model),a,b))\n            bad=check512(gs);out.update(gates=gs,failed512=bad)\n            assert not bad\n        elif res is False and proof:\n            trace=solver.get_proof();out['proofLines']=len(trace)\n            path=BASE/f'k{K}-seed{seed}.drat'\n            path.write_text('\\n'.join(trace)+'\\n');out['proofPath']=path.name\n        print(json.dumps(out),flush=True)\n        return out\n\ndef delete_gate(gs,j,replace):\n    # replace deleted output by one of its predecessors and renumber later wires\n    old=9+j\n    def remap(w):\n        if w==old: w=replace\n        return w-1 if w>old else w\n    return [(op,remap(a),remap(b)) for i,(op,a,b) in enumerate(gs) if i!=j]\ndef local(seconds,seed):\n    rng=random.Random(seed); start=time.monotonic();best=22;bestgs=None;steps=0;restarts=0\n    seeds=[delete_gate(C14,j,p) for j,g in enumerate(C14) for p in g[1:]]\n    for s in seeds: assert len(s)==13\n    while time.monotonic()-start<seconds:\n        restarts+=1\n        if restarts<=len(seeds): gs=seeds[restarts-1].copy()\n        elif bestgs is not None and rng.random()<.75:\n            gs=bestgs.copy()\n            for _ in range(rng.randrange(1,6)):\n                j=rng.randrange(13);a,b=sorted(rng.sample(range(9+j),2));gs[j]=(rng.randrange(2),a,b)\n        else:\n            gs=[(rng.randrange(2),*sorted(rng.sample(range(9+j),2))) for j in range(13)]\n        score=errors(gs)\n        for t in range(10000):\n            if time.monotonic()-start>=seconds: break\n            steps+=1\n            if score<best:\n                best=score;bestgs=gs.copy()\n                print(json.dumps(dict(event='improvement',seed=seed,steps=steps,restarts=restarts,frontierErrors=best,failed512=check512(gs),gates=gs)),flush=True)\n            if best==0:\n                assert not check512(bestgs)\n                break\n            j=rng.randrange(13); old=gs[j];op,a,b=old\n            mode=rng.randrange(4)\n            if mode==0: op^=1\n            elif mode==1: a=rng.randrange(9+j)\n            elif mode==2: b=rng.randrange(9+j)\n            else: op=rng.randrange(2);a,b=rng.sample(range(9+j),2)\n            a,b=sorted((a,b));gs[j]=(op,a,b)\n            new=errors(gs)\n            temp=.05+.55*(1-(t%2000)/2000)\n            if new<=score or rng.random()<math.exp((score-new)/temp): score=new\n            else: gs[j]=old\n        if best==0: break\n    out=dict(event='local-result',seconds=seconds,elapsed=time.monotonic()-start,seed=seed,steps=steps,restarts=restarts,frontierErrors=best,gates=bestgs,failed512=check512(bestgs))\n    print(json.dumps(out),flush=True);return out\nif __name__=='__main__':\n    if sys.argv[1]=='sat':sat(int(sys.argv[2]),float(sys.argv[3]),int(sys.argv[4]),len(sys.argv)>5)\n    elif sys.argv[1]=='local':local(float(sys.argv[2]),int(sys.argv[3]))\n    elif sys.argv[1]=='selftest':\n        assert (len(POS),len(NEG))==(6,15)\n        assert not check512(C14)\n        # Every true point lies above a minimal true point and every false point\n        # below a maximal false point. This is the finite frontier coverage check.\n        for m in range(512):\n            assert (any((p&m)==p for p in POS) if target(m) else any((m&n)==m for n in NEG))\n        print(json.dumps(dict(frontier=ROWS,minimalTrue=POS,maximalFalse=NEG,c14Failed=check512(C14),coverage=512)))\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/verify.py","sha256":"3754f84c662c4b1e7f305cef958bcb2db18f4ccb1fda410f39cd76340f4b2859","content":"\"\"\"Independent, standard-library-only verification and finite mutation coverage.\nRun python3 verify.py; it writes JSON to stdout and never loads the SAT package.\nThis checks a specified finite neighbourhood, NOT the general 13-gate lower bound.\n\"\"\"\nimport itertools,json,pathlib,collections,hashlib\nBASE=pathlib.Path(__file__).resolve().parent\nPERMS=list(itertools.permutations(range(3)))\ndef matching(m):\n    return any(all(m & (1 << (3*r+p[r])) for r in range(3)) for p in PERMS)\nTARGET=sum(int(matching(m))<<m for m in range(512))\nINPUT=[sum(((m>>i)&1)<<m for m in range(512)) for i in range(9)]\nC14=[(1,1,5),(1,2,4),(1,0,5),(0,9,10),(1,2,3),(1,0,4),(1,1,3),(0,14,15),(1,6,12),(1,8,16),(0,11,13),(1,7,19),(0,18,20),(0,17,21)]\nFRONTIER=[84,98,140,161,266,273,63,79,121,151,186,219,295,316,365,438,455,457,466,484,504]\nFMASK=sum(1<<m for m in FRONTIER)\ndef table(gs,output=None):\n    w=INPUT.copy()\n    for op,a,b in gs:\n        assert op in (0,1) and 0<=a<len(w) and 0<=b<len(w)\n        w.append((w[a]&w[b]) if op else (w[a]|w[b]))\n    return w[-1 if output is None else output]\ndef scalar(gs,m,output=None):\n    w=[bool(m&(1<<i)) for i in range(9)]\n    for op,a,b in gs:w.append((w[a] and w[b]) if op else (w[a] or w[b]))\n    return w[-1 if output is None else output]\ndef contract(j,replacement):\n    d=9+j\n    def rewire(w):\n        if w==d:w=replacement\n        return w-int(w>d)\n    return ([(o,rewire(a),rewire(b)) for i,(o,a,b) in enumerate(C14) if i!=j],rewire(22))\ndef symmetry_maps():\n    for rp in PERMS:\n        for cp in PERMS:\n            for transpose in (False,True):\n                yield [(3*cp[c]+rp[r] if transpose else 3*rp[r]+cp[c]) for r in range(3) for c in range(3)]\ndef canonical(gs,permutation):\n    wires={i:permutation[i] for i in range(9)};pending=set(range(len(gs)));out=[]\n    while pending:\n        ready=[]\n        for j in pending:\n            op,a,b=gs[j]\n            if a in wires and b in wires:\n                a,b=sorted((wires[a],wires[b]));ready.append(((b,a,1-op),j,(op,a,b)))\n        _,j,gate=min(ready);wires[9+j]=9+len(out);out.append(gate);pending.remove(j)\n    return out\n\ndef main():\n    # Target generated by graph matchings, independently of search.py's six terms.\n    assert table(C14)==TARGET\n    assert all(scalar(C14,m)==matching(m) for m in range(512))\n    pos=[m for m in range(512) if matching(m) and all(not matching(m^(1<<i)) for i in range(9) if m&(1<<i))]\n    neg=[m for m in range(512) if not matching(m) and all(matching(m|(1<<i)) for i in range(9) if not m&(1<<i))]\n    assert pos+neg==FRONTIER\n    for m in range(512):\n        assert (any(p&m==p for p in pos) if matching(m) else any(n&m==m for n in neg))\n    maps=list(symmetry_maps()); assert len({tuple(p) for p in maps})==72\n    for p in maps:\n        for m in range(512):\n            transformed=sum(((m>>i)&1)<<p[i] for i in range(9))\n            assert matching(m)==matching(transformed)\n    normalized=min((canonical(C14,p) for p in maps),key=lambda gs:[(b,a,1-o) for o,a,b in gs])\n    assert normalized[0][1:] in ((0,1),(1,3)) and table(normalized)==TARGET\n    keys=[(b,a) for _,a,b in normalized];assert keys==sorted(keys)\n    # Exactly 28 contractions of the 14-gate witness, then every single-gate\n    # replacement by AND or OR on two prior wires, permitting repeated wires.\n    # Output wire is preserved, including contractions of the original root.\n    histogram=collections.Counter();total=0;best=513;best_frontier=22;bestgs=None;bestout=None;exact=[]\n    digest=hashlib.sha256()\n    for j in range(14):\n        for replacement in C14[j][1:]:\n            gs,output=contract(j,replacement)\n            for k in range(13):\n                old=gs[k]\n                for op in (0,1):\n                    for b in range(9+k):\n                        for a in range(b+1):\n                            gs[k]=(op,a,b)\n                            value=table(gs,output);diff=value^TARGET\n                            full=diff.bit_count();front=(diff&FMASK).bit_count()\n                            histogram[front]+=1;total+=1\n                            digest.update(value.to_bytes(64,'little'))\n                            best_frontier=min(best_frontier,front)\n                            if full<best:\n                                best=full;bestgs=gs.copy();bestout=output\n                            if not diff:exact.append(dict(gates=gs.copy(),output=output))\n                gs[k]=old\n    assert sum(histogram.values())==total\n    assert not exact\n    assert all(scalar(bestgs,m,bestout)==bool((table(bestgs,bestout)>>m)&1) for m in range(512))\n    logchecks=[]\n    for path in sorted(BASE.glob('local*.jsonl')):\n        for line in path.read_text().splitlines():\n            item=json.loads(line)\n            if 'gates' not in item:continue\n            gs=item['gates'];diff=table(gs)^TARGET\n            failed=[m for m in range(512) if diff&(1<<m)]\n            assert failed==item['failed512']\n            assert (diff&FMASK).bit_count()==item['frontierErrors']\n            assert all(scalar(gs,m)==bool((table(gs)>>m)&1) for m in range(512))\n            logchecks.append(dict(file=path.name,event=item['event'],frontierErrors=item['frontierErrors'],fullErrors=len(failed)))\n    print(json.dumps(dict(targetTrue=TARGET.bit_count(),minimalTrue=pos,maximalFalse=neg,frontierCoverage=512,symmetriesChecked=72,c14Correct512=True,canonical14=normalized,mutations=dict(contractions=28,gateReplacementCases=total,frontierErrorHistogram=dict(sorted(histogram.items())),bestFrontierErrors=best_frontier,bestFullErrors=best,bestCircuit=bestgs,bestOutput=bestout,exactMatches=len(exact),truthTablesSha256=digest.hexdigest()),localLogChecks=logchecks),sort_keys=True))\nif __name__=='__main__':main()\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/check_lean.py","sha256":"562b510bd094b7c3c652b6e424437240ac2ae7eac4d65137c9eff7b7611df071","content":"\"\"\"Direct elaboration and axiom inspection (not the project's official checker).\nUsage: python3 check_lean.py TOOLCHAIN_ROOT PACKAGES_ROOT DEFS_OLEAN_ROOT WORK_ROOT\nPackages must already be pinned/built; no network or project configuration changes.\n\"\"\"\nimport pathlib,subprocess,sys,os,json\nbase=pathlib.Path(__file__).resolve().parent\nruntime,packages,defs,work=map(lambda p:pathlib.Path(p).resolve(),sys.argv[1:5])\nwork.mkdir(parents=True,exist_ok=True)\npaths=[str(work),str(defs)]+[str(p/'.lake/build/lib/lean') for p in sorted(packages.iterdir()) if (p/'.lake/build/lib/lean').is_dir()]\nenv=os.environ.copy();env['LEAN_PATH']=':'.join(paths)\nlean=runtime/'bin/lean'\nchecks=[('Frontier',['PEqualNP.Outside.L_meta_17390.frontier_coverage','PEqualNP.Outside.L_meta_17390.frontier_suffices','PEqualNP.Outside.L_meta_17390.gap_iff_frontier']),('Le14',['PEqualNP.Outside.L_meta_17390_le14'])]\nfailed=False\nfor module,decls in checks:\n r=subprocess.run([str(lean),'-o',str(work/(module+'.olean')),str(base/(module+'.lean'))],env=env,text=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT)\n print(json.dumps(dict(event='elaboration',module=module,exit=r.returncode,output=r.stdout)),flush=True)\n if r.returncode:failed=True;continue\n p=work/('Axioms_'+module+'.lean');p.write_text('import '+module+'\\n'+''.join('#print axioms '+d+'\\n' for d in decls))\n r=subprocess.run([str(lean),str(p)],env=env,text=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT)\n print(json.dumps(dict(event='axioms',module=module,exit=r.returncode,output=r.stdout)),flush=True)\n failed=failed or r.returncode!=0\nsys.exit(int(failed))\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/statement.txt","sha256":"3a6b7a3a820272375169fb191a04fd1ac8594fdc1849ed746eaaf0eefe286e6a","content":"∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 13 ∧ ∀ x : Fin 9 → Bool, C.eval (List.ofFn x) = ((x 0 && x 4 && x 8) || (x 0 && x 5 && x 7) || (x 1 && x 3 && x 8) || (x 1 && x 5 && x 6) || (x 2 && x 3 && x 7) || (x 2 && x 4 && x 6))"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/verification.json","sha256":"051e7447af59fb03211ae6d20ebbd46a25ccf37aeebdd1aba11033bfc6367d5c","content":"{\"c14Correct512\": true, \"canonical14\": [[1, 1, 3], [1, 2, 3], [1, 0, 4], [1, 2, 4], [1, 0, 5], [1, 1, 5], [0, 9, 11], [0, 10, 13], [0, 12, 14], [1, 8, 15], [1, 7, 16], [1, 6, 17], [0, 18, 19], [0, 20, 21]], \"frontierCoverage\": 512, \"localLogChecks\": [{\"event\": \"improvement\", \"file\": \"local.jsonl\", \"frontierErrors\": 4, \"fullErrors\": 32}, {\"event\": \"improvement\", \"file\": \"local.jsonl\", \"frontierErrors\": 3, \"fullErrors\": 60}, {\"event\": \"improvement\", \"file\": \"local.jsonl\", \"frontierErrors\": 2, \"fullErrors\": 51}, {\"event\": \"improvement\", \"file\": \"local.jsonl\", \"frontierErrors\": 1, \"fullErrors\": 25}, {\"event\": \"local-result\", \"file\": \"local.jsonl\", \"frontierErrors\": 1, \"fullErrors\": 25}], \"maximalFalse\": [63, 79, 121, 151, 186, 219, 295, 316, 365, 438, 455, 457, 466, 484, 504], \"minimalTrue\": [84, 98, 140, 161, 266, 273], \"mutations\": {\"bestCircuit\": [[1, 2, 4], [1, 0, 5], [0, 9, 9], [1, 2, 3], [1, 0, 4], [1, 1, 3], [0, 13, 14], [1, 6, 11], [1, 8, 15], [0, 10, 12], [1, 7, 18], [0, 17, 19], [0, 16, 20]], \"bestFrontierErrors\": 1, \"bestFullErrors\": 25, \"bestOutput\": 21, \"contractions\": 28, \"exactMatches\": 0, \"frontierErrorHistogram\": {\"1\": 1173, \"2\": 4470, \"3\": 1902, \"4\": 6570, \"5\": 5733, \"6\": 7932, \"7\": 7041, \"8\": 10146, \"9\": 10622, \"10\": 8434, \"11\": 7364, \"12\": 6738, \"13\": 6197, \"14\": 3861, \"15\": 1698, \"16\": 1207, \"17\": 1220, \"18\": 52, \"19\": 96}, \"gateReplacementCases\": 92456, \"truthTablesSha256\": \"ae7907481bc11a6b7232b005f3929f269e6a7d8d5d6c28d185fe3360c89dc75c\"}, \"symmetriesChecked\": 72, \"targetTrue\": 247}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/local.jsonl","sha256":"d00c0f9455c19ce0580d8a9495cc43de07d6d4d7c23d301269d4097d9f67e797","content":"{\"event\": \"improvement\", \"seed\": 17390, \"steps\": 1, \"restarts\": 1, \"frontierErrors\": 4, \"failed512\": [66, 67, 70, 71, 74, 75, 78, 79, 82, 83, 90, 91, 194, 195, 198, 199, 202, 203, 210, 211, 218, 219, 322, 323, 326, 327, 338, 450, 451, 454, 455, 466], \"gates\": [[1, 2, 4], [1, 0, 5], [0, 1, 9], [1, 2, 3], [1, 0, 4], [1, 1, 3], [0, 13, 14], [1, 6, 11], [1, 8, 15], [0, 10, 12], [1, 7, 18], [0, 17, 19], [0, 16, 20]]}\n{\"event\": \"improvement\", \"seed\": 17390, \"steps\": 18, \"restarts\": 1, \"frontierErrors\": 3, \"failed512\": [84, 85, 86, 87, 92, 93, 94, 95, 98, 99, 102, 103, 106, 107, 110, 111, 114, 115, 122, 123, 212, 213, 214, 215, 226, 230, 234, 242, 250, 273, 275, 281, 305, 307, 313, 337, 339, 340, 342, 345, 348, 354, 355, 358, 359, 369, 370, 371, 377, 401, 403, 409, 465, 467, 468, 470, 473, 482, 486, 498], \"gates\": [[1, 2, 4], [1, 0, 5], [1, 5, 9], [1, 2, 3], [1, 0, 9], [1, 1, 3], [0, 13, 14], [1, 6, 11], [1, 8, 15], [0, 10, 12], [1, 7, 18], [0, 17, 19], [0, 16, 20]]}\n{\"event\": \"improvement\", \"seed\": 17390, \"steps\": 20021, \"restarts\": 3, \"frontierErrors\": 2, \"failed512\": [84, 85, 86, 87, 92, 93, 94, 95, 116, 117, 124, 125, 161, 163, 165, 167, 169, 171, 177, 179, 181, 183, 185, 187, 212, 213, 214, 215, 225, 229, 233, 241, 244, 245, 249, 340, 342, 348, 372, 380, 417, 419, 421, 423, 425, 468, 470, 481, 485, 489, 500], \"gates\": [[1, 1, 5], [1, 6, 9], [0, 9, 10], [1, 2, 3], [1, 0, 4], [1, 1, 3], [0, 13, 14], [1, 6, 11], [1, 8, 15], [0, 10, 12], [1, 7, 18], [0, 17, 19], [0, 16, 20]]}\n{\"event\": \"improvement\", \"seed\": 17390, \"steps\": 40008, \"restarts\": 5, \"frontierErrors\": 1, \"failed512\": [140, 141, 142, 143, 156, 157, 158, 159, 172, 174, 188, 190, 204, 205, 206, 207, 236, 396, 397, 412, 428, 444, 460, 461, 492], \"gates\": [[1, 1, 5], [1, 2, 4], [0, 9, 10], [1, 2, 3], [1, 0, 4], [1, 1, 3], [0, 13, 14], [1, 6, 11], [1, 8, 15], [1, 0, 5], [1, 7, 18], [0, 17, 19], [0, 16, 20]]}\n{\"event\": \"local-result\", \"seconds\": 180.0, \"elapsed\": 180.0000033180695, \"seed\": 17390, \"steps\": 67153942, \"restarts\": 6716, \"frontierErrors\": 1, \"gates\": [[1, 1, 5], [1, 2, 4], [0, 9, 10], [1, 2, 3], [1, 0, 4], [1, 1, 3], [0, 13, 14], [1, 6, 11], [1, 8, 15], [1, 0, 5], [1, 7, 18], [0, 17, 19], [0, 16, 20]], \"failed512\": [140, 141, 142, 143, 156, 157, 158, 159, 172, 174, 188, 190, 204, 205, 206, 207, 236, 396, 397, 412, 428, 444, 460, 461, 492]}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/sat10.jsonl","sha256":"b732fd3cc1bf09babed32b82a1aae4eaa7e0631d7459e36f4f41e8f9ea7acbcc","content":"{\"event\": \"start\", \"K\": 10, \"seconds\": 120.0, \"seed\": 17390, \"variables\": 2865, \"clauses\": 75348, \"clauseSha256\": \"4f076935d04d7b175749f827338a51b0d51002a311236da8fccfe3df11675e4d\", \"rows\": [84, 98, 140, 161, 266, 273, 63, 79, 121, 151, 186, 219, 295, 316, 365, 438, 455, 457, 466, 484, 504]}\n{\"event\": \"result\", \"K\": 10, \"seed\": 17390, \"result\": \"UNKNOWN\", \"elapsed\": 120.46429561916739, \"stats\": {\"restarts\": 1796, \"conflicts\": 1076036, \"decisions\": 1380585, \"propagations\": 159847572}}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/sat11.jsonl","sha256":"50cabb9ba49fb02bc87b0dc7fa7777f09dfe934a32e02045d805a057f71d140e","content":"{\"event\": \"start\", \"K\": 11, \"seconds\": 180.0, \"seed\": 17391, \"variables\": 3399, \"clauses\": 91931, \"clauseSha256\": \"906e8f9767997651dcf22caec1289c9fe22f0e3412134877d8d6fab723330a65\", \"rows\": [84, 98, 140, 161, 266, 273, 63, 79, 121, 151, 186, 219, 295, 316, 365, 438, 455, 457, 466, 484, 504]}\n{\"event\": \"result\", \"K\": 11, \"seed\": 17391, \"result\": \"UNKNOWN\", \"elapsed\": 180.10761071112938, \"stats\": {\"restarts\": 2425, \"conflicts\": 1422548, \"decisions\": 1899924, \"propagations\": 220403439}}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/sat12.jsonl","sha256":"67da72ba90008c9a240f416b5cf246ef938a27a8b09822e29e70f1f3e7cbd62a","content":"{\"event\": \"start\", \"K\": 12, \"seconds\": 300.0, \"seed\": 17392, \"variables\": 3990, \"clauses\": 110698, \"clauseSha256\": \"4115b79c93c83db907f9f40c8e44e91fc7804ff1e2823d2cbdb04c154a973915\", \"rows\": [84, 98, 140, 161, 266, 273, 63, 79, 121, 151, 186, 219, 295, 316, 365, 438, 455, 457, 466, 484, 504]}\n{\"event\": \"result\", \"K\": 12, \"seed\": 17392, \"result\": \"UNKNOWN\", \"elapsed\": 300.1810840240214, \"stats\": {\"restarts\": 4902, \"conflicts\": 2166652, \"decisions\": 3123981, \"propagations\": 368591477}}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/sat13.jsonl","sha256":"b0089be1026da8525d40e109b95206651da9accff2668304d3a53ac25193f07f","content":"{\"event\": \"start\", \"K\": 13, \"seconds\": 600.0, \"seed\": 17393, \"variables\": 4641, \"clauses\": 131784, \"clauseSha256\": \"68305d0b4b57e97a9e2b8e612e9634b3be80d212545078a11434c3fda8770530\", \"rows\": [84, 98, 140, 161, 266, 273, 63, 79, 121, 151, 186, 219, 295, 316, 365, 438, 455, 457, 466, 484, 504]}\n{\"event\": \"result\", \"K\": 13, \"seed\": 17393, \"result\": \"UNKNOWN\", \"elapsed\": 600.0022255571093, \"stats\": {\"restarts\": 8058, \"conflicts\": 3398391, \"decisions\": 5335543, \"propagations\": 602946009}}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/sat14-fixed.jsonl","sha256":"e5a3bb7df03bae7e49cdbf944b85e4df64832b3895a55b25ae935310ee8207ab","content":"{\"event\": \"start\", \"K\": 14, \"seconds\": 10, \"seed\": 17394, \"variables\": 5355, \"clauses\": 155324, \"clauseSha256\": \"a20c4035bce6add6b9ac3e5d3f847f41de77548565ea181954f8ab079bb7ae24\", \"rows\": [84, 98, 140, 161, 266, 273, 63, 79, 121, 151, 186, 219, 295, 316, 365, 438, 455, 457, 466, 484, 504]}\n{\"event\": \"result\", \"K\": 14, \"seed\": 17394, \"result\": \"SAT\", \"elapsed\": 0.0033246250823140144, \"stats\": {\"restarts\": 1, \"conflicts\": 0, \"decisions\": 2, \"propagations\": 5356}, \"gates\": [[1, 1, 3], [1, 2, 3], [1, 0, 4], [1, 2, 4], [1, 0, 5], [1, 1, 5], [0, 9, 11], [0, 10, 13], [0, 12, 14], [1, 8, 15], [1, 7, 16], [1, 6, 17], [0, 18, 19], [0, 20, 21]], \"failed512\": []}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/final-lean.jsonl","sha256":"331d4420770e633dcf64381c94a6f70ae1dfefdd82087742343e88f39dab4fe7","content":"{\"event\": \"elaboration\", \"module\": \"Frontier\", \"exit\": 0, \"output\": \"\"}\n{\"event\": \"axioms\", \"module\": \"Frontier\", \"exit\": 0, \"output\": \"'PEqualNP.Outside.L_meta_17390.frontier_coverage' depends on axioms: [propext, Classical.choice, Quot.sound]\\n'PEqualNP.Outside.L_meta_17390.frontier_suffices' depends on axioms: [propext, Classical.choice, Quot.sound]\\n'PEqualNP.Outside.L_meta_17390.gap_iff_frontier' depends on axioms: [propext, Classical.choice, Quot.sound]\\n\"}\n{\"event\": \"elaboration\", \"module\": \"Le14\", \"exit\": 0, \"output\": \"\"}\n{\"event\": \"axioms\", \"module\": \"Le14\", \"exit\": 0, \"output\": \"'PEqualNP.Outside.L_meta_17390_le14' depends on axioms: [propext, Quot.sound]\\n\"}\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/guard.json","sha256":"8efb1bf13ec42539d81911e593fdb5c8e1d3120701e74c3b4613e489de0ebaad","content":"[\n  {\n    \"file\": \"Frontier.lean\",\n    \"canonicalPath\": \"lean/PEqualNP/Outside/L_meta_17390.lean\",\n    \"command\": \"outside-guard.mjs imports\",\n    \"exit\": 1,\n    \"output\": \"REFUSED: the theorem must stand at the top level, last, written with its full name: `theorem PEqualNP.Outside.L_meta_17390 ...`; put every helper inside `namespace PEqualNP.Outside.L_meta_17390` ... `end PEqualNP.Outside.L_meta_17390`; only the imports and the theorem stay outside\\n\"\n  },\n  {\n    \"file\": \"Le14.lean\",\n    \"canonicalPath\": \"lean/PEqualNP/Outside/L_meta_17390_le14.lean\",\n    \"command\": \"outside-guard.mjs imports\",\n    \"exit\": 0,\n    \"output\": \"imports allowed: Mathlib PEqualNP.Defs\\n\"\n  }\n]\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/cnf-recheck.json","sha256":"52160fb9873796113c7289e439468c609077ebc25920d13ea9e084435e682d56","content":"[\n  {\n    \"K\": 10,\n    \"clauseSha256\": \"4f076935d04d7b175749f827338a51b0d51002a311236da8fccfe3df11675e4d\",\n    \"matchesRecorded\": true\n  },\n  {\n    \"K\": 11,\n    \"clauseSha256\": \"906e8f9767997651dcf22caec1289c9fe22f0e3412134877d8d6fab723330a65\",\n    \"matchesRecorded\": true\n  },\n  {\n    \"K\": 12,\n    \"clauseSha256\": \"4115b79c93c83db907f9f40c8e44e91fc7804ff1e2823d2cbdb04c154a973915\",\n    \"matchesRecorded\": true\n  },\n  {\n    \"K\": 13,\n    \"clauseSha256\": \"68305d0b4b57e97a9e2b8e612e9634b3be80d212545078a11434c3fda8770530\",\n    \"matchesRecorded\": true\n  }\n]\n"},{"path":"artifacts/goal/batches/e4-p3-a/items/cd06/main-audit.json","sha256":"559ac7638d90d3a1ac0bd0a307076a4114e7ff6f944dfb9d6ca3419d33c2f9af","content":"{\"files\": 10775, \"identifierHits\": [], \"archiveSha256\": \"87917a6adff82ef719d1e79303edecc6ef31eb20496f354abea67fd3807537b3\"}\n"},{"path":"test/scratch/cd06/unpack.py","sha256":"f621248df06823d00792a932e6cce4c3ad2b1bd04f65278c17e990c88a0a06d4","content":"import ctypes as c,sys,subprocess,pathlib\nclass In(c.Structure):_fields_=[('src',c.c_void_p),('size',c.c_size_t),('pos',c.c_size_t)]\nclass Out(c.Structure):_fields_=[('dst',c.c_void_p),('size',c.c_size_t),('pos',c.c_size_t)]\nz=c.CDLL('libzstd.so.1')\nz.ZSTD_createDStream.restype=c.c_void_p\nz.ZSTD_initDStream.argtypes=[c.c_void_p];z.ZSTD_initDStream.restype=c.c_size_t\nz.ZSTD_decompressStream.argtypes=[c.c_void_p,c.POINTER(Out),c.POINTER(In)];z.ZSTD_decompressStream.restype=c.c_size_t\nz.ZSTD_isError.argtypes=[c.c_size_t];z.ZSTD_isError.restype=c.c_uint\nz.ZSTD_freeDStream.argtypes=[c.c_void_p]\np=pathlib.Path(sys.argv[2]);p.mkdir(parents=True,exist_ok=True)\ntar=subprocess.Popen(['tar','-xf','-','-C',str(p)],stdin=subprocess.PIPE)\nd=z.ZSTD_createDStream();assert not z.ZSTD_isError(z.ZSTD_initDStream(d))\ntry:\n with open(sys.argv[1],'rb') as f:\n  while True:\n   block=f.read(1048576)\n   if not block:break\n   src=c.create_string_buffer(block);ib=In(c.cast(src,c.c_void_p),len(block),0)\n   while ib.pos<ib.size:\n    dst=c.create_string_buffer(1048576);ob=Out(c.cast(dst,c.c_void_p),len(dst),0)\n    n=z.ZSTD_decompressStream(d,c.byref(ob),c.byref(ib));assert not z.ZSTD_isError(n)\n    tar.stdin.write(dst.raw[:ob.pos])\n assert n==0\nfinally:\n z.ZSTD_freeDStream(d);tar.stdin.close()\nassert tar.wait()==0\n","note":"Embedded program; scratch path itself is not submitted."},{"path":"test/scratch/cd06/build_defs.py","sha256":"534a98e4bf2e6e01d7a30541556cf24f976901d1fd40d01f1d079c55e35c4d0c","content":"\"\"\"Build the pinned definitions root directly, without editing project configuration.\"\"\"\nimport pathlib,re,os,subprocess,concurrent.futures,json,hashlib,sys\nbase=pathlib.Path(__file__).resolve().parent\nsrc=base/'pequalnp-proofs-8dec1cacf8aab169f12858fff3a2e945fea7a880/lean'\nout=base/'compiled';out.mkdir(exist_ok=True)\nlean=base/'runtime/lean-4.36.0-linux/bin/lean'\npaths=[str(out)]+[str(p/'.lake/build/lib/lean') for p in sorted((base/'packages').iterdir()) if (p/'.lake/build/lib/lean').is_dir()]\nenv=os.environ.copy();env['LEAN_PATH']=':'.join(paths)\ndeps={};hashes={}\ndef visit(mod):\n if mod in deps:return\n p=src/(mod.replace('.','/')+'.lean');text=p.read_text()\n imports=[]\n for line in text.splitlines():\n  if line.startswith('import '):imports.extend(w for w in line[7:].split() if w.startswith('PEqualNP.'))\n deps[mod]=imports;hashes[mod]=hashlib.sha256(p.read_bytes()).hexdigest()\n for d in imports:visit(d)\nvisit('PEqualNP.Defs')\nprint(json.dumps(dict(event='build-start',modules=len(deps))),flush=True)\ndone=set();pending=set(deps);running={};failed=False\nwith concurrent.futures.ThreadPoolExecutor(max_workers=4) as pool:\n def compile(mod):\n  rel=pathlib.Path(mod.replace('.','/')+'.lean');obj=out/rel.with_suffix('.olean');obj.parent.mkdir(parents=True,exist_ok=True)\n  r=subprocess.run([str(lean),'-o',str(obj),str(rel)],cwd=src,env=env,text=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT)\n  return mod,r.returncode,r.stdout\n while pending or running:\n  ready=sorted(m for m in pending if set(deps[m])<=done)\n  for m in ready[:max(0,4-len(running))]:\n   running[pool.submit(compile,m)]=m;pending.remove(m)\n  if not running:raise RuntimeError('dependency cycle or failed prerequisite')\n  complete,_=concurrent.futures.wait(running,return_when=concurrent.futures.FIRST_COMPLETED)\n  for f in complete:\n   mod,code,text=f.result();del running[f]\n   print(json.dumps(dict(event='module',module=mod,exit=code,stdout=text)),flush=True)\n   if code:failed=True;break\n   done.add(mod)\n  if failed:break\nprint(json.dumps(dict(event='build-result',exit=int(failed),built=len(done),sourceHashes=hashes)),flush=True)\nsys.exit(int(failed))\n","note":"Embedded program; scratch path itself is not submitted."}],"experiments":[{"range":"All 512 inputs and all 72 row/column/transpose symmetries.","outcome":{"minimalTrue":[84,98,140,161,266,273],"maximalFalse":[63,79,121,151,186,219,295,316,365,438,455,457,466,484,504],"trueInputs":247,"coverage":512,"symmetriesChecked":72},"check":"verify.py exit 0; Lean gap_iff_frontier and its dependencies elaborated, exit 0."},{"range":"SAT 10–13 gates, 21 rows.","outcome":[{"gates":10,"seed":17390,"secondsLimit":120.0,"result":"UNKNOWN","elapsed":120.46429561916739,"conflicts":1076036,"evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/sat10.jsonl"},{"gates":11,"seed":17391,"secondsLimit":180.0,"result":"UNKNOWN","elapsed":180.10761071112938,"conflicts":1422548,"evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/sat11.jsonl"},{"gates":12,"seed":17392,"secondsLimit":300.0,"result":"UNKNOWN","elapsed":300.1810840240214,"conflicts":2166652,"evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/sat12.jsonl"},{"gates":13,"seed":17393,"secondsLimit":600.0,"result":"UNKNOWN","elapsed":600.0022255571093,"conflicts":3398391,"evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/sat13.jsonl"}],"encoding":"Exactly one unordered distinct predecessor pair per gate, AND/OR operation bit, conditional truth-table equivalences, final gate output and every gate used. Pair keys (maximum predecessor,minimum predecessor) nondecreasing; equal pairs ordered AND then OR. First pair (0,1) or (1,3), the minimal incident/disjoint orbit representatives.","limitations":"Normal-form completeness and CNF correctness have not been proved in Lean. Constants, unary gates, arbitrary invalid/future references and padding are not explicitly encoded. No UNSAT or DRAT certificate exists; no global lower bound follows.","finalSourceCNFRecheck":"artifacts/goal/batches/e4-p3-a/items/cd06/cnf-recheck.json"},{"range":"Fixed canonicalised 14-gate witness in the same encoding.","outcome":"SAT, all 512 inputs checked; positive encoding sanity check only. Circuit inherited from the capsule.","evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/sat14-fixed.jsonl"},{"range":"28 predecessor contractions of the 14-gate witness, then every one-gate replacement at each of 13 positions by AND/OR on prior wires, including repeated wires. Output is tracked explicitly.","outcome":{"cases":92456,"exactMatches":0,"bestFrontierErrors":1,"bestAllInputErrors":25,"truthTablesSha256":"ae7907481bc11a6b7232b005f3929f269e6a7d8d5d6c28d185fe3360c89dc75c"},"evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/verification.json","check":"Independent verifier, exit 0; bit-packed full truth tables and scalar cross-checks. Counts include duplicate circuits."},{"range":"13-gate annealing, seed 17390, 180-second program run.","outcome":{"proposals":67153942,"restarts":6716,"bestFrontierErrors":1,"failed512":[140,141,142,143,156,157,158,159,172,174,188,190,204,205,206,207,236,396,397,412,428,444,460,461,492]},"evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/local.jsonl","check":"Independent verifier checks every recorded improvement and final candidate on all 512 inputs. Exact proposal count depends on timer/hardware."},{"range":"Pinned Lean 4.36.0, built Mathlib, fresh build of unchanged PEqualNP.Defs.","outcome":"All final elaborations and axiom checks exit 0.","evidence":"artifacts/goal/batches/e4-p3-a/items/cd06/final-lean.jsonl","guard":"artifacts/goal/batches/e4-p3-a/items/cd06/guard.json","officialChecker":"check-lean.mjs not run; no exact official-form candidate."}],"deadEnds":[{"attempt":"SAT K=10 through 13.","outcome":"All timed out as UNKNOWN. No UNSAT assertion or DRAT certificate."},{"attempt":"One-frontier-error 13-gate candidates.","outcome":"Fail on 25 full inputs; none is a witness."},{"attempt":"Direct nested Fin-quantified Decidable synthesis.","outcome":"Failed. Repaired using a kernel-checked Boolean List.all coverage certificate and constructive witness extraction; final source passes."},{"attempt":"GitHub API metadata.","outcome":"Unauthenticated API returned HTTP 403 rate-limit exceeded. Public direct downloads and codeload succeeded without an account."},{"attempt":"Helper as an official gap file.","outcome":"Guard correctly refuses the missing exact top-level theorem. The helper proves an equivalence only."}],"handed":[{"batch":"e2-px-capsule","key":"after-p3","sha256":"6063abcf25b0ece8209fd6a47d5d78a7df697fbdd937474081d3f19b54e10e53","used":["14-gate circuit and exact companion source","exact statement and hash","tested pins/setup"],"companionSha256":"c77f1dc0963842c7c07cde7420abeed6370c91cf974c70c0092d5525a1df28f2"}],"forNext":["Use the checked gap_iff_frontier equivalence and official_frontier_suffices conversion. The 21-row-to-all-inputs bridge is now formal for the official evaluator, including its constant/unary/invalid/future-wire behaviour.","Missing for existence: a genuine at-most-13-gate circuit satisfying all 21 rows. Current near misses are not witnesses.","Missing for refutation: a checked DRAT proof from a complete sound encoding, plus a Lean bridge to all circuits allowed by the exact definition. UNKNOWN and this finite mutation family do not supply it.","An actual exact proof/refutation must be put in the required official file with the exact final theorem, then pass the full unchanged guard and check-lean workflow. No submission/PR/lease was made."],"environment":{"lean":"4.36.0","repositoryPin":"8dec1cacf8aab169f12858fff3a2e945fea7a880","repositoryArchiveSha256":"cd80eb8ab2449a0cccb22ebae597d1211ef508b48cf63a23c732c518a1aea3d9","toolchainArchiveSha256":"2b7ab1ed8b92d2e6abfaf41344823b510064dbc9c0260cac73eb496ab2dea6eb","packagesArchiveSha256":"69b68c745d0bd8dba3ab21966f8cdb14f9373bd4f1df1d17680f4b80dad98a88","mathlibPin":"fc4f59e577feb1a4956671bc04ac18aaaf8cd842","defsBuild":{"exitCode":0,"modules":87,"mode":"Direct topological Lean build of unchanged pinned source; no pin, definition, checker or configuration edits."},"mainAudit":{"files":10775,"identifierHits":[],"archiveSha256":"87917a6adff82ef719d1e79303edecc6ef31eb20496f354abea67fd3807537b3"},"mainAuditMeaning":"No exact gap identifier or official file in the downloaded main snapshot; an observation, not a second desk read.","satDependencies":[{"name":"python-sat","version":"1.9.dev25","url":"https://files.pythonhosted.org/packages/6b/8b/b2df0a7affd4d1bdd49da8b3c095f312ab19319e4eb53ee761b90479601b/python_sat-1.9.dev25-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl","sha256":"fdd64c2bb1d083796292f2bea78be093081044294e5059b1fd53882d49bd1562"},{"name":"six","version":"1.17.0","url":"https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl","sha256":"4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274"}],"vendoredPath":"artifacts/goal/batches/e4-p3-a/items/cd06/vendor","offlineVerification":"verify.py requires only Python standard library; all inputs are in its embedded code. Search uses the vendored SAT package. Lean checks require the pinned toolchain/library, as specified by the brief."},"submission":{"status":"not-submitted","reason":"Exact target unresolved.","lease":false,"deskWrites":0,"pullRequests":0,"credentialsUsed":false,"checkerModified":false}}
