The classes PTIME and coPTIME
Lax535992.ClassPTIME · concepts/Lax535992/ClassPTIME.lean · lax-535992
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
PTIME is the class of decision problems definable in the Horn fragment of existential second-order logic, which captures polynomial time on ordered structures by a theorem of Grädel. Hardness is the cofinal hardness of the NP core: a problem is PTIME-hard when every problem it reduces to, by a relativized ordered first-order reduction, is reduced to by every problem of PTIME. coPTIME is the class of problems whose complement is in PTIME. PTIME-completeness is membership together with PTIME-hardness, under first-order reductions. No machine enters the definition.
Concept map
Lean source view on GitHub
| 1 | import Lax904597.Problems |
| 2 | import Lax904597.Classes |
| 3 | import Lax485149.Complement |
| 4 | import Lax535992.HornFragment |
| 5 | |
| 6 | /-! |
| 7 | --- |
| 8 | title: The classes PTIME and coPTIME |
| 9 | type: definition |
| 10 | --- |
| 11 | PTIME is the class of decision problems definable in the Horn fragment of |
| 12 | existential second-order logic, which captures polynomial time on ordered |
| 13 | structures by a theorem of Grädel. Hardness is the cofinal hardness of the |
| 14 | NP core: a problem is PTIME-hard when every problem it reduces to, by a |
| 15 | relativized ordered first-order reduction, is reduced to by every problem of |
| 16 | PTIME. coPTIME is the class of problems whose complement is in PTIME. |
| 17 | PTIME-completeness is membership together with PTIME-hardness, under |
| 18 | first-order reductions. No machine enters the definition. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax535992.ClassPTIME |
| 22 | |
| 23 | open Lax904597.Problems Lax904597.Classes Lax485149.Complement Lax535992.HornFragment |
| 24 | |
| 25 | /-- **PTIME**: the class of the SO-Horn definable problems, with cofinal |
| 26 | hardness. -/ |
| 27 | def PTIME : ComplexityClass := |
| 28 | ComplexityClass.ofMem fun P => SigmaSOHornDefinable P |
| 29 | |
| 30 | /-- **coPTIME**: the problems whose complement is in PTIME. -/ |
| 31 | def coPTIME : ComplexityClass := |
| 32 | ComplexityClass.ofMem fun P => SigmaSOHornDefinable (DecisionProblem.compl P) |
| 33 | |
| 34 | end Lax535992.ClassPTIME |
| 35 |
Used by
Lax535992.CircuitValueInvarianceLax535992.CircuitValuePTIMECompleteLax535992.DeterministicMachineInvarianceLax535992.DeterministicMachinePTIMECompleteLax535992.GameInvarianceLax535992.GamePTIMECompleteLax535992.HornIsLeastFixedPointLax535992.HornSatInvarianceLax535992.HornSatPTIMECompleteLax535992.ImmermanVardiLax535992.InflationaryIsLeastFixedPointLax535992.LeastFixedPointComplementLax535992.NLSubsetPTIMELax535992.PTIMEClosureLax535992.PTIMEEqCoPTIMELax535992.PTIMESubsetNP
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments