{
 "gap": "L-meta-582",
 "claim": "No circuit of at most 26 gates was found, and none exists in two families that I closed. (R1, helper name heawood_and_depth_one_ge_27, hand proof, not built in Lean) Extra hypothesis: C is Monotone2, computes the Heawood edge function f on all of Fin 14 -> Bool, and no AND gate has an AND gate among its ancestors (AND-depth 1; this is every 'OR of (OR of variables AND OR of variables)' circuit with arbitrary sharing of OR intermediates, the seven-star circuit and all its shared-OR-intermediate variants included). Then 27 <= C.size. (R2, helper name heawood_three_star_block_ge_11, SAT computation) For any 3 of the 7 vertices 0..6, the edge function of the 9-edge subgraph formed by their three stars has no Monotone2 circuit with at most 10 gates, so re-synthesising the sub-circuit of any 1, 2 or 3 stars of the 27-gate circuit (4k-1 gates for k stars) as a block saves nothing. The posted statement itself (existence of a <=26-gate circuit) is neither proved nor refuted here.",
 "scope": "restricted",
 "evidence": {
  "row_status": "Open at the time of reading. gaps.json (updated_at 2026-11-23T23:45:56.081Z) lists L-meta-582 under gaps with dead=[] and pr_open=0; it is absent from both checked and withdrawn. Its opposite, L-meta-971 (every such circuit has at least 27 gates), is also listed under gaps and absent from checked and withdrawn.",
  "definitions_used": "Public row definitions at the pinned commit: Circuit (list of gates in evaluation order, gate j produces wire 14+j, one output wire), Circuit.size = number of gates, Monotone2 = every gate is AND or OR reading at most two wires. Gates reading 0 or 1 wires or the same wire twice are constants or copies; removing them never increases size, so all searches use gates reading two distinct earlier wires. f(x)=1 iff both ends of one of the 21 listed edges are true.",
  "graph_facts_checked_by_program": "Any two distinct vertices have at most 1 common neighbour (so no 4-cycle); least vertex cover = 7 (brute force over all 16384 subsets); f is true on 15926 of 16384 inputs; f has 21 minterms and 37 maximal zeros (maximal independent sets).",
  "baseline_27_gate_circuit": {
   "gates_op_in1_in2": [
    [
     "or",
     7,
     8
    ],
    [
     "or",
     14,
     10
    ],
    [
     "and",
     0,
     15
    ],
    [
     "or",
     7,
     9
    ],
    [
     "or",
     17,
     13
    ],
    [
     "and",
     1,
     18
    ],
    [
     "or",
     8,
     12
    ],
    [
     "or",
     20,
     13
    ],
    [
     "and",
     2,
     21
    ],
    [
     "or",
     7,
     11
    ],
    [
     "or",
     23,
     12
    ],
    [
     "and",
     3,
     24
    ],
    [
     "or",
     10,
     11
    ],
    [
     "or",
     26,
     13
    ],
    [
     "and",
     4,
     27
    ],
    [
     "or",
     9,
     10
    ],
    [
     "or",
     29,
     12
    ],
    [
     "and",
     5,
     30
    ],
    [
     "or",
     8,
     9
    ],
    [
     "or",
     32,
     11
    ],
    [
     "and",
     6,
     33
    ],
    [
     "or",
     16,
     19
    ],
    [
     "or",
     35,
     22
    ],
    [
     "or",
     36,
     25
    ],
    [
     "or",
     37,
     28
    ],
    [
     "or",
     38,
     31
    ],
    [
     "or",
     39,
     34
    ]
   ],
   "output_wire": 40,
   "check": "evaluated on all 16384 inputs, equals f on every one",
   "note": "wires 0..13 are inputs, gate j is wire 14+j; seven stars x_c AND (OR of the 3 neighbours of c), c=0..6, then 6 ORs: 14+7+6=27"
  },
  "R1_family": {
   "grammar": "L ::= x_i | L OR L ; P ::= L AND L ; S ::= P | S OR S ; output S. Any DAG sharing of L, P and S wires is allowed. Parameters: 14 inputs, any number of gates; no bound on the number of ANDs or on fan-out.",
   "coverage": "This is exactly the set of Monotone2 circuits for f of AND-depth 1 in which every gate reaches the output. Reason: an OR gate that has an AND below it and also a variable v as a degree-1 implicant can only feed OR gates (AND-depth 1), so v would be a degree-1 implicant of the output, but f is 0 on every single-variable input. Hence ORs above ANDs read only AND/S wires. The argument below uses only 'no 4-cycle', so it gives |E|+tau-1 for every graph without 4-cycles in this family, not only Heawood.",
   "derivation": "Let C be in the family and compute f. (1) Each P gate computes OR_{a in A, b in B} x_a x_b for variable sets A,B, and P <= f because only ORs lie between P and the output. A and B are disjoint (else x_a <= f) and every pair in A x B is an edge, so K_{A,B} is a subgraph; no 4-cycle forces |A|=1 or |B|=1: P is a star with a centre c and leaf set B_P inside N(c). (2) Every edge uv is a minterm of the output, which is an OR of the P gates, so uv is a pair of some P; thus the centres form a vertex cover. With m_c = number of P gates with centre c, t = sum m_c >= number of centres >= tau = 7, and with U_c = union of the leaf sets at c, sum |U_c| >= |E| = 21. (3) S gates: joining t distinct P wires into one output with fan-in-two ORs needs at least t-1 gates. (4) L gates: an L gate computing OR of X with |X|>=2 that lies below a star with centre c has X inside N(c), and two vertices have at most one common neighbour, so c is determined by X: the sets G_c of such gates are disjoint over c. Form the undirected graph on U_c + G_c + (P gates at c) with two edges per L gate (to its inputs) and one per P gate (to its leaf-side input). Every node has a path up to a P gate, so there are at most m_c components; a graph with V nodes and k components has at least V-k edges: 2|G_c| + m_c >= |U_c| + |G_c| + m_c - m_c, i.e. |G_c| >= |U_c| - m_c. (5) Size >= sum(|U_c| - m_c) + t + (t-1) = sum|U_c| + t - 1 >= 21 + 7 - 1 = 27. Consequence for the brief: an OR intermediate shared by two stars with different centres would have |X|>=2 inside two neighbourhoods, which the graph forbids; sharing inside one centre is already counted and saves nothing.",
   "status": "Hand derivation, read twice; not formalised. A SAT run of the same family at 26 gates (AND-depth-1 typing added to the encoder) did not finish in 500 s, so the family is closed by the derivation only, not by machine."
  },
  "R2_family": {
   "grammar": "Circuits obtained from the 27-gate circuit by choosing a set T of k centres among 0..6, deleting the 4k-1 gates that compute OR_{c in T} star_c, and inserting ANY Monotone2 circuit for that same function f_T whose only wire read by the rest is its output. A saving exists iff f_T has a circuit with at most 4k-2 gates.",
   "parameters": "k=3: the automorphism group of the Heawood graph acts on triples of points with two orbits: three points on a common line (representative T={0,1,3}, a tree on 10 vertices, 9 edges) and three points in general position (T={0,1,2}, a hexagon with three pendant edges, 9 vertices, 9 edges). Size bound searched: exactly 10 gates, which covers at most 10 by padding (a smaller circuit is padded by out' = out OP one input of out, keeping every gate used).",
   "result": "T={0,1,2}, 10 gates: UNSATISFIABLE (kissat 4.0.4, 411.5 s). T={0,1,3}, 10 gates: UNSATISFIABLE (413.2 s). T={0,1,2}, 11 gates: SATISFIABLE in 31.5 s, the model re-evaluated on all 512 inputs. k=1 and k=2 follow: every 1- or 2-set extends to a 3-set, and a saving on fewer stars would give a 10-gate circuit for the triple. For the collinear triple and for k<=2 the subgraph is a forest, where the project's note states the bound |E|+tau-1 as its row L-meta-104; I did not rely on it.",
   "witness_T012_11_gates": {
    "inputs": "wires 0..8 = vertices 0,1,2,7,8,9,10,12,13",
    "gates_op_in1_in2": [
     [
      "or",
      3,
      6
     ],
     [
      "or",
      4,
      7
     ],
     [
      "or",
      5,
      8
     ],
     [
      "or",
      4,
      9
     ],
     [
      "or",
      8,
      10
     ],
     [
      "or",
      3,
      11
     ],
     [
      "and",
      0,
      12
     ],
     [
      "and",
      2,
      13
     ],
     [
      "and",
      1,
      14
     ],
     [
      "or",
      15,
      17
     ],
     [
      "or",
      16,
      18
     ]
    ]
   },
   "not_finished": "k=4 (two orbits: T={0,1,2,3} containing the line {0,1,3}, 11 vertices, 12 edges; T={2,4,5,6}, no three collinear, 10 vertices, 12 edges), 14 gates: no answer in 520 s each, with and without the extra condition that every AND gate is below the function. k=5,6 not attempted; k=7 is the row."
  },
  "search_method": {
   "encoding": "Exact-synthesis CNF. For each gate g: one-hot selectors for its smaller and larger input wire (i<j<g), one bit for AND/OR, one value variable per test row. Test rows: the minterms (output must be 1) and the maximal zeros (output must be 0); for a circuit of AND/OR gates this is equivalent to agreement on all inputs, by monotonicity, and every model is re-evaluated on all inputs anyway. Symmetry breaking, each without loss of generality: output is the last gate; every other gate is read by a later gate; consecutive gates are in strictly increasing order of (larger input, smaller input, OR before AND) (greedy renumbering: among gates whose inputs are placed take the least pair; a gate that only became available has the newest wire as its larger input).",
   "solver": "kissat 4.0.4, https://github.com/arminbiere/kissat commit 8af8e56f174b778aef3aa45af9f739b2a5f492c2, options -q --seed=N, 32 cores, one job per core.",
   "programs": "sha256 enc.py f82969db8581bb67e6abd609d0272521458a24d874a1f0549748517d9a635a2d (encoder, decoder, all-input verifier), run2.py 581558718865d68c15bb463dfccc7a3ebf80053349c48037956ce12a41f7cb1a (block jobs and 'every AND below f'), run3.py 61391cc84c01985c6de396ce0364e5bdfcb26617cc5d83f3d3dcbfda24163236 (AND-depth typing). The scratch directory is not delivered; the encoder text is given under encoder_source.",
   "encoder_source": "import sys, itertools\nE=[(0,7),(0,8),(0,10),(1,7),(1,9),(1,13),(2,8),(2,12),(2,13),(3,7),(3,11),(3,12),(4,10),(4,11),(4,13),(5,9),(5,10),(5,12),(6,8),(6,9),(6,11)]\nN=14\ndef f(m): return any((m>>u)&1 and (m>>v)&1 for u,v in E)\ndef rows():\n    mins=[(1<<u)|(1<<v) for u,v in E]\n    zeros=[m for m in range(1<<N) if not f(m)]\n    zs=set(zeros)\n    maxz=[m for m in zeros if all((m>>i)&1 or (m|(1<<i)) not in zs for i in range(N))]\n    return mins,maxz\ndef encode(s, out, kand=None, extra=None):\n    mins,maxz=rows()\n    R=[(m,1) for m in mins]+[(m,0) for m in maxz]\n    nv=[0]\n    def new():\n        nv[0]+=1; return nv[0]\n    cl=[]\n    G=range(N,N+s)\n    a={g:{i:new() for i in range(0,g-1)} for g in G}\n    b={g:{j:new() for j in range(1,g)} for g in G}\n    t={g:new() for g in G}\n    v={g:[new() for _ in R] for g in G}\n    def val(w,r):\n        if w<N: return (R[r][0]>>w)&1\n        return v[w][r]\n    for g in G:\n        for sel in (a[g],b[g]):\n            ks=list(sel.values())\n            cl.append(ks)\n            # at most one: sequential would be better; pairwise ok\n            for x,y in itertools.combinations(ks,2): cl.append([-x,-y])\n        for i in a[g]:\n            for j in b[g]:\n                if j<=i: cl.append([-a[g][i],-b[g][j]])\n        for r in range(len(R)):\n            p=new(); q=new(); vg=v[g][r]\n            for sel,pp in ((a[g],p),(b[g],q)):\n                for i,sv in sel.items():\n                    if i<N:\n                        cl.append([-sv, pp if val(i,r) else -pp])\n                    else:\n                        cl.append([-sv,-pp,v[i][r]]); cl.append([-sv,pp,-v[i][r]])\n            tg=t[g]\n            # AND (t=1)\n            cl+= [[-tg,-vg,p],[-tg,-vg,q],[-tg,vg,-p,-q]]\n            # OR\n            cl+= [[tg,vg,-p],[tg,vg,-q],[tg,-vg,p,q]]\n            # monotone redundant\n            cl+= [[-vg,p,q],[vg,-p,-q]]\n    # output last gate\n    o=N+s-1\n    for r,(m,bit) in enumerate(R): cl.append([v[o][r] if bit else -v[o][r]])\n    # all gates used\n    for g in G:\n        if g==o: continue\n        cl.append([a[h][g] for h in G if h>g and g in a[h]]+[b[h][g] for h in G if h>g])\n    # colex strict order\n    for g in list(G)[:-1]:\n        h=g+1\n        for j in b[g]:\n            for j2 in b[h]:\n                if j2<j: cl.append([-b[g][j],-b[h][j2]])\n            if j in b[h]:\n                for i in a[g]:\n                    for i2 in a[h]:\n                        if i2<i: cl.append([-b[g][j],-b[h][j],-a[g][i],-a[h][i2]])\n                    if i in a[h]:\n                        # equal pair: need t_g=0,t_h=1\n                        cl.append([-b[g][j],-b[h][j],-a[g][i],-a[h][i],-t[g]])\n                        cl.append([-b[g][j],-b[h][j],-a[g][i],-a[h][i],t[h]])\n    if kand is not None:\n        # exactly kand AND gates via simple sequential counter\n        xs=[t[g] for g in G]\n        prev=[None]\n        cnt=[[new() for _ in range(len(xs)+1)] for _ in range(len(xs)+1)]  # cnt[i][c]: first i have >=c\n        for i in range(len(xs)+1):\n            cl.append([cnt[i][0]])\n            for c in range(i+1,len(xs)+1): cl.append([-cnt[i][c]])\n        for i in range(1,len(xs)+1):\n            for c in range(1,i+1):\n                x=xs[i-1]; y=cnt[i][c]\n                # y <-> cnt[i-1][c] or (x and cnt[i-1][c-1])\n                cl+=[[-cnt[i-1][c],y],[-x,-cnt[i-1][c-1],y],[-y,cnt[i-1][c],x],[-y,cnt[i-1][c],cnt[i-1][c-1]]]\n        n=len(xs)\n        cl.append([cnt[n][kand]])\n        if kand<n: cl.append([-cnt[n][kand+1]])\n    if extra: extra(dict(a=a,b=b,t=t,v=v,G=G,R=R,cl=cl,new=new,N=N,s=s))\n    with open(out,'w') as fo:\n        fo.write(\"p cnf %d %d\\n\"%(nv[0],len(cl)))\n        for c in cl: fo.write(\" \".join(map(str,c))+\" 0\\n\")\n    return dict(a=a,b=b,t=t,G=G,nR=len(R),nmax=len(maxz))\ndef decode(info, modelfile):\n    lits=set()\n    for line in open(modelfile):\n        if line.startswith('v'):\n            lits.update(int(x) for x in line.split()[1:])\n    gates=[]\n    for g in info['G']:\n        i=[i for i,x in info['a'][g].items() if x in lits][0]\n        j=[j for j,x in info['b'][g].items() if x in lits][0]\n        gates.append(('and' if info['t'][g] in lits else 'or',i,j))\n    return gates\ndef verify(gates):\n    for m in range(1<<N):\n        w=[(m>>i)&1 for i in range(N)]\n        for op,i,j in gates:\n            w.append(w[i]&w[j] if op=='and' else w[i]|w[j])\n        if bool(w[-1])!=f(m): return False\n    return True\nif __name__==\"__main__\":\n    s=int(sys.argv[1]); out=sys.argv[2]\n    kand=int(sys.argv[3]) if len(sys.argv)>3 else None\n    info=encode(s,out,kand)\n    print(\"rows\",info['nR'],\"maxzeros\",info['nmax'])\n"
  },
  "full_row_attempts_no_answer": [
   {
    "domain": "all Monotone2 circuits, 26 gates, 14 inputs, 58 rows (5876 variables, 429516 clauses)",
    "result": "not run to an answer; the 27-gate control below did not finish, so the 26-gate unrestricted instance was not given a separate long run"
   },
   {
    "domain": "27 gates unrestricted (control; a solution is known)",
    "result": "6 seeds, 240 s each: no model found"
   },
   {
    "domain": "26 gates, every AND gate below f",
    "result": "4 seeds, 520 s each: no answer. Control at 27 gates, 3 seeds, 520 s: no model found"
   },
   {
    "domain": "26 gates, AND-depth at most 1 (family R1), with/without 14 extra single-variable rows, with/without 'AND below f'",
    "result": "6 runs, 500 s each: no answer. Controls at 27 gates, 3 runs: no model found"
   },
   {
    "domain": "26 gates, AND-depth at most 2, same variants",
    "result": "5 runs, 500 s each: no answer. Controls at 27 gates, 2 runs: no model found"
   }
  ],
  "reading_of_the_timeouts": "The controls failed to rediscover the known 27-gate circuit within the same budget, so the 26-gate timeouts are no evidence in either direction. No saving was proposed by any run, so there was no candidate to evaluate on the 16384 inputs beyond the baseline."
 },
 "source": "",
 "validation": "computation-only",
 "remaining": "For the row as posted: a concrete circuit of at most 26 gates, which by R1 must contain an AND gate above another AND gate and by R2 cannot come from re-synthesising a block of at most 3 stars. For its opposite L-meta-971: the first missing implication is 'Monotone2 C and C computes the Heawood edge function implies there is an AND-depth-1 Monotone2 circuit for the same function with at most C.size gates'; with R1 that gives 27 <= C.size. The smallest undecided finite instances on that road are the two 4-star blocks (12 edges; 14 gates or fewer), then circuits containing an AND gate that is not below f. R1 and R2 have no Lean text; formalising R1 (helper heawood_and_depth_one_ge_27) is the first Lean step.",
 "sources": [
  "https://data.pequalnp.com/data/desk/gaps.json",
  "https://github.com/brilliant-hq/pequalnp-proofs/tree/e3b1828a4423909b34c8d8184be1e208451c631a",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/PEqualNP/Defs/CircuitLowerBounds.lean",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/PEqualNP/Defs/MetaComplexityLgpMono.lean",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/notes/note-1-edge-function-exact-size.md",
  "https://pequalnp.com/join.txt",
  "https://github.com/arminbiere/kissat"
 ]
}