Monotonicity of the interface re-indexing equivalences #
The gluing chain transports corrected constrained values along label re-indexings; the through-factor is orientation-antisymmetric, so only monotone relabelings preserve the corrected value. This file certifies the chain's equivalences as order isomorphisms for the lexicographic order on sums:
finSumFinOrderIso:finSumFinEquivas an order isomorphism;interfaceStepOrderIso: the label re-indexing after gluing the top interface pair, as an order isomorphism;- application lemmas (
interfaceStepEquiv_apply_inl,interfaceStepEquiv_apply_inr) letting the chain rewrite states through the isos concretely, on top of the removals' value computations inComposition.lean.
Instance discipline. Mathlib carries a global Preorder (α ⊕ β)
(the disjoint order, where inl and inr are incomparable), so a
letI := sumLexLinearOrder α β does not reliably route </≤
notation to the lexicographic order — instance search can still pick
the global disjoint order. Every statement here therefore pins the
sum orders explicitly through the reducible aliases
sumLexPreorder/sumLexLE/sumLexSubtypeLinearOrder/… below,
which are definitionally the projections of sumLexLinearOrder.
Pinned instances for the lexicographic sum order #
The lexicographic preorder on a plain sum, as an explicit term
(never registered as an instance): pin it with @ in statements.
Equations
- RS.sumLexPreorder α β = (RS.sumLexLinearOrder α β).toPreorder
Instances For
The lexicographic ≤ on a plain sum, as an explicit term.
Equations
- RS.sumLexLE α β = (RS.sumLexPreorder α β).toLE
Instances For
The linear order induced on a subtype of the lexicographically ordered sum.
Equations
Instances For
The preorder induced on a subtype of the lexicographically ordered sum.
Equations
- RS.sumLexSubtypePreorder α β p = (RS.sumLexSubtypeLinearOrder α β p).toPreorder
Instances For
The ≤ induced on a subtype of the lexicographically ordered
sum.
Equations
- RS.sumLexSubtypeLE α β p = (RS.sumLexSubtypePreorder α β p).toLE
Instances For
Strictly monotone equivalences of linear orders #
The inverse of a strictly monotone equivalence between linear orders is strictly monotone.
A strictly monotone equivalence between linear orders, as an order isomorphism (keeping the underlying equivalence on the nose).
Equations
- RS.orderIsoOfStrictMonoEquiv e h = e.toOrderIso ⋯ ⋯
Instances For
The order isomorphism built from a strictly monotone equivalence acts as that equivalence.
And carries it as its underlying equivalence.
finSumFinEquiv is monotone for the lexicographic order #
finSumFinEquiv is strictly monotone for the lexicographic sum
order: it lays the left block below the right.
finSumFinEquiv as an order isomorphism for the lexicographic
order on Fin m ⊕ Fin n.
Equations
Instances For
The order isomorphism acts as finSumFinEquiv.
And carries it as its underlying equivalence.
The removal equivalences are strictly monotone #
Reinstating a removed point is strictly monotone: succAbove
shifts indices up without reordering them.
Hence removing a point is too.
Removing label t on the right is strictly monotone.
The interface step is an order isomorphism #
The step re-indexing is strictly monotone for the lexicographic order: left labels stay below right ones and each block's removal preserves order. This is what lets the gluing chain carry corrected values, the through-factor being orientation-antisymmetric.
The interface-step re-indexing (interfaceStepEquiv) as an
order isomorphism for the lexicographic orders.
Equations
- RS.interfaceStepOrderIso s t u = RS.orderIsoOfStrictMonoEquiv (RS.interfaceStepEquiv s t u) ⋯
Instances For
And carries it as its underlying equivalence.