Reduction to Minimum Coloring with a 2-sequence

Lax528502.ColoringReduction · concepts/Lax528502/ColoringReduction.lean · lax-528502

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural 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 22-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
    14 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    In the paper

    • page 21 of this submission's paper

    Lean source view on GitHub

    1import Lax528502.CliqueConstruction
    2import Lax759944.RamPolytime
    3import Lax434930.NondeterministicPolynomialTime
    4
    5/-!
    6---
    7title: Reduction to Minimum Coloring with a 2-sequence
    8type: lemma
    9---
    10The reduction of Section 5 turns disjoint directed paths in a DAG into
    11Minimum Coloring. Its cyclically arranged cliques have a polynomial-size
    1222-sequence which is included in the output. On every input, including a
    13negative input, the reduction returns a well-formed target instance.
    14
    15The output is available both as a list of RAM words and under its binary
    16encoding for polynomial many-one reductions. A certificate for the target
    17language is a color for each vertex. The graph, sequence, and coloring can
    18all be checked in polynomial time.
    19-/
    20
    21namespace Lax528502.ColoringReduction
    22
    23open Lax434930.PolynomialTime Lax434930.NondeterministicPolynomialTime
    24open Lax759944.RamPolytime ColoringInstances
    25
    26/-- The serialized clique graph carries a valid 2-sequence and is colorable
    27exactly when the specified directed paths exist. -/
    28axiom 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. -/
    32axiom 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. -/
    40axiom membership : minimumColoringWithTwoSequence ∈ NP
    41
    42end Lax528502.ColoringReduction
    43
    Show ProofShow ProofShow Proof

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…