Algebraic instances for unit intervals #
For suitably structured underlying type α, we exhibit the structure of
the unit intervals (Set.Icc, Set.Ico, Set.Ioc, and Set.Ioo) from 0 to 1.
Note: Instances for the interval Ici 0 are dealt with in
Mathlib/Algebra/Order/Nonneg/Basic.lean.
Main definitions #
The strongest typeclass provided on each interval is:
Set.Icc.instCommMonoidWithZero,Set.Icc.instIsCancelMulZeroSet.Ico.instCommSemigroup,Set.Ico.instSemigroupWithZero,Set.Ico.instIsCancelMulZeroSet.Ioc.instCancelCommMonoidSet.Ioo.instCommSemigroup,Set.Ioo.instIsCancelMul
TODO #
- algebraic instances for intervals -1 to 1
- algebraic instances for
Ici 1 - algebraic instances for
(Ioo (-1) 1)ᶜ - provide
distribNeginstances where applicable - prove versions of
mul_le_{left,right}for other intervals - prove versions of the lemmas in
Topology/UnitIntervalwithℝgeneralized to some arbitrary ordered semiring
Instances for ↥(Set.Icc 0 1) #
like coe_nonneg, but with the inequality in Icc (0:R) 1.
like coe_le_one, but with the inequality in Icc (0:R) 1.
The coercion from Set.Icc 0 1 as a MonoidWithZeroHom.
Instances For
Instances for ↥(Set.Ico 0 1) #
like coe_nonneg, but with the inequality in Ico (0:R) 1.
The coercion from Set.Ico 0 1 as a MulHom.
Instances For
Instances for ↥(Set.Ioc 0 1) #
like coe_le_one, but with the inequality in Ioc (0:R) 1.
The coercion from Set.Ioc 0 1 as a MonoidHom.
Instances For
Instances for ↥(Set.Ioo 0 1) #
The coercion from Set.Ioo 0 1 as a MulHom.
Instances For
Alias of Set.Ioo.one_sub_pos.
Alias of Set.Ioo.one_sub_lt_one.