{
 "gap": "L-meta-764",
 "path": "lean/PEqualNP/Outside/L_meta_764.lean",
 "scope": "full",
 "source": "import PEqualNP.Defs\nimport PEqualNP.MetaComplexity.L100\nimport PEqualNP.MetaComplexity.L153\n\nnamespace PEqualNP.Outside.L_meta_764\n\ntheorem mono {n : ℕ} {f : (Fin n → Bool) → Bool} {s t : ℕ} (hst : s ≤ t)\n    (h : PEqualNP.MetaComplexity.HasCircuitSize n f s) :\n    PEqualNP.MetaComplexity.HasCircuitSize n f t := by\n  obtain ⟨C, hC, hsz, hev⟩ := h\n  exact ⟨C, hC, Nat.le_trans hsz hst, hev⟩\n\ntheorem fun_eq :\n    (fun x : Fin 5 → Bool => (x 0 && x 1) || (x 2 && x 3) || (x 3 && x 4) || (x 2 && x 4)) =\n    (fun x : Fin (2 + 3) → Bool => (x (Fin.castAdd 3 0) && x (Fin.castAdd 3 1)) ||\n      (fun y : Fin 3 → Bool => (y 0 && y 1) || (y 1 && y 2) || (y 0 && y 2))\n        (fun j : Fin 3 => x (Fin.natAdd 2 j))) := by\n  funext x\n  show ((x 0 && x 1) || (x 2 && x 3) || (x 3 && x 4) || (x 2 && x 4)) =\n    ((x 0 && x 1) || ((x 2 && x 3) || (x 3 && x 4) || (x 2 && x 4)))\n  generalize x 0 = a\n  generalize x 1 = b\n  generalize x 2 = c\n  generalize x 3 = d\n  generalize x 4 = e\n  cases a <;> cases b <;> cases c <;> cases d <;> cases e <;> rfl\n\ntheorem nonconst : ∃ y y' : Fin 3 → Bool,\n    (fun y : Fin 3 → Bool => (y 0 && y 1) || (y 1 && y 2) || (y 0 && y 2)) y ≠\n    (fun y : Fin 3 → Bool => (y 0 && y 1) || (y 1 && y 2) || (y 0 && y 2)) y' :=\n  ⟨fun _ => true, fun _ => false, by decide⟩\n\ntheorem key (t : ℕ) :\n    PEqualNP.MetaComplexity.HasCircuitSize 5\n      (fun x : Fin 5 → Bool => (x 0 && x 1) || (x 2 && x 3) || (x 3 && x 4) || (x 2 && x 4))\n      (t + 2) ↔\n    PEqualNP.MetaComplexity.HasCircuitSize 3\n      (fun y : Fin 3 → Bool => (y 0 && y 1) || (y 1 && y 2) || (y 0 && y 2)) t := by\n  have h := PEqualNP.MetaComplexity.L153 3 t\n    (fun y : Fin 3 → Bool => (y 0 && y 1) || (y 1 && y 2) || (y 0 && y 2)) nonconst\n  rw [fun_eq]\n  exact h\n\nend PEqualNP.Outside.L_meta_764\n\ntheorem PEqualNP.Outside.L_meta_764 : ∀ s : ℕ, PEqualNP.MetaComplexity.HasCircuitSize 5 (fun x : Fin 5 → Bool => (x 0 && x 1) || (x 2 && x 3) || (x 3 && x 4) || (x 2 && x 4)) s ↔ 6 ≤ s := by\n  intro s\n  rcases Nat.lt_or_ge s 2 with hs | hs\n  · constructor\n    · intro h\n      have h2 := PEqualNP.Outside.L_meta_764.mono (by omega : s ≤ 0 + 2) h\n      have h0 := (PEqualNP.MetaComplexity.L100 0).1 ((PEqualNP.Outside.L_meta_764.key 0).1 h2)\n      omega\n    · intro h\n      omega\n  · obtain ⟨t, rfl⟩ : ∃ t, s = t + 2 := ⟨s - 2, by omega⟩\n    rw [PEqualNP.Outside.L_meta_764.key t, PEqualNP.MetaComplexity.L100 t]\n    omega\n",
 "localCheck": "incomplete",
 "reasoning": "Open at selection: L-meta-764 is listed in gaps.json and appears in neither its checked nor its withdrawn list (desk updated_at 2026-11-23T23:34:35Z). Proof: (1) fun_eq: the posted 5-input function equals, as a function on Fin (2+3) -> Bool, (x (castAdd 3 0) && x (castAdd 3 1)) || g (fun j => x (natAdd 2 j)) with g the majority/triangle function of L100, (y0&&y1)||(y1&&y2)||(y0&&y2) (funext, show by defeq, then case split on the five bits). (2) g is nonconstant: g(all true)=true, g(all false)=false (decide). (3) key: by L153 with k=3, HasCircuitSize 5 f (t+2) iff HasCircuitSize 3 g t. (4) For s>=2 write s=t+2; key and L100 give 4<=t iff 6<=t+2 (omega). (5) For s=0,1: HasCircuitSize is an at-most-s bound, so it is monotone in s (same circuit, Nat.le_trans); a circuit of size s<=2 gives HasCircuitSize 5 f 2, then key 0 gives HasCircuitSize 3 g 0, and L100 0 gives 4<=0, a contradiction. No sorry, no native_decide, no string literals; helpers are in namespace PEqualNP.Outside.L_meta_764 and the theorem comes last. Local check: the project checker tools/check-lean.mjs could NOT be run. It needs the full prebuilt Mathlib cache, and after installing the pinned Lean v4.36.0 toolchain (3.1 GB) this machine had about 1 GB of disk left. Instead the identical proof body was compiled with the pinned Lean v4.36.0 (core only) against a stub that copies the HasCircuitSize definition and states L100 and L153 verbatim as axioms. It compiled without errors, and #print axioms showed only propext, Classical.choice, Quot.sound plus the two stubbed lemmas. Residual risk: the Mathlib elaboration environment and the real Circuit type, which the stub replaces with a minimal structure.",
 "sources": [
  "https://data.pequalnp.com/data/desk/gaps.json",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/PEqualNP/MetaComplexity/L100.lean",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/PEqualNP/MetaComplexity/L153.lean",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/PEqualNP/Defs/MetaComplexity.lean",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/CONTRIBUTING.md"
 ]
}