Polynomial many-one reductions and NP-completeness
Lax429075.Reductions · concepts/Lax429075/Reductions.lean · lax-429075
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A polynomial many-one reduction is one polynomial time computable function on binary words that preserves membership. A language is NP-complete if it belongs to NP and every language in NP reduces to it.
Concept map
In the paper
- page 3 of this submission's paper
Lean source view on GitHub
| 1 | import Lax434930.NondeterministicPolynomialTime |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Polynomial many-one reductions and NP-completeness |
| 6 | type: definition |
| 7 | --- |
| 8 | A polynomial many-one reduction is one polynomial time computable function |
| 9 | on binary words that preserves membership. A language is NP-complete if it |
| 10 | belongs to NP and every language in NP reduces to it. |
| 11 | -/ |
| 12 | |
| 13 | namespace Lax429075.Reductions |
| 14 | |
| 15 | open Lax434930.PolynomialTime Lax434930.NondeterministicPolynomialTime |
| 16 | |
| 17 | def ManyOne (A B : Language) : Prop := |
| 18 | ∃ f : Word → Word, Nonempty (Turing.TM2ComputableInPolyTime id id f) ∧ |
| 19 | ∀ x, x ∈ A ↔ f x ∈ B |
| 20 | |
| 21 | def NPComplete (B : Language) : Prop := B ∈ NP ∧ ∀ A : Language, A ∈ NP → ManyOne A B |
| 22 | |
| 23 | end Lax429075.Reductions |
| 24 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments