Reduction to Minimum Coloring with a 2-sequence
Lax528502.ColoringReduction · concepts/Lax528502/ColoringReduction.lean · lax-528502
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
The reduction of Section 5 turns disjoint directed paths in a DAG into Minimum Coloring. Its cyclically arranged cliques have a polynomial-size -sequence which is included in the output. On every input, including a negative input, the reduction returns a well-formed target instance.
The output is available both as a list of RAM words and under its binary encoding for polynomial many-one reductions. A certificate for the target language is a color for each vertex. The graph, sequence, and coloring can all be checked in polynomial time.
Concept map
Evidence
In the paper
- page 21 of this submission's paper
Lean source view on GitHub
| 1 | import Lax528502.CliqueConstruction |
| 2 | import Lax759944.RamPolytime |
| 3 | import Lax434930.NondeterministicPolynomialTime |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Reduction to Minimum Coloring with a 2-sequence |
| 8 | type: lemma |
| 9 | --- |
| 10 | The reduction of Section 5 turns disjoint directed paths in a DAG into |
| 11 | Minimum Coloring. Its cyclically arranged cliques have a polynomial-size |
| 12 | -sequence which is included in the output. On every input, including a |
| 13 | negative input, the reduction returns a well-formed target instance. |
| 14 | |
| 15 | The output is available both as a list of RAM words and under its binary |
| 16 | encoding for polynomial many-one reductions. A certificate for the target |
| 17 | language is a color for each vertex. The graph, sequence, and coloring can |
| 18 | all be checked in polynomial time. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax528502.ColoringReduction |
| 22 | |
| 23 | open Lax434930.PolynomialTime Lax434930.NondeterministicPolynomialTime |
| 24 | open Lax759944.RamPolytime ColoringInstances |
| 25 | |
| 26 | /-- The serialized clique graph carries a valid 2-sequence and is colorable |
| 27 | exactly when the specified directed paths exist. -/ |
| 28 | axiom correct (I : DisjointPaths.Instance) : ∃ J : ColoringInstances.Instance, |
| 29 | CliqueConstruction.words I=J.words ∧ (J.graph.Colorable J.colors ↔ I.Routable) |
| 30 | |
| 31 | /-- The same reduction on the RAM and as a map on binary words. -/ |
| 32 | axiom reduce : |
| 33 | ∃ (ram : List ℕ → List ℕ) (f : Word → Word), RamPolytime ram ∧ |
| 34 | Nonempty (Turing.TM2ComputableInPolyTime id id f) ∧ |
| 35 | (∀ I : DisjointPaths.Instance, ram (I.bits.map Bool.toNat) = CliqueConstruction.words I) ∧ |
| 36 | ∀ x, (∃ I : ColoringInstances.Instance, ram (x.map Bool.toNat) = I.words ∧ f x = I.bits) ∧ |
| 37 | (x ∈ DisjointPaths.language ↔ f x ∈ minimumColoringWithTwoSequence) |
| 38 | |
| 39 | /-- Verifying a supplied sequence and a coloring gives membership in NP. -/ |
| 40 | axiom membership : minimumColoringWithTwoSequence ∈ NP |
| 41 | |
| 42 | end Lax528502.ColoringReduction |
| 43 |
Used by
none
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments