MonovaryOn on singleton, union, insert, and image #
[UPSTREAM] mathlib's MonovaryOn API (Mathlib/Order/Monotone/Monovary.lean)
has empty / subset / comp_right / comp_monotone_left, but lacks the
structural set-building lemmas that Set.Pairwise enjoys
(Set.pairwise_singleton / pairwise_union / pairwise_insert). This file fills
the gap, modelled on the Set.Pairwise family lemma-for-lemma, plus the image
companion of MonovaryOn.comp_right (which is the preimage form). Each pairs with
its AntivaryOn twin, as every lemma in the mathlib file does.
Upstream home: section Preorder of Mathlib/Order/Monotone/Monovary.lean,
beside MonovaryOn.empty and MonovaryOn.comp_right.
Main results #
monovaryOn_singleton/monovaryOn_union/monovaryOn_insert— theSet.pairwise_*analogues (andantivaryOn_*twins).monovaryOn_image—MonovaryOn f g (k '' u) ↔ MonovaryOn (f ∘ k) (g ∘ k) u, the image companion ofMonovaryOn.comp_right(andantivaryOn_imagetwin).
Monovary #
MonovaryOn holds vacuously on a singleton: there is only one index.
MonovaryOn on a union: monovary on each part, plus neither part inverts the
order against the other. The Monovary analogue of Set.pairwise_union.
MonovaryOn on insert a s. The Monovary analogue of Set.pairwise_insert.
MonovaryOn transports across an image: f, g monovary on k '' u iff
f ∘ k, g ∘ k monovary on u. The image companion of MonovaryOn.comp_right
(the preimage form).
Antivary #
AntivaryOn holds vacuously on a singleton: there is only one index.
AntivaryOn on a union. The Antivary analogue of Set.pairwise_union.
AntivaryOn on insert a s. The Antivary analogue of Set.pairwise_insert.
AntivaryOn transports across an image. The image companion of
AntivaryOn.comp_right.