Proved
RhoMin.rhoMin_log_boundsLet 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 . For every integer ,
This is the main theorem of the paper: the longest properly coloured path that is guaranteed in the union of two Hamiltonian paths on vertices has order .
Formalization Note The left side is the natural number Nat.clog 2 (n + 1), the smallest with . The right inequality is stated in the real numbers, with cast to and as Real.logb 2 n.
import Definitions.Def_RhoMin_Defs import Mathlib.Analysis.SpecialFunctions.Log.Base import Mathlib.Data.Nat.Log 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 import Mathlib.Order.Interval.Finset.Nat import Mathlib.Data.Finset.Card import Mathlib.Data.List.Count import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Data.Fintype.Inv open RhoMin
theorem RhoMin.rhoMin_log_bounds (n : ℕ) (hn : 2 ≤ n) :
Nat.clog 2 (n + 1) ≤ rhoMin n ∧ (rhoMin n : ℝ) ≤ 14 * Real.logb 2 n := by sorryRead-back
What the Lean code literally says, in plain math · claude-fable-5-2
Statement. Let be a natural number with . Then both of the following hold:
The first inequality is between natural numbers: its left side is the least natural number with . The second inequality is between real numbers: is regarded as a real number and is the real base-2 logarithm of . Both inequalities are non-strict.
Meaning of . Write . For a permutation of and :
- are P-adjacent if or (as natural numbers); this does not depend on .
- are V-adjacent if or (as natural numbers).
A finite list of elements of is alternating with starting colour (where is either P or V) if for every with , the pair is adjacent in colour when is even and adjacent in the other colour when is odd. The empty list and every one-element list are alternating for either starting colour. A pair that happens to be both P-adjacent and V-adjacent may serve as a step of either colour.
A list is a PC list if its entries are pairwise distinct and it is alternating for at least one of the two starting colours.
is the largest natural number such that there exists a PC list for with exactly entries (the count is of entries, not of steps). The value always qualifies (the empty list), and for the value always qualifies (a one-element list), so whenever ; always .
the minimum being taken over all permutations of .
Edge cases. The hypothesis excludes and (where would be under the convention in use, and , ); nothing is asserted for them. For the claim reads . Since by definition, the second inequality holds automatically for every with , which is the range .