{
 "unit": "L-meta-25843",
 "statement": "∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.FanInTwo C ∧ C.size ≤ 3 ∧ PEqualNP.Represents.Represents (fun u v : Fin 4 => (31743 : ℕ).testBit (4 * u.val + v.val)) C",
 "verdict": "no_circuit",
 "search_complete": true,
 "min_gates": 4,
 "circuit": {
  "gates": [
   {
    "op": "and",
    "inputs": [
     2,
     6
    ]
   },
   {
    "op": "and",
    "inputs": [
     3,
     7
    ]
   },
   {
    "op": "or",
    "inputs": [
     8,
     9
    ]
   },
   {
    "op": "not",
    "inputs": [
     10
    ]
   }
  ],
  "output": 11,
  "size": 4,
  "note": "Witness of the 4-gate upper bound (not of the statement, which asks for at most 3): NOT((x2 AND y2) OR (x3 AND y3)); wires 0-3 are the left vertices u, 4-7 the right vertices v. Verified on all 16 promised inputs by the search program."
 },
 "coverage": "Each wire is held as its 16-bit table over the promised inputs oneEach u v (bit 4u+v). For each k in 0..3 the program enumerates every gate list of exactly k gates: op in {and, or, not} (FanInTwo excludes mod and maj) and every input list of length 0, 1 or 2 (ordered, repetitions allowed) over the existing wire indices plus one extra symbol standing for every index past the end, which reads false (table 0); not on [] is true, not on [a,b] is not a, and on [] is true, or on [] is false. Then every output index is tried: each existing wire, plus one index past the end (reads false). Circuits with fewer gates are covered by the smaller k; unused gates are allowed since the output may be any wire; repeated inputs and absent indices are enumerated explicitly. Counts: k=0: 1, k=1: 273, k=2: 90909, k=3: 36272691 gate lists, none representing the target (target table 31743; it is no input table and not 0). The program also finds and independently re-evaluates a 4-gate circuit, so the minimum is 4. Lean proof independently re-derives the refutation: any FanInTwo circuit's wire tables are reachable by a table search with deduplicated candidate tables (sound lemma), and decide +kernel shows the 3-gate table search fails (split into 62 lemmas, one per distinct first-gate table).",
 "program": "# Exhaustive search for FanInTwo circuits (and/or/not, <=2 inputs) representing\n# A u v = (31743).testBit(4u+v) on the 16 promised inputs oneEach u v (n=m=4, 8 input wires).\n# Each wire is its 16-bit table; bit 4u+v = value at oneEach u v.\nimport itertools, sys\nT = 31743\nFULL = 0xFFFF\ndef inp(i):\n    t = 0\n    for u in range(4):\n        for v in range(4):\n            if (i < 4 and u == i) or (i >= 4 and v == i - 4): t |= 1 << (4*u+v)\n    return t\nINPUTS = [inp(i) for i in range(8)]\ndef gate_vals(wires):\n    # Any index >= len(wires) reads false: one extra symbol (table 0) stands for all of them.\n    srcs = list(range(len(wires))) + [None]\n    val = lambda s: 0 if s is None else wires[s]\n    seqs = [()] + [(a,) for a in srcs] + [(a, b) for a in srcs for b in srcs]\n    out = []\n    for op in ('and', 'or', 'not'):\n        for s in seqs:\n            vs = [val(x) for x in s]\n            if op == 'and':\n                r = FULL\n                for x in vs: r &= x\n            elif op == 'or':\n                r = 0\n                for x in vs: r |= x\n            else:\n                r = FULL ^ (vs[0] if vs else 0)\n            out.append((r, op, s))\n    return out\ndef search(k):\n    sols = []; count = [0]\n    def rec(wires, gates):\n        if len(gates) == k:\n            count[0] += 1\n            # output: any existing index, or any index past the end (reads false)\n            for o in list(range(len(wires))) + [len(wires)]:\n                if (wires[o] if o < len(wires) else 0) == T:\n                    sols.append((list(gates), o)); return True\n            return False\n        for r, op, s in gate_vals(wires):\n            if rec(wires + [r], gates + [(op, s)]): return True\n        return False\n    rec(list(INPUTS), [])\n    return sols, count[0]\ndef find4():\n    # Witness search for 4 gates: DFS over gate choices, skipping gates whose table already\n    # exists (only used to FIND a circuit, so pruning is harmless here).\n    def rec(wires, gates):\n        if len(gates) == 4:\n            return (list(gates), wires.index(T)) if T in wires else None\n        seen = set(wires)\n        for r, op, s in gate_vals(wires):\n            if r in seen: continue\n            seen.add(r)\n            got = rec(wires + [r], gates + [(op, s)])\n            if got: return got\n        return None\n    return rec(list(INPUTS), [])\ndef check(gates, out):\n    # independent evaluation, point by point, with the Lean semantics\n    for u in range(4):\n        for v in range(4):\n            w = [int(i == u) for i in range(4)] + [int(j == v) for j in range(4)]\n            for op, s in gates:\n                vals = [w[i] if i is not None and i < len(w) else 0 for i in s]\n                w.append(int(all(vals)) if op == 'and' else int(any(vals)) if op == 'or' else 1 - (vals[0] if vals else 0))\n            got = w[out] if out < len(w) else 0\n            if got != (T >> (4*u+v)) & 1: return False\n    return True\nfor k in range(0, 4):\n    sols, n = search(k)\n    print('gates<=%d' % k, 'found' if sols else 'none', 'gate lists tried:', n, sols[:1]); sys.stdout.flush()\nw = find4()\nprint('4-gate circuit:', w, 'verified:', check(*w))\n",
 "mode": "refute",
 "complete": true,
 "lean": "import PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_meta_25843_aux\n\nopen PEqualNP.CircuitLowerBounds\n\n/-- A gate applied to wire tables, each a 16-bit mask over the promised inputs. -/\ndef gv : GateOp → List Nat → Nat\n  | GateOp.and, ts => ts.foldr (fun a b => a &&& b) 65535\n  | GateOp.or, ts => ts.foldr (fun a b => a ||| b) 0\n  | GateOp.not, ts => 65535 ^^^ ts.headD 0\n  | _, _ => 0\n\ndef gtab (g : Gate) (w : List Nat) : Nat := gv g.op (g.inputs.map fun i => w.getD i 0)\n\ndef tabs (gs : List Gate) (w : List Nat) : List Nat :=\n  gs.foldl (fun w g => w ++ [gtab g w]) w\n\ndef seqs (S : List Nat) : List (List Nat) :=\n  [] :: ((S.map fun a => [a]) ++ S.flatMap (fun a => S.map fun b => [a, b]))\n\ndef ddb : List Nat → Nat → List Nat\n  | [], _ => []\n  | a :: l, s => bif s.testBit a then ddb l s else a :: ddb l (s ||| 1 <<< a)\n\ndef dd (l : List Nat) : List Nat := ddb l 0\n\ndef raw (ws : List Nat) : List Nat :=\n  [GateOp.and, GateOp.or, GateOp.not].flatMap fun op => (seqs (ws ++ [0])).map (gv op)\n\ndef good (t : Nat) : Bool := (t &&& 65535) == 31743\n\ndef srch : Nat → List Nat → Bool\n  | 0, ws => (ws ++ [0]).any good\n  | 1, ws => (ws ++ [0]).any good || (raw ws).any good\n  | k + 2, ws => (ws ++ [0]).any good || (dd (raw ws)).any fun t => srch (k + 1) (ws ++ [t])\n\ndef s0 (ws : List Nat) : Bool := (ws ++ [0]).any good\n\ndef s1 (ws : List Nat) : Bool := s0 ws || (raw ws).any good\n\ndef s2 (ws : List Nat) : Bool := s0 ws || (dd (raw ws)).any fun t => s1 (ws ++ [t])\n\ndef s3 (ws : List Nat) : Bool := s0 ws || (dd (raw ws)).any fun t => s2 (ws ++ [t])\n\ntheorem srch_s3 (ws : List Nat) : srch 3 ws = s3 ws := by\n  simp only [srch, s3, s2, s1, s0]\n\ndef inT : List Nat := [15, 240, 3840, 61440, 4369, 8738, 17476, 34952]\n\ntheorem mem_ddb (l : List Nat) : ∀ (s a : Nat), a ∈ l → s.testBit a = false → a ∈ ddb l s := by\n  induction l with\n  | nil => intro s a h; simp at h\n  | cons b l ih =>\n    intro s a h hs\n    by_cases hab : a = b\n    · subst hab; simp [ddb, hs]\n    · have h' : a ∈ l := by simpa [hab] using h\n      cases hb : s.testBit b\n      · have : (s ||| 1 <<< b).testBit a = false := by\n          simp [Nat.testBit_or, hs, Nat.shiftLeft_eq, Nat.testBit_two_pow, Ne.symm hab]\n        simp [ddb, hb, ih _ _ h' this]\n      · simp [ddb, hb, ih _ _ h' hs]\n\ntheorem mem_dd (a : Nat) (l : List Nat) (h : a ∈ l) : a ∈ dd l :=\n  mem_ddb l 0 a h (Nat.zero_testBit a)\n\ntheorem bit65535 (p : Nat) (hp : p < 16) : (65535 : Nat).testBit p = true := by\n  interval_cases p <;> rfl\n\ntheorem gv_bit (op : GateOp) (hop : op = GateOp.and ∨ op = GateOp.or ∨ op = GateOp.not)\n    (ts : List Nat) (p : Nat) (hp : p < 16) :\n    (gv op ts).testBit p = op.eval (ts.map fun t => t.testBit p) := by\n  rcases hop with rfl | rfl | rfl\n  · induction ts with\n    | nil => simp [gv, GateOp.eval, bit65535 p hp]\n    | cons a ts ih => simp_all [gv, GateOp.eval, Nat.testBit_and]\n  · induction ts with\n    | nil => simp [gv, GateOp.eval]\n    | cons a ts ih => simp_all [gv, GateOp.eval, Nat.testBit_or]\n  · cases ts <;> simp [gv, GateOp.eval, Nat.testBit_xor, bit65535 p hp]\n\ntheorem map_getD (w : List Nat) (i p : Nat) :\n    (w.map fun t => t.testBit p).getD i false = (w.getD i 0).testBit p := by\n  simp only [List.getD_eq_getElem?_getD, List.getElem?_map]\n  cases w[i]? <;> simp\n\ndef FT (g : Gate) : Prop :=\n  g.op ∈ ({GateOp.and, GateOp.or, GateOp.not} : Set GateOp) ∧ g.inputs.length ≤ 2\n\ntheorem tabs_bit (gs : List Gate) (hgs : ∀ g ∈ gs, FT g) (w : List Nat) (p : Nat)\n    (hp : p < 16) :\n    (tabs gs w).map (fun t => t.testBit p) =\n      gs.foldl (fun w g => w ++ [g.op.eval (g.inputs.map fun i => w.getD i false)])\n        (w.map fun t => t.testBit p) := by\n  induction gs generalizing w with\n  | nil => rfl\n  | cons g gs ih =>\n    have hg := (hgs g (List.mem_cons_self ..)).1\n    have hop : g.op = GateOp.and ∨ g.op = GateOp.or ∨ g.op = GateOp.not := by simpa using hg\n    have e : tabs (g :: gs) w = tabs gs (w ++ [gtab g w]) := rfl\n    rw [e, ih (fun g' h' => hgs g' (List.mem_cons_of_mem _ h')), List.foldl_cons]\n    congr 1\n    simp only [List.map_append, List.map_cons, List.map_nil, gtab, gv_bit _ hop _ p hp,\n      List.map_map]\n    congr 3\n    simp only [Function.comp_def, map_getD]\n\ntheorem getD_mem (w : List Nat) (i : Nat) : w.getD i 0 ∈ w ++ [0] := by\n  rw [List.getD_eq_getElem?_getD]\n  cases h : w[i]? with\n  | none => simp\n  | some a => simp [List.mem_of_getElem? h]\n\ntheorem cand_mem (g : Gate) (hg : FT g) (ws : List Nat) : gtab g ws ∈ raw ws := by\n  have hop : g.op = GateOp.and ∨ g.op = GateOp.or ∨ g.op = GateOp.not := by simpa using hg.1\n  have hL : g.inputs.map (fun i => ws.getD i 0) ∈ seqs (ws ++ [0]) := by\n    have hl := hg.2\n    rcases hi : g.inputs with _ | ⟨a, _ | ⟨b, _ | ⟨c, l⟩⟩⟩\n    · simp [seqs]\n    · simp only [seqs, List.map_cons, List.map_nil]\n      apply List.mem_cons_of_mem\n      apply List.mem_append_left\n      exact List.mem_map.2 ⟨_, getD_mem ws a, rfl⟩\n    · simp only [List.map_cons, List.map_nil, seqs]\n      apply List.mem_cons_of_mem\n      apply List.mem_append_right\n      exact List.mem_flatMap.2 ⟨_, getD_mem ws a, List.mem_map.2 ⟨_, getD_mem ws b, rfl⟩⟩\n    · rw [hi] at hl; simp at hl\n  unfold gtab raw\n  rcases hop with h | h | h <;> rw [h] <;> simp only [List.mem_flatMap] <;>\n    exact ⟨_, by simp, List.mem_map.2 ⟨_, hL, rfl⟩⟩\n\ntheorem srch_of_mem (k : Nat) (ws : List Nat) (t : Nat) (ht : t ∈ ws ++ [0])\n    (hg : good t = true) : srch k ws = true := by\n  have h : (ws ++ [0]).any good = true := List.any_eq_true.2 ⟨t, ht, hg⟩\n  match k with\n  | 0 => simpa [srch] using h\n  | 1 => simp [srch, h]\n  | k + 2 => simp [srch, h]\n\ntheorem sound (gs : List Gate) (hgs : ∀ g ∈ gs, FT g) (ws : List Nat) (k : Nat)\n    (hk : gs.length ≤ k) (o : Nat) (ho : good ((tabs gs ws).getD o 0) = true) :\n    srch k ws = true := by\n  induction gs generalizing ws k with\n  | nil => exact srch_of_mem k ws _ (getD_mem ws o) ho\n  | cons g gs ih =>\n    have e : tabs (g :: gs) ws = tabs gs (ws ++ [gtab g ws]) := rfl\n    rw [e] at ho\n    have hgs' : ∀ g' ∈ gs, FT g' := fun g' h' => hgs g' (List.mem_cons_of_mem _ h')\n    have hc := cand_mem g (hgs g (List.mem_cons_self ..)) ws\n    match k, hk with\n    | 0, hk => simp at hk\n    | 1, hk =>\n      have h0 : gs = [] := List.eq_nil_of_length_eq_zero (by simp only [List.length_cons] at hk; omega)\n      subst h0\n      have m := getD_mem (ws ++ [gtab g ws]) o\n      change good ((ws ++ [gtab g ws]).getD o 0) = true at ho\n      generalize (ws ++ [gtab g ws]).getD o 0 = x at ho m\n      simp only [List.mem_append, List.mem_singleton] at m\n      rcases m with (m | rfl) | rfl\n      · exact srch_of_mem 1 ws x (List.mem_append_left _ m) ho\n      · simp only [srch, Bool.or_eq_true, List.any_eq_true]\n        exact Or.inr ⟨_, hc, ho⟩\n      · exact srch_of_mem 1 ws 0 (by simp) ho\n    | k + 2, hk =>\n      have := ih hgs' (ws ++ [gtab g ws]) (k + 1) (by simp only [List.length_cons] at hk; omega) ho\n      simp only [srch, Bool.or_eq_true, List.any_eq_true]\n      exact Or.inr ⟨_, mem_dd _ _ hc, this⟩\n\ntheorem one_each : ∀ u v : Fin 4,\n    PEqualNP.Represents.oneEach u v = inT.map (fun t => t.testBit (4 * u.val + v.val)) := by\n  decide\n\ntheorem good_of (t : Nat)\n    (h : ∀ u v : Fin 4, t.testBit (4 * u.val + v.val) = (31743 : Nat).testBit (4 * u.val + v.val)) :\n    good t = true := by\n  have e : t &&& 65535 = 31743 := by\n    apply Nat.eq_of_testBit_eq\n    intro i\n    rw [Nat.testBit_and]\n    by_cases hi : i < 16\n    · rw [bit65535 i hi, Bool.and_true]\n      have := h ⟨i / 4, by omega⟩ ⟨i % 4, by omega⟩\n      simp only at this\n      rwa [show 4 * (i / 4) + i % 4 = i by omega] at this\n    · have h1 : (65535 : Nat).testBit i = false :=\n        Nat.testBit_eq_false_of_lt (lt_of_lt_of_le (by norm_num) (Nat.pow_le_pow_right (by norm_num) (by omega : 16 ≤ i)))\n      have h2 : (31743 : Nat).testBit i = false :=\n        Nat.testBit_eq_false_of_lt (lt_of_lt_of_le (by norm_num) (Nat.pow_le_pow_right (by norm_num) (by omega : 16 ≤ i)))\n      rw [h1, h2, Bool.and_false]\n  simp [good, e]\n\ndef c0 : List Nat := [65535, 15, 240, 3840, 61440, 4369, 8738, 17476, 34952, 0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 255, 3855, 61455, 4383, 8751, 17487, 34959, 4080, 61680, 4593, 8946, 17652, 35064, 65280, 7953, 12066, 20292, 36744, 61713, 61986, 62532, 63624, 13107, 21845, 39321, 26214, 43690, 52428, 65520, 65295, 61695, 4095, 61166, 56797, 48059, 30583]\n\ntheorem c0_eq : dd (raw inT) = c0 := by\n  decide +kernel\n\ntheorem s0_false : s0 inT = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h0 : s2 (inT ++ [65535]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h1 : s2 (inT ++ [15]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h2 : s2 (inT ++ [240]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h3 : s2 (inT ++ [3840]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h4 : s2 (inT ++ [61440]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h5 : s2 (inT ++ [4369]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h6 : s2 (inT ++ [8738]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h7 : s2 (inT ++ [17476]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h8 : s2 (inT ++ [34952]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h9 : s2 (inT ++ [0]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h10 : s2 (inT ++ [1]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h11 : s2 (inT ++ [2]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h12 : s2 (inT ++ [4]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h13 : s2 (inT ++ [8]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h14 : s2 (inT ++ [16]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h15 : s2 (inT ++ [32]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h16 : s2 (inT ++ [64]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h17 : s2 (inT ++ [128]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h18 : s2 (inT ++ [256]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h19 : s2 (inT ++ [512]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h20 : s2 (inT ++ [1024]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h21 : s2 (inT ++ [2048]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h22 : s2 (inT ++ [4096]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h23 : s2 (inT ++ [8192]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h24 : s2 (inT ++ [16384]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h25 : s2 (inT ++ [32768]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h26 : s2 (inT ++ [255]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h27 : s2 (inT ++ [3855]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h28 : s2 (inT ++ [61455]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h29 : s2 (inT ++ [4383]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h30 : s2 (inT ++ [8751]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h31 : s2 (inT ++ [17487]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h32 : s2 (inT ++ [34959]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h33 : s2 (inT ++ [4080]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h34 : s2 (inT ++ [61680]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h35 : s2 (inT ++ [4593]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h36 : s2 (inT ++ [8946]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h37 : s2 (inT ++ [17652]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h38 : s2 (inT ++ [35064]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h39 : s2 (inT ++ [65280]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h40 : s2 (inT ++ [7953]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h41 : s2 (inT ++ [12066]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h42 : s2 (inT ++ [20292]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h43 : s2 (inT ++ [36744]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h44 : s2 (inT ++ [61713]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h45 : s2 (inT ++ [61986]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h46 : s2 (inT ++ [62532]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h47 : s2 (inT ++ [63624]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h48 : s2 (inT ++ [13107]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h49 : s2 (inT ++ [21845]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h50 : s2 (inT ++ [39321]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h51 : s2 (inT ++ [26214]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h52 : s2 (inT ++ [43690]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h53 : s2 (inT ++ [52428]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h54 : s2 (inT ++ [65520]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h55 : s2 (inT ++ [65295]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h56 : s2 (inT ++ [61695]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h57 : s2 (inT ++ [4095]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h58 : s2 (inT ++ [61166]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h59 : s2 (inT ++ [56797]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h60 : s2 (inT ++ [48059]) = false := by\n  decide +kernel\n\nset_option maxHeartbeats 0 in\ntheorem h61 : s2 (inT ++ [30583]) = false := by\n  decide +kernel\n\ntheorem s3_false : s3 inT = false := by\n  rw [s3, c0_eq, s0_false]\n  simp only [c0, List.any_cons, List.any_nil, h0, h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11, h12, h13, h14, h15, h16, h17, h18, h19, h20, h21, h22, h23, h24, h25, h26, h27, h28, h29, h30, h31, h32, h33, h34, h35, h36, h37, h38, h39, h40, h41, h42, h43, h44, h45, h46, h47, h48, h49, h50, h51, h52, h53, h54, h55, h56, h57, h58, h59, h60, h61, Bool.or_false]\n\ntheorem _root_.PEqualNP.Outside.L_meta_25843 : ¬ (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C ∧ C.size ≤ 3 ∧\n      PEqualNP.Represents.Represents (fun u v : Fin 4 => (31743 : ℕ).testBit (4 * u.val + v.val)) C) := by\n  rintro ⟨C, hf, hs, hr⟩\n  have hgs : ∀ g ∈ C.gates, FT g := hf\n  have key : ∀ u v : Fin 4, ((tabs C.gates inT).getD C.output 0).testBit (4 * u.val + v.val) =\n      (31743 : Nat).testBit (4 * u.val + v.val) := by\n    intro u v\n    have h := hr u v\n    simp only [Circuit.eval, Circuit.wires, one_each u v] at h\n    rw [← tabs_bit C.gates hgs inT _ (by omega), map_getD] at h\n    exact h\n  have := sound C.gates hgs inT 3 hs C.output (good_of _ key)\n  rw [srch_s3, s3_false] at this\n  exact Bool.false_ne_true this\n\nend PEqualNP.Outside.L_meta_25843_aux\n",
 "lean_bytes": 15760,
 "lean_sha256": "a3f1618fe369e491efe2385022d56905cfa67766824af1039a40c591fdb45a51",
 "build": {
  "exit": 0,
  "seconds": 170.3,
  "peak_memory_gb": 4.1,
  "command": "lake build PEqualNP.Outside.L_meta_25843 (lean/, Lean v4.36.0, repo commit e8dc2d83cc1f03dc3fcf24af495304f2dc5e0d36)"
 },
 "checker": {
  "exit": 0,
  "last_line": "ACCEPTED (refute): PEqualNP.Outside.L_meta_25843; axioms [propext, Quot.sound, Classical.choice]; kernel re-checked 1926 constants of [PEqualNP.Defs.Base, PEqua",
  "seconds": 162.1,
  "peak_memory_gb": 14.2,
  "command": "node tools/check-lean.mjs lean/PEqualNP/Outside/L_meta_25843.lean <statement file> refute"
 },
 "axioms": [
  "propext",
  "Quot.sound",
  "Classical.choice"
 ],
 "missing": "No pull request opened and no lease taken, as the brief directs. The checker's peak memory (14.2 GB) and build time (about 3 minutes) were measured on this machine only.",
 "approach": "Target A u v = 31743.testBit(4u+v): rows 15,15,11,7, i.e. true except cells (2,2) and (3,3). Exhaustive Python search over all FanInTwo gate lists of at most 3 gates on 16-bit wire tables found none; 4 gates suffice (NOT of OR of two ANDs). Lean (mode refute): wire values on oneEach u v are bit 4u+v of tables computed by tabs (tabs_bit, one_each); each gate's table lies in the candidate list raw ws built from the existing tables and 0 (cand_mem); a bitset dedup keeps every candidate (mem_ddb); sound shows a circuit of at most 3 gates would make srch 3 inT true; decide +kernel shows it is false. No sorry, native_decide, extra axioms, macros or double quotes; set_option maxHeartbeats 0 only directly above the decide lemmas.",
 "skipped": false,
 "row_check": "Row re-fetched before writing: unit still listed in gaps, pr_open 0, statement unchanged."
}