2-SAT Is in P
Lax117284.TwoSatInP · concepts/Lax117284/TwoSatInP.lean · lax-117284
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
The language 2-SAT lies in : a deterministic Turing machine decides membership within a polynomial number of steps, in the sense of the archive's class of .
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
Lean source view on GitHub
| 1 | import Lax117284.TwoSatCNF |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: 2-SAT Is in P |
| 6 | type: theorem |
| 7 | --- |
| 8 | The language 2-SAT lies in : a deterministic Turing machine decides membership |
| 9 | within a polynomial number of steps, in the sense of the archive's class of `lax-434930`. |
| 10 | |
| 11 | # Formalization Notes |
| 12 | |
| 13 | This is the word RAM bound of this submission, transferred. The program that decides the |
| 14 | language on the zeros and ones of the word runs in time polynomial in the length of the word, |
| 15 | with all values polynomially bounded, so it is a polynomial-time word RAM computation in the |
| 16 | sense of `lax-759944`, and that submission's equivalence gives a polynomial-time Turing machine |
| 17 | over the encoding of the bits; two fixed translations, from a binary word to the encoding of its |
| 18 | bits and back to a single output bit, complete the machine the class asks for. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax117284.TwoSatInP |
| 22 | |
| 23 | open Lax434930.PolynomialTime Lax117284.TwoSatCNF |
| 24 | |
| 25 | /-- **2-SAT ∈ P.** -/ |
| 26 | axiom twoSAT_mem_P : TwoSAT ∈ P |
| 27 | |
| 28 | end Lax117284.TwoSatInP |
| 29 |
Formalization Notes
This is the word RAM bound of this submission, transferred. The program that decides the language on the zeros and ones of the word runs in time polynomial in the length of the word, with all values polynomially bounded, so it is a polynomial-time word RAM computation in the sense of , and that submission's equivalence gives a polynomial-time Turing machine over the encoding of the bits; two fixed translations, from a binary word to the encoding of its bits and back to a single output bit, complete the machine the class asks for.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments