Documentation

CslibFrontier.Computability.Complexity.Problems.Graph.RotationSystem.CertificateColors

Dart colors on the actual bounded certificate words #

The finite dart-index equivalence reads mathematical colors at raw table positions. On an accepted table, its literal cycle word computes vertex parity and cutting it after the marked dart gives the exact entry/exit color path, including the empty-tail case.

Extend colors to raw dart indices by the existing finite index equivalence. Values outside the actual dart interval are false; no numeric label determines an iteration bound.

Actual indexed darts read exactly their original mathematical color.

The actual bounded raw cycle word computes the selected vertex's incidence parity.

theorem Cslib.Complexity.Graph.RotationCertificate.formPerm_cycleWord_colors {G : Graph} {c : RotationCertificate} (hc : verifyRotation G c = true) (d : G.Dart) (P : G.Dart → Bool) (hP : ∀ (e : G.Dart), P ((decode G c hc).rotate e) = P e.reverse) (i : ℕ) (hi : i ∈ c.cycleWord d.index) :

Clockwise corner colors satisfy the actual listed cycle's forward equations.

theorem Cslib.Complexity.Graph.RotationCertificate.isChain_colors_cycleWord {G : Graph} {c : RotationCertificate} (hc : verifyRotation G c = true) (d : G.Dart) (P : G.Dart → Bool) (hP : ∀ (e : G.Dart), P ((decode G c hc).rotate e) = P e.reverse) :
List.IsChain (fun (p q : Bool × Bool) => p.2 = q.1) ((P d, P d) :: List.map (fun (i : ℕ) => (Dart.colorAtIndex P i, Dart.colorAtIndex (fun (e : G.Dart) => P e.reverse) i)) (c.cycleWord d.index) ++ [(P d, P d)])

The complete literal cycle is a closed corner-color path, anchored at its actual first dart. Singleton cycles are included.

theorem Cslib.Complexity.Graph.RotationCertificate.isChain_colors_tail_cycleWord {G : Graph} {c : RotationCertificate} (hc : verifyRotation G c = true) (d : G.Dart) (P : G.Dart → Bool) (hP : ∀ (e : G.Dart), P ((decode G c hc).rotate e) = P e.reverse) :
List.IsChain (fun (p q : Bool × Bool) => p.2 = q.1) ((P d.reverse, P d.reverse) :: List.map (fun (i : ℕ) => (Dart.colorAtIndex P i, Dart.colorAtIndex (fun (e : G.Dart) => P e.reverse) i)) (c.cycleWord d.index).tail ++ [(P d, P d)])

Cut the literal computed cycle at its marker. Clockwise-compatible colors give a path from the reverse marker color to the marker color through precisely the stored tail.