Lax434930.ComplementClasses
The complexity classes coNL and coNP
concepts/Lax434930/ComplementClasses.lean · lax-434930
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Definition
For a class of binary languages, consists of languages whose complements belong to . Complements are taken among all finite binary strings. In particular, means , and means . This operation complements each language; it does not take the set-theoretic complement of the class of languages.
Lean source view on GitHub
| 1 | import Lax434930.NondeterministicLogarithmicSpace |
| 2 | import Lax434930.NondeterministicPolynomialTime |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The complexity classes coNL and coNP |
| 7 | type: definition |
| 8 | --- |
| 9 | For a class of binary languages, |
| 10 | consists of languages whose complements belong to . |
| 11 | Complements are taken among all finite binary strings. In particular, |
| 12 | means , and |
| 13 | means . |
| 14 | This operation complements each language; it does not take the set-theoretic |
| 15 | complement of the class of languages. |
| 16 | -/ |
| 17 | |
| 18 | namespace Lax434930.ComplementClasses |
| 19 | |
| 20 | open PolynomialTime NondeterministicLogarithmicSpace NondeterministicPolynomialTime |
| 21 | |
| 22 | /-- The class of languages whose complements belong to the given class. -/ |
| 23 | def co (C : Set Language) : Set Language := {A | Aᶜ ∈ C} |
| 24 | |
| 25 | /-- Complements of languages in NL. -/ |
| 26 | def coNL : Set Language := co NL |
| 27 | |
| 28 | /-- Complements of languages in NP. -/ |
| 29 | def coNP : Set Language := co NP |
| 30 | |
| 31 | end Lax434930.ComplementClasses |
| 32 |
Used by
From Mathlib
none
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