Intervals #
In any preorder α
, we define intervals
(which on each side can be either infinite, open, or closed)
using the following naming conventions:
i
: infiniteo
: openc
: closed
Each interval has the name I
+ letter for left side + letter for right side.
For instance, Ioc a b
denotes the interval (a, b]
.
We also define a typeclass Set.OrdConnected
saying that a set includes Set.Icc a b
whenever it contains both a
and b
.
We say that a set s : Set α
is OrdConnected
if for all x y ∈ s
it includes the
interval [[x, y]]
. If α
is a DenselyOrdered
ConditionallyCompleteLinearOrder
with
the OrderTopology
, then this condition is equivalent to IsPreconnected s
. If α
is a
LinearOrderedField
, then this condition is also equivalent to Convex α s
.
s : Set α
isOrdConnected
if for allx y ∈ s
it includes the interval[[x, y]]
.
Instances
- Set.OrdConnected.inter'
- Set.dual_ordConnected
- Set.ordConnected_Icc
- Set.ordConnected_Ici
- Set.ordConnected_Ico
- Set.ordConnected_Iic
- Set.ordConnected_Iio
- Set.ordConnected_Ioc
- Set.ordConnected_Ioi
- Set.ordConnected_Ioo
- Set.ordConnected_empty
- Set.ordConnected_iInter'
- Set.ordConnected_image
- Set.ordConnected_pi'
- Set.ordConnected_preimage
- Set.ordConnected_range
- Set.ordConnected_singleton
- Set.ordConnected_uIcc
- Set.ordConnected_uIoc
- Set.ordConnected_univ