{"agentId":"CT01","group":"complexity theory","strategyId":"CT01-exact-many-one-reduction-monotone-boundary","status":"supporting-lemma","capsule":{"pilot":"P1","targetId":"L-meta-18367","statement":"let x1 : SimpleGraph (Fin (11 : ℕ)) := PEqualNP.EdgeOwnership.edgeGraph (11 : ℕ) [((0 : ℕ), (9 : ℕ)), ((0 : ℕ), (10 : ℕ)), ((1 : ℕ), (4 : ℕ)), ((1 : ℕ), (8 : ℕ)), ((2 : ℕ), (5 : ℕ)), ((2 : ℕ), (10 : ℕ)), ((3 : ℕ), (6 : ℕ)), ((3 : ℕ), (7 : ℕ)), ((4 : ℕ), (8 : ℕ)), ((4 : ℕ), (10 : ℕ)), ((5 : ℕ), (8 : ℕ)), ((5 : ℕ), (9 : ℕ)), ((6 : ℕ), (7 : ℕ)), ((6 : ℕ), (10 : ℕ)), ((7 : ℕ), (9 : ℕ)), ((8 : ℕ), (9 : ℕ))]; ∀ (x2 : PEqualNP.CircuitLowerBounds.Circuit), PEqualNP.TopForm.IsAO2 (10 : ℕ) x2 → (∀ (x4 : Fin (10 : ℕ) → Bool), PEqualNP.MetaComplexity.circuitFun (10 : ℕ) x2 x4 = PEqualNP.MetaComplexity.NestedCover.graphFun x1 ∅ (Fin.insertNth (0 : Fin (11 : ℕ)) Bool.false x4)) → (19 : ℕ) ≤ x2.size","statementUtf8Sha256":"9c8662943df407b07492b78a3ba2d6d036b1c592694d93afce0f264b602535b2","recordedStatementSha256":"9c8662943df407b07492b78a3ba2d6d036b1c592694d93afce0f264b602535b2","imports":["PEqualNP.Defs"],"module":"PEqualNP.Outside.L_meta_18367","file":"lean/PEqualNP/Outside/L_meta_18367.lean","kind":"check","repository":"https://github.com/open-goat/pequalnp-proofs","commit":"8dec1cacf8aab169f12858fff3a2e945fea7a880","lean":"leanprover/lean4:v4.36.0","leanAssetSha256":"2b7ab1ed8b92d2e6abfaf41344823b510064dbc9c0260cac73eb496ab2dea6eb","mathlib":"fc4f59e577feb1a4956671bc04ac18aaaf8cd842","keyFileHashes":{"tools/pnp.sh":"acc99e865dc8d5fbffe07b3f896035e7e28c8acfd180c588e78ce3374eb1d207","tools/build.sh":"0ddbc90616593ec69d54a4154be17af1f79b876db03cb3f0f16f691e3ca693a3","tools/bin/lake":"cb93d28f2d24e6fbff5fcd5bd408b54184119040b254a5e25c11cfb9e41a1cac","tools/check-lean.mjs":"c8fc4b209e678f76adc3cf4e988be55675ef9384e44cd388203c95c6afb68846","tools/check-lean-memory.mjs":"830f1cd590480fee8ee79157d1e3c3f275159e7d826d8bc726917cecebd42da8","lean/CheckLemma.lean":"86997b026ef2b80d738df77f4c214166cf5b0b2ea8cc98d4bd3c8b5e420dbdd5","lean/lean-toolchain":"582a63f8f9c5128067b688778c1051cf1464c3ca9d57b9325025c051c29b774a","lean/lakefile.toml":"ee756ab61cf24d2fd5f561d89080cf162e34f35b06d9b6101bc680ef1619a7bf","lean/lake-manifest.json":"d0af863cde532caaef1b1bee0d63ec47100208e33e488309cb80abc88b8f1509",".github/scripts/outside-guard.mjs":"738adeb889cb829a2dc359d970249e7723d5698d87ccd6819b2f82c6a83bf535"},"capsuleInputSha256":"4fe04e442366241302299cfa515df0cbf37848cfd8692502de1c9ea556529159","auditedRecipe":"Lean asset downloaded and sha256/size checked; capsule clean-run wrapper; gitPin sequence for repo and all 9 manifest packages (HEADs matched pins); lake exe cache get (9117 files); lake build via tools/bin/lake. Key file hashes re-verified locally for tools/check-lean.mjs, .github/scripts/outside-guard.mjs, lean/lakefile.toml, lean/lake-manifest.json, tools/bin/lake."},"derivation":"Known problem pinned: the 32-point boundary version of the same lower bound. Map: identity on circuits (size preserved exactly, s(C)=C.size); the instance changes only the agreement hypothesis from all 2^10=1024 inputs to the list B18367 of 32 points (14 minimal positives = indicator vectors of the 14 edges among original vertices 1..10, and 18 maximal negatives = all maximal independent sets of the restricted graph), i.e. a 32x reduction in checked evaluations. Direction S => S_B: any C agreeing on all inputs agrees on B (trivial). Direction S_B => S: (1) circuitFun_mono: every AndOrOnly circuit computes a monotone function, by induction over the gate fold with invariant 'equal wire-list length and pointwise implication of getD values', since AND (List.all) and OR (List.any) are monotone under Forall2 of implication; (2) cover18367 (kernel decide over all 1024 x): each x is above some b in B with F b = F x = true, or below some b in B with F b = F x = false; (3) boundary_iff combines them: agreement on B forces agreement everywhere (if F x is true, C b = true and b<=x gives C x = true; if F x is false and C x were true, x<=b gives C b = true = F b = false, contradiction). Hence reduction18367: exact target statement (verbatim bytes, hash 9c86...35b2) <-> the boundary version. Hypotheses used: only AndOrOnly (first conjunct of IsAO2); ReadsBack and exact fan-in two are not needed for the reduction and are preserved untouched on both sides. The target itself (19 <= size) is NOT proved here.","novelty":{"priorSources":["LA01 capsule research.monotoneBoundaryReduction (informal, Python-only use)","LA01 capsule failedApproaches (18-gate neighborhood search on the 32-test boundary, unformalized)"],"comparison":"LA01 stated the monotone boundary reduction informally and used it only inside an unverified Python search. No Lean statement of it existed in the capsule; the upper-witness Lean build timed out there.","claim":"First kernel-checked (no sorry/admit/native_decide/new axioms) Lean proof that the L-meta-18367 target is logically equivalent to its 32-point boundary version, plus a generic lemma that AND/OR-only circuits in the pinned model compute monotone functions. Any future exhaustive or SAT-style search for an 18-gate IsAO2 circuit may soundly test only the 32 points, and a lower-bound proof may assume only boundary agreement."},"artifacts":[{"path":"lean/PEqualNP/Outside/L_ct01_boundary.lean","content":"import PEqualNP.Defs.EdgeOwnership\nimport PEqualNP.Defs.TopForm\n\n/-!\nSupporting lemma (CT01, not the target). Exact many-one reduction of the agreement hypothesis of\nL-meta-18367 to a finite boundary check. For an AND/OR-only circuit `C` on `n` inputs and any\n`F`, if a finite list `B` of points dominates every input from below at a true point or from above\nat a false point, then `C` computes `F` on all `2^n` inputs iff it agrees with `F` on `B`.\nThe circuit is unchanged, so size is preserved exactly.\n-/\n\nnamespace PEqualNP.Outside.L_ct01_boundary\n\nopen PEqualNP.CircuitLowerBounds PEqualNP.MetaComplexity\n\n/-- Pointwise implication of Boolean lists read with default `false`. -/\ndef Le (w1 w2 : List Bool) : Prop := ∀ i, w1.getD i false = true → w2.getD i false = true\n\ntheorem le_append (w1 w2 : List Bool) (a b : Bool) (hl : w1.length = w2.length)\n    (hw : Le w1 w2) (hab : a = true → b = true) : Le (w1 ++ [a]) (w2 ++ [b]) := by\n  intro i h\n  rcases Nat.lt_trichotomy i w1.length with hi | hi | hi\n  · rw [List.getD_append _ _ _ _ hi] at h\n    rw [List.getD_append _ _ _ _ (hl ▸ hi)]\n    exact hw i h\n  · subst hi\n    rw [List.getD_append_right _ _ _ _ (le_refl _)] at h\n    rw [hl, List.getD_append_right _ _ _ _ (le_refl _)]\n    simp at h ⊢\n    exact hab h\n  · rw [List.getD_append_right _ _ _ _ (le_of_lt hi)] at h\n    have h1 : 1 ≤ i - w1.length := by omega\n    simp only [List.getD_eq_getElem?_getD] at h\n    rw [List.getElem?_eq_none (by simp only [List.length_singleton]; omega)] at h\n    simp at h\n\ntheorem map_forall2 (w1 w2 : List Bool) (hw : Le w1 w2) (is : List ℕ) :\n    List.Forall₂ (fun a b => a = true → b = true)\n      (is.map fun i => w1.getD i false) (is.map fun i => w2.getD i false) := by\n  induction is with\n  | nil => exact List.Forall₂.nil\n  | cons i is ih => exact List.Forall₂.cons (hw i) ih\n\ntheorem op_mono (op : GateOp) (hop : op = GateOp.and ∨ op = GateOp.or) (l1 l2 : List Bool)\n    (h : List.Forall₂ (fun a b => a = true → b = true) l1 l2) :\n    op.eval l1 = true → op.eval l2 = true := by\n  rcases hop with rfl | rfl\n  · simp only [GateOp.eval]\n    induction h with\n    | nil => simp\n    | cons hab _ ih => simp only [List.all_cons, Bool.and_eq_true, id] at *; tauto\n  · simp only [GateOp.eval]\n    induction h with\n    | nil => simp\n    | cons hab _ ih => simp only [List.any_cons, Bool.or_eq_true, id] at *; tauto\n\ntheorem fold_mono (gs : List Gate) (hg : ∀ g ∈ gs, g.op = GateOp.and ∨ g.op = GateOp.or) :\n    ∀ w1 w2 : List Bool, w1.length = w2.length → Le w1 w2 →\n      Le (gs.foldl (fun w g => w ++ [g.op.eval (g.inputs.map fun i => w.getD i false)]) w1)\n        (gs.foldl (fun w g => w ++ [g.op.eval (g.inputs.map fun i => w.getD i false)]) w2) := by\n  induction gs with\n  | nil => intro w1 w2 _ hw; exact hw\n  | cons g gs ih =>\n    intro w1 w2 hl hw\n    simp only [List.foldl_cons]\n    apply ih (fun g' hg' => hg g' (List.mem_cons_of_mem _ hg'))\n    · simp [hl]\n    · exact le_append _ _ _ _ hl hw\n        (op_mono g.op (hg g List.mem_cons_self) _ _ (map_forall2 _ _ hw _))\n\n/-- Supporting lemma: AND/OR-only circuits compute monotone functions. -/\ntheorem circuitFun_mono {n : ℕ} (C : Circuit) (hC : PEqualNP.EdgeOwnership.AndOrOnly C)\n    (x y : Fin n → Bool) (hxy : ∀ i, x i = true → y i = true) :\n    circuitFun n C x = true → circuitFun n C y = true := by\n  unfold circuitFun Circuit.eval Circuit.wires\n  apply fold_mono C.gates hC\n  · simp\n  · intro i h\n    by_cases hi : i < n\n    · simp [List.getD_eq_getElem?_getD, hi] at h ⊢\n      exact hxy _ h\n    · simp [List.getD_eq_getElem?_getD, hi] at h\n\n/-- Supporting lemma (exact reduction, both directions, identity on circuits). -/\ntheorem boundary_iff {n : ℕ} (C : Circuit) (hC : PEqualNP.EdgeOwnership.AndOrOnly C)\n    (F : (Fin n → Bool) → Bool) (B : List (Fin n → Bool))\n    (hcover : ∀ x, (∃ b ∈ B, (∀ i, b i = true → x i = true) ∧ F b = true ∧ F x = true) ∨\n      (∃ b ∈ B, (∀ i, x i = true → b i = true) ∧ F b = false ∧ F x = false)) :\n    (∀ x, circuitFun n C x = F x) ↔ (∀ b ∈ B, circuitFun n C b = F b) := by\n  constructor\n  · intro h b _; exact h b\n  · intro h x\n    rcases hcover x with ⟨b, hb, hbx, hFb, hFx⟩ | ⟨b, hb, hxb, hFb, hFx⟩\n    · rw [hFx]; exact circuitFun_mono C hC b x hbx (by rw [h b hb, hFb])\n    · rw [hFx]\n      cases hcx : circuitFun n C x\n      · rfl\n      · have := circuitFun_mono C hC x b hxb hcx\n        rw [h b hb, hFb] at this; exact this.symm\n\nend PEqualNP.Outside.L_ct01_boundary\n\nnamespace PEqualNP.Outside.L_ct01_boundary\n\nopen PEqualNP.CircuitLowerBounds PEqualNP.MetaComplexity\n\n/-- The restricted target function of L-meta-18367 (original vertex 0 set to false). -/\ndef F18367 : (Fin 10 → Bool) → Bool := fun x =>\n  let x1 : SimpleGraph (Fin (11 : ℕ)) := PEqualNP.EdgeOwnership.edgeGraph (11 : ℕ) [((0 : ℕ), (9 : ℕ)), ((0 : ℕ), (10 : ℕ)), ((1 : ℕ), (4 : ℕ)), ((1 : ℕ), (8 : ℕ)), ((2 : ℕ), (5 : ℕ)), ((2 : ℕ), (10 : ℕ)), ((3 : ℕ), (6 : ℕ)), ((3 : ℕ), (7 : ℕ)), ((4 : ℕ), (8 : ℕ)), ((4 : ℕ), (10 : ℕ)), ((5 : ℕ), (8 : ℕ)), ((5 : ℕ), (9 : ℕ)), ((6 : ℕ), (7 : ℕ)), ((6 : ℕ), (10 : ℕ)), ((7 : ℕ), (9 : ℕ)), ((8 : ℕ), (9 : ℕ))]\n  PEqualNP.MetaComplexity.NestedCover.graphFun x1 ∅ (Fin.insertNth (0 : Fin (11 : ℕ)) Bool.false x)\n\n/-- Bit `i` of mask `m` is input `i` (original vertex `i + 1`). -/\ndef pt (m : ℕ) : Fin 10 → Bool := fun i => m.testBit i.val\n\n/-- 14 edge points (minimal positives) and 18 maximal independent sets (maximal negatives). -/\ndef boundaryMasks : List ℕ :=\n  [9, 129, 18, 514, 36, 68, 136, 520, 144, 272, 96, 544, 320, 384,\n   28, 49, 56, 67, 74, 88, 134, 162, 194, 263, 270, 291, 298, 533, 593, 644, 704, 773]\n\ndef B18367 : List (Fin 10 → Bool) := boundaryMasks.map pt\n\nend PEqualNP.Outside.L_ct01_boundary\n\nnamespace PEqualNP.Outside.L_ct01_boundary\n\nset_option maxRecDepth 100000 in\n/-- Finite certificate: every input is above a true edge point or below a false maximal\nindependent set (kernel-checked over all 1024 inputs). -/\ntheorem cover18367 : ∀ x : Fin 10 → Bool,\n    (∃ b ∈ B18367, (∀ i, b i = true → x i = true) ∧ F18367 b = true ∧ F18367 x = true) ∨\n    (∃ b ∈ B18367, (∀ i, x i = true → b i = true) ∧ F18367 b = false ∧ F18367 x = false) := by\n  decide +kernel\n\n\n/-- Supporting lemma (exact many-one reduction of L-meta-18367, both directions). The left side is\nthe exact target statement; the right side replaces the 1024-input agreement hypothesis by\nagreement on the 32 points of `B18367`. Circuits map to themselves, so size is preserved. -/\ntheorem reduction18367 :\n    (let x1 : SimpleGraph (Fin (11 : ℕ)) := PEqualNP.EdgeOwnership.edgeGraph (11 : ℕ) [((0 : ℕ), (9 : ℕ)), ((0 : ℕ), (10 : ℕ)), ((1 : ℕ), (4 : ℕ)), ((1 : ℕ), (8 : ℕ)), ((2 : ℕ), (5 : ℕ)), ((2 : ℕ), (10 : ℕ)), ((3 : ℕ), (6 : ℕ)), ((3 : ℕ), (7 : ℕ)), ((4 : ℕ), (8 : ℕ)), ((4 : ℕ), (10 : ℕ)), ((5 : ℕ), (8 : ℕ)), ((5 : ℕ), (9 : ℕ)), ((6 : ℕ), (7 : ℕ)), ((6 : ℕ), (10 : ℕ)), ((7 : ℕ), (9 : ℕ)), ((8 : ℕ), (9 : ℕ))]; ∀ (x2 : PEqualNP.CircuitLowerBounds.Circuit), PEqualNP.TopForm.IsAO2 (10 : ℕ) x2 → (∀ (x4 : Fin (10 : ℕ) → Bool), PEqualNP.MetaComplexity.circuitFun (10 : ℕ) x2 x4 = PEqualNP.MetaComplexity.NestedCover.graphFun x1 ∅ (Fin.insertNth (0 : Fin (11 : ℕ)) Bool.false x4)) → (19 : ℕ) ≤ x2.size) ↔\n    (∀ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.TopForm.IsAO2 (10 : ℕ) C →\n      (∀ b ∈ B18367, PEqualNP.MetaComplexity.circuitFun (10 : ℕ) C b = F18367 b) →\n      (19 : ℕ) ≤ C.size) := by\n  constructor\n  · intro h C hC hB\n    exact h C hC (fun x => (boundary_iff C hC.1 F18367 B18367 cover18367).2 hB x)\n  · intro h _ C hC hall\n    exact h C hC (fun b _ => hall b)\n\nend PEqualNP.Outside.L_ct01_boundary\n","sha256":"7b4421a2861a10de1a2af5cf092553c7311200a771e61f894c81ff382d9068d7","role":"supporting-lemma","statement":"(let x1 : SimpleGraph (Fin (11 : ℕ)) := PEqualNP.EdgeOwnership.edgeGraph (11 : ℕ) [((0 : ℕ), (9 : ℕ)), ((0 : ℕ), (10 : ℕ)), ((1 : ℕ), (4 : ℕ)), ((1 : ℕ), (8 : ℕ)), ((2 : ℕ), (5 : ℕ)), ((2 : ℕ), (10 : ℕ)), ((3 : ℕ), (6 : ℕ)), ((3 : ℕ), (7 : ℕ)), ((4 : ℕ), (8 : ℕ)), ((4 : ℕ), (10 : ℕ)), ((5 : ℕ), (8 : ℕ)), ((5 : ℕ), (9 : ℕ)), ((6 : ℕ), (7 : ℕ)), ((6 : ℕ), (10 : ℕ)), ((7 : ℕ), (9 : ℕ)), ((8 : ℕ), (9 : ℕ))]; ∀ (x2 : PEqualNP.CircuitLowerBounds.Circuit), PEqualNP.TopForm.IsAO2 (10 : ℕ) x2 → (∀ (x4 : Fin (10 : ℕ) → Bool), PEqualNP.MetaComplexity.circuitFun (10 : ℕ) x2 x4 = PEqualNP.MetaComplexity.NestedCover.graphFun x1 ∅ (Fin.insertNth (0 : Fin (11 : ℕ)) Bool.false x4)) → (19 : ℕ) ≤ x2.size) ↔\n    (∀ C : PEqualNP.CircuitLowerBounds.Circuit, PEqualNP.TopForm.IsAO2 (10 : ℕ) C →\n      (∀ b ∈ B18367, PEqualNP.MetaComplexity.circuitFun (10 : ℕ) C b = F18367 b) →\n      (19 : ℕ) ≤ C.size)","statementSha256":"229f5f37230c2d6eca5199b3a74c7f6a9531627c3797759a949fa2406ffceed6","relationToTarget":"Equivalence target <-> boundary version (left side is the exact target statement). Does not prove the target. Not an official L_/R_ file: the official reduce kind requires lean/PEqualNP/Outside/R_L-meta-18367_<n>.lean with one theorem T1 -> S; the direction (S_B -> S) of reduction18367 is that shape with T1 = boundary version."}],"experiments":[{"program":"python3 inline mask computation (scratch, not submitted)","range":"all 1024 masks over 10 inputs","seed":null,"command":"python3 - (edge masks and maximal independent sets of the restricted graph)","exitCode":0,"observedOutput":"14 [9, 129, 18, 514, 36, 68, 136, 520, 144, 272, 96, 544, 320, 384] / 18 [28, 49, 56, 67, 74, 88, 134, 162, 194, 263, 270, 291, 298, 533, 593, 644, 704, 773] (maximal negatives match LA01's list)"}],"verification":[{"artifactHash":"7b4421a2861a10de1a2af5cf092553c7311200a771e61f894c81ff382d9068d7","command":"(cd lean && ../../clean-run ../tools/bin/lake build +PEqualNP.Outside.L_ct01_boundary)","exitCode":0,"verdict":"compiled; kernel accepted all declarations including cover18367 (decide +kernel over 1024 inputs)","manifest":"lake-manifest.json d0af863cde532caaef1b1bee0d63ec47100208e33e488309cb80abc88b8f1509","logExcerpt":"Built PEqualNP.Outside.L_ct01_boundary (19s) / Build completed successfully (2685 jobs)."},{"artifactHash":"7b4421a2861a10de1a2af5cf092553c7311200a771e61f894c81ff382d9068d7","command":"lake env lean axcheck.lean (#print axioms reduction18367, boundary_iff)","exitCode":0,"verdict":"only standard axioms","manifest":"same","logExcerpt":"'PEqualNP.Outside.L_ct01_boundary.reduction18367' depends on axioms: [propext, Classical.choice, Quot.sound]"},{"artifactHash":"7b4421a2861a10de1a2af5cf092553c7311200a771e61f894c81ff382d9068d7","command":"grep sorry|admit|native_decide|axiom","exitCode":1,"verdict":"no forbidden tokens","manifest":"","logExcerpt":"(no matches)"},{"artifactHash":"7b4421a2861a10de1a2af5cf092553c7311200a771e61f894c81ff382d9068d7","command":"node .github/scripts/outside-guard.mjs imports ... / tools/check-lean.mjs","exitCode":null,"verdict":"not run: the guard's gap/imports checks take the desk row JSON as input and desk calls are outside this item's scope; check-lean.mjs applies to the official target statement, which this file does not prove. Compilation is not full official verification.","manifest":"","logExcerpt":""}],"unresolved":["The target 19 <= C.size itself remains open (no proof, no counterexample).","File imports PEqualNP.Defs.EdgeOwnership and PEqualNP.Defs.TopForm instead of PEqualNP.Defs (full root not built in the time budget); the official contract import is PEqualNP.Defs, which re-exports both, so switching should be harmless but was not built.","Official guard/check-lean not run for this supporting file."],"usefulLemmas":["circuitFun_mono: AndOrOnly C -> circuitFun n C monotone","boundary_iff: generic exact boundary reduction for any F and cover list B","cover18367: kernel-checked 32-point cover certificate for L-meta-18367","reduction18367: target <-> 32-point boundary version"],"failedApproaches":["Import of full PEqualNP.Defs: olean absent, root not built in budget; used the two needed definition modules.","First attempt at reduction direction 2 failed because intro binds the let x1 first; fixed with intro h _ C."],"nextExperiment":"Use reduction18367 to turn the target into a finite search: enumerate canonical IsAO2 circuits of <=18 gates on 32-bit wire vectors (wire = 32-bit word), with symmetry breaking and dominance pruning; any hit must be confirmed on all 1024 inputs and with the pinned checker. For a proof, encode the 32-bit problem as a kernel-checkable certificate (e.g. gate-elimination over the 14 edge points).","leaseStatus":"not-acquired","submissionStatus":"not-submitted"}