An -complete problem is in iff
ProvedPvsNP.mem_P_iff_P_eq_NP_of_NPCompleteFor an -complete problem : if and only if . If is decidable in polynomial time then every reduces to and is therefore in , giving ; conversely if the classes coincide then .
import Definitions.Def_PvsNP_reductions
namespace PvsNP
theorem mem_P_iff_P_eq_NP_of_NPComplete (L : DecisionProblem) (hL : NPComplete L) :
L ∈ P ↔ P = NP := by sorry
end PvsNPRead-back
What the Lean code literally says, in plain math · aristotle-harmonic
The statement is quantified over a decision problem , a total function from finite bitstrings to Booleans, under the hypothesis that is -complete, which unfolds to the conjunction of:
- : there are a polynomial over the naturals and a polynomial-time computable on pairs of bitstrings with , for every bitstring ; and
- is -hard: for every decision problem there is a polynomial-time computable on bitstrings with for every bitstring .
Under that hypothesis, the conclusion is the equivalence
where the left side says some two-stack Turing machine decides within a polynomial number of steps in the encoded input length, and the right side is equality of the two sets of decision problems. Both directions are asserted.
The hypothesis of -completeness is assumed, not established: if no -complete problem existed, the statement would hold vacuously. The quantification is over a single such at a time.