{
 "agent": "LA08",
 "group": "Lean 4 automation",
 "gap": "L-meta-18647",
 "strategy": "Lean automation over the exact statement: move to an abstraction (input dependence plus a component-labelling invariant) instead of brute truth-table enumeration, check the forced-head claim, and prove the strongest length bound reachable in the time, all kernel-checked and in official form.",
 "status": "companion-checked",
 "summary": "The exact gap (length <= 18) is NOT proved or refuted. Proved and accepted by the official check-lean (check mode, exit 0): the exact recorded statement with x2.length <= 18 replaced by x2.length <= 7, in official form (file lean/PEqualNP/Outside/L_meta_18647.lean, import Mathlib only, last theorem PEqualNP.Outside.L_meta_18647, axioms propext/Quot.sound/Classical.choice, no sorry/admit/native_decide). The same file checked against the exact statement is rejected (exit 1, REJECTED (statement)), as it should be. The guard (imports mode) gives exit 0. Method: every function in the list is labelled by a block of a partition of the 10 inputs that contains everything it depends on. Each AND/OR gate merges at most two blocks. The base starts with 9 blocks ({0,1} joined by the given x0&&x1). The Petersen edge function depends on all 10 inputs, so it needs at least 8 gates. Correction to the brief: the head-is-an-OR premise is vacuous, since any f equals fun x => f x || f x (proved: head_or_vacuous). So the head is NOT forced to be x_i || (x0 && x1): the edge AND x1 && x2 is an admissible head, and it is provably not of that form for any i (head_not_forced). The truth-table restatement was not needed for the bound; the proved sound direction is the dependence abstraction itself.",
 "desk": {
  "state": "open",
  "time": "2026-11-26T06:56:24Z",
  "url": "https://pequalnp.com/desk/step?gap=L-meta-18647",
  "note": "single read-only GET; no lease taken"
 },
 "statementSha256": "d6b0ea1cb0acf29a540e253aee4295d896fe42286ed3f9e266a956da19cc971e",
 "claims": [
  {
   "statement": "exact recorded statement of L-meta-18647 (x2.length <= 18)",
   "kind": "exact",
   "path": "lean/PEqualNP/Outside/L_meta_18647.lean",
   "sha256": "af34aee15a8036f307781b28994be170659dc89c2f88a4fbd399fce89b5a8724",
   "elaboration": "file elaborates (exit 0) but its last theorem proves the length-7 companion",
   "guard": "not run against this claim separately (same file; imports guard exit 0)",
   "checkLean": {
    "mode": "check",
    "statementSha256": "d6b0ea1cb0acf29a540e253aee4295d896fe42286ed3f9e266a956da19cc971e",
    "exitCode": 1,
    "lastLine": "REJECTED (statement): PEqualNP.Outside.L_meta_18647 is not a proof of the recorded statement."
   },
   "axioms": "not-run",
   "result": "not proved"
  },
  {
   "statement": "exact recorded statement text with 'x2.length ≤ (18 : ℕ)' replaced by 'x2.length ≤ (7 : ℕ)' (all other bytes identical)",
   "statementSha256": "ceb269c03af27389929cefc0df9df8895e5018ed56095aeddb9a0e9f402cb524",
   "kind": "companion",
   "path": "lean/PEqualNP/Outside/L_meta_18647.lean",
   "sha256": "af34aee15a8036f307781b28994be170659dc89c2f88a4fbd399fce89b5a8724",
   "elaboration": "lean exit 0, no errors, no sorry warning",
   "guard": "node .github/scripts/outside-guard.mjs imports <file> imports.json(['PEqualNP.Defs'], from the capsule's allowedImports) <path> check -> exit 0 ('imports allowed: Mathlib')",
   "checkLean": {
    "mode": "check",
    "statementFile": "stmt7 (sha256 above)",
    "exitCode": 0,
    "lastLine": "ACCEPTED (check): PEqualNP.Outside.L_meta_18647; axioms [propext, Quot.sound, Classical.choice]; kernel re-checked 1749 constants of [PEqualNP.Defs.Base, PEqualNP.Defs.Classes, PEqualNP.Defs.CircuitLowerBounds, PEqualNP.Defs.MetaComplexity, PEqualNP.Defs.MetaComplexityLocal, PEqualNP.Defs.MetaComple"
   },
   "axioms": "pass"
  },
  {
   "statement": "head_or_vacuous: ∀ f : BF, ∃ g h : BF, f = fun x => g x || h x",
   "kind": "helper",
   "path": "lean/PEqualNP/Outside/L_meta_18647.lean",
   "sha256": "af34aee15a8036f307781b28994be170659dc89c2f88a4fbd399fce89b5a8724",
   "elaboration": "exit 0",
   "guard": "exit 0 (same file)",
   "checkLean": "not run separately (the checker judges only the last theorem)",
   "axioms": "pass (#print axioms: propext, Quot.sound)"
  },
  {
   "statement": "head_not_forced: ∀ i : Fin 10, (fun x => x 1 && x 2) ≠ fun x => x i || (x 0 && x 1)",
   "kind": "helper",
   "path": "lean/PEqualNP/Outside/L_meta_18647.lean",
   "sha256": "af34aee15a8036f307781b28994be170659dc89c2f88a4fbd399fce89b5a8724",
   "elaboration": "exit 0",
   "guard": "exit 0 (same file)",
   "checkLean": "not run separately",
   "axioms": "pass (#print axioms: propext, Classical.choice, Quot.sound)"
  }
 ],
 "artifacts": [
  {
   "path": "lean/PEqualNP/Outside/L_meta_18647.lean",
   "sha256": "af34aee15a8036f307781b28994be170659dc89c2f88a4fbd399fce89b5a8724",
   "note": "submission-ready only as a companion (length <= 7); must NOT be submitted for the gap because check-lean rejects it against the recorded statement",
   "content": "import Mathlib\n\nnamespace PEqualNP.Outside.L_meta_18647\n\n/-- An assignment to the ten inputs. -/\nabbrev Asg := Fin 10 → Bool\n/-- A Boolean function of the ten inputs. -/\nabbrev BF := Asg → Bool\n\n/-- `f` depends on input `v`. -/\ndef Dep (f : BF) (v : Fin 10) : Prop := ∃ x : Asg, f x ≠ f (Function.update x v (!x v))\n\ntheorem nodep_eq {f : BF} {v : Fin 10} (h : ¬ Dep f v) (x : Asg) :\n    f (Function.update x v (!x v)) = f x := by\n  by_contra hc\n  exact h ⟨x, fun e => hc e.symm⟩\n\ntheorem dep_and {a b : BF} {v : Fin 10} (h : Dep (fun x => a x && b x) v) :\n    Dep a v ∨ Dep b v := by\n  by_contra hc\n  obtain ⟨ha, hb⟩ := not_or.mp hc\n  obtain ⟨x, hx⟩ := h\n  apply hx\n  simp only [nodep_eq ha, nodep_eq hb]\n\ntheorem dep_or {a b : BF} {v : Fin 10} (h : Dep (fun x => a x || b x) v) :\n    Dep a v ∨ Dep b v := by\n  by_contra hc\n  obtain ⟨ha, hb⟩ := not_or.mp hc\n  obtain ⟨x, hx⟩ := h\n  apply hx\n  simp only [nodep_eq ha, nodep_eq hb]\n\n/-- All inputs `f` depends on carry the same label under `c`. -/\ndef Labeled (c : Fin 10 → Fin 10) (f : BF) : Prop := ∃ k, ∀ v, Dep f v → c v = k\n\n/-- Merge label `ka` into label `kb`. -/\ndef merge (c : Fin 10 → Fin 10) (ka kb : Fin 10) : Fin 10 → Fin 10 :=\n  fun v => if c v = ka then kb else c v\n\ntheorem card_merge (c : Fin 10 → Fin 10) (ka kb : Fin 10) :\n    (Finset.univ.image c).card ≤ (Finset.univ.image (merge c ka kb)).card + 1 := by\n  have hsub : Finset.univ.image c ⊆ insert ka (Finset.univ.image (merge c ka kb)) := by\n    intro y hy\n    obtain ⟨v, -, rfl⟩ := Finset.mem_image.mp hy\n    by_cases h : c v = ka\n    · simp [h]\n    · refine Finset.mem_insert_of_mem (Finset.mem_image.mpr ⟨v, Finset.mem_univ _, ?_⟩)\n      simp [merge, h]\n  exact (Finset.card_le_card hsub).trans (Finset.card_insert_le _ _)\n\ntheorem labeled_merge_old {c : Fin 10 → Fin 10} {f : BF} (ka kb : Fin 10)\n    (h : Labeled c f) : Labeled (merge c ka kb) f := by\n  obtain ⟨k, hk⟩ := h\n  refine ⟨if k = ka then kb else k, fun v hv => ?_⟩\n  simp [merge, hk v hv]\n\ntheorem labeled_merge_new {c : Fin 10 → Fin 10} {a b g : BF} {ka kb : Fin 10}\n    (ha : ∀ v, Dep a v → c v = ka) (hb : ∀ v, Dep b v → c v = kb)\n    (hg : ∀ v, Dep g v → Dep a v ∨ Dep b v) : Labeled (merge c ka kb) g := by\n  refine ⟨kb, fun v hv => ?_⟩\n  rcases hg v hv with h | h\n  · simp [merge, ha v h]\n  · have := hb v h\n    by_cases h' : c v = ka <;> simp [merge, h', this]\n\n/-- The component invariant: after `n` gates, every available function is labeled and at most\n`n` labels have been merged away. -/\ntheorem invariant (B x2 : List BF) (c0 : Fin 10 → Fin 10) (hB : ∀ f ∈ B, Labeled c0 f)\n    (hstep : ∀ (n : ℕ) (h : n < x2.length), ∃ a ∈ B ++ x2.take n, ∃ b ∈ B ++ x2.take n,\n      x2.get ⟨n, h⟩ = (fun x => a x && b x) ∨ x2.get ⟨n, h⟩ = (fun x => a x || b x)) :\n    ∀ n ≤ x2.length, ∃ c : Fin 10 → Fin 10,\n      (Finset.univ.image c0).card ≤ (Finset.univ.image c).card + n ∧\n      ∀ f ∈ B ++ x2.take n, Labeled c f := by\n  intro n\n  induction n with\n  | zero => intro _; exact ⟨c0, by simp, by simpa using hB⟩\n  | succ n ih =>\n    intro hn\n    have hlt : n < x2.length := hn\n    obtain ⟨c, hcard, hlab⟩ := ih (Nat.le_of_lt hlt)\n    obtain ⟨a, ha, b, hb, hg⟩ := hstep n hlt\n    obtain ⟨ka, hka⟩ := hlab a ha\n    obtain ⟨kb, hkb⟩ := hlab b hb\n    refine ⟨merge c ka kb, ?_, ?_⟩\n    · have := card_merge c ka kb\n      omega\n    · intro f hf\n      rw [List.take_add_one, List.getElem?_eq_getElem hlt] at hf\n      simp only [Option.toList_some, ← List.append_assoc, List.mem_append, List.mem_singleton] at hf\n      rcases hf with hf | rfl\n      · exact labeled_merge_old ka kb (hlab f (List.mem_append.mpr hf))\n      · refine labeled_merge_new hka hkb fun v hv => ?_\n        simp only [List.get_eq_getElem] at hg\n        rcases hg with h | h <;> rw [h] at hv\n        · exact dep_and hv\n        · exact dep_or hv\n\n/-- Core bound: a function depending on all ten inputs is not among the first seven gates. -/\ntheorem core (B x2 : List BF) (c0 : Fin 10 → Fin 10) (hB : ∀ f ∈ B, Labeled c0 f)\n    (hc0 : (Finset.univ.image c0).card = 9) (hlen : x2.length ≤ 7)\n    (hstep : ∀ (n : ℕ) (h : n < x2.length), ∃ a ∈ B ++ x2.take n, ∃ b ∈ B ++ x2.take n,\n      x2.get ⟨n, h⟩ = (fun x => a x && b x) ∨ x2.get ⟨n, h⟩ = (fun x => a x || b x))\n    (E : BF) (hE : ∀ v, Dep E v) : E ∉ x2 := by\n  intro hmem\n  obtain ⟨j, rfl⟩ := List.get_of_mem hmem\n  obtain ⟨c, hcard, hlab⟩ := invariant B x2 c0 hB hstep (j.1 + 1) j.2\n  have hin : x2.get j ∈ B ++ x2.take (j.1 + 1) := by\n    apply List.mem_append_right\n    rw [List.take_add_one, List.getElem?_eq_getElem j.2]\n    exact List.mem_append_right _ (by simp)\n  obtain ⟨k, hk⟩ := hlab _ hin\n  have hsub : Finset.univ.image c ⊆ {k} := by\n    intro y hy\n    obtain ⟨v, -, rfl⟩ := Finset.mem_image.mp hy\n    simp [hk v (hE v)]\n  have := Finset.card_le_card hsub\n  simp only [Finset.card_singleton] at this\n  have := j.2\n  omega\n\n/-- Initial labels: inputs 0 and 1 share a label (the given gate `x0 && x1`), the rest are apart. -/\ndef c0 : Fin 10 → Fin 10 := fun v => if v = 1 then 0 else v\n\ntheorem c0_card : (Finset.univ.image c0).card = 9 := by decide\n\ntheorem dep_const (b : Bool) (v : Fin 10) : ¬ Dep (fun _ => b) v := fun ⟨_, hx⟩ => hx rfl\n\ntheorem dep_input {i v : Fin 10} (h : Dep (fun x => x i) v) : v = i := by\n  by_contra hne\n  obtain ⟨x, hx⟩ := h\n  apply hx\n  simp [Function.update_of_ne (Ne.symm hne)]\n\ntheorem base_labeled : ∀ f ∈ ((fun (_ : Asg) => false) :: (fun (_ : Asg) => true) ::\n    List.ofFn (fun (i : Fin 10) (x : Asg) => x i)) ++ [fun (x : Asg) => x 0 && x 1],\n    Labeled c0 f := by\n  intro f hf\n  simp only [List.cons_append, List.mem_cons, List.mem_append, List.mem_ofFn,\n    ] at hf\n  rcases hf with rfl | rfl | ⟨i, rfl⟩ | rfl | hnil\n  · exact ⟨0, fun v h => absurd h (dep_const _ _)⟩\n  · exact ⟨0, fun v h => absurd h (dep_const _ _)⟩\n  · exact ⟨c0 i, fun v h => by rw [dep_input h]⟩\n  · refine ⟨0, fun v h => ?_⟩\n    rcases dep_and h with h | h <;> rw [dep_input h] <;> decide\n  · exact absurd hnil List.not_mem_nil\n\n/-- A neighbour of each vertex of the Petersen graph. -/\ndef nb : Fin 10 → Fin 10 := ![1, 2, 3, 4, 0, 7, 8, 9, 5, 6]\n\n/-- The Petersen edge function depends on every input. -/\ntheorem edge_dep (x1 : List (Fin 10 × Fin 10))\n    (hx1 : x1 = [(0, 1), (1, 2), (2, 3), (3, 4), (4, 0), (0, 5), (1, 6), (2, 7), (3, 8), (4, 9),\n      (5, 7), (7, 9), (9, 6), (6, 8), (8, 5)]) :\n    ∀ v, Dep (fun (x : Asg) => x1.any fun e => x e.1 && x e.2) v := by\n  subst hx1\n  intro v\n  refine ⟨fun w => decide (w = nb v), ?_⟩\n  revert v\n  decide\n\n/-- The gap with the length bound lowered from 18 to 7: proved. -/\ntheorem len7 : have x1 : List (Fin (10 : ℕ) × Fin (10 : ℕ)) := [((0 : Fin (10 : ℕ)), (1 : Fin (10 : ℕ))), ((1 : Fin (10 : ℕ)), (2 : Fin (10 : ℕ))), ((2 : Fin (10 : ℕ)), (3 : Fin (10 : ℕ))), ((3 : Fin (10 : ℕ)), (4 : Fin (10 : ℕ))), ((4 : Fin (10 : ℕ)), (0 : Fin (10 : ℕ))), ((0 : Fin (10 : ℕ)), (5 : Fin (10 : ℕ))), ((1 : Fin (10 : ℕ)), (6 : Fin (10 : ℕ))), ((2 : Fin (10 : ℕ)), (7 : Fin (10 : ℕ))), ((3 : Fin (10 : ℕ)), (8 : Fin (10 : ℕ))), ((4 : Fin (10 : ℕ)), (9 : Fin (10 : ℕ))), ((5 : Fin (10 : ℕ)), (7 : Fin (10 : ℕ))), ((7 : Fin (10 : ℕ)), (9 : Fin (10 : ℕ))), ((9 : Fin (10 : ℕ)), (6 : Fin (10 : ℕ))), ((6 : Fin (10 : ℕ)), (8 : Fin (10 : ℕ))), ((8 : Fin (10 : ℕ)), (5 : Fin (10 : ℕ)))]; ∀ (x2 : List ((Fin (10 : ℕ) → Bool) → Bool)),   x2.length ≤ (7 : ℕ) →     (∀ (x4 : Fin x2.length),         have x5 : List ((Fin (10 : ℕ) → Bool) → Bool) := ((fun (x5 : Fin (10 : ℕ) → Bool) => Bool.false) :: (fun (x5 : Fin (10 : ℕ) → Bool) => Bool.true) :: List.ofFn fun (x5 : Fin (10 : ℕ)) (x6 : Fin (10 : ℕ) → Bool) => x6 x5) ++ [fun (x5 : Fin (10 : ℕ) → Bool) => x5 (0 : Fin (10 : ℕ)) && x5 (1 : Fin (10 : ℕ))] ++ List.take (↑x4) x2;         x2.get x4 ∉ x5 ∧ ∃ x6 ∈ x5, ∃ x7 ∈ x5, (x2.get x4 = fun (x8 : Fin (10 : ℕ) → Bool) => x6 x8 && x7 x8) ∨ x2.get x4 = fun (x8 : Fin (10 : ℕ) → Bool) => x6 x8 || x7 x8) →       (∀ x5 ∈ x2.head?, ∃ (x7 : (Fin (10 : ℕ) → Bool) → Bool) (x8 : (Fin (10 : ℕ) → Bool) → Bool), x5 = fun (x9 : Fin (10 : ℕ) → Bool) => x7 x9 || x8 x9) → (∀ x6 ∈ x2, ∀ (x8 x9 : Fin (10 : ℕ)), x8 ≠ x9 → (¬(x1.any fun (x11 : Fin (10 : ℕ) × Fin (10 : ℕ)) => Decidable.decide ((x8, x9) = x11 ∨ (x9, x8) = x11)) = Bool.true → x6 ≠ fun (x12 : Fin (10 : ℕ) → Bool) => x12 x8 && x12 x9) ∧ x6 ≠ fun (x11 : Fin (10 : ℕ) → Bool) => x11 x8 || x11 x9) → (fun (x7 : Fin (10 : ℕ) → Bool) => x1.any fun (x8 : Fin (10 : ℕ) × Fin (10 : ℕ)) => x7 x8.1 && x7 x8.2) ∉ x2 := by\n  intro x1 x2 hlen hstep _ _\n  refine core _ x2 c0 base_labeled c0_card hlen (fun n h => ?_) _ (edge_dep x1 rfl)\n  obtain ⟨-, a, ha, b, hb, hab⟩ := hstep ⟨n, h⟩\n  exact ⟨a, by rw [List.append_assoc]; exact ha, b, by rw [List.append_assoc]; exact hb, hab⟩\n\n/-- The head-is-an-OR premise is vacuous: every function is the OR of itself with itself. -/\ntheorem head_or_vacuous (f : BF) : ∃ g h : BF, f = fun x => g x || h x :=\n  ⟨f, f, by funext x; simp⟩\n\n/-- The admissible head `x1 && x2` (an edge AND) is not of the form `x_i || (x0 && x1)`. -/\ntheorem head_not_forced (i : Fin 10) :\n    (fun (x : Asg) => x 1 && x 2) ≠ fun x => x i || (x 0 && x 1) := by\n  intro h\n  have h1 := congrFun h (fun w => decide (w = i))\n  fin_cases i <;> simp at h1\n\nend PEqualNP.Outside.L_meta_18647\n\n/-- Companion (NOT the gap): the exact recorded statement with `x2.length ≤ 18` replaced by\n`x2.length ≤ 7`. -/\ntheorem PEqualNP.Outside.L_meta_18647 : have x1 : List (Fin (10 : ℕ) × Fin (10 : ℕ)) := [((0 : Fin (10 : ℕ)), (1 : Fin (10 : ℕ))), ((1 : Fin (10 : ℕ)), (2 : Fin (10 : ℕ))), ((2 : Fin (10 : ℕ)), (3 : Fin (10 : ℕ))), ((3 : Fin (10 : ℕ)), (4 : Fin (10 : ℕ))), ((4 : Fin (10 : ℕ)), (0 : Fin (10 : ℕ))), ((0 : Fin (10 : ℕ)), (5 : Fin (10 : ℕ))), ((1 : Fin (10 : ℕ)), (6 : Fin (10 : ℕ))), ((2 : Fin (10 : ℕ)), (7 : Fin (10 : ℕ))), ((3 : Fin (10 : ℕ)), (8 : Fin (10 : ℕ))), ((4 : Fin (10 : ℕ)), (9 : Fin (10 : ℕ))), ((5 : Fin (10 : ℕ)), (7 : Fin (10 : ℕ))), ((7 : Fin (10 : ℕ)), (9 : Fin (10 : ℕ))), ((9 : Fin (10 : ℕ)), (6 : Fin (10 : ℕ))), ((6 : Fin (10 : ℕ)), (8 : Fin (10 : ℕ))), ((8 : Fin (10 : ℕ)), (5 : Fin (10 : ℕ)))]; ∀ (x2 : List ((Fin (10 : ℕ) → Bool) → Bool)),   x2.length ≤ (7 : ℕ) →     (∀ (x4 : Fin x2.length),         have x5 : List ((Fin (10 : ℕ) → Bool) → Bool) := ((fun (x5 : Fin (10 : ℕ) → Bool) => Bool.false) :: (fun (x5 : Fin (10 : ℕ) → Bool) => Bool.true) :: List.ofFn fun (x5 : Fin (10 : ℕ)) (x6 : Fin (10 : ℕ) → Bool) => x6 x5) ++ [fun (x5 : Fin (10 : ℕ) → Bool) => x5 (0 : Fin (10 : ℕ)) && x5 (1 : Fin (10 : ℕ))] ++ List.take (↑x4) x2;         x2.get x4 ∉ x5 ∧ ∃ x6 ∈ x5, ∃ x7 ∈ x5, (x2.get x4 = fun (x8 : Fin (10 : ℕ) → Bool) => x6 x8 && x7 x8) ∨ x2.get x4 = fun (x8 : Fin (10 : ℕ) → Bool) => x6 x8 || x7 x8) →       (∀ x5 ∈ x2.head?, ∃ (x7 : (Fin (10 : ℕ) → Bool) → Bool) (x8 : (Fin (10 : ℕ) → Bool) → Bool), x5 = fun (x9 : Fin (10 : ℕ) → Bool) => x7 x9 || x8 x9) → (∀ x6 ∈ x2, ∀ (x8 x9 : Fin (10 : ℕ)), x8 ≠ x9 → (¬(x1.any fun (x11 : Fin (10 : ℕ) × Fin (10 : ℕ)) => Decidable.decide ((x8, x9) = x11 ∨ (x9, x8) = x11)) = Bool.true → x6 ≠ fun (x12 : Fin (10 : ℕ) → Bool) => x12 x8 && x12 x9) ∧ x6 ≠ fun (x11 : Fin (10 : ℕ) → Bool) => x11 x8 || x11 x9) → (fun (x7 : Fin (10 : ℕ) → Bool) => x1.any fun (x8 : Fin (10 : ℕ) × Fin (10 : ℕ)) => x7 x8.1 && x7 x8.2) ∉ x2 :=\n  PEqualNP.Outside.L_meta_18647.len7\n"
  },
  {
   "path": "statement-len7.txt",
   "sha256": "ceb269c03af27389929cefc0df9df8895e5018ed56095aeddb9a0e9f402cb524",
   "content": "have x1 : List (Fin (10 : ℕ) × Fin (10 : ℕ)) := [((0 : Fin (10 : ℕ)), (1 : Fin (10 : ℕ))), ((1 : Fin (10 : ℕ)), (2 : Fin (10 : ℕ))), ((2 : Fin (10 : ℕ)), (3 : Fin (10 : ℕ))), ((3 : Fin (10 : ℕ)), (4 : Fin (10 : ℕ))), ((4 : Fin (10 : ℕ)), (0 : Fin (10 : ℕ))), ((0 : Fin (10 : ℕ)), (5 : Fin (10 : ℕ))), ((1 : Fin (10 : ℕ)), (6 : Fin (10 : ℕ))), ((2 : Fin (10 : ℕ)), (7 : Fin (10 : ℕ))), ((3 : Fin (10 : ℕ)), (8 : Fin (10 : ℕ))), ((4 : Fin (10 : ℕ)), (9 : Fin (10 : ℕ))), ((5 : Fin (10 : ℕ)), (7 : Fin (10 : ℕ))), ((7 : Fin (10 : ℕ)), (9 : Fin (10 : ℕ))), ((9 : Fin (10 : ℕ)), (6 : Fin (10 : ℕ))), ((6 : Fin (10 : ℕ)), (8 : Fin (10 : ℕ))), ((8 : Fin (10 : ℕ)), (5 : Fin (10 : ℕ)))]; ∀ (x2 : List ((Fin (10 : ℕ) → Bool) → Bool)),   x2.length ≤ (7 : ℕ) →     (∀ (x4 : Fin x2.length),         have x5 : List ((Fin (10 : ℕ) → Bool) → Bool) := ((fun (x5 : Fin (10 : ℕ) → Bool) => Bool.false) :: (fun (x5 : Fin (10 : ℕ) → Bool) => Bool.true) :: List.ofFn fun (x5 : Fin (10 : ℕ)) (x6 : Fin (10 : ℕ) → Bool) => x6 x5) ++ [fun (x5 : Fin (10 : ℕ) → Bool) => x5 (0 : Fin (10 : ℕ)) && x5 (1 : Fin (10 : ℕ))] ++ List.take (↑x4) x2;         x2.get x4 ∉ x5 ∧ ∃ x6 ∈ x5, ∃ x7 ∈ x5, (x2.get x4 = fun (x8 : Fin (10 : ℕ) → Bool) => x6 x8 && x7 x8) ∨ x2.get x4 = fun (x8 : Fin (10 : ℕ) → Bool) => x6 x8 || x7 x8) →       (∀ x5 ∈ x2.head?, ∃ (x7 : (Fin (10 : ℕ) → Bool) → Bool) (x8 : (Fin (10 : ℕ) → Bool) → Bool), x5 = fun (x9 : Fin (10 : ℕ) → Bool) => x7 x9 || x8 x9) → (∀ x6 ∈ x2, ∀ (x8 x9 : Fin (10 : ℕ)), x8 ≠ x9 → (¬(x1.any fun (x11 : Fin (10 : ℕ) × Fin (10 : ℕ)) => Decidable.decide ((x8, x9) = x11 ∨ (x9, x8) = x11)) = Bool.true → x6 ≠ fun (x12 : Fin (10 : ℕ) → Bool) => x12 x8 && x12 x9) ∧ x6 ≠ fun (x11 : Fin (10 : ℕ) → Bool) => x11 x8 || x11 x9) → (fun (x7 : Fin (10 : ℕ) → Bool) => x1.any fun (x8 : Fin (10 : ℕ) × Fin (10 : ℕ)) => x7 x8.1 && x7 x8.2) ∉ x2"
  }
 ],
 "environment": {
  "repo": "https://github.com/open-goat/pequalnp-proofs at 8dec1cacf8aab169f12858fff3a2e945fea7a880",
  "lean": "v4.36.0 from release pequalnp-e125f04d0dc6 of github.com/Identity-md/lean-bundles (archive sha256 2b7ab1ed8b92d2e6abfaf41344823b510064dbc9c0260cac73eb496ab2dea6eb, packages 69b68c745d0bd8dba3ab21966f8cdb14f9373bd4f1df1d17680f4b80dad98a88)",
  "packages": "the bundle's prebuilt packages copied to lean/.lake/packages, each git-initialised and reset (index only) to its manifest rev, all 9 clean at the manifest revs; PEqualNP.Defs and the checklemma verifier were built by check-lean from the pin",
  "checkLeanEnv": "PEQUALNP_REAL_LAKE=<bundle>/bin/lake, PEQUALNP_HOME=<scratch queue dir>; nothing in the checker, lakefile, manifest or toolchain changed",
  "runtime": "check-lean about 6 min per run on this machine"
 },
 "experiments": [
  {
   "range": "lengths 0..7, all lists satisfying the hypotheses (newness and the forbidden-gate premises are not even used)",
   "outcome": "proved: the edge function is not in x2 (kernel-checked, check-lean exit 0)"
  },
  {
   "range": "lengths 8..18",
   "outcome": "not attempted by search; no proof"
  },
  {
   "range": "head of x2",
   "outcome": "proved: the OR premise is vacuous; the admissible edge-AND head x1&&x2 is not x_i||(x0&&x1) for any i"
  },
  {
   "range": "exact statement, check mode",
   "outcome": "check-lean exit 1 (REJECTED statement), expected"
  }
 ],
 "deadEnds": [
  "Forced head x_i OR (x0 AND x1): false as a consequence of the premises, because the head-OR premise is vacuous (proved). Any proof that relies on it is invalid.",
  "Brute-force truth-table enumeration in the kernel: branching about 2*(13+i)^2 per gate puts about 7e6 states at depth 3, so a kernel computation cannot reach anything near 18. Replaced by the dependence/partition abstraction.",
  "The partition argument cannot go past 7: at 8 gates a read-once tree over all 10 inputs is possible in principle. Ruling it out needs a non-read-once argument (the Petersen graph has an induced P4, e.g. 0-1-2-3, so its edge function is not read-once). Not formalised."
 ],
 "handed": [
  {
   "batch": "e2-px-capsule",
   "key": "after-p4",
   "sha256": "f817777448e5acd46bd64359cdaf866097e2fc2c42e54e65f731f6799bc80eeb",
   "used": "target id, statement hash, allowedImports ['PEqualNP.Defs'], pins"
  }
 ],
 "forNext": "Length 8: the partition count is then tight. Every gate merges two distinct blocks, so the output's cone is a read-once formula on all 10 inputs. Formalise that E is not read-once by restricting to the induced P4 0-1-2-3 with the other inputs set to 0. Beyond 8, a gate-elimination or exhaustive search with an abstraction (for example the projection onto the 10-input monotone 2-DNF prime-implicant sets) is needed. The given base gate and the forbidden first-level gates (no OR of two inputs, AND only on edges) are the levers the current proof does not use. Do not submit this file for the gap.",
 "submissionStatus": "not submitted; no lease, PR, account or pnp.sh used"
}