Algebraic instances for unit intervals #
For suitably structured underlying type α
, we exhibit the structure of
the unit intervals (Set.Icc
, Set.Ioc
, Set.Ioc
, and Set.Ioo
) from 0
to 1
.
Note: Instances for the interval Ici 0
are dealt with in Algebra/Order/Nonneg.lean
.
Main definitions #
The strongest typeclass provided on each interval is:
TODO #
- algebraic instances for intervals -1 to 1
- algebraic instances for
Ici 1
- algebraic instances for
(Ioo (-1) 1)ᶜ
- provide
distribNeg
instances where applicable - prove versions of
mul_le_{left,right}
for other intervals - prove versions of the lemmas in
Topology/UnitInterval
withℝ
generalized to some arbitrary ordered semiring
Instances for ↥(Set.Icc 0 1)
#
Equations
- Set.Icc.zero = { zero := ⟨0, ⋯⟩ }
Equations
- Set.Icc.one = { one := ⟨1, ⋯⟩ }
@[simp]
@[simp]
@[simp]
@[simp]
like coe_nonneg
, but with the inequality in Icc (0:α) 1
.
like coe_le_one
, but with the inequality in Icc (0:α) 1
.
Equations
- Set.Icc.mul = { mul := fun (p q : ↑(Set.Icc 0 1)) => ⟨↑p * ↑q, ⋯⟩ }
Equations
- Set.Icc.pow = { pow := fun (p : ↑(Set.Icc 0 1)) (n : ℕ) => ⟨↑p ^ n, ⋯⟩ }
@[simp]
@[simp]
Equations
- One or more equations did not get rendered due to their size.
instance
Set.Icc.commMonoidWithZero
{α : Type u_2}
[OrderedCommSemiring α]
:
CommMonoidWithZero ↑(Icc 0 1)
Equations
- Set.Icc.commMonoidWithZero = { toMonoid := MonoidWithZero.toMonoid, mul_comm := ⋯, toZero := Set.Icc.zero, zero_mul := ⋯, mul_zero := ⋯ }
instance
Set.Icc.cancelMonoidWithZero
{α : Type u_2}
[OrderedRing α]
[NoZeroDivisors α]
:
CancelMonoidWithZero ↑(Icc 0 1)
Equations
- Set.Icc.cancelMonoidWithZero = { toMonoidWithZero := Set.Icc.monoidWithZero, toIsCancelMulZero := ⋯ }
instance
Set.Icc.cancelCommMonoidWithZero
{α : Type u_2}
[OrderedCommRing α]
[NoZeroDivisors α]
:
CancelCommMonoidWithZero ↑(Icc 0 1)
Equations
- Set.Icc.cancelCommMonoidWithZero = { toCommMonoidWithZero := Set.Icc.commMonoidWithZero, toIsLeftCancelMulZero := ⋯ }
Instances for ↥(Set.Ico 0 1)
#
Equations
- Set.Ico.zero = { zero := ⟨0, ⋯⟩ }
@[simp]
@[simp]
like coe_nonneg
, but with the inequality in Ico (0:α) 1
.
Equations
- Set.Ico.mul = { mul := fun (p q : ↑(Set.Ico 0 1)) => ⟨↑p * ↑q, ⋯⟩ }
@[simp]
Equations
- Set.Ico.semigroup = { toMul := Set.Ico.mul, mul_assoc := ⋯ }
Equations
- Set.Ico.commSemigroup = { toSemigroup := Set.Ico.semigroup, mul_comm := ⋯ }
Instances for ↥(Set.Ioc 0 1)
#
Equations
- Set.Ioc.one = { one := ⟨1, ⋯⟩ }
@[simp]
@[simp]
like coe_le_one
, but with the inequality in Ioc (0:α) 1
.
Equations
- Set.Ioc.mul = { mul := fun (p q : ↑(Set.Ioc 0 1)) => ⟨↑p * ↑q, ⋯⟩ }
Equations
- Set.Ioc.pow = { pow := fun (p : ↑(Set.Ioc 0 1)) (n : ℕ) => ⟨↑p ^ n, ⋯⟩ }
@[simp]
@[simp]
Equations
- Set.Ioc.semigroup = { toMul := Set.Ioc.mul, mul_assoc := ⋯ }
Equations
- One or more equations did not get rendered due to their size.
instance
Set.Ioc.commSemigroup
{α : Type u_2}
[StrictOrderedCommSemiring α]
:
CommSemigroup ↑(Ioc 0 1)
Equations
- Set.Ioc.commSemigroup = { toSemigroup := Set.Ioc.semigroup, mul_comm := ⋯ }
Equations
- Set.Ioc.commMonoid = { toMonoid := Set.Ioc.monoid, mul_comm := ⋯ }
instance
Set.Ioc.cancelMonoid
{α : Type u_2}
[StrictOrderedRing α]
[IsDomain α]
:
CancelMonoid ↑(Ioc 0 1)
Equations
- Set.Ioc.cancelMonoid = { toMonoid := Set.Ioc.monoid, mul_left_cancel := ⋯, mul_right_cancel := ⋯ }
instance
Set.Ioc.cancelCommMonoid
{α : Type u_2}
[StrictOrderedCommRing α]
[IsDomain α]
:
CancelCommMonoid ↑(Ioc 0 1)
Equations
- Set.Ioc.cancelCommMonoid = { toMonoid := LeftCancelMonoid.toMonoid, mul_comm := ⋯, mul_left_cancel := ⋯ }
Instances for ↥(Set.Ioo 0 1)
#
Equations
- Set.Ioo.mul = { mul := fun (p q : ↑(Set.Ioo 0 1)) => ⟨↑p * ↑q, ⋯⟩ }
@[simp]
Equations
- Set.Ioo.semigroup = { toMul := Set.Ioo.mul, mul_assoc := ⋯ }
instance
Set.Ioo.commSemigroup
{α : Type u_2}
[StrictOrderedCommSemiring α]
:
CommSemigroup ↑(Ioo 0 1)
Equations
- Set.Ioo.commSemigroup = { toSemigroup := Set.Ioo.semigroup, mul_comm := ⋯ }