{
 "agent": "MP06",
 "group": "mathematical proofs",
 "gap": "L-meta-17390",
 "strategy": "algebraic restructuring: look for a 13-gate circuit through identities the Laplace form does not use (sharing between row and column expansions, absorbed extra terms, Hall/Konig form), and use exact-synthesis SAT on each template to test whether it can give 13",
 "status": "evidence-only",
 "summary": "Target still OPEN (desk GET 2026-11-26T06:28:22Z: state open). No 13-gate circuit found and none refuted, so there is no Lean claim. Findings: (1) Row-Laplace template ruled out. If each row-2 variable is ANDed once with a wire Y_k built only from rows 0-1 and the three products are ORed, then each Y_k is forced to be the 2x2 permanent (set row 2 to a unit vector). Computing the three 2x2 permanents of a 2x3 matrix together takes 9 gates: kissat says SAT at 9 and UNSAT at 8, and drat-trim VERIFIED the UNSAT proof. So that shape needs 9+5=14 gates, and sharing among the 2x2 permanents cannot save a gate. (2) For the absorption template f=(x8 AND Y) OR Z, Z must equal f with x8=0, and kissat says Z alone needs at least 9 gates (UNSAT at 8; drat-trim did not finish in 150 s). So a 13-gate circuit of that shape must get Y from at most 2 gates beyond Z's circuit. The joint K=11 search did not finish. (3) Full exact synthesis on the 21 frontier rows, with lossless redundancy breaking: 8 gates UNSAT (drat-trim VERIFIED), 9 gates UNSAT (76 s), both with drat-trim VERIFIED proofs. So the minimum is at least 10 gates (DRAT-certified, not Lean), up from the 8 given in the brief, and the open range is 10 to 13. Runs for 10 and 13 gates ran out of time, including the 13-gate cases split by symmetry. (4) A counting argument (not machine-checked): a minimal circuit of at most 13 gates reads at least 4 variables exactly once. Up to the 72 symmetries, x8 and then x2 or x0 is read once, which covers every case for later searches. Lean was not started because there was no witness to check.",
 "desk": {
  "state": "open",
  "time": "2026-11-26T06:28:22Z",
  "url": "https://pequalnp.com/desk/step?gap=L-meta-17390",
  "http": 200,
  "say": "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.",
  "note": "one read-only GET; no lease, no pnp.sh, no PR, no account"
 },
 "statementSha256": "3a6b7a3a820272375169fb191a04fd1ac8594fdc1849ed746eaaf0eefe286e6a",
 "statementCheck": "formal_statement fetched from https://data.pequalnp.com/data/lemma/L-meta-17390.626422f1ae76.json at about 07:18Z. Its UTF-8 sha256 equals statement_hash (sha256:3a6b7a3a...286e6a) and the brief's text; status conjecture.",
 "claims": [
  {
   "statement": "No 8-gate monotone fan-in-2 AND/OR circuit computes f (minimum circuit, under lossless redundancy breaking)",
   "kind": "evidence",
   "path": "test/scratch/gen.py",
   "sha256": "45e4936fb3e7c008a52ef01dbf8ad80002b1580b800867cc09e15bf4f7048296",
   "elaboration": "not-run",
   "guard": "not-run",
   "checkLean": "not-run",
   "axioms": "not-run",
   "run": "python3 gen.py 8 c8.cnf; kissat -q --no-binary c8.cnf c8.drat -> s UNSATISFIABLE (12.1 s); drat-trim c8.cnf c8.drat -w -> s VERIFIED",
   "cnfSha256": "4c722e0a53146303c81829452568a5a64e504180dc09ea827d4aa7af264392d9",
   "exitCodes": {
    "kissat": 20
   }
  },
  {
   "statement": "No 9-gate monotone circuit computes f (minimum circuit, under the same redundancy breaking)",
   "kind": "evidence",
   "path": "test/scratch/gen.py",
   "sha256": "45e4936fb3e7c008a52ef01dbf8ad80002b1580b800867cc09e15bf4f7048296",
   "elaboration": "not-run",
   "guard": "not-run",
   "checkLean": "not-run",
   "axioms": "not-run",
   "run": "python3 gen.py 9 c9.cnf; kissat -q --no-binary c9.cnf c9.drat -> s UNSATISFIABLE (76.2 s); drat-trim c9.cnf c9.drat -w -> s VERIFIED (95.4 s, proof 272 MB, not kept)",
   "cnfSha256": "d22bc498ccea997d00f60a2dd5807e669734427c17217da2c57a2e0a89547908",
   "exitCodes": {
    "kissat": 20
   }
  },
  {
   "statement": "The three 2x2 permanents P12=bg|ce, P02=ag|cd, P01=ae|bd of a 2x3 matrix (a b c / d e g) need 9 AND/OR gates together, and 9 suffice. So any circuit of the row-2 Laplace shape OR_k(x_{6+k} AND Y_k) has at least 14 gates.",
   "kind": "evidence",
   "path": "test/scratch/gen2.py",
   "sha256": "72d559da43641c8049f57a99ab4692a24555cfaaca6491142f54c1265314d59d",
   "elaboration": "not-run",
   "guard": "not-run",
   "checkLean": "not-run",
   "axioms": "not-run",
   "run": "gen2.py 9 -> SATISFIABLE (17.9 s); gen2.py 8 -> UNSATISFIABLE (5.7 s); drat-trim m8 -> s VERIFIED",
   "cnfSha256": "d59f1fa77a16768c67808a5c4e31db8ffdd38e9b6fdeb320c397a7f257b7d554",
   "exitCodes": {
    "kissat K=9": 10,
    "kissat K=8": 20
   }
  },
  {
   "statement": "Z = f restricted to x8=0 (x0x5x7|x1x5x6|x2x3x7|x2x4x6) needs at least 9 AND/OR gates",
   "kind": "evidence",
   "path": "test/scratch/gen3.py",
   "sha256": "be0fd53ef03ebe29e17caf2c0088f254f81541efbe3253ed0a51dd0816c638e1",
   "elaboration": "not-run",
   "guard": "not-run",
   "checkLean": "not-run",
   "axioms": "not-run",
   "run": "gen3.py 8 z8.cnf Z -> kissat UNSATISFIABLE; drat-trim did not finish within 150 s (not verified)",
   "cnfSha256": "677c49c4d09d549845a2dc7a2f09a4e77390c42d20557209e9e34d34b78187c9",
   "exitCodes": {
    "kissat": 20
   }
  }
 ],
 "mathematics": {
  "matrix": "x0 x1 x2 / x3 x4 x5 / x6 x7 x8; f = 3x3 Boolean permanent (perfect matching). Its 72 automorphisms (row permutations x column permutations x transpose) act transitively on the cells.",
  "frontierReduction": "A monotone circuit equals f on all 512 inputs iff it equals f on the 6 minimal true and 15 maximal false points: by monotonicity, x >= some minimal true point gives 1, and x <= some maximal false point gives 0.",
  "redundancyBreaking": "A minimum circuit can be assumed to have: every non-output gate used; all wires (inputs and gates) different on the 21 rows (otherwise merge them); no wire constant on the rows (propagate the constant and delete gates); gates in lexicographic order of input pairs when consecutive gates are independent (topological re-sorting). gen.py imposes these, so UNSAT at K means no circuit has exactly K gates in minimum form. Every circuit needs at least 8 gates because it reads 9 inputs.",
  "rowLaplaceForced": "If f = OR_k (x_{6+k} AND Y_k) with Y_k depending only on x0..x5, then putting row 2 = e_k gives Y_k = f(.., e_k) = the 2x2 permanent of rows 0-1 on the other two columns. So the shape costs (joint cost of the three permanents) + 3 AND + 2 OR >= 9 + 5 = 14.",
  "absorptionTemplate": "For f = (x8 AND Y) OR Z with Y, Z free of x8: Z = f|x8=0 is forced, and Y is any monotone function with (x0x4|x1x3) AND NOT Z <= Y <= (x0x4|x1x3) OR Z. Taking extra terms from Z inside Y is the 'f absorbs them' freedom. Cost is at least cost(Z) + 2 >= 11, and it equals 13 only if Y needs at most 2 gates beyond Z's circuit.",
  "readOnceCount": "In a 13-gate minimum-form circuit there are 26 input slots. Gates 0..11 each fill at least one, so at most 14 slots read variables, and all 9 variables are read. If t variables are read once, t + 2(9-t) <= 14 gives t >= 4. By symmetry x8 is read once. The stabilizer of x8 has orbits {x2,x5,x6,x7} and {x0,x1,x3,x4}, so case A (x8, x2 read once) or case B (x8, x0 read once) holds. gen.py once=i encodes this. This argument is not machine-checked."
 },
 "artifacts": [
  {
   "path": "test/scratch/gen.py",
   "sha256": "45e4936fb3e7c008a52ef01dbf8ad80002b1580b800867cc09e15bf4f7048296",
   "role": "Full exact-synthesis CNF generator (21 frontier rows, redundancy breaking, options top=and|or, once=i). Not delivered as a file; content is embedded here.",
   "content": "import sys, itertools\n# Exact synthesis of a K-gate fan-in-2 AND/OR circuit for the 3x3 perfect-matching function f,\n# on its 21 frontier rows (6 minimal true, 15 maximal false). Redundancy breaking (valid WLOG for\n# a minimum circuit): every wire distinct on the 21 rows and non-constant, every gate but the last\n# used, consecutive independent gates in lex order of their input pairs.\n# Optional extra: \"top=and\"/\"top=or\" fixes the output gate op (case split).\nn = 9\nK = int(sys.argv[1])\nout = sys.argv[2]\nextra = sys.argv[3:]\nmons = [(0,4,8),(0,5,7),(1,3,8),(1,5,6),(2,3,7),(2,4,6)]\nf = lambda m: any(all(m>>i&1 for i in t) for t in mons)\npos = [m for m in range(512) if f(m) and not any(f(m&~(1<<i)) for i in range(9) if m>>i&1)]\nneg = [m for m in range(512) if not f(m) and all(f(m|(1<<i)) for i in range(9) if not m>>i&1)]\nassert len(pos) == 6 and len(neg) == 15\nrows = pos + neg\nR = len(rows)\ncnt = [0]\ndef nv():\n    cnt[0] += 1; return cnt[0]\ncl = []\ns = {}; o = []; v = {}\npairs = {}\nfor g in range(K):\n    W = n + g\n    pairs[g] = [(a,b) for a in range(W) for b in range(a+1, W)]\n    for p in pairs[g]: s[g,p] = nv()\n    o.append(nv())\n    for r in range(R): v[g,r] = nv()\n    sel = [s[g,p] for p in pairs[g]]\n    cl.append(sel)\n    for i in range(len(sel)):\n        for j in range(i+1, len(sel)): cl.append([-sel[i], -sel[j]])\ndef val(w, r):\n    if w < n: return bool(rows[r]>>w & 1)\n    return v[w-n, r]\ndef add(c):\n    o2 = []\n    for l in c:\n        if l is True: return\n        if l is False: continue\n        o2.append(l)\n    cl.append(o2)\ndef neg_(l):\n    return (not l) if isinstance(l, bool) else -l\nfor g in range(K):\n    for p in pairs[g]:\n        S = s[g,p]\n        for r in range(R):\n            x = val(p[0], r); y = val(p[1], r); z = v[g,r]\n            # AND (o=1)\n            add([-S, -o[g], -z, x]); add([-S, -o[g], -z, y]); add([-S, -o[g], z, neg_(x), neg_(y)])\n            # OR (o=0)\n            add([-S, o[g], z, neg_(x)]); add([-S, o[g], z, neg_(y)]); add([-S, o[g], -z, x, y])\nfor r in range(R):\n    cl.append([v[K-1,r]] if f(rows[r]) else [-v[K-1,r]])\nfor g in range(K-1):\n    w = n + g\n    cl.append([s[h,p] for h in range(g+1, K) for p in pairs[h] if w in p])\n# lex order of consecutive independent gates\nfor g in range(K-1):\n    w = n + g\n    for p in pairs[g]:\n        for q in pairs[g+1]:\n            if w in q: continue\n            if q < p: cl.append([-s[g,p], -s[g+1,q]])\n# distinct, non-constant wires\nfor g in range(K):\n    cl.append([v[g,r] for r in range(R)]); cl.append([-v[g,r] for r in range(R)])\n    for i in range(n):\n        cl.append([(-v[g,r] if rows[r]>>i&1 else v[g,r]) for r in range(R)])\n    for h in range(g):\n        ds = []\n        for r in range(R):\n            d = nv(); ds.append(d)\n            cl.append([-d, v[g,r], v[h,r]]); cl.append([-d, -v[g,r], -v[h,r]])\n        cl.append(ds)\nfor e in extra:\n    if e == 'top=and': cl.append([o[K-1]])\n    if e == 'top=or': cl.append([-o[K-1]])\n    if e.startswith('once='):\n        i = int(e[5:])\n        us = [s[g,p] for g in range(K) for p in pairs[g] if i in p]\n        cl.append(us)\n        for a in range(len(us)):\n            for b in range(a+1, len(us)): cl.append([-us[a], -us[b]])\nwith open(out, 'w') as fh:\n    fh.write('p cnf %d %d\\n' % (cnt[0], len(cl)))\n    for c in cl: fh.write(' '.join(map(str, c)) + ' 0\\n')\nimport json\njson.dump({'K': K, 'rows': rows, 's': {'%d,%d,%d' % (g,p[0],p[1]): s[g,p] for (g,p) in s}, 'o': o}, open(out + '.map', 'w'))\nprint('vars', cnt[0], 'clauses', len(cl), file=sys.stderr)\n"
  },
  {
   "path": "test/scratch/gen2.py",
   "sha256": "72d559da43641c8049f57a99ab4692a24555cfaaca6491142f54c1265314d59d",
   "role": "Multi-output synthesis of the three 2x2 permanents of a 2x3 matrix (64 rows).",
   "content": "import sys\n# Multi-output exact synthesis: can the three 2x2 permanents of a 2x3 matrix (a b c / d e g)\n# P12=bg|ce, P02=ag|cd, P01=ae|bd be computed by K fan-in-2 AND/OR gates? Inputs a b c d e g = 0..5.\n# All 64 rows; each output must equal some gate. Lex order of consecutive independent gates.\nn=6; K=int(sys.argv[1]); out=sys.argv[2]\nB=lambda m,i: bool(m>>i&1)\ntg=[lambda m:(B(m,1)and B(m,5))or(B(m,2)and B(m,4)), lambda m:(B(m,0)and B(m,5))or(B(m,2)and B(m,3)), lambda m:(B(m,0)and B(m,4))or(B(m,1)and B(m,3))]\nrows=list(range(64)); R=64\ncnt=[0]\ndef nv(): cnt[0]+=1; return cnt[0]\ncl=[]; s={}; o=[]; v={}; pairs={}\nfor g in range(K):\n    W=n+g; pairs[g]=[(a,b) for a in range(W) for b in range(a+1,W)]\n    for p in pairs[g]: s[g,p]=nv()\n    o.append(nv())\n    for r in range(R): v[g,r]=nv()\n    sel=[s[g,p] for p in pairs[g]]; cl.append(sel)\n    for i in range(len(sel)):\n        for j in range(i+1,len(sel)): cl.append([-sel[i],-sel[j]])\ndef val(w,r): return B(rows[r],w) if w<n else v[w-n,r]\ndef neg_(l): return (not l) if isinstance(l,bool) else -l\ndef add(c):\n    o2=[]\n    for l in c:\n        if l is True: return\n        if l is False: continue\n        o2.append(l)\n    cl.append(o2)\nfor g in range(K):\n    for p in pairs[g]:\n        S=s[g,p]\n        for r in range(R):\n            x=val(p[0],r); y=val(p[1],r); z=v[g,r]\n            add([-S,-o[g],-z,x]); add([-S,-o[g],-z,y]); add([-S,-o[g],z,neg_(x),neg_(y)])\n            add([-S,o[g],z,neg_(x)]); add([-S,o[g],z,neg_(y)]); add([-S,o[g],-z,x,y])\nfor t in tg:\n    us=[]\n    for g in range(K):\n        u=nv(); us.append(u)\n        for r in range(R): cl.append([-u, v[g,r] if t(rows[r]) else -v[g,r]])\n    cl.append(us)\nfor g in range(K-1):\n    w=n+g\n    for p in pairs[g]:\n        for q in pairs[g+1]:\n            if w in q: continue\n            if q<p: cl.append([-s[g,p],-s[g+1,q]])\nopen(out,'w').write('p cnf %d %d\\n'%(cnt[0],len(cl))+''.join(' '.join(map(str,c))+' 0\\n' for c in cl))\nimport json; json.dump({'K':K,'s':{'%d,%d,%d'%(g,p[0],p[1]):s[g,p] for (g,p) in s},'o':o},open(out+'.map','w'))\n"
  },
  {
   "path": "test/scratch/gen3.py",
   "sha256": "be0fd53ef03ebe29e17caf2c0088f254f81541efbe3253ed0a51dd0816c638e1",
   "role": "Absorption template f=(x8&Y)|Z: Z exact, Y in its interval (256 rows); mode Z for Z alone.",
   "content": "import sys\n# Template f = (x8 AND Y) OR Z: Z = f|x8=0 (exact), Y with P01 <= Y|Z and Y <= P01|Z, P01 = x0x4|x1x3.\n# Inputs x0..x7, all 256 rows. Circuit for f of this shape has K+2 gates. mode 'Z' synthesises Z alone.\nn=8; K=int(sys.argv[1]); out=sys.argv[2]; mode=sys.argv[3] if len(sys.argv)>3 else 'ZY'\nB=lambda m,i: bool(m>>i&1)\nmons=[(0,5,7),(1,5,6),(2,3,7),(2,4,6)]\nZf=lambda m: any(all(B(m,i) for i in t) for t in mons)\nP=lambda m:(B(m,0)and B(m,4))or(B(m,1)and B(m,3))\nrows=list(range(256)); R=256\ncnt=[0]\ndef nv(): cnt[0]+=1; return cnt[0]\ncl=[]; s={}; o=[]; v={}; pairs={}\nfor g in range(K):\n    W=n+g; pairs[g]=[(a,b) for a in range(W) for b in range(a+1,W)]\n    for p in pairs[g]: s[g,p]=nv()\n    o.append(nv())\n    for r in range(R): v[g,r]=nv()\n    sel=[s[g,p] for p in pairs[g]]; cl.append(sel)\n    for i in range(len(sel)):\n        for j in range(i+1,len(sel)): cl.append([-sel[i],-sel[j]])\ndef val(w,r): return B(rows[r],w) if w<n else v[w-n,r]\ndef neg_(l): return (not l) if isinstance(l,bool) else -l\ndef add(c):\n    o2=[]\n    for l in c:\n        if l is True: return\n        if l is False: continue\n        o2.append(l)\n    cl.append(o2)\nfor g in range(K):\n    for p in pairs[g]:\n        S=s[g,p]\n        for r in range(R):\n            x=val(p[0],r); y=val(p[1],r); z=v[g,r]\n            add([-S,-o[g],-z,x]); add([-S,-o[g],-z,y]); add([-S,-o[g],z,neg_(x),neg_(y)])\n            add([-S,o[g],z,neg_(x)]); add([-S,o[g],z,neg_(y)]); add([-S,o[g],-z,x,y])\nfor r in range(R): cl.append([v[K-1,r]] if Zf(r) else [-v[K-1,r]])   # last gate = Z\nif mode=='ZY':\n    us=[]\n    for w in range(n+K):\n        u=nv(); us.append(u)\n        for r in range(R):\n            if Zf(r): continue\n            add([-u, val(w,r) if P(r) else neg_(val(w,r))])\n    cl.append(us)\nfor g in range(K-1):\n    w=n+g\n    for p in pairs[g]:\n        for q in pairs[g+1]:\n            if w in q: continue\n            if q<p: cl.append([-s[g,p],-s[g+1,q]])\nopen(out,'w').write('p cnf %d %d\\n'%(cnt[0],len(cl))+''.join(' '.join(map(str,c))+' 0\\n' for c in cl))\n"
  }
 ],
 "tools": {
  "kissat": "github.com/arminbiere/kissat commit 8af8e56f174b778aef3aa45af9f739b2a5f492c2, built locally",
  "drat-trim": "github.com/marijnheule/drat-trim commit 2e3b2dc0ecf938addbd779d42877b6ed69d9a985, gcc -O2",
  "machine": "2 cores, 7 GB"
 },
 "experiments": [
  {
   "range": "gen.py K=8 (21 rows)",
   "outcome": "UNSAT 12.1 s, DRAT verified"
  },
  {
   "range": "gen.py K=9",
   "outcome": "UNSAT 76.2 s, DRAT verified (95 s)"
  },
  {
   "range": "gen.py K=10 (--unsat)",
   "outcome": "unknown, timeout 550 s"
  },
  {
   "range": "gen.py K=14 (default config)",
   "outcome": "unknown, timeout 300 s (a 14-gate circuit is known to exist, see after-p3)"
  },
  {
   "range": "gen.py K=13 top=or (--sat)",
   "outcome": "unknown, timeout 550 s"
  },
  {
   "range": "gen.py K=13 once=8 once=2 (case A)",
   "outcome": "unknown, timeout 560 s"
  },
  {
   "range": "gen.py K=13 once=8 once=0 (case B)",
   "outcome": "unknown, timeout 560 s"
  },
  {
   "range": "gen2.py K=9 / K=8 (64 rows)",
   "outcome": "SAT 17.9 s / UNSAT 5.7 s, DRAT verified"
  },
  {
   "range": "gen3.py Z-only K=8 (256 rows)",
   "outcome": "UNSAT (kissat); drat-trim unfinished at 150 s"
  },
  {
   "range": "gen3.py Z+Y K=11 (target shape for 13)",
   "outcome": "unknown, timeout 420 s"
  },
  {
   "range": "gen3.py Z+Y K=12 (sanity, SAT by construction 9+3)",
   "outcome": "unknown, timeout 540 s: the 256-row encoding is too slow; use frontier rows next time"
  }
 ],
 "deadEnds": [
  "Row (or, by symmetry, column) Laplace expansion with shared 2x2 permanents: provably at least 14 under the template (DRAT-checked joint lower bound of 9).",
  "Products of variable ORs such as (a|b)(d|e)x: the extra terms (two cells in one column) are not implicants of f, so f does not absorb them without another AND, which costs the gate saved.",
  "Hall/Konig CNF form (AND of 6 line-ORs and 9 minor-ORs) is far larger than 13.",
  "Unrestricted SAT for 13 gates with kissat on 2 cores: no answer in 9-minute runs, even with the case split by symmetry."
 ],
 "handed": [
  {
   "batch": "e2-px-capsule",
   "key": "after-p3",
   "sha256": "6063abcf25b0ece8209fd6a47d5d78a7df697fbdd937474081d3f19b54e10e53",
   "used": "statement, definitions, the 14-gate circuit, its earlier SAT timeouts"
  },
  {
   "batch": "e2-px-capsule",
   "key": "after-p2",
   "sha256": "0c35cdefd31fb6c3f3bc3ee3010fccce590d85ba92fb6cb501304b22526aa24f",
   "used": "read; placeholder content, nothing used"
  },
  {
   "batch": "e2-px-capsule",
   "key": "after-p4",
   "sha256": "f817777448e5acd46bd64359cdaf866097e2fc2c42e54e65f731f6799bc80eeb",
   "used": "read summary only (other gap L-meta-18647); not used"
  },
  {
   "batch": "e2-px-capsule",
   "key": "after-p5",
   "sha256": "61f551d37e52b20f7b29c1b66087675de769373463191e9a3ca478d775ea6289",
   "used": "read summary only (other gap L-meta-16092); not used"
  }
 ],
 "forNext": "1) Use frontier rows (21) instead of all 256/64 in the template encodings. gen3 Z+Y K=11 is the sharpest open template: Y within 2 gates of Z's wires. 2) Try K=10 to 12 with cube-and-conquer on the read-once cases A/B and on the output op. Reaching UNSAT at 13 would refute the gap; the negation would then need a Lean proof, for example a verified checker over the encoding. 3) A 13-gate circuit, if one exists, is not of row-Laplace shape: look at shapes where some row-2 variable feeds an OR gate or where the Y_k depend on row-2 variables. 4) If a witness appears, the after-p3 Le14.lean proof (decide +kernel over 9 Bools) carries over directly with 13 in place of 14.",
 "submissionStatus": "nothing submitted; no lease, no PR, no pnp.sh, no credentials"
}