Documentation

Mathlib.Algebra.Order.WithZero

Linearly ordered commutative groups and monoids with a zero element adjoined #

This file sets up a special class of linearly ordered commutative monoids that show up as the target of so-called “valuations” in algebraic number theory.

Usually, in the informal literature, these objects are constructed by taking a linearly ordered commutative group Γ and formally adjoining a zero element: Γ ∪ {0}.

The disadvantage is that a type such as nnreal is not of that form, whereas it is a very common target for valuations. The solutions is to use a typeclass, and that is exactly what we do in this file.

Note that to avoid issues with import cycles, LinearOrderedCommMonoidWithZero is defined in another file. However, the lemmas about it are stated here.

class LinearOrderedCommGroupWithZero (α : Type u_1) extends , , , :
Type u_1
• The power operation: a ^ n = a * ··· * a; a ^ (-n) = a⁻¹ * ··· a⁻¹ (n times)

zpow : αα
• a ^ 0 = 1

zpow_zero' : autoParam (∀ (a : α), zpow 0 a = 1) _auto✝
• a ^ (n + 1) = a * a ^ n

zpow_succ' : autoParam (∀ (n : ) (a : α), zpow () a = a * zpow () a) _auto✝
• a ^ -(n + 1) = (a ^ (n + 1))⁻¹

zpow_neg' : autoParam (∀ (n : ) (a : α), zpow () a = (zpow (↑()) a)⁻¹) _auto✝
• toNontrivial :
• The inverse of 0 in a group with zero is 0.

inv_zero : 0⁻¹ = 0
• Every nonzero element of a group with zero is invertible.

mul_inv_cancel : ∀ (a : α), a 0a * a⁻¹ = 1

A linearly ordered commutative group with a zero element.

Instances
Equations
• One or more equations did not get rendered due to their size.
Equations
• One or more equations did not get rendered due to their size.
instance instLinearOrderedCommMonoidWithZeroWithZero {α : Type u_1} [inst : ] :
Equations
• One or more equations did not get rendered due to their size.
instance instLinearOrderedCommGroupWithZeroWithZero {α : Type u_1} [inst : ] :
Equations
• One or more equations did not get rendered due to their size.
def Function.Injective.linearOrderedCommMonoidWithZero {α : Type u_1} [inst : ] {β : Type u_2} [inst : Zero β] [inst : One β] [inst : Mul β] [inst : Pow β ] [inst : Sup β] [inst : Inf β] (f : βα) (hf : ) (zero : f 0 = 0) (one : f 1 = 1) (mul : ∀ (x y : β), f (x * y) = f x * f y) (npow : ∀ (x : β) (n : ), f (x ^ n) = f x ^ n) (hsup : ∀ (x y : β), f (x y) = max (f x) (f y)) (hinf : ∀ (x y : β), f (x y) = min (f x) (f y)) :

Pullback a LinearOrderedCommMonoidWithZero under an injective map. See note [reducible non-instances].

Equations
• One or more equations did not get rendered due to their size.
@[simp]
theorem zero_le' {α : Type u_1} {a : α} [inst : ] :
0 a
@[simp]
theorem not_lt_zero' {α : Type u_1} {a : α} [inst : ] :
¬a < 0
@[simp]
theorem le_zero_iff {α : Type u_1} {a : α} [inst : ] :
a 0 a = 0
theorem zero_lt_iff {α : Type u_1} {a : α} [inst : ] :
0 < a a 0
theorem ne_zero_of_lt {α : Type u_1} {a : α} {b : α} [inst : ] (h : b < a) :
a 0
Equations
• One or more equations did not get rendered due to their size.
theorem mul_le_one₀ {α : Type u_1} {a : α} {b : α} [inst : ] (ha : a 1) (hb : b 1) :
a * b 1

Alias of mul_le_one' for unification.

theorem one_le_mul₀ {α : Type u_1} {a : α} {b : α} [inst : ] (ha : 1 a) (hb : 1 b) :
1 a * b

Alias of one_le_mul' for unification.

