Subtypes of conditionally complete linear orders #
In this file we give conditions on a subset of a conditionally complete linear order, to ensure that the subtype is itself conditionally complete.
We check that an ord_connected
set satisfies these conditions.
TODO #
Add appropriate instances for all set.Ixx
. This requires a refactor that will allow different
default values for Sup
and Inf
.
has_Sup
structure on a nonempty subset s
of an object with has_Sup
. This definition is
non-canonical (it uses default s
); it should be used only as here, as an auxiliary instance in the
construction of the conditionally_complete_linear_order
structure.
has_Inf
structure on a nonempty subset s
of an object with has_Inf
. This definition is
non-canonical (it uses default s
); it should be used only as here, as an auxiliary instance in the
construction of the conditionally_complete_linear_order
structure.
For a nonempty subset of a conditionally complete linear order to be a conditionally complete
linear order, it suffices that it contain the Sup
of all its nonempty bounded-above subsets, and
the Inf
of all its nonempty bounded-below subsets.
See note [reducible non-instances].
Equations
- subset_conditionally_complete_linear_order s h_Sup h_Inf = {sup := lattice.sup (distrib_lattice.to_lattice ↥s), le := lattice.le (distrib_lattice.to_lattice ↥s), lt := lattice.lt (distrib_lattice.to_lattice ↥s), le_refl := _, le_trans := _, lt_iff_le_not_le := _, le_antisymm := _, le_sup_left := _, le_sup_right := _, sup_le := _, inf := lattice.inf (distrib_lattice.to_lattice ↥s), inf_le_left := _, inf_le_right := _, le_inf := _, Sup := Sup (subset_has_Sup s), Inf := Inf (subset_has_Inf s), le_cSup := _, cSup_le := _, cInf_le := _, le_cInf := _, le_total := _, decidable_le := linear_order.decidable_le infer_instance, decidable_eq := linear_order.decidable_eq infer_instance, decidable_lt := linear_order.decidable_lt infer_instance, max_def := _, min_def := _}
The Sup
function on a nonempty ord_connected
set s
in a conditionally complete linear
order takes values within s
, for all nonempty bounded-above subsets of s
.
The Inf
function on a nonempty ord_connected
set s
in a conditionally complete linear
order takes values within s
, for all nonempty bounded-below subsets of s
.
A nonempty ord_connected
set in a conditionally complete linear order is naturally a
conditionally complete linear order.