{
  "gap": "L-meta-764",
  "path": "lean/PEqualNP/Outside/L_meta_764.lean",
  "module": "PEqualNP.Outside.L_meta_764",
  "mainCommit": "45c3c16fcc7da37eb750c3f3deee82d8342c3668",
  "deskStatus": {
    "status": "open",
    "updated_at": "2026-11-24T00:37:48.648Z"
  },
  "changed": false,
  "localCheck": "accepted",
  "axioms": [
    "propext",
    "Quot.sound",
    "Classical.choice"
  ],
  "guard": "pass",
  "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",
  "reasoning": "The supplied file passed the official checker byte for byte at the pinned main commit, so no elaboration or guard repairs were needed. The checker built it with Lean 4.36.0, the pinned Mathlib cache, and the real circuit definitions, then replayed the project declarations in the kernel and matched the theorem against the exact desk statement. The source guard accepted the declared imports, syntax and namespace. The proof rewrites the five-input function into a disjoint edge OR a nonconstant triangle function. L153 at k = 3 removes two gates and L100 gives the triangle's threshold of four. For budgets below two, monotonicity raises the budget to two, where L153 and L100 rule out a circuit."
}
