Recurrence (R2):
ProvedRhoMin.chainLAn abstract chain consists of a finite set of positions, a number of pieces, and for each two gates and an interior block with corners , together with joints . The -th piece is . For a digraph on , the chain conditions say that the pieces are pairwise disjoint, the joints are distinct and lie in no piece, every position of is a joint or lies in a piece, the gates are distinct and not in the block, and the only arcs of within that cross the boundary of a piece or of a block are the port arcs: into only and ; out of only and ; into only and ; out of only and .
For a set of positions with corners : bounds the paths of if every path inside has at most vertices; bounds the corner paths if every path inside with an end at or at has at most vertices; bounds the corner pairs if any two vertex-disjoint paths inside , the first with an end at and the second with an end at , have at most vertices in total.
Suppose that for every the number bounds the corner paths of the block with corners . Then every path of inside with an end at or at has at most
vertices.
Formalization Note The conclusion is BoundL A C.X (C.z 0) (C.z C.K) (2 * C.K + L + 3). The statement does not assume that is a position of ; when it is not, only paths with an end at are concerned.
import Definitions.Def_RhoMin_Dir
import Definitions.Def_RhoMin_Piece
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Data.Finset.Card
import Mathlib.Data.List.Count
open RhoMin
variable {A : ℕ → ℕ → Prop} {C : ChainData}theorem RhoMin.chainL (hC : IsChain A C) {L : ℕ} (hL : ∀ j < C.K, BoundL A (C.I j) (C.c j) (C.w j) L) :
BoundL A C.X (C.z 0) (C.z C.K) (2 * C.K + L + 3) := by sorryRead-back
What the Lean code literally says, in plain math · claude-fable-5-2
Data. Let be an arbitrary binary relation on (no symmetry, irreflexivity or decidability is assumed); read as "there is an arc from to ". Let be a "chain datum", i.e. a tuple consisting of a natural number , five functions (written ), a function assigning to each a finite set , and a finite set . For each put
Let be a natural number.
Terminology used below. A list is a finite sequence of natural numbers, possibly empty (). It is repetition-free if its entries are pairwise distinct. It is an -walk if holds for every (the empty list and every one-element list are -walks, with no condition). A number is an end of if is non-empty and or (the empty list has no ends). For a finite set and naturals , write for the statement: every repetition-free -walk all of whose entries lie in and which has as an end or as an end has length (number of entries) .
Hypothesis 1 (the chain conditions on and ). All of the following hold:
- For every : either , or there is with or .
- For all with , the sets and are disjoint.
- For all and : .
- For all : implies (so are pairwise distinct).
- For all : , , and .
- For all and all with , and : either ( and ) or ( and ).
- For all and all with , and : either ( and ) or ( and ).
- For all and all with , and : either ( and ) or ( and ).
- For all and all with , and : either ( and ) or ( and ).
Hypothesis 2. For every : , i.e. every repetition-free -walk with all entries in having or as an end has length .
Conclusion.
that is, every repetition-free -walk all of whose entries lie in and whose first or last entry is or has length at most .
Edge cases and things the statement does not assume.
- No bound is assumed on arbitrary walks inside (only on those with an end at or ), and no bound on pairs of disjoint walks is assumed.
- Conditions 6–9 only restrict which arcs between elements of can cross the boundary of or ; nothing asserts that any arc exists. Arcs with an endpoint outside are unconstrained (and irrelevant to the conclusion).
- Nothing requires , , , , , , or . Hypothesis 2 concerns walks in , which may contain points outside ; if neither nor lies in , Hypothesis 2 for that holds automatically.
- If neither nor belongs to , no list qualifies and the conclusion holds trivially; the conclusion says nothing about walks in that have neither nor as an end.
- The values of at indices beyond those quantified (, resp. for ) are unconstrained.
- If : Hypothesis 2 and conditions 2, 3, 5–9 are vacuous, condition 1 says , the two distinguished points coincide (), is arbitrary, and the claimed bound is .
- The same serves as the bound for all simultaneously.