Documentation

Mathlib.Algebra.Order.Nonneg.Field

Semifield structure on the type of nonnegative elements #

This file defines instances and prove some properties about the nonnegative elements Nonneg α of an arbitrary type α.

This is used to derive algebraic structures on ℝ≥0 and ℚ≥0 automatically.

theorem nnqsmul_nonneg {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] {a : α} (q : ℚ≥0) (ha : 0 ≤ a) :
0 ≤ q • a

In an ordered field, the units of the nonnegative elements are the positive elements.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[instance_reducible]
    instance Nonneg.inv {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] :
    Inv (Nonneg α)
    Equations
    @[simp]
    theorem Nonneg.coe_inv {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] (a : Nonneg α) :
    ↑a⁻¹ = (↑a)⁻¹
    @[simp]
    theorem Nonneg.inv_mk {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] {x : α} (hx : 0 ≤ x) :
    @[instance_reducible]
    instance Nonneg.div {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] :
    Div (Nonneg α)
    Equations
    @[simp]
    theorem Nonneg.coe_div {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] (a b : Nonneg α) :
    ↑(a / b) = ↑a / ↑b
    @[simp]
    theorem Nonneg.mk_div_mk {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] {x y : α} (hx : 0 ≤ x) (hy : 0 ≤ y) :
    ⟨x, hx⟩ / ⟨y, hy⟩ = ⟨x / y, ⋯⟩
    @[instance_reducible]
    Equations
    @[simp]
    theorem Nonneg.coe_zpow {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] (a : Nonneg α) (n : ℤ) :
    ↑(a ^ n) = ↑a ^ n
    @[simp]
    theorem Nonneg.mk_zpow {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] {x : α} (hx : 0 ≤ x) (n : ℤ) :
    ⟨x, hx⟩ ^ n = ⟨x ^ n, ⋯⟩
    @[instance_reducible]
    Equations
    @[instance_reducible]
    Equations
    @[simp]
    theorem Nonneg.coe_nnratCast {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] (q : ℚ≥0) :
    ↑↑q = ↑q
    @[simp]
    theorem Nonneg.mk_nnratCast {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] (q : ℚ≥0) :
    ⟨↑q, ⋯⟩ = ↑q
    @[simp]
    theorem Nonneg.coe_nnqsmul {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] (q : ℚ≥0) (a : Nonneg α) :
    ↑(q • a) = q • ↑a
    @[simp]
    theorem Nonneg.mk_nnqsmul {α : Type u_1} [DivisionSemiring α] [LinearOrder α] [IsStrictOrderedRing α] (q : ℚ≥0) (a : α) (ha : 0 ≤ a) :
    ↑⟨q • a, ⋯⟩ = q • a
    @[instance_reducible]
    Equations
    @[instance_reducible]
    instance Nonneg.semifield {α : Type u_1} [Semifield α] [LinearOrder α] [IsStrictOrderedRing α] :
    Semifield { x : α // 0 ≤ x }
    Equations
    • One or more equations did not get rendered due to their size.
    @[instance_reducible]
    Equations
    • One or more equations did not get rendered due to their size.