Order intervals #
This file defines (nonempty) closed intervals in an order (see Set.Icc
). This is a prototype for
interval arithmetic.
Main declarations #
NonemptyInterval
: Nonempty intervals. Pairs where the second element is greater than the first.Interval
: Intervals. Either∅
or a nonempty interval.
- fst : α
- snd : α
- fst_le_snd : s.fst ≤ s.snd
The starting point of an interval is smaller than the endpoint.
The nonempty closed intervals in an order.
We define intervals by the pair of endpoints fst
, snd
. To convert intervals to the set of
elements between these endpoints, use the coercion NonemptyInterval α → Set α
.
Instances For
The injection that induces the order on intervals.
Instances For
toDualProd
as an order embedding.
Instances For
Turn an interval into an interval in the dual order.
Instances For
{a}
as an interval.
Instances For
Pushforward of nonempty intervals.
Instances For
Binary pushforward of nonempty intervals.
Instances For
Consider a nonempty interval [a, b]
as the set [a, b]
.
Instances For
{a}
as an interval.
Instances For
Consider an interval [a, b]
as the set [a, b]
.