Minimality and Maximality #
This file proves basic facts about minimality and maximality
of an element with respect to a predicate P on an ordered type α.
Implementation Details #
This file underwent a refactor from a version where minimality and maximality were defined using
sets rather than predicates, and with an unbundled order relation rather than a LE instance.
A side effect is that it has become less straightforward to state that something is minimal
with respect to a relation that is not defeq to the default LE.
One possible way would be with a type synonym,
and another would be with an ad hoc LE instance and @ notation.
This was not an issue in practice anywhere in mathlib at the time of the refactor,
but it may be worth re-examining this to make it easier in the future; see the TODO below.
TODO #
In the linearly ordered case, versions of lemmas like
minimal_mem_imagewill hold withMonotoneOn/AntitoneOnassumptions rather than the strongerx ≤ y ↔ f x ≤ f yassumptions.Set.maximal_iff_forall_insertandSet.minimal_iff_forall_sdiff_singletonwill generalize to lemmas about covering in the case of anIsStronglyAtomic/IsStronglyCoatomicorder.Finsetversions of the lemmas about sets.API to allow for easily expressing min/maximality with respect to an arbitrary non-
LErelation.API for
MinimalFor/MaximalFor
Alias of the reverse direction of minimal_toDual.
Alias of the forward direction of minimal_toDual.
Alias of the reverse direction of maximal_toDual.
Alias of the forward direction of maximal_toDual.
If P y holds, and everything satisfying P is above y, then y is the unique minimal
element satisfying P.
If P y holds, and everything satisfying P is below y, then y is the unique maximal
element satisfying P.
Alias of Set.minimal_iff_forall_sdiff_singleton.
Alias of image_monotone_setOfPred_minimal.
Alias of image_monotone_setOfPred_maximal.
Alias of image_antitone_setOfPred_minimal.
Alias of image_antitone_setOfPred_maximal.
Alias of OrderEmbedding.maximal_apply_mem_iff.
Alias of OrderEmbedding.image_setOfPred_minimal.
Alias of OrderEmbedding.inter_preimage_setOfPred_minimal_eq_of_subset.
Alias of OrderEmbedding.inter_preimage_setOfPred_maximal_eq_of_subset.
Alias of OrderIso.image_setOfPred_minimal.
Alias of OrderIso.image_setOfPred_maximal.
Alias of OrderIso.mapSetOfPredMinimal.
If two sets are order isomorphic, their minimals are also order isomorphic.
Instances For
Alias of OrderIso.mapSetOfPredMaximal.
If two sets are order isomorphic, their maximals are also order isomorphic.
Instances For
If two sets are antitonically order isomorphic, their minimals/maximals are too.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If two sets are antitonically order isomorphic, their maximals/minimals are too.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Alias of OrderIso.setOfPredMinimalIsoSetOfPredMaximal.
If two sets are antitonically order isomorphic, their minimals/maximals are too.
Instances For
Alias of OrderIso.setOfPredMaximalIsoSetOfPredMinimal.
If two sets are antitonically order isomorphic, their maximals/minimals are too.