Both ends inside: a path has at most vertices
ProvedRhoMin.insideAn 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.
Let , and suppose bounds the paths and bounds the corner pairs of the block with corners . Let be a path of inside whose first and last vertices both lie in . Then
Formalization Note is a list of natural numbers without repetition and is its length; the hypotheses on the ends are vacuous for the empty list. The quantities and of the paper appear as any numbers satisfying BoundR and BoundM.
import Definitions.Def_RhoMin_Dir
import Definitions.Def_RhoMin_Piece
import Mathlib.Data.Finset.Card
import Mathlib.Data.List.Count
open RhoMin
variable {A : ℕ → ℕ → Prop}
variable {C : ChainData}theorem RhoMin.inside (hC : IsChain A C) {j : ℕ} (hj : j < C.K) {R Mm : ℕ}
(hR : BoundR A (C.I j) R) (hM : BoundM A (C.I j) (C.c j) (C.w j) Mm)
{Q : List ℕ} (hnd : Q.Nodup) (hw : Walk A Q) (hX : ∀ x ∈ Q, x ∈ C.X)
(hh : ∀ x ∈ Q.head?, x ∈ C.I j) (hl : ∀ x ∈ Q.getLast?, x ∈ C.I j) :
Q.length ≤ max R (Mm + 1) := by sorryRead-back
What the Lean code literally says, in plain math · claude-fable-5-2
Setting. Let be an arbitrary binary relation on the natural numbers (write ; no symmetry, irreflexivity or decidability is assumed). Let be an arbitrary "chain data" record, consisting of: a natural number ; five functions (written ); a function assigning to each a finite set ; and a finite set . For each define the finite set
Throughout, a finite list of natural numbers is called an -walk if holds for every pair of consecutive entries; the empty list and every one-entry list are -walks. A number is an end of a list if it is the list's first entry or its last entry; the empty list has no ends.
Hypothesis 1 ( is a chain for ). All eleven of the following conditions hold:
- (cover) for every : , or there exists such that or ;
- for all and with , no element of belongs to ;
- for all and all : ;
- for all and : implies ;
- for all : ;
- for all : ;
- for all : ;
- (entering ) for all and all with , and : either ( and ) or ( and );
- (leaving ) for all and all with , and : either ( and ) or ( and );
- (entering ) for all and all with , and : either ( and ) or ( and );
- (leaving ) for all and all with , and : either ( and ) or ( and ).
Nothing else is assumed about : in particular it is not assumed that , that , that , or that .
Hypothesis 2. is a natural number with (so the theorem says nothing when ).
Hypothesis 3 (bound for one path inside ). is a natural number such that every finite list of natural numbers which has no repeated entries, is an -walk, and has all its entries in , has length at most .
Hypothesis 4 (bound for two disjoint paths inside ). is a natural number such that for every pair of finite lists of natural numbers satisfying
- and each have no repeated entries,
- and are each -walks,
- all entries of and all entries of lie in ,
- no entry of is an entry of ,
- is an end of (its first or its last entry), and is an end of (its first or its last entry),
we have
The lists in Hypotheses 3 and 4 are required to lie in only (not in ). Hypothesis 4 forces both lists to be non-empty; if or , or if , no pair qualifies and Hypothesis 4 holds for every , including . Hypothesis 3 is satisfiable for some in all cases, since is finite.
Hypotheses 5–9 on a list . is a finite list of natural numbers (possibly empty) such that:
- has no repeated entries;
- is an -walk;
- every entry of lies in ;
- if is non-empty, its first entry lies in ;
- if is non-empty, its last entry lies in .
The last two conditions are vacuous for the empty list. The intermediate entries of are not required to lie in or in ; they are only required to lie in .
Conclusion. The total length of (the number of all its entries, not only those in or ) satisfies