theorem le_of_le_mul_right {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (h : c 0) (hab : a * c b * c) :
a b
theorem le_mul_inv_of_mul_le {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (h : c 0) (hab : a * c b) :
a b * c⁻¹
theorem mul_inv_le_of_le_mul {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (hab : a b * c) :
a * c⁻¹ b
theorem inv_le_one₀ {α : Type u_1} {a : α} [inst : ] (ha : a 0) :
a⁻¹ 1 1 a
theorem one_le_inv₀ {α : Type u_1} {a : α} [inst : ] (ha : a 0) :
1 a⁻¹ a 1
theorem le_mul_inv_iff₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (hc : c 0) :
a b * c⁻¹ a * c b
theorem mul_inv_le_iff₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (hc : c 0) :
a * c⁻¹ b a b * c
theorem div_le_div₀ {α : Type u_1} [inst : ] (a : α) (b : α) (c : α) (d : α) (hb : b 0) (hd : d 0) :
a * b⁻¹ c * d⁻¹ a * d c * b
@[simp]
theorem Units.zero_lt {α : Type u_1} [inst : ] (u : αˣ) :
0 < u
theorem mul_lt_mul_of_lt_of_le₀ {α : Type u_1} {a : α} {b : α} {c : α} {d : α} [inst : ] (hab : a b) (hb : b 0) (hcd : c < d) :
a * c < b * d
theorem mul_lt_mul₀ {α : Type u_1} {a : α} {b : α} {c : α} {d : α} [inst : ] (hab : a < b) (hcd : c < d) :
a * c < b * d
theorem mul_inv_lt_of_lt_mul₀ {α : Type u_1} {x : α} {y : α} {z : α} [inst : ] (h : x < y * z) :
x * z⁻¹ < y
theorem inv_mul_lt_of_lt_mul₀ {α : Type u_1} {x : α} {y : α} {z : α} [inst : ] (h : x < y * z) :
y⁻¹ * x < z
theorem mul_lt_right₀ {α : Type u_1} {a : α} {b : α} [inst : ] (c : α) (h : a < b) (hc : c 0) :
a * c < b * c
theorem inv_lt_inv₀ {α : Type u_1} {a : α} {b : α} [inst : ] (ha : a 0) (hb : b 0) :
a⁻¹ < b⁻¹ b < a
theorem inv_le_inv₀ {α : Type u_1} {a : α} {b : α} [inst : ] (ha : a 0) (hb : b 0) :
theorem lt_of_mul_lt_mul_of_le₀ {α : Type u_1} {a : α} {b : α} {c : α} {d : α} [inst : ] (h : a * b < c * d) (hc : 0 < c) (hh : c a) :
b < d
theorem mul_le_mul_right₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (hc : c 0) :
a * c b * c a b
theorem mul_le_mul_left₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (ha : a 0) :
a * b a * c b c
theorem div_le_div_right₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (hc : c 0) :
a / c b / c a b
theorem div_le_div_left₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (ha : a 0) (hb : b 0) (hc : c 0) :
a / b a / c c b
theorem le_div_iff₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (hc : c 0) :
a b / c a * c b
theorem div_le_iff₀ {α : Type u_1} {a : α} {b : α} {c : α} [inst : ] (hc : c 0) :
a / c b a b * c
@[simp]
theorem OrderIso.mulLeft₀'_apply {α : Type u_1} [inst : ] {a : α} (ha : a 0) (x : α) :
().toEmbedding x = a * x
@[simp]
theorem OrderIso.mulLeft₀'_toEquiv {α : Type u_1} [inst : ] {a : α} (ha : a 0) :
().toEquiv =
def OrderIso.mulLeft₀' {α : Type u_1} [inst : ] {a : α} (ha : a 0) :
α ≃o α

Equiv.mulLeft₀ as an OrderIso on a LinearOrderedCommGroupWithZero..

Note that OrderIso.mulLeft₀ refers to the LinearOrderedField version.

Equations
• One or more equations did not get rendered due to their size.
theorem OrderIso.mulLeft₀'_symm {α : Type u_1} [inst : ] {a : α} (ha : a 0) :
@[simp]
theorem OrderIso.mulRight₀'_apply {α : Type u_1} [inst : ] {a : α} (ha : a 0) (x : α) :
().toEmbedding x = x * a
@[simp]
theorem OrderIso.mulRight₀'_toEquiv {α : Type u_1} [inst : ] {a : α} (ha : a 0) :
().toEquiv =
def OrderIso.mulRight₀' {α : Type u_1} [inst : ] {a : α} (ha : a 0) :
α ≃o α

Equiv.mulRight₀ as an OrderIso on a LinearOrderedCommGroupWithZero..

Note that OrderIso.mulRight₀ refers to the LinearOrderedField version.

Equations
• One or more equations did not get rendered due to their size.
theorem OrderIso.mulRight₀'_symm {α : Type u_1} [inst : ] {a : α} (ha : a 0) :
Equations
• One or more equations did not get rendered due to their size.