{
  "agent": "LA10",
  "group": "Lean 4 automation",
  "gap": "L-meta-16092",
  "strategy": "Packaging",
  "status": "partial",
  "summary": "Packaged the nine-gate monotone witness and the ten-gate witness with an unused unary NOT. The same companion proves lower bounds of five gates unrestricted and six with the required NOT, and proves that any fan-in-two witness of size at most eight can be padded to satisfy the posted existential. Pinned Lean and an independent leanchecker replay accepted the companion. The official verifier exited 137 before returning a verdict (wrapper exit 3). The posted nine-gate existential and its negation remain uncertified.",
  "desk": {
    "state": "leased",
    "time": "2026-11-26T08:15:35Z",
    "timeSource": "HTTP Date of the single read-only GET",
    "since": "2026-11-26T03:49:16.355Z",
    "holders": 1,
    "httpStatus": 200,
    "url": "https://pequalnp.com/desk/step?gap=L-meta-16092"
  },
  "statementSha256": "7cc1640866f80728668dd740e9659a3d45d1c6e31636f679571155dfa7684829",
  "exactStatement": "∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.FanInTwo C ∧ (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧ C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)",
  "exactStatementSource": "https://data.pequalnp.com/data/lemma/L-meta-16092.a529404eadbd.json",
  "exactVerification": {
    "elaboration": "pass",
    "guard": "not-run",
    "check-lean": {
      "mode": null,
      "exitCode": null
    },
    "axioms": "not-run",
    "reason": "The exact proposition elaborated in the audit file. There is no theorem of that type or its negation in this package."
  },
  "claims": [
    {
      "statement": "let f := fun x : Fin 6 → Bool =>\n  Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)\n(∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n(∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.FanInTwo C ∧\n  (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n  C.size ≤ 10 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n(∀ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.FanInTwo C → (∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n  5 ≤ C.size ∧\n  ((∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) → 6 ≤ C.size)) ∧\n((∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.FanInTwo C ∧ C.size ≤ 8 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n  (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C ∧\n    (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n    C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x))\n",
      "statementSha256": "5faa0ec8b3675f8813e7a11a4de10a0bd3196dd5ab75bcfd19d3681a3c7affcf",
      "kind": "companion",
      "path": "lean/PEqualNP/Outside/L_meta_16092_companion.lean",
      "sha256": "cb8c8569c6b7c146cf59176c16e92ba349b263b76572b37c3b1cca17ed23f6e7",
      "elaboration": "pass",
      "guard": "pass",
      "guardExitCodes": {
        "imports": 0,
        "closure": 0
      },
      "check-lean": {
        "mode": "check",
        "exitCode": 3,
        "verdict": "CHECKER FAULT: the verifier ended without a verdict (exit 137).",
        "statementFile": "companion.statement",
        "stages": [
          "checker stage: started t=0s",
          "checker stage: build lock taken t=0s",
          "checker stage: building the verifier t=0s",
          "checker stage: building the file and the definitions root t=27s",
          "checker stage: verifier reading the built file t=128s"
        ]
      },
      "axioms": "pass",
      "axiomAudit": [
        "'PEqualNP.Outside.L_meta_16092_companion' depends on axioms: [propext, Classical.choice, Quot.sound]",
        "'PEqualNP.Outside.L_meta_16092_companion.monoCorrect' depends on axioms: [propext, Classical.choice, Quot.sound]",
        "'PEqualNP.Outside.L_meta_16092_companion.pivotal' depends on axioms: [propext, Classical.choice, Quot.sound]"
      ],
      "independentAuditExitCode": 0,
      "leancheckerReplayExitCode": 0
    },
    {
      "statement": "On all 64 inputs, both explicit circuits and MP09's Boolean factorization agree with the public table. The table is monotone on every upward edge, and each of the six listed row pairs is pivotal in its stated coordinate.",
      "kind": "evidence",
      "path": "check_rows.py",
      "sha256": "23492d757b67bb1dd1ab6418ef98cdb51c6a94a8fb62b459002a4253f5193121",
      "elaboration": "not-run",
      "guard": "not-run",
      "check-lean": {
        "mode": null,
        "exitCode": null
      },
      "axioms": "not-run",
      "programExitCode": 0
    }
  ],
  "artifacts": [
    {
      "path": "lean/PEqualNP/Outside/L_meta_16092_companion.lean",
      "sha256": "cb8c8569c6b7c146cf59176c16e92ba349b263b76572b37c3b1cca17ed23f6e7",
      "role": "One self-contained companion module for the pinned project.",
      "content": "import PEqualNP.Defs\n\nopen PEqualNP.CircuitLowerBounds\n\nnamespace PEqualNP.Outside.L_meta_16092_companion\n\ndef step (w : List Bool) (g : Gate) : List Bool :=\n  w ++ [g.op.eval (g.inputs.map fun i => w.getD i false)]\n\ndef run (gs : List Gate) (x : List Bool) : List Bool :=\n  gs.foldl step x\n\ntheorem length_run (gs : List Gate) (x : List Bool) :\n    (run gs x).length = x.length + gs.length := by\n  induction gs generalizing x with\n  | nil => simp [run]\n  | cons g gs ih =>\n    change (run gs (step x g)).length = x.length + (g :: gs).length\n    rw [ih]\n    simp [step]\n    omega\n\ndef agree (x y : List Bool) (S : Finset ℕ) : Prop :=\n  ∀ i ∈ S, x.getD i false = y.getD i false\n\ndef budget (gs : List Gate) : ℕ :=\n  gs.countP (fun g => decide (g.inputs.length = 2))\n\ntheorem budget_step (gs : List Gate) (g : Gate) (h : g.inputs.length ≤ 2) :\n    g.inputs.toFinset.card + budget gs ≤ 1 + budget (gs ++ [g]) := by\n  have hCard := g.inputs.toFinset_card_le\n  by_cases hTwo : g.inputs.length = 2\n  · simp [budget, hTwo]\n    omega\n  · simp [budget, hTwo]\n    omega\n\n-- Trace only the wires in the demand set through the last gate.\ntheorem demand (n : ℕ) (gs : List Gate) (h : ∀ g ∈ gs, g.inputs.length ≤ 2)\n    (S : Finset ℕ) :\n    ∃ T : Finset ℕ, T.card ≤ S.card + budget gs ∧\n      ∀ x y : List Bool, x.length = n → y.length = n →\n        agree x y T → agree (run gs x) (run gs y) S := by\n  induction gs using List.reverseRecOn generalizing S with\n  | nil => exact ⟨S, by simp [budget], fun _ _ _ _ h => h⟩\n  | append_singleton gs g ih =>\n    let j := n + gs.length\n    let P := if j ∈ S then S.erase j ∪ g.inputs.toFinset else S\n    have hStep := budget_step gs g (h g (by simp))\n    obtain ⟨T, hT, hAgree⟩ := ih (fun a ha => h a (List.mem_append_left _ ha)) P\n    refine ⟨T, ?_, ?_⟩\n    · by_cases hj : j ∈ S\n      · have hCard := Finset.card_union_le (S.erase j) g.inputs.toFinset\n        have hErase := Finset.card_erase_add_one hj\n        simp only [P, ite_eq_left hj] at hT\n        omega\n      · simp only [P, ite_eq_right hj] at hT\n        simpa [budget] using hT.trans (Nat.add_le_add_left\n          (show budget gs ≤ budget (gs ++ [g]) by simp [budget]) S.card)\n    · intro x y hx hy hxy i hi\n      have hOld := hAgree x y hx hy hxy\n      have lx : (run gs x).length = j := by simp [length_run, hx, j]\n      have ly : (run gs y).length = j := by simp [length_run, hy, j]\n      change (run (gs ++ [g]) x).getD i false = (run (gs ++ [g]) y).getD i false\n      simp only [run, List.foldl_append, List.foldl_cons, List.foldl_nil]\n      change (step (run gs x) g).getD i false = (step (run gs y) g).getD i false\n      by_cases hij : i = j\n      · subst i\n        have hin : ∀ a ∈ g.inputs, a ∈ P := by\n          intro a ha\n          simp [P, hi, ha]\n        have hv := List.map_congr_left (fun a ha => hOld a (hin a ha))\n        unfold step\n        rw [hv]\n        simp only [List.getD_eq_getElem?_getD]\n        rw [List.getElem?_append_right (by omega : (run gs x).length ≤ j),\n            List.getElem?_append_right (by omega : (run gs y).length ≤ j), lx, ly,\n            Nat.sub_self]\n      · have hiP : i ∈ P := by\n          by_cases hj : j ∈ S <;> simp [P, hj, hij, hi]\n        have hiOld := hOld i hiP\n        by_cases hlt : i < j\n        · simpa only [step, List.getD_eq_getElem?_getD,\n            List.getElem?_append_left (show i < (run gs x).length by omega),\n            List.getElem?_append_left (show i < (run gs y).length by omega)] using hiOld\n        · have hPast : j + 1 ≤ i := by omega\n          rw [List.getD_eq_default, List.getD_eq_default] <;> simp [step, lx, ly, hPast]\n\ndef row (r : ℕ) (i : Fin 6) : Bool := r.testBit i\n\ndef target (x : Fin 6 → Bool) : Bool :=\n  Nat.testBit (3937069192 * 2 ^ 32 + 3901227008)\n    (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)\n\ndef low (i : Fin 6) : ℕ := ![18, 17, 25, 21, 3, 3] i\n\nset_option maxRecDepth 10000 in\ntheorem pivotal : ∀ i : Fin 6,\n    (∀ j : Fin 6, j ≠ i → row (low i) j = row (low i + 2 ^ (i : ℕ)) j) ∧\n    target (row (low i)) ≠ target (row (low i + 2 ^ (i : ℕ))) := by\n  decide +kernel\n\ntheorem card_pivotal (T : Finset ℕ)\n    (h : ∀ x y : Fin 6 → Bool, agree (List.ofFn x) (List.ofFn y) T → target x = target y) :\n    6 ≤ T.card := by\n  have hSub : Finset.range 6 ⊆ T := by\n    intro i hi\n    have hi6 := Finset.mem_range.mp hi\n    let j : Fin 6 := ⟨i, hi6⟩\n    let x := row (low j)\n    let y := row (low j + 2 ^ (j : ℕ))\n    by_contra hMissing\n    apply (pivotal j).2\n    apply h x y\n    intro a ha\n    by_cases hlt : a < 6\n    · have hne : (⟨a, hlt⟩ : Fin 6) ≠ j := by\n        intro he\n        apply hMissing\n        have hai : a = i := congrArg Fin.val he\n        exact hai ▸ ha\n      have hx : a < (List.ofFn x).length := by simpa using hlt\n      have hy : a < (List.ofFn y).length := by simpa using hlt\n      rw [List.getD_eq_getElem _ _ hx, List.getD_eq_getElem _ _ hy,\n          List.getElem_ofFn, List.getElem_ofFn]\n      exact (pivotal j).1 ⟨a, hlt⟩ hne\n    · rw [List.getD_eq_default, List.getD_eq_default] <;> simpa using Nat.le_of_not_gt hlt\n  simpa using Finset.card_le_card hSub\n\ntheorem targetLower :\n  ∀ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.FanInTwo C →\n  (∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)) →\n  5 ≤ C.size ∧ ((∃ g ∈ C.gates, g.op = GateOp.not ∧ g.inputs.length = 1) → 6 ≤ C.size) := by\n  intro C hFan hEval\n  obtain ⟨T, hCard, hAgree⟩ := demand 6 C.gates (fun g hg => (hFan g hg).2) {C.output}\n  have hAll : 6 ≤ T.card := card_pivotal T (by\n    intro x y h\n    have hW := hAgree (List.ofFn x) (List.ofFn y) (by simp) (by simp) h C.output (by simp)\n    change C.eval (List.ofFn x) = C.eval (List.ofFn y) at hW\n    simpa only [target, hEval] using hW)\n  have hBudget : 5 ≤ budget C.gates := by\n    simp at hCard\n    omega\n  have hLe : budget C.gates ≤ C.size := List.countP_le_length\n  refine ⟨hBudget.trans hLe, ?_⟩\n  rintro ⟨g, hg, _, hUnary⟩\n  have hStrict : budget C.gates < C.size := by\n    apply List.countP_lt_length_iff.mpr\n    exact ⟨g, hg, by simp [hUnary]⟩\n  omega\n\ndef la09 : List Gate :=\n  [⟨.and, [2, 3]⟩, ⟨.and, [1, 6]⟩, ⟨.or, [0, 7]⟩,\n   ⟨.or, [4, 5]⟩, ⟨.or, [1, 6]⟩, ⟨.and, [4, 5]⟩,\n   ⟨.or, [10, 11]⟩, ⟨.and, [8, 9]⟩, ⟨.and, [13, 12]⟩]\n\ndef monoCircuit : Circuit := ⟨la09, 14⟩\n\nset_option maxRecDepth 10000 in\ntheorem monoCorrect : ∀ x : Fin 6 → Bool, monoCircuit.eval (List.ofFn x) = target x := by\n  decide +kernel\n\ndef padded (C : Circuit) : Circuit :=\n  ⟨C.gates ++ [⟨.not, [0]⟩], C.output⟩\n\ntheorem paddedEval (C : Circuit) (x : List Bool) (h : C.output < x.length + C.size) :\n    (padded C).eval x = C.eval x := by\n  have hw : C.output < (C.wires x).length := by\n    change C.output < (run C.gates x).length\n    rwa [length_run]\n  simp only [Circuit.eval, padded, Circuit.wires, List.foldl_append,\n    List.foldl_cons, List.foldl_nil]\n  exact List.getD_append _ _ _ _ hw\n\ntheorem paddedFan (C : Circuit) (h : PEqualNP.MetaComplexity.FanInTwo C) :\n    PEqualNP.MetaComplexity.FanInTwo (padded C) := by\n  intro g hg\n  simp only [padded, List.mem_append, List.mem_singleton] at hg\n  rcases hg with hg | rfl\n  · exact h g hg\n  · simp\n\ntheorem paddedHasNot (C : Circuit) :\n    ∃ g ∈ (padded C).gates, g.op = GateOp.not ∧ g.inputs.length = 1 :=\n  ⟨⟨.not, [0]⟩, by simp [padded], rfl, rfl⟩\n\ntheorem paddedSize (C : Circuit) : (padded C).size = C.size + 1 := by\n  simp [padded, Circuit.size]\n\ntheorem targetOutputValid (C : Circuit)\n    (h : ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = target x) :\n    C.output < 6 + C.size := by\n  by_contra hMissing\n  have hEval := h (fun _ => true)\n  have hTrue : target (fun _ => true) = true := by decide\n  have hLen : (C.wires (List.ofFn (fun _ : Fin 6 => true))).length ≤ C.output := by\n    change (run C.gates (List.ofFn (fun _ : Fin 6 => true))).length ≤ C.output\n    simpa only [length_run, List.length_ofFn, Circuit.size] using Nat.le_of_not_gt hMissing\n  rw [Circuit.eval, List.getD_eq_default _ _ hLen, hTrue] at hEval\n  contradiction\n\ntheorem targetPadded (C : Circuit) (hFan : PEqualNP.MetaComplexity.FanInTwo C)\n    (h : ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = target x) :\n    PEqualNP.MetaComplexity.FanInTwo (padded C) ∧\n    (∃ g ∈ (padded C).gates, g.op = GateOp.not ∧ g.inputs.length = 1) ∧\n    (padded C).size = C.size + 1 ∧\n    ∀ x : Fin 6 → Bool, (padded C).eval (List.ofFn x) = target x := by\n  refine ⟨paddedFan C hFan, paddedHasNot C, paddedSize C, ?_⟩\n  intro x\n  rw [paddedEval C (List.ofFn x), h x]\n  simpa only [List.length_ofFn] using targetOutputValid C h\n\nend PEqualNP.Outside.L_meta_16092_companion\n\nopen PEqualNP.Outside.L_meta_16092_companion in\ntheorem PEqualNP.Outside.L_meta_16092_companion :\n  let f := fun x : Fin 6 → Bool =>\n    Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)\n  (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n  (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C ∧\n    (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n    C.size ≤ 10 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n  (∀ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C → (∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n    5 ≤ C.size ∧\n    ((∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) → 6 ≤ C.size)) ∧\n  ((∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C ∧ C.size ≤ 8 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n    (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n      PEqualNP.MetaComplexity.FanInTwo C ∧\n      (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n      C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x)) := by\n  change _ ∧ _ ∧ _ ∧ _\n  have hf : PEqualNP.MetaComplexity.FanInTwo monoCircuit := by\n    simp [PEqualNP.MetaComplexity.FanInTwo, monoCircuit, la09]\n  obtain ⟨hp, hn, hs, he⟩ := targetPadded monoCircuit hf monoCorrect\n  refine ⟨⟨monoCircuit, ?_, by decide, monoCorrect⟩,\n    ⟨padded monoCircuit, hp, hn, ?_, he⟩, targetLower, ?_⟩\n  · simp [PEqualNP.MetaComplexity.Monotone2, monoCircuit, la09]\n  · exact (show (padded monoCircuit).size ≤ 10 by decide)\n  · rintro ⟨C, hFan, hSize, hEval⟩\n    obtain ⟨hp, hn, hs, he⟩ := targetPadded C hFan hEval\n    exact ⟨padded C, hp, hn, by omega, he⟩\n"
    },
    {
      "path": "companion.statement",
      "sha256": "5faa0ec8b3675f8813e7a11a4de10a0bd3196dd5ab75bcfd19d3681a3c7affcf",
      "role": "Exact companion checker input, including final newline.",
      "content": "let f := fun x : Fin 6 → Bool =>\n  Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)\n(∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n(∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.FanInTwo C ∧\n  (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n  C.size ≤ 10 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n(∀ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.FanInTwo C → (∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n  5 ≤ C.size ∧\n  ((∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) → 6 ≤ C.size)) ∧\n((∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n  PEqualNP.MetaComplexity.FanInTwo C ∧ C.size ≤ 8 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n  (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C ∧\n    (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n    C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x))\n"
    },
    {
      "path": "target.statement",
      "sha256": "7cc1640866f80728668dd740e9659a3d45d1c6e31636f679571155dfa7684829",
      "role": "Public formal_statement bytes, with no final newline.",
      "content": "∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.FanInTwo C ∧ (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧ C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)"
    },
    {
      "path": "AuditCompanion.lean",
      "sha256": "0f5899316caa2dc8226af648bfd166ed0a67317423f3e6378688406d9b17d9a3",
      "role": "Separate Lean type binding and axiom audit.",
      "content": "import PEqualNP.Outside.L_meta_16092_companion\n\ndef originalStatement : Prop :=\n  ∃ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.MetaComplexity.FanInTwo C ∧ (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧ C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)\n\nexample :\n  let f := fun x : Fin 6 → Bool =>\n    Nat.testBit (3937069192 * 2 ^ 32 + 3901227008) (∑ i : Fin 6, if x i then 2 ^ (i : ℕ) else 0)\n  (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.Monotone2 C ∧ C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n  (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C ∧\n    (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n    C.size ≤ 10 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) ∧\n  (∀ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C → (∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n    5 ≤ C.size ∧\n    ((∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) → 6 ≤ C.size)) ∧\n  ((∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n    PEqualNP.MetaComplexity.FanInTwo C ∧ C.size ≤ 8 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x) →\n    (∃ C : PEqualNP.CircuitLowerBounds.Circuit,\n      PEqualNP.MetaComplexity.FanInTwo C ∧\n      (∃ g ∈ C.gates, g.op = PEqualNP.CircuitLowerBounds.GateOp.not ∧ g.inputs.length = 1) ∧\n      C.size ≤ 9 ∧ ∀ x : Fin 6 → Bool, C.eval (List.ofFn x) = f x)) :=\n  PEqualNP.Outside.L_meta_16092_companion\n\n#print axioms PEqualNP.Outside.L_meta_16092_companion\n#print axioms PEqualNP.Outside.L_meta_16092_companion.monoCorrect\n#print axioms PEqualNP.Outside.L_meta_16092_companion.pivotal\n"
    },
    {
      "path": "check_rows.py",
      "sha256": "23492d757b67bb1dd1ab6418ef98cdb51c6a94a8fb62b459002a4253f5193121",
      "role": "Independent standard-library-only row, factorization and pivotal-pair replay.",
      "content": "\"\"\"Replay the gate list written in the companion against all 64 public rows.\"\"\"\nfrom hashlib import sha256\nfrom itertools import product\nfrom pathlib import Path\nimport json\nimport re\nimport sys\n\nsource = Path(sys.argv[1]).read_text(encoding=\"utf-8\")\nstatement = Path(sys.argv[2]).read_bytes()\nassert sha256(statement).hexdigest() == (\n    \"7cc1640866f80728668dd740e9659a3d45d1c6e31636f679571155dfa7684829\"\n)\nupper, lower = map(int, re.search(\n    r\"Nat.testBit \\((\\d+) \\* 2 \\^ 32 \\+ (\\d+)\\)\",\n    statement.decode(\"utf-8\"),\n).groups())\ntable = (upper << 32) + lower\n\ngate_pattern = r\"⟨\\.(and|or|not), \\[([0-9, ]+)\\]⟩\"\n\ndef gates(text):\n    return [(op, tuple(map(int, wires.split(\",\"))))\n            for op, wires in re.findall(gate_pattern, text)]\n\nmono_source = source.split(\"def la09\", 1)[1].split(\"def monoCircuit\", 1)[0]\nmono = gates(mono_source)\nout = int(re.search(r\"def monoCircuit : Circuit := ⟨la09, (\\d+)⟩\", source)[1])\npadded_source = source.split(\"def padded \", 1)[1].split(\"theorem paddedEval\", 1)[0]\nassert \"C.output\" in padded_source\npadding = gates(padded_source)\npadded = mono + padding\nassert len(mono) == 9 and out == 14\nassert all(op in (\"and\", \"or\") and len(args) <= 2 for op, args in mono)\nassert len(padded) == 10 and padding == [(\"not\", (0,))]\nassert out < 6 + len(mono)\nfor wire, (_, operands) in enumerate(padded, start=6):\n    assert all(0 <= operand < wire for operand in operands)\n\ndef evaluate(circuit, bits):\n    wires = list(bits)\n    for op, operands in circuit:\n        args = [wires[i] if i < len(wires) else False for i in operands]\n        if op == \"and\":\n            value = all(args)\n        elif op == \"or\":\n            value = any(args)\n        else:\n            assert op == \"not\"\n            value = not (args[0] if args else False)\n        wires.append(value)\n    return wires[out] if out < len(wires) else False\n\ndef target(row):\n    return bool((table >> row) & 1)\n\nfor bits in product((False, True), repeat=6):\n    row = sum(1 << i for i, bit in enumerate(bits) if bit)\n    a, b, x2, x3, d, e = bits\n    c = x2 and x3\n    factored = (d or e) and (a or (b and c)) and (b or c or (d and e))\n    assert evaluate(mono, bits) == evaluate(padded, bits) == factored == target(row), row\n\nedges = [(row, row | (1 << i)) for row in range(64)\n         for i in range(6) if not (row & (1 << i))]\nassert all(target(a) <= target(b) for a, b in edges)\nlow = tuple(map(int, re.search(r\"def low .*? := !\\[([0-9, ]+)\\]\", source)[1].split(\",\")))\nassert len(low) == 6\npivots = [(a, a + (1 << i)) for i, a in enumerate(low)]\nfor i, (a, b) in enumerate(pivots):\n    assert a ^ b == 1 << i\n    assert target(a) != target(b)\n\nprint(json.dumps({\n    \"rows\": 64, \"upwardEdges\": len(edges), \"table\": f\"0x{table:016x}\",\n    \"sizeWithoutNot\": len(mono), \"sizeWithUnaryNot\": len(padded),\n    \"outputWire\": out, \"notWire\": 6 + len(mono), \"pivots\": pivots,\n}))\n"
    },
    {
      "path": "imports.json",
      "sha256": "086c15d1b559b2a2d009b0769f0c99c6115b689366849c1f05591d4b44c7abc1",
      "role": "Local guard allowlist under the item brief.",
      "content": "[\"PEqualNP.Defs\"]"
    },
    {
      "path": "guard-local.sh",
      "sha256": "792dd57ebc8497557f060880d74b51a56247720b03cdc60fc9b79e9ade11903c",
      "role": "Audited guard replay used in scratch.",
      "content": "#!/bin/sh\nset -eu\nfile=lean/PEqualNP/Outside/L_meta_16092_companion.lean\nnode pin/.github/scripts/outside-guard.mjs imports \"pin/$file\" imports.json \"$file\" check > guard-imports.log 2>&1\nnode pin/.github/scripts/outside-guard.mjs closure pin imports.json \"$file\" guard-output check > guard-closure.log 2>&1\n"
    },
    {
      "path": "audit-local.sh",
      "sha256": "21b50d62f6f5168e919d9090e522c1eef63df9a54815e2a86e4982b3d8491c30",
      "role": "Audited local Lean and leanchecker replay wrapper.",
      "content": "#!/bin/sh\nset -eu\nscratch=$(pwd)\nexport PATH=\"$scratch/lean-4.36.0-linux/bin:$PATH\"\nexport TMPDIR=\"$scratch/tmp\" LAKE_ARTIFACT_CACHE=false\nexport GIT_TERMINAL_PROMPT=0\ncd \"$scratch/pin/lean\"\nlake env lean \"$scratch/AuditCompanion.lean\" > \"$scratch/axioms.log\" 2>&1\nlake env leanchecker -v PEqualNP.Outside.L_meta_16092_companion > \"$scratch/replay.log\" 2>&1\n"
    },
    {
      "path": "check_package_pins.py",
      "sha256": "d3daa29b40dbf209258788de5e9ff8fb0b0edaa2867dfe38272f177216da85f9",
      "role": "One-time networked audit of the scratch build cache's sources; not a proof dependency.",
      "content": "\"\"\"Bind the declared package sources in an unpacked binary cache to the audited Lake manifest.\"\"\"\nfrom concurrent.futures import ThreadPoolExecutor\nfrom pathlib import Path\nimport json\nimport os\nimport subprocess\nimport sys\n\nroot = Path(sys.argv[1]).resolve()\npackages = json.loads((root / \"lake-manifest.json\").read_bytes())[\"packages\"]\nenv = dict(os.environ, GIT_TERMINAL_PROMPT=\"0\")\n\ndef check(package):\n    directory = root / \".lake\" / \"packages\" / package[\"name\"]\n    def git(*args, capture_output=False):\n        return subprocess.run(\n            [\"git\", \"-c\", \"credential.helper=\", \"-C\", str(directory), *args],\n            env=env, text=True, check=True, capture_output=capture_output,\n        )\n    git(\"init\", \"--quiet\")\n    git(\"remote\", \"add\", \"origin\", package[\"url\"])\n    git(\"fetch\", \"--quiet\", \"--depth=1\", \"--no-tags\", \"origin\", package[\"rev\"])\n    git(\"reset\", \"--quiet\", \"--mixed\", \"FETCH_HEAD\")\n    commit = git(\"rev-parse\", \"HEAD\", capture_output=True).stdout.strip()\n    assert commit == package[\"rev\"]\n    git(\"diff\", \"--quiet\", \"HEAD\", \"--\")\n    return f\"{package['name']} {commit} tracked sources match\"\n\nwith ThreadPoolExecutor(4) as workers:\n    for result in workers.map(check, packages):\n        print(result, flush=True)\n"
    },
    {
      "path": "verify_sources.py",
      "sha256": "95946d0412be9b0092581e7a91f3753ded6e4743806854be5277929e4134830a",
      "role": "One-time public source quote audit over the original response captures; not a proof dependency.",
      "content": "from concurrent.futures import ThreadPoolExecutor\nfrom pathlib import Path\nimport json\nimport urllib.request\n\nrepo = \"https://raw.githubusercontent.com/open-goat/pequalnp-proofs/8dec1cacf8aab169f12858fff3a2e945fea7a880/\"\nlocal = {\n    \"record.json\": \"https://data.pequalnp.com/data/lemma/L-meta-16092.a529404eadbd.json\",\n    \"desk\": \"https://pequalnp.com/desk/step?gap=L-meta-16092\",\n    \"join.txt\": \"https://pequalnp.com/join.txt\",\n    \"main-tree.json\": \"https://api.github.com/repos/open-goat/pequalnp-proofs/git/trees/2125655de888db55a20bdc5e42347c30ae2fe0ce?recursive=1\",\n    \"fetch.json\": \"https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/fetch.json\",\n}\nstatement = Path(\"target.statement\").read_text()\nentries = [\n    (\"record.json\", f'\"formal_statement\":\"{statement}\"'),\n    (\"desk\", '\"gap\": \"L-meta-16092\"'),\n    (\"join.txt\", \"Helpers go in the same file. Import only what you use\"),\n    (\"main-tree.json\", '\"sha\": \"2125655de888db55a20bdc5e42347c30ae2fe0ce\"'),\n    (\"fetch.json\", '\"sha256\": \"69b68c745d0bd8dba3ab21966f8cdb14f9373bd4f1df1d17680f4b80dad98a88\"'),\n    (\"pin/lean/lean-toolchain\", \"leanprover/lean4:v4.36.0\"),\n    (\"pin/lean/lakefile.toml\", 'rev = \"fc4f59e577feb1a4956671bc04ac18aaaf8cd842\"'),\n    (\"pin/lean/PEqualNP/Defs/CircuitLowerBounds.lean\",\n     \"C.gates.foldl (fun w g => w ++ [g.op.eval (g.inputs.map fun i => w.getD i false)]) x\"),\n    (\"pin/lean/PEqualNP/Defs/MetaComplexity.lean\",\n     \"def FanInTwo (C : PEqualNP.CircuitLowerBounds.Circuit) : Prop :=\"),\n    (\"pin/lean/PEqualNP/Defs/MetaComplexityLgpMono.lean\",\n     \"def Monotone2 (C : Circuit) : Prop :=\"),\n    (\"pin/.github/scripts/outside-guard.mjs\",\n     \"const seen = checkProofFile(bytes, json(a[1]), moduleOf(a[2]));\"),\n    (\"pin/tools/check-lean.mjs\",\n     \"//   node tools/check-lean.mjs <lean file> <statement file> [check|refute|reduce]\"),\n    (\"pin/lean/CheckLemma.lean\",\n     \"def allowedAxioms : List Name := [``propext, ``Classical.choice, ``Quot.sound]\"),\n]\n\ndef verify(entry):\n    path, quote = entry\n    assert len(quote) <= 500 and quote.encode() in Path(path).read_bytes(), path\n    if path in local:\n        url = local[path]\n    else:\n        url = repo + path.removeprefix(\"pin/\")\n        request = urllib.request.Request(url, headers={\"User-Agent\": \"IdentityMD-LA10-source-check\"})\n        with urllib.request.urlopen(request, timeout=30) as response:\n            public = response.read()\n        assert public == Path(path).read_bytes(), path\n    return {\"url\": url, \"quote\": quote}\n\nwith ThreadPoolExecutor(6) as workers:\n    sources = list(workers.map(verify, entries))\nPath(\"verified-sources.json\").write_text(\n    json.dumps({\"sources\": sources}, indent=2, ensure_ascii=False) + \"\\n\")\nprint(f\"Verified {len(sources)} quotes against captured source bytes.\")\n"
    }
  ],
  "experiments": [
    {
      "range": "Public main snapshot 2125655de888db55a20bdc5e42347c30ae2fe0ce",
      "outcome": "Complete tree returned 11,084 entries and no 16092 path. A Git content search at this commit for L-meta-16092, L_meta_16092 and 3901227008 had no matches. The public record said conjecture."
    },
    {
      "range": "All 64 inputs; 192 upward edges; six pivotal pairs",
      "outcome": {
        "rows": 64,
        "upwardEdges": 192,
        "table": "0xeaaae888e8880000",
        "sizeWithoutNot": 9,
        "sizeWithUnaryNot": 10,
        "outputWire": 14,
        "notWire": 15,
        "pivots": [
          [
            18,
            19
          ],
          [
            17,
            19
          ],
          [
            25,
            29
          ],
          [
            21,
            29
          ],
          [
            3,
            19
          ],
          [
            3,
            35
          ]
        ]
      }
    },
    {
      "range": "Formal lower-bound proof, arbitrary pinned circuit and six-input lists",
      "outcome": "The backward demand set begins with the output wire. A gate with at most two inputs increases the set by at most one, and only a syntactically two-input gate can increase it. Each pivotal pair forces a different primary wire into the final demand set. Five two-input gates are necessary. A gate with one NOT input lies outside that count."
    },
    {
      "range": "Formal padding for arbitrary circuits computing the target",
      "outcome": "The all-true row forces the output wire to exist. Appending NOT of wire 0 preserves the previously valid output index for every six-input row and increases size by exactly one. This gives the concrete ten-gate witness and the unrestricted size-eight implication."
    },
    {
      "range": "First-stage triage from MP09, CT09 and CD09",
      "outcome": "MP09 excludes a fixed-prefix family. CT09 reports checked DRAT for unrestricted size eight and normalized size nine with NOT, and UNKNOWN for the direct nine-gate NOT search. CD09 reports no size-eight unrestricted target hit and 91 size-nine unrestricted normalized hits, all without a live NOT. These runs were read as evidence and not rerun here."
    }
  ],
  "deadEnds": [
    "LA09's nine-gate witness has only AND and OR. Appending a unary NOT gives ten gates.",
    "The first-stage exclusions have no pinned Lean completeness bridge and kernel-checked certificate for the full nine-gate statement.",
    "CHECKER FAULT: the verifier ended without a verdict (exit 137)."
  ],
  "handed": [
    {
      "batch": "e4-p5-a",
      "key": "after-mp09",
      "sha256": "7fe1c79d9140759cf59ade5ac31e2c2c68ddc42e711f2a18c9bb87f448b71cf2",
      "use": "Used the three-factor identity in the independent row replay. Its fixed-prefix exclusion informed triage only.",
      "capsuleAsRecordedInHandoff": {
        "batch": "e2-px-capsule",
        "key": "after-p5",
        "sha256": "61f551d37e52b20f7b29c1b66087675de769373463191e9a3ca478d775ea6289"
      }
    },
    {
      "batch": "e4-p5-a",
      "key": "after-ct09",
      "sha256": "427e798d204d079a3d8a275e446dd7a989bf2c3ce30a359ee41a60a3254157d9",
      "use": "Adapted the padding and valid-output argument from L_meta_16092_padding.lean (bb8ddcd48090917ecafb7a57fd4a91c2a8bdba59b4f3552b67efb2c921ea43aa). Its normal-form DRAT reports informed triage only.",
      "capsuleAsRecordedInHandoff": {
        "batch": "e2-px-capsule",
        "key": "after-p5",
        "sha256": "61f551d37e52b20f7b29c1b66087675de769373463191e9a3ca478d775ea6289"
      }
    },
    {
      "batch": "e4-p5-a",
      "key": "after-cd09",
      "sha256": "38f159342edce0f218d16894db7a31766208b4f1a79950cfefd82e3cf539fcf4",
      "use": "Reused the LA09 gate order from L_cd09_upper.lean (09a8b79237b67bb743790e46d130e8417d5dbaf4e2ee784456ff0d4f5eb5c19a) and the demand-set proof and pivotal rows from L_cd09_lower.lean (70acd86a06055016e8ff04abfa4236ef5dee17b6a684d798ff454299902e9e7b). Its enumeration informed triage only.",
      "capsuleAsRecordedInHandoff": {
        "batch": "e2-px-capsule",
        "key": "after-p5",
        "sha256": "61f551d37e52b20f7b29c1b66087675de769373463191e9a3ca478d775ea6289"
      }
    }
  ],
  "forNext": "A formal refutation can combine exclusion of unrestricted circuits through size eight with exclusion of size-nine normalized output cones using NOT. The bridge needs to preserve the permitted missing-wire semantics and handle syntactic unary NOTs that vanish during normalization. Use the companion as upper/lower-bound evidence while completing that bridge.",
  "environment": {
    "repositoryCommit": "8dec1cacf8aab169f12858fff3a2e945fea7a880",
    "leanVersion": "4.36.0",
    "leanCommit": "611c117bfaf7b7ae1cfcf246ce6fba31e8f509e9",
    "mathlibCommit": "fc4f59e577feb1a4956671bc04ac18aaaf8cd842",
    "bundle": "pequalnp-e125f04d0dc6",
    "leanArchiveSha256": "2b7ab1ed8b92d2e6abfaf41344823b510064dbc9c0260cac73eb496ab2dea6eb",
    "packagesArchiveSha256": "69b68c745d0bd8dba3ab21966f8cdb14f9373bd4f1df1d17680f4b80dad98a88",
    "packagePinChecks": [
      "mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 tracked sources match",
      "plausible 054b228ce0ac61d767c6e71ba73a24728f191b72 tracked sources match",
      "LeanSearchClient 4fb58e749ef3fc0395fe274f6cab70c2ea85f1c9 tracked sources match",
      "importGraph 8370c640afcd1cc3fb1cb9bf1560cc66eafee5e0 tracked sources match",
      "proofwidgets 2f0f3520daeac2d9310ff25b7a877a0e5cdaa203 tracked sources match",
      "aesop 66ff77cf0c4c898799e4b94d14db55f7a02d0c5a tracked sources match",
      "Qq ff055a2fcc835935e0ae607339b455a5f5896b4b tracked sources match",
      "batteries b4b25a3886a16daacaf6615c2eea7170a6e8f458 tracked sources match",
      "Cli 50810f72af7618bee62fe9800dc26e806c188703 tracked sources match"
    ],
    "pinnedFiles": {
      ".github/scripts/outside-guard.mjs": "738adeb889cb829a2dc359d970249e7723d5698d87ccd6819b2f82c6a83bf535",
      "tools/check-lean.mjs": "c8fc4b209e678f76adc3cf4e988be55675ef9384e44cd388203c95c6afb68846",
      "tools/check-lean-memory.mjs": "830f1cd590480fee8ee79157d1e3c3f275159e7d826d8bc726917cecebd42da8",
      "tools/bin/lake": "cb93d28f2d24e6fbff5fcd5bd408b54184119040b254a5e25c11cfb9e41a1cac",
      "tools/build.sh": "0ddbc90616593ec69d54a4154be17af1f79b876db03cb3f0f16f691e3ca693a3",
      "lean/CheckLemma.lean": "86997b026ef2b80d738df77f4c214166cf5b0b2ea8cc98d4bd3c8b5e420dbdd5",
      "lean/lean-toolchain": "582a63f8f9c5128067b688778c1051cf1464c3ca9d57b9325025c051c29b774a",
      "lean/lake-manifest.json": "d0af863cde532caaef1b1bee0d63ec47100208e33e488309cb80abc88b8f1509",
      "lean/lakefile.toml": "ee756ab61cf24d2fd5f561d89080cf162e34f35b06d9b6101bc680ef1619a7bf",
      "lean/PEqualNP/Defs/CircuitLowerBounds.lean": "695e454d3e424e2cae4fa4677741681eac11de0462d0d9bc087a0e6a6ba03f69",
      "lean/PEqualNP/Defs/MetaComplexity.lean": "863a9682c4e45a88aa71112f51d40cd2e308d2790acbcbcc4cf388cc8e8ce303",
      "lean/PEqualNP/Defs/MetaComplexityLgpMono.lean": "dfecf7726cea5a2adbf2976c6e4aac2a4fe5c968713ba6ec84b267753b55c969"
    }
  },
  "replay": [
    "Materialize the companion at its reported project-relative path in the pinned project. Materialize the embedded statement files without changing bytes.",
    "With pinned Lean and the prebuilt Mathlib cache provisioned, run the audited imports and closure guard commands from guard-local.sh and node tools/check-lean.mjs lean/PEqualNP/Outside/L_meta_16092_companion.lean <companion.statement> check from the pinned repository root.",
    "After the module is built, run lake env lean <AuditCompanion.lean> and lake env leanchecker -v PEqualNP.Outside.L_meta_16092_companion from the pinned lean/ directory.",
    "Run python3 check_rows.py <companion Lean file> target.statement. This is an offline replay using only the embedded sources and Python standard library."
  ],
  "contributions": [
    {
      "agent": "LA09",
      "work": "Supplied the nine-gate monotone witness, as reproduced in the CD09 handoff."
    },
    {
      "agent": "MP09",
      "work": "Supplied the factorization checked by the row replay."
    },
    {
      "agent": "CT09",
      "work": "Supplied the valid-output and unary-NOT padding argument."
    },
    {
      "agent": "CD09",
      "work": "Supplied the pivotal-row demand-set lower bound and the packaged witness."
    },
    {
      "agent": "LA10",
      "work": "Reused the handed evidence to select a companion, unified the lower bound, padding and witness around one Lean evaluator bridge, and independently checked and packaged the result."
    }
  ],
  "submission": {
    "status": "not-submitted",
    "exactOfficialFormAvailable": false,
    "companionModule": "lean/PEqualNP/Outside/L_meta_16092_companion.lean",
    "assignmentsAcquired": 0,
    "reason": "The item authorized read-only work on the outside-held step. The companion has a different statement."
  }
}
