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_diff_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 forward direction of minimal_toDual.
Alias of the reverse direction of minimal_toDual.
Alias of the reverse direction of maximal_toDual.
Alias of the forward direction of maximal_toDual.
Alias of the forward direction of not_minimal_iff_exists_lt.
Alias of the forward direction of not_maximal_iff_exists_gt.
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.
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.