From a perfect matching of the split graph to a PC path
ProvedRhoMin.claimALet 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 .
Fix with and let be the split graph: every vertex has a V-copy , every vertex also has a P-copy , and is a single vertex; P-copies are joined along P-edges, V-copies along V-edges, and the two copies of a vertex by a rung.
If has a perfect matching, then has a PC path from to whose edge at is a V-edge.
Together with the existence of a perfect matching (Lemma 2.3) this proves the Reach Lemma.
Formalization Note The matching is a subgraph of Gt σ t with M.IsPerfectMatching; the conclusion has the same form as in the Reach Lemma.
import Definitions.Def_RhoMin_Defs
import Definitions.Def_RhoMin_Split
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
open RhoMin
variable {n : ℕ}
variable (σ : Equiv.Perm (Fin n)) (t : Fin n)theorem RhoMin.claimA (o : Fin n) (ho : o.val = 0) (hto : t ≠ o) (M : (Gt σ t).Subgraph)
(hM : M.IsPerfectMatching) :
∃ 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
Setting. Let be a natural number (any value, including and ), let be a permutation of the set , and let . Elements of are called positions below; is the value at position .
Two relations on are used:
- and are P-adjacent if or (as natural numbers), i.e. the positions differ by exactly .
- and are V-adjacent (with respect to ) if or (as natural numbers), i.e. the values differ by exactly .
Both relations are symmetric and irreflexive.
The graph . Its vertices are the pairs with and such that
So every pair is a vertex, and is a vertex exactly when is neither the position nor . Two vertices and are adjacent exactly when at least one of the following holds:
- and ;
- , , and are V-adjacent;
- are P-adjacent, and ( or ), and ( or ).
In clause 3 the vertex is allowed as an endpoint (the pair is not a vertex), while any other vertex with second component is not.
Hypotheses.
- is a position whose numerical value is (this forces );
- (together with the previous item this forces and );
- is a subgraph of that is a perfect matching: every vertex of belongs to , and every vertex is adjacent in to exactly one vertex.
Conclusion. There exists a finite list of elements of such that the list obtained by putting in front of satisfies all of:
- has no repeated entries;
- alternates starting with a V-step: writing with , for every the pair is V-adjacent when is even and P-adjacent when is odd;
- the last entry of is .
Remarks on what the quantifiers include.
- The matching appears only as a hypothesis; the conclusion does not refer to . The hypothesis is equivalent to assuming that has at least one perfect matching. For any for which no perfect matching of exists, the statement is vacuously true.
- For and there are no satisfying the hypotheses, so the statement is vacuous there.
- Since and the last entry of is , the list is necessarily non-empty, so has at least one step and its first step is a V-step. Nothing is asserted about the type (V or P) of the last step, nor about the length of beyond this.