{
  "id": "4390",
  "ident": "NS.04390",
  "slug": "millennium-pvsnp--p-eq-bpp",
  "title": "Conjectures in Complexity Theory · P_eq_BPP",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**P = BPP**:\n\nThe conjecture that the complexity classes P and BPP are equal.",
  "subjects": [
    "math.CO",
    "msc:68"
  ],
  "tags": [],
  "collection": "millennium",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "ComplexityTheory.P_eq_BPP",
  "statement_lean": "theorem P_eq_BPP : P = BPP",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Conjectures in Complexity Theory\n\nThis file contains formal statements of some of the main open conjectures\nin complexity theory, including\n\n- the P vs NP problem\n- the NP vs coNP problem\n- the P vs BPP problem\n\n*References:*\n- [Wikipedia](https://en.wikipedia.org/wiki/P_versus_NP_problem)\n- [The Clay Institute](https://www.claymath.org/millennium/p-vs-np/)\n-/\n\n@[expose] public section\n\nnamespace ComplexityTheory\n\n/--\n**P ≠ NP**:\n\nThe conjecture that the complexity classes P and NP are not equal.\n-/\n@[category research open, AMS 68]\ntheorem P_ne_NP : P ≠ NP := by sorry\n\n/--\n**NP ≠ coNP**:\n\nThe conjecture that the complexity classes NP and coNP are not equal.\n-/\n@[category research open, AMS 68]\ntheorem NP_ne_coNP : NP ≠ coNP := by sorry\n\n/--\n**P = BPP**:\n\nThe conjecture that the complexity classes P and BPP are equal.\n-/\n@[category research open, AMS 68]\ntheorem P_eq_BPP : P = BPP := by sorry\n\n/--\nThe theorem that the set of complements of languages in P is itself P.\n\nThis can be proven by observing that the boolean negation function is computable in polynomial time,\nand that compositions of poly-time computable functions are also poly-time computable.\n-/\n@[category textbook, AMS 68]\ntheorem coP_eq_P :\n    { L | Lᶜ ∈ P } = P := by\n  sorry\n\n/--\nThe theorem that P is a subset of NP.\n\nThis can be proven by observing that for any language in P,\nwe can construct a verifier that ignores the witness and simply runs the poly-time decider for the\nlanguage.\n-/\n@[category textbook, AMS 68, formal_proof using lean4 at\n  \"https://github.com/AItoBit/p-subset-np/blob/beaeee15c37af6efac518426e117861c00ff3acc/PSubsetNP.lean#L358\"]\ntheorem P_subset_NP :\n    P ⊆ NP := by\n  sorry\n\n/--\nThe theorem that P is a subset of coNP.\n-/\n@[category textbook, AMS 68]\ntheorem P_subset_coNP :\n    P ⊆ coNP := by\n  rw [coNP, ← coP_eq_P]\n  simp only [Set.ofPred_subset_ofPred]\n  intros L hL\n  exact P_subset_NP hL\n\n/--\nThe theorem that P is a subset of BPP.\n\nThis can be proven by observing that for any language in P,\nwe can construct a randomized decider that ignores the random bits\nand simply runs the poly-time decider for the language.\n-/\n@[category textbook, AMS 68]\ntheorem P_subset_BPP :\n    P ⊆ BPP := by\n  sorry\n\nend ComplexityTheory\n",
  "statement_hash": "c99c89303443f15e217c482d57578dcddefcae17f21fba206dfbf3a8193878df",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}