Reach Lemma: a PC path from to any vertex, starting with a V-edge
ProvedRhoMin.reachLet be a permutation of . The graph on has P-edges and V-edges with consecutive integers. A PC path is a sequence of distinct vertices whose consecutive vertices are joined by edges of alternating colours, and is the largest number of vertices of a PC path of .
Let be a permutation of and let with . Then contains a PC path
whose first edge is a V-edge.
The lemma drives the lower bound: position is an end of the path of P-edges, and leaving it by a V-edge one can steer an alternating path to any target.
Formalization Note The vertex is given as an element of Fin n with value , and the path as a list without repetition whose steps alternate starting with colour V and whose last element is . The hypothesis of the paper is implied by the existence of .
import Definitions.Def_RhoMin_Defs
import Mathlib.Combinatorics.SimpleGraph.Matching
import Mathlib.Data.Fintype.Perm
import Mathlib.Data.Fintype.Card
import Mathlib.Data.List.Nodup
import Mathlib.Data.Nat.Find
import Mathlib.Data.List.FinRange
import Mathlib.Data.Finset.Lattice.Fold
import Mathlib.Combinatorics.SimpleGraph.Tutte
import Mathlib.Data.Set.Card
import Mathlib.Algebra.Order.BigOperators.Group.Finset
open RhoMin
variable {n : ℕ}theorem RhoMin.reach (σ : Equiv.Perm (Fin n)) (o : Fin n) (ho : o.val = 0) (t : Fin n) (ht : t ≠ o) :
∃ l : List (Fin n), (o :: l).Nodup ∧ Alt σ true (o :: l) ∧
(o :: l).getLast (List.cons_ne_nil _ _) = t := by sorryRead-back
What the Lean code literally says, in plain math · claude-fable-5-2
Statement. Let be a natural number and write . Let be any permutation of , let be an element whose numerical value is (so is the element ), and let be any element with . Then there exists a finite list of elements of such that all of the following hold:
- (the list is followed by some, possibly empty, list of further elements);
- the entries are pairwise distinct;
- the list is alternating starting with a V-step: for every with ,
- if is even, then are V-adjacent, meaning or (as natural numbers);
- if is odd, then are P-adjacent, meaning or (as natural numbers);
- the last entry is : .
In words: from the element , every other element is the endpoint of some list with no repeated entries whose consecutive entries differ by exactly alternately in -value and in position, the first step being of the -value kind:
What is and is not constrained. The starting colour is fixed (the first step must be a V-step); the colour of the final step is not constrained, and neither is the length . Because , the list necessarily has at least two entries (), so at least the first V-step is actually present. A pair that is both V-adjacent and P-adjacent may serve as a step of either kind. Only existence of such a list is asserted, for each and each separately.
Edge cases. The statement is vacuous for (there is no element ) and for (there is no ); it has content only for . There is no hypothesis on beyond those implied by the existence of and .