Fragment composition #
Composition of fragments (Fragment.compose, defined in
RS/Definitions.lean) glues the last t boundary labels of an
(s + t)-fragment to the first t of a (t + u)-fragment through
the iterated single-pair primitive, re-indexing the surviving
labels by one-point removals.
This module carries the value computations for those removals: the gluing chain rewrites boundary states through the re-indexings, so it needs each surviving label's new index as an explicit natural number.
Value computation for the one-point removals #
A removal is inverted by Fin.succAbove, which shifts the indices
at or above the removed point up by one. Reading that off gives
each surviving label's new index as an explicit natural number.