Lax554803.ComplementClosure
P is closed under complement
concepts/Lax554803/ComplementClosure.lean · lax-554803
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Theorem
If a language of binary strings belongs to , then its complement also belongs to . The complement is taken in the set of all finite binary strings.
Lean source view on GitHub
| 1 | import Lax554803.PolynomialTime |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: P is closed under complement |
| 6 | type: theorem |
| 7 | --- |
| 8 | If a language of binary strings belongs to , then its complement |
| 9 | also belongs to . The complement is taken in the set of all finite |
| 10 | binary strings. |
| 11 | -/ |
| 12 | |
| 13 | namespace Lax554803.ComplementClosure |
| 14 | |
| 15 | open Lax554803.PolynomialTime |
| 16 | |
| 17 | /-- The complement of a polynomial-time decidable language is polynomial-time decidable. -/ |
| 18 | axiom closed_under_complement (L : Language) : L ∈ P → Lᶜ ∈ P |
| 19 | |
| 20 | end Lax554803.ComplementClosure |
| 21 |
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