Show NP != co-NP implies P != NP
Prove the implication: if $NP \neq co\text{-}NP$ then $P \neq NP$.
This is a proof problem about complexity classes. It is not a function from an input string to a value, so there is no canonical input, no observable output, and no runtime to bound. The published execution_schema still declares a functional solve(string): boolean entry point for six languages, and solutions.md still contains constant bodies for that entry point. That executable contract is an unresolved source and ABI contradiction recorded as a blocker; it is not satisfied with a constant here.
Premise and source:
- $P$ is the class of languages decided by a deterministic machine in polynomial time, $NP$ is the class of languages with polynomial-length certificates checked by a deterministic polynomial-time verifier, and $co\text{-}NP$ is the class of languages whose complement is in $NP$.
- $P$ is closed under complement, because a deterministic polynomial-time decider can have its accept and reject states exchanged.
- $P \subseteq NP$, because a deterministic polynomial-time decider is a polynomial-time verifier that ignores the certificate.
- These are the standard definitions and the standard complement-closure argument for deterministic time classes, as presented in Garey and Johnson, Computers and Intractability (1979), and Arora and Barak, Computational Complexity: A Modern Approach (2009).
Examples
Input: "proof_case_1"
Output: true
Input: "proof_case_2"
Output: true
Hints
Recall the definitions of P, NP, co-NP, and the relationship between NP and co-NP.
Prove the contrapositive instead: P = NP implies NP = co-NP, because P is closed under complement.
Note that only this direction is proved; NP = co-NP is not known to imply P = NP.
Show NP != co-NP implies P != NP
Prove the implication: if $NP \neq co\text{-}NP$ then $P \neq NP$.