Orientation Lemma: is at most the longest directed path of
ProvedRhoMin.rho_le_of_boundLet 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 .
Suppose is parity-preserving, and let be the digraph on in which every P-edge is directed away from its even end and every V-edge away from its odd end. If every directed path of has at most vertices, then
This reduces the upper bound on to a statement about directed paths, in which colours no longer appear.
Formalization Note The permutation is accompanied by with for and for all ; the hypothesis is BoundR (Arc f) (Finset.range n) B, a bound on all repetition-free directed paths with vertices in .
import Definitions.Def_RhoMin_Defs
import Definitions.Def_RhoMin_Dir
import Definitions.Def_RhoMin_Piece
import Definitions.Def_RhoMin_Orient
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.Data.Finset.Card
import Mathlib.Data.List.Count
open RhoMin
variable {n : ℕ}theorem RhoMin.rho_le_of_bound (σ : Equiv.Perm (Fin n)) (f : ℕ → ℕ) (hf : ∀ i : Fin n, (σ i).val = f i.val)
(hpar : ∀ u, f u % 2 = u % 2) {B : ℕ} (hB : BoundR (Arc f) (Finset.range n) B) : rho σ ≤ B := by sorryRead-back
What the Lean code literally says, in plain math · claude-fable-5-2
Setting. Let be a natural number and let be a permutation of . Let be a function defined on all natural numbers, and let be a natural number.
Definitions used.
On :
- are P-adjacent if or .
- are V-adjacent if or .
- A list of elements of is a PC path of if its entries are pairwise distinct and there is a Boolean such that, for every , the pair is V-adjacent when the colour of step is and P-adjacent when it is , the colours of the steps being . The empty list and every one-entry list are PC paths.
- is the greatest natural number such that some PC path of has exactly entries. (Such always exists because the empty list gives ; a list of distinct elements of never has more than entries, so the cap excludes nothing.)
On : there is an arc (with respect to ) if
where abbreviates " or ", and likewise for . The parity condition is on the tail only.
Hypotheses.
-
extends : for every , as natural numbers.
-
preserves parity everywhere: for every natural number (including every ), .
-
Directed-path bound: every list of natural numbers such that
- the entries are pairwise distinct,
- there is an arc for every (all arcs traversed in the forward direction), and
- every entry satisfies ,
has at most entries.
Conclusion.
Remarks on what the quantifiers include.
- The first two hypotheses together force for every . If does not preserve parity of positions, no such exists and the statement is vacuous for that . The values of outside are constrained only by the parity condition.
- The bound hypothesis also applies to the empty list and to one-entry lists; for the one-entry list forces . is otherwise an arbitrary natural number, not required to be the least such bound.
- For , is the unique permutation of the empty set, , and the conclusion holds for every .
- Because one-entry lists count as PC paths, whenever .