Every P language belongs to coNP
ProvedPvsNP.P_subset_coNP_tm2P is contained in the class of complements of NP languages.
Status: Known mathematics / implementation obligation awaiting formal proof.
import Definitions.Def_PvsNPFrontier namespace PvsNP theorem P_subset_coNP_tm2 : P ⊆ coNP := by sorry end PvsNP
Read-back
What the Lean code literally says, in plain math · gpt-6-astra
For every language , if , then its complement belongs to . Equivalently, every language with a polynomial-time Boolean decider has a complement described by some polynomial-time checker and a witness-length exponent as specified here. Here , is the set of all finite Boolean lists, including the empty list, and is list length. The set consists exactly of languages for which there is a Boolean function satisfying and . The set consists exactly of languages for which there exist and satisfying and . This includes and empty input: , whereas for . Write for existence of such a machine and a polynomial that, for every , compute the singleton output from input in at most steps. Write for existence of such a machine and a polynomial that, for all , compute in at most steps from the list obtained by tagging every bit of with the left injection into , tagging every bit of with the right injection, and concatenating those two lists. A machine in these assertions is a Mathlib TM2 stack machine with finitely many stack indices, instruction labels, and control states, a finite input-stack alphabet, designated input and output stacks, a program, and initial label and control state; its other stack alphabets need not be finite. Input and output alphabet bijections transport the specified encoded lists to the corresponding stack alphabets. Computation starts with only the input stack populated, and reaches a halted configuration with the specified output on the output stack, all other stacks empty, and the control state reset to its initial value. Time counts executions of whole TM2 statements, each of which may contain several stack operations. The supplied body is admitted with sorry; no proof of this assertion is supplied there.