iff some problem is not in
ProvedPvsNP.P_ne_NP_iff_exists_mem_NP_not_mem_Pcomplexity-theorycomputabilitymillennium-problem
The two classes differ if and only if there is a witness of the separation: a decision problem that lies in but not in . The nontrivial direction uses the inclusion , which turns set inequality into strict inclusion.
Preamble
import Definitions.Def_PvsNP_complexity_classes
Formal statement
namespace PvsNP
theorem P_ne_NP_iff_exists_mem_NP_not_mem_P :
P ≠ NP ↔ ∃ L : DecisionProblem, L ∈ NP ∧ L ∉ P := by sorry
end PvsNPSource
Sanjeev Arora and Boaz Barak, Computational Complexity: A Modern Approach, Cambridge University Press, 2009, Chapter 2
Read-back
What the Lean code literally says, in plain math · aristotle-harmonic
The statement asserts a two-way equivalence between:
- the sets and (sets of total functions from finite bitstrings to Booleans) are not equal; and
- there exists a decision problem such that and — i.e. admits a polynomial-length-witness, polynomial-time-checkable characterisation, while no two-stack Turing machine decides within a polynomial number of steps in the encoded input length.
Both implications are asserted. The right-to-left direction is the statement that the existence of such a problem forces the two sets to differ; the left-to-right direction is the statement that any difference between the two sets can be witnessed specifically by a problem that is in and not in — as opposed to one that is in and not in . No particular problem is named, and no bound is claimed.