PTIME at the bottom of the polynomial hierarchy
Lax564036.PolynomialTimeInHierarchy · concepts/Lax564036/PolynomialTimeInHierarchy.lean · lax-564036
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Polynomial time is the bottom of the hierarchy: PTIME is contained in coNP, and in for every ; with PTIME NP this places it in NP coNP. The inclusion in coNP is the dual of the inclusion in NP, PTIME being closed under complement.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax904597.Problems |
| 2 | import Lax904597.Interpretations |
| 3 | import Lax904597.Relativized |
| 4 | import Lax904597.SecondOrder |
| 5 | import Lax904597.Classes |
| 6 | import Lax904597.Sat |
| 7 | import Lax904597.Machines |
| 8 | import Lax485149.Problems |
| 9 | import Lax485149.Complement |
| 10 | import Lax535992.ClassPTIME |
| 11 | import Lax564036.Hierarchy |
| 12 | import Lax564036.Difference |
| 13 | import Lax564036.Tautology |
| 14 | import Lax564036.ThreeDnfTautology |
| 15 | import Lax564036.SatUnsat |
| 16 | import Lax564036.QuantifiedBooleanFormulas |
| 17 | import Lax564036.AlternatingMachines |
| 18 | |
| 19 | /-! |
| 20 | --- |
| 21 | title: PTIME at the bottom of the polynomial hierarchy |
| 22 | type: theorem |
| 23 | --- |
| 24 | Polynomial time is the bottom of the hierarchy: PTIME is contained in coNP, |
| 25 | and in for every ; with PTIME NP this places |
| 26 | it in NP coNP. The inclusion in coNP is the dual of the inclusion |
| 27 | in NP, PTIME being closed under complement. |
| 28 | -/ |
| 29 | |
| 30 | namespace Lax564036.PolynomialTimeInHierarchy |
| 31 | |
| 32 | open FirstOrder FirstOrder.Language |
| 33 | open Lax904597.Problems Lax904597.Interpretations Lax904597.Relativized Lax904597.SecondOrder |
| 34 | open Lax904597.Classes Lax904597.Sat Lax904597.Machines |
| 35 | open Lax485149.Problems Lax485149.Complement Lax535992.ClassPTIME |
| 36 | open Lax564036.Hierarchy Lax564036.Difference Lax564036.Tautology Lax564036.ThreeDnfTautology |
| 37 | open Lax564036.SatUnsat Lax564036.QuantifiedBooleanFormulas Lax564036.AlternatingMachines |
| 38 | |
| 39 | /-- PTIME is contained in coNP. -/ |
| 40 | axiom PTIME_subset_coNP : ∀ {L : Language.{0, 0}} [L.IsRelational] (P : DecisionProblem L), |
| 41 | PTIME.Mem P → coNP.Mem P |
| 42 | |
| 43 | /-- PTIME is contained in every `Σ` level. -/ |
| 44 | axiom PTIME_subset_sigmaP : ∀ (k : ℕ) {L : Language.{0, 0}} [L.IsRelational] |
| 45 | (P : DecisionProblem L), PTIME.Mem P → (SigmaP k).Mem P |
| 46 | |
| 47 | /-- The two classes of level `0` coincide. -/ |
| 48 | axiom piP_zero_eq : PiP 0 = SigmaP 0 |
| 49 | |
| 50 | end Lax564036.PolynomialTimeInHierarchy |
| 51 |
Builds on
Lax485149.ComplementLax485149.ProblemsLax535992.ClassPTIMELax564036.AlternatingMachinesLax564036.DifferenceLax564036.HierarchyLax564036.QuantifiedBooleanFormulasLax564036.SatUnsatLax564036.TautologyLax564036.ThreeDnfTautologyLax904597.ClassesLax904597.InterpretationsLax904597.MachinesLax904597.ProblemsLax904597.RelativizedLax904597.SatLax904597.SecondOrder
Used by
none
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments