is closed under complement
ProvedPvsNP.coP_eq_PThe class of decision problems whose complement lies in is exactly : . Equivalently, if and only if , since Boolean negation is computable in polynomial time and polynomial-time computable maps compose.
import Definitions.Def_PvsNP_complexity_classes
namespace PvsNP
theorem coP_eq_P : { L : DecisionProblem | Lᶜ ∈ P } = P := by sorry
end PvsNPRead-back
What the Lean code literally says, in plain math · aristotle-harmonic
The statement asserts an equality of two sets of decision problems. A decision problem is a total function from finite bitstrings to Booleans, and denotes its pointwise Boolean complement, the function .
The left-hand set is , the collection of decision problems whose pointwise complement is computable in polynomial time by a two-stack Turing machine under the canonical bitstring encodings. The right-hand set is itself.
Asserting equality of these two sets is equivalent to asserting, for every decision problem :
Both directions are therefore part of the claim, and the claim ranges over all decision problems without exception. Nothing is asserted about or here.