Passing by: a path with no end in a piece meets it in at most one vertex
ProvedRhoMin.passAn 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 .
Let be a path of inside (distinct positions, each step an arc), and let . If neither end of lies in the piece , then
and if meets then contains both joints and .
Formalization Note is a list of natural numbers without repetition, and is the number of its entries in . The statement is about an arbitrary digraph satisfying the chain conditions.
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.pass (hC : IsChain A C) {j : ℕ} (hj : j < C.K) {Q : List ℕ} (hnd : Q.Nodup) (hw : Walk A Q)
(hX : ∀ x ∈ Q, x ∈ C.X) (hend : ∀ x, IsEnd x Q → x ∉ C.M j) :
cnt (C.M j) Q ≤ 1 ∧ (cnt (C.M j) Q ≠ 0 → C.z j ∈ Q ∧ C.z (j + 1) ∈ Q) := 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
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 , or that ; and when conditions 2 and 5–11 are vacuous.
Hypothesis 2. is a natural number with (so the theorem says nothing when ).
Hypotheses 3–6 on a list . is a finite list of natural numbers (possibly empty, ) such that:
- has no repeated entries;
- is an -walk: holds for every pair of consecutive entries (this is automatically true when );
- every entry of lies in ;
- for every natural number that is an end of — meaning is the first entry of or is the last entry of — we have . (For the empty list there are no ends and this hypothesis is vacuous; for a one-entry list the single entry is both first and last.)
Conclusion. Let denote the number of positions of whose entry lies in (since has no repeats, this is the number of elements of occurring in ). Then both of the following hold:
and
The conclusion does not say where in the entries , occur, nor in which order.