Color propagation between ordered cliques

Lax528502.ColoringGadgets · concepts/Lax528502/ColoringGadgets.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

    In a proper kk-coloring, each ordered kk-clique uses every color once. Between consecutive cliques, the copy gadget forces their color orders to agree. The swap gadget forces an adjacent transposition. The choice gadget allows either order (Lemma 5.1).

    Concept map
    1 concept; 2 descendants hidden
    100%
    Proven claimThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    In the paper

    • page 15 of this submission's paper

    Lean source view on GitHub

    1import Mathlib.GroupTheory.Perm.Basic
    2import Mathlib.Data.Fin.Basic
    3
    4/-!
    5---
    6title: Color propagation between ordered cliques
    7type: lemma
    8---
    9In a proper kk-coloring, each ordered kk-clique uses every color once.
    10Between consecutive cliques, the copy gadget forces their color orders to
    11agree. The swap gadget forces an adjacent transposition. The choice gadget
    12allows either order (Lemma 5.1).
    13-/
    14
    15namespace Lax528502.ColoringGadgets
    16
    17/-- Two consecutive positions in a clique of size k, numbered from 0. -/
    18structure Consecutive (k : ℕ) where
    19 left : Fin k
    20 right : Fin k
    21 next : right.val = left.val + 1
    22
    23inductive Operation (k : ℕ)
    24 | copy
    25 | swap (i : Consecutive k)
    26 | choice (i : Consecutive k)
    27
    28variable {k : ℕ}
    29
    30/-- A crossing-edge pattern, on either finite clique positions or their numerical labels. -/
    31inductive EdgePattern (α : Type)
    32 | copy
    33 | swap (left right : α)
    34 | choice (left right : α)
    35 deriving DecidableEq, Inhabited
    36
    37def EdgePattern.Edge {α : Type} [LT α] (op : EdgePattern α) (p q : α) : Prop :=
    38 match op with
    39 | .copy => p < q
    40 | .choice l r => p < q ∧ (p,q) ≠ (l,r)
    41 | .swap l r => (p < q ∧ (p,q) ≠ (l,r)) ∨ (p,q) = (l,l)
    42
    43/-- Crossing edges from position p of the old clique to q of the new one. -/
    44def Operation.Edge (op : Operation k) (p q : Fin k) : Prop :=
    45 let pattern : EdgePattern (Fin k) := match op with
    46 | .copy => .copy
    47 | .swap i => .swap i.left i.right
    48 | .choice i => .choice i.left i.right
    49 pattern.Edge p q
    50
    51/-- The old position carrying the color at each new position is given by π. -/
    52def Operation.Proper (op : Operation k) (π : Equiv.Perm (Fin k)) : Prop :=
    53 ∀ q, ¬ op.Edge (π q) q
    54
    55def Operation.Allows (op : Operation k) (π : Equiv.Perm (Fin k)) : Prop :=
    56 match op with
    57 | .copy => π = Equiv.refl _
    58 | .swap i => π = Equiv.swap i.left i.right
    59 | .choice i => π = Equiv.refl _ ∨ π = Equiv.swap i.left i.right
    60
    61/-- The three gadgets permit exactly the prescribed changes of color order. -/
    62axiom proper_iff_allows (op : Operation k) (π : Equiv.Perm (Fin k)) : op.Proper π ↔ op.Allows π
    63
    64end Lax528502.ColoringGadgets
    65
    Show Proof

    Discussion

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

    Loading discussion…