Color propagation between ordered cliques
Lax528502.ColoringGadgets · concepts/Lax528502/ColoringGadgets.lean · lax-528502
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
In a proper -coloring, each ordered -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
In the paper
- page 15 of this submission's paper
Lean source view on GitHub
| 1 | import Mathlib.GroupTheory.Perm.Basic |
| 2 | import Mathlib.Data.Fin.Basic |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Color propagation between ordered cliques |
| 7 | type: lemma |
| 8 | --- |
| 9 | In a proper -coloring, each ordered -clique uses every color once. |
| 10 | Between consecutive cliques, the copy gadget forces their color orders to |
| 11 | agree. The swap gadget forces an adjacent transposition. The choice gadget |
| 12 | allows either order (Lemma 5.1). |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax528502.ColoringGadgets |
| 16 | |
| 17 | /-- Two consecutive positions in a clique of size k, numbered from 0. -/ |
| 18 | structure Consecutive (k : ℕ) where |
| 19 | left : Fin k |
| 20 | right : Fin k |
| 21 | next : right.val = left.val + 1 |
| 22 | |
| 23 | inductive Operation (k : ℕ) |
| 24 | | copy |
| 25 | | swap (i : Consecutive k) |
| 26 | | choice (i : Consecutive k) |
| 27 | |
| 28 | variable {k : ℕ} |
| 29 | |
| 30 | /-- A crossing-edge pattern, on either finite clique positions or their numerical labels. -/ |
| 31 | inductive EdgePattern (α : Type) |
| 32 | | copy |
| 33 | | swap (left right : α) |
| 34 | | choice (left right : α) |
| 35 | deriving DecidableEq, Inhabited |
| 36 | |
| 37 | def 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. -/ |
| 44 | def 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 π. -/ |
| 52 | def Operation.Proper (op : Operation k) (π : Equiv.Perm (Fin k)) : Prop := |
| 53 | ∀ q, ¬ op.Edge (π q) q |
| 54 | |
| 55 | def 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. -/ |
| 62 | axiom proper_iff_allows (op : Operation k) (π : Equiv.Perm (Fin k)) : op.Proper π ↔ op.Allows π |
| 63 | |
| 64 | end Lax528502.ColoringGadgets |
| 65 |
Builds on
none
Used by
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments