The order-convex hull #
[UPSTREAM] candidate for Mathlib/Order/UpperLower/Closure.lean: the
order-convex hull of a set — the smallest OrdConnected superset — as a bundled
ClosureOperator (Set α). It is the order-theoretic twin of convexHull
(segment-convexity), built the same way, via ClosureOperator.ofCompletePred
over the intersection-closed predicate OrdConnected (Set.ordConnected_sInter).
mathlib already has the characterization
ordConnected_iff_upperClosure_inter_lowerClosure and Set.OrdConnected, but not
this bundled closure operator. On upstreaming, these declarations move into
Mathlib/Order/UpperLower/Closure.lean (next to that characterization) and this
file is deleted.
Main declarations #
ordConnectedHull— the order-convex hull as aClosureOperator (Set α).mem_ordConnectedHull—c ∈ ordConnectedHull s ↔ ∃ a b ∈ s, a ≤ c ≤ b.ordConnectedHull_eq_upperClosure_inter_lowerClosure— the bridge toupperClosure/lowerClosure.
The order-convex hull of s as a ClosureOperator: the smallest
OrdConnected set containing s. The order-theoretic twin of convexHull.
Equations
- ordConnectedHull = ClosureOperator.ofCompletePred Set.OrdConnected ⋯
Instances For
A set is contained in its order-convex hull.
The order-convex hull is the smallest OrdConnected superset.
The order-convex hull is OrdConnected.
A set equals its order-convex hull iff it is OrdConnected.
Alias of the reverse direction of ordConnectedHull_eq_self.
A set equals its order-convex hull iff it is OrdConnected.
The order-convex hull is the intersection of the upper and lower closures.
Membership in the order-convex hull: the explicit "between two members" form.