Lax434930.BasicProperties
Elementary properties of the complexity classes
concepts/Lax434930/BasicProperties.lean · lax-434930
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Evidence
This concept declares 7 statements. Each proof establishes one of them relative to its assumptions.
1st statement co_co proven
2nd statement L_subset_NL proven
3rd statement L_subset_PSPACE proven
4th statement mem_coNP_iff proven
5th statement NL_subset_NPSPACE proven
6th statement P_subset_EXPTIME proven
7th statement PSPACE_subset_NPSPACE proven
Theorem
Deterministic space is contained in nondeterministic space, both for logarithmic and polynomial bounds. Logarithmic space is contained in polynomial space, in both settings. Polynomial time is contained in exponential time. Applying the class operation co twice recovers the original class, and a language belongs to coNP exactly when every polynomially bounded certificate is rejected by a suitable P verifier.
Lean source view on GitHub
| 1 | import Lax434930.LogarithmicSpace |
| 2 | import Lax434930.NondeterministicLogarithmicSpace |
| 3 | import Lax434930.PolynomialSpace |
| 4 | import Lax434930.NondeterministicPolynomialSpace |
| 5 | import Lax434930.ComplementClasses |
| 6 | import Lax434930.ExponentialTime |
| 7 | |
| 8 | /-! |
| 9 | --- |
| 10 | title: Elementary properties of the complexity classes |
| 11 | type: theorem |
| 12 | --- |
| 13 | Deterministic space is contained in nondeterministic space, both for |
| 14 | logarithmic and polynomial bounds. Logarithmic space is contained in |
| 15 | polynomial space, in both settings. Polynomial time is contained in |
| 16 | exponential time. Applying the class operation co twice recovers the |
| 17 | original class, and a language belongs to coNP exactly when every |
| 18 | polynomially bounded certificate is rejected by a suitable P verifier. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax434930.BasicProperties |
| 22 | |
| 23 | open PolynomialTime LogarithmicSpace NondeterministicLogarithmicSpace |
| 24 | open PolynomialSpace NondeterministicPolynomialSpace ComplementClasses |
| 25 | open ExponentialTime Certificates |
| 26 | |
| 27 | axiom L_subset_NL : L ⊆ NL |
| 28 | |
| 29 | axiom PSPACE_subset_NPSPACE : PSPACE ⊆ NPSPACE |
| 30 | |
| 31 | axiom L_subset_PSPACE : L ⊆ PSPACE |
| 32 | |
| 33 | axiom NL_subset_NPSPACE : NL ⊆ NPSPACE |
| 34 | |
| 35 | axiom P_subset_EXPTIME : P ⊆ EXPTIME |
| 36 | |
| 37 | axiom co_co (C : Set Language) : co (co C) = C |
| 38 | |
| 39 | /-- Universal certificate characterization, with the same explicit encoding as NP. -/ |
| 40 | axiom mem_coNP_iff (A : Language) : A ∈ coNP ↔ |
| 41 | ∃ V : Language, V ∈ P ∧ ∃ p : Polynomial ℕ, ∀ x : Word, |
| 42 | x ∈ A ↔ ∀ y : Word, y.length ≤ p.eval x.length → pair x y ∉ V |
| 43 | |
| 44 | end Lax434930.BasicProperties |
| 45 |
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments