Semifield structure on the type of nonnegative elements #
This file defines instances and prove some properties about the nonnegative elements
{x : α // 0 ≤ x}
of an arbitrary type α
.
This is used to derive algebraic structures on ℝ≥0
and ℚ≥0
automatically.
Main declarations #
{x : α // 0 ≤ x}
is aCanonicallyLinearOrderedSemifield
ifα
is aLinearOrderedField
.
@[simp]
@[simp]
@[simp]
theorem
Nonneg.coe_div
{α : Type u_1}
[LinearOrderedSemifield α]
(a : { x // 0 ≤ x })
(b : { x // 0 ≤ x })
:
@[simp]
instance
Nonneg.linearOrderedSemifield
{α : Type u_1}
[LinearOrderedSemifield α]
:
LinearOrderedSemifield { x // 0 ≤ x }
Equations
- One or more equations did not get rendered due to their size.
instance
Nonneg.canonicallyLinearOrderedSemifield
{α : Type u_1}
[LinearOrderedField α]
:
CanonicallyLinearOrderedSemifield { x // 0 ≤ x }
Equations
- One or more equations did not get rendered due to their size.
instance
Nonneg.linearOrderedCommGroupWithZero
{α : Type u_1}
[LinearOrderedField α]
:
LinearOrderedCommGroupWithZero { x // 0 ≤ x }
Equations
- Nonneg.linearOrderedCommGroupWithZero = inferInstance