The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V06. Rings, fields and ordered algebra

Mathlib.Algebra.Order.GroupWithZero.Canonical

147 declarations and 1 deprecated aliases. Mathlib docs · Source

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.

The following facts are true more generally in a (linearly) ordered commutative monoid.

Exponential and logarithm

def LinearOrderedCommMonoidWithZero.ctorIdx E1 #

{α : Type u_3} → LinearOrderedCommMonoidWithZero α → ℕ

def LinearOrderedCommGroupWithZero.ctorIdx E1 #

{α : Type u_3} → LinearOrderedCommGroupWithZero α → ℕ

class LinearOrderedCommMonoidWithZero E1 #

Type u_3 → Type u_3

A linearly ordered commutative monoid with a zero element.

instance LinearOrderedCommMonoidWithZero.toIsBotZeroClass E0 #

∀ {α : Type u_3} [self : LinearOrderedCommMonoidWithZero α], IsBotZeroClass α

instance LinearOrderedCommMonoidWithZero.toOrderBot E0 #

{α : Type u_3} → [self : LinearOrderedCommMonoidWithZero α] → OrderBot α

instance LinearOrderedCommMonoidWithZero.toLinearOrder E0 #

{α : Type u_3} → [self : LinearOrderedCommMonoidWithZero α] → LinearOrder α

instance LinearOrderedCommMonoidWithZero.toCommMonoidWithZero E0 #

{α : Type u_3} → [self : LinearOrderedCommMonoidWithZero α] → CommMonoidWithZero α

ctor LinearOrderedCommMonoidWithZero.mk E0 #

{α : Type u_3} →
  [toCommMonoidWithZero : CommMonoidWithZero α] →
    [toLinearOrder : LinearOrder α] →
      [toPosMulStrictMono : PosMulStrictMono α] →
        [toOrderBot : OrderBot α] → [toIsBotZeroClass : IsBotZeroClass α] → LinearOrderedCommMonoidWithZero α

instance LinearOrderedCommMonoidWithZero.toPosMulStrictMono E0 #

∀ {α : Type u_3} [self : LinearOrderedCommMonoidWithZero α], PosMulStrictMono α

class LinearOrderedCommGroupWithZero E1 #

Type u_3 → Type u_3

A linearly ordered commutative group with a zero element.

instance LinearOrderedCommGroupWithZero.toLinearOrderedCommMonoidWithZero E0 #

{α : Type u_3} → [self : LinearOrderedCommGroupWithZero α] → LinearOrderedCommMonoidWithZero α

theorem LinearOrderedCommGroupWithZero.toNontrivial E1 #

∀ {α : Type u_3} [self : LinearOrderedCommGroupWithZero α], Nontrivial α

ctor LinearOrderedCommGroupWithZero.mk E0 #

{α : Type u_3} →
  [toLinearOrderedCommMonoidWithZero : LinearOrderedCommMonoidWithZero α] →
    [toInv : Inv α] →
      [toDiv : Div α] →
        [toZPow : ZPow α] →
          autoParam (∀ (a b : α), a / b = a * b⁻¹) DivInvMonoid.div_eq_mul_inv._autoParam →
            autoParam (∀ (a : α), a ^ 0 = 1) DivInvMonoid.zpow_zero'._autoParam →
              autoParam (∀ (n : ℕ) (a : α), a ^ ↑n.succ = a ^ ↑n * a) DivInvMonoid.zpow_succ'._autoParam →
                autoParam (∀ (n : ℕ) (a : α), a ^ Int.negSucc n = (a ^ ↑n.succ)⁻¹) DivInvMonoid.zpow_neg'._autoParam →
                  [toNontrivial : Nontrivial α] →
                    0⁻¹ = 0 → (∀ (a : α), a ≠ 0 → a * a⁻¹ = 1) → LinearOrderedCommGroupWithZero α

instance LinearOrderedCommGroupWithZero.toCommGroupWithZero E0 #

{α : Type u_3} → [self : LinearOrderedCommGroupWithZero α] → CommGroupWithZero α

abbrev LinearOrderedCommGroupWithZero.toInv E1 #

{α : Type u_3} → [self : LinearOrderedCommGroupWithZero α] → Inv α

abbrev LinearOrderedCommGroupWithZero.toDiv E1 #

{α : Type u_3} → [self : LinearOrderedCommGroupWithZero α] → Div α

abbrev LinearOrderedCommGroupWithZero.toZPow E1 #

{α : Type u_3} → [self : LinearOrderedCommGroupWithZero α] → ZPow α

theorem LinearOrderedCommGroupWithZero.mul_inv_cancel E1 #

∀ {α : Type u_3} [self : LinearOrderedCommGroupWithZero α] (a : α), a ≠ 0 → a * a⁻¹ = 1

Every nonzero element of a group with zero is invertible.

theorem LinearOrderedCommGroupWithZero.zpow_zero' E1 #

∀ {α : Type u_3} [self : LinearOrderedCommGroupWithZero α] (a : α), a ^ 0 = 1

a ^ 0 = 1

theorem LinearOrderedCommGroupWithZero.inv_zero E1 #

∀ {α : Type u_3} [self : LinearOrderedCommGroupWithZero α], 0⁻¹ = 0

The inverse of 0 in a group with zero is 0.

theorem LinearOrderedCommGroupWithZero.zpow_succ' E1 #

∀ {α : Type u_3} [self : LinearOrderedCommGroupWithZero α] (n : ℕ) (a : α), a ^ ↑n.succ = a ^ ↑n * a

a ^ (n + 1) = a ^ n * a

theorem LinearOrderedCommGroupWithZero.div_eq_mul_inv E1 #

∀ {α : Type u_3} [self : LinearOrderedCommGroupWithZero α] (a b : α), a / b = a * b⁻¹

a / b := a * b⁻¹

theorem LinearOrderedCommGroupWithZero.zpow_neg' E1 #

∀ {α : Type u_3} [self : LinearOrderedCommGroupWithZero α] (n : ℕ) (a : α), a ^ Int.negSucc n = (a ^ ↑n.succ)⁻¹

a ^ -(n + 1) = (a ^ (n + 1))⁻¹

instance LinearOrderedCommMonoidWithZero.toMulPosStrictMono E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommMonoidWithZero α], MulPosStrictMono α

instance LinearOrderedCommMonoidWithZero.toIsOrderedMonoid E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommMonoidWithZero α], IsOrderedMonoid α

instance instIsCancelMulZero_1 E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommMonoidWithZero α], IsCancelMulZero α

abbrev Function.Injective.linearOrderedCommMonoidWithZero E1 #

{α : Type u_1} →
  [inst : LinearOrderedCommMonoidWithZero α] →
    {β : Type u_3} →
      [inst_1 : Zero β] →
        [inst_2 : Bot β] →
          [inst_3 : One β] →
            [inst_4 : Mul β] →
              [inst_5 : Pow β ℕ] →
                [inst_6 : LE β] →
                  [inst_7 : LT β] →
                    [inst_8 : Max β] →
                      [inst_9 : Min β] →
                        [inst_10 : Ord β] →
                          [DecidableEq β] →
                            [DecidableLE β] →
                              [DecidableLT β] →
                                (f : β → α) →
                                  Function.Injective f →
                                    f 0 = 0 →
                                      f 1 = 1 →
                                        (∀ (x y : β), f (x * y) = f x * f y) →
                                          (∀ (x : β) (n : ℕ), f (x ^ n) = f x ^ n) →
                                            (∀ {x y : β}, f x ≤ f y ↔ x ≤ y) →
                                              (∀ {x y : β}, f x < f y ↔ x < y) →
                                                (∀ (x y : β), f (x ⊔ y) = max (f x) (f y)) →
                                                  (∀ (x y : β), f (x ⊓ y) = min (f x) (f y)) →
                                                    f ⊥ = ⊥ →
                                                      (∀ (x y : β), compare (f x) (f y) = compare x y) →
                                                        LinearOrderedCommMonoidWithZero β

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

instance LinearOrderedCommMonoidWithZero.toHasUniqueRoots E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommMonoidWithZero α], HasUniqueRoots α

instance instLinearOrderedAddCommMonoidWithTopAdditiveOrderDual E0 #

{α : Type u_1} → [LinearOrderedCommMonoidWithZero α] → LinearOrderedAddCommMonoidWithTop (Additive αᵒᵈ)

instance instLinearOrderedAddCommMonoidWithTopOrderDualAdditive E0 #

{α : Type u_1} → [LinearOrderedCommMonoidWithZero α] → LinearOrderedAddCommMonoidWithTop (Additive α)ᵒᵈ

theorem pow_pos_iff E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommMonoidWithZero α] {a : α} {n : ℕ}, n ≠ 0 → (0 < a ^ n ↔ 0 < a)

theorem Units.zero_lt E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α] (u : αˣ), 0 < ↑u

theorem mul_inv_lt_of_lt_mul₀ E1 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α] {a b c : α}, a < b * c → a * c⁻¹ < b

theorem inv_mul_lt_of_lt_mul₀ E1 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α] {a b c : α}, a < b * c → b⁻¹ * a < c

theorem lt_of_mul_lt_mul_of_le₀ E1 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α] {a b c d : α}, a * b < c * d → 0 < c → c ≤ a → b < d

instance instLinearOrderedAddCommGroupWithTopAdditiveOrderDual E0 #

{α : Type u_1} → [LinearOrderedCommGroupWithZero α] → LinearOrderedAddCommGroupWithTop (Additive αᵒᵈ)

instance instLinearOrderedAddCommGroupWithTopOrderDualAdditive E0 #

{α : Type u_1} → [LinearOrderedCommGroupWithZero α] → LinearOrderedAddCommGroupWithTop (Additive α)ᵒᵈ

theorem denselyOrdered_iff_denselyOrdered_units_and_nontrivial_units E1 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α], DenselyOrdered α ↔ Nontrivial αˣ ∧ DenselyOrdered αˣ

instance instNontrivialUnitsOfDenselyOrdered E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α] [DenselyOrdered α], Nontrivial αˣ

instance instDenselyOrderedUnits E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α] [DenselyOrdered α], DenselyOrdered αˣ

theorem denselyOrdered_units_iff E0 #

∀ {α : Type u_1} [inst : LinearOrderedCommGroupWithZero α] [Nontrivial αˣ], DenselyOrdered αˣ ↔ DenselyOrdered α

instance instLinearOrderedCommMonoidWithZeroMultiplicativeOrderDual E0 #

{α : Type u_1} → [LinearOrderedAddCommMonoidWithTop α] → LinearOrderedCommMonoidWithZero (Multiplicative αᵒᵈ)

theorem ofDual_toAdd_zero E0 #

∀ {α : Type u_1} [inst : LinearOrderedAddCommMonoidWithTop α], OrderDual.ofDual (Multiplicative.toAdd 0) = ⊤

instance instLinearOrderedCommGroupWithZeroMultiplicativeOrderDualOfLinearOrderedAddCommGroupWithTop E0 #

{α : Type u_1} → [LinearOrderedAddCommGroupWithTop α] → LinearOrderedCommGroupWithZero (Multiplicative αᵒᵈ)

instance WithZero.instBot E0 #

{α : Type u_1} → Bot (WithZero α)

theorem WithZero.zero_eq_bot E1 #

∀ {α : Type u_1}, 0 = ⊥

instance WithZero.le E0 #

{α : Type u_1} → [LE α] → LE (WithZero α)

theorem WithZero.le_def E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithZero α}, x ≤ y ↔ ∀ (a : α), x = ↑a → ∃ b, y = ↑b ∧ a ≤ b

theorem WithZero.coe_le_coe E0 #

∀ {α : Type u_1} [inst : LE α] {a b : α}, ↑a ≤ ↑b ↔ a ≤ b

theorem WithZero.not_coe_le_zero E1 #

∀ {α : Type u_1} [inst : LE α] (a : α), ¬↑a ≤ 0

instance WithZero.instOrderBot E0 #

{α : Type u_1} → [inst : LE α] → OrderBot (WithZero α)

instance WithZero.instBoundedOrder E0 #

{α : Type u_1} → [inst : LE α] → [OrderTop α] → BoundedOrder (WithZero α)

instance WithZero.instIsBotZeroClass E0 #

∀ {α : Type u_1} [inst : LE α], IsBotZeroClass (WithZero α)

theorem WithZero.nonpos_iff_eq_zero E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithZero α}, x ≤ 0 ↔ x = 0

There is a general version le_zero_iff, but this lemma does not require a PartialOrder.

theorem WithZero.coe_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithZero α} {a : α}, ↑a ≤ x ↔ ∃ b, x = ↑b ∧ a ≤ b

theorem WithZero.le_coe_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithZero α} {b : α}, x ≤ ↑b ↔ ∀ (a : α), x = ↑a → a ≤ b

theorem IsMax.withZero E1 #

∀ {α : Type u_1} [inst : LE α] {a : α}, IsMax a → IsMax ↑a

theorem WithZero.le_unzero_iff E0 #

∀ {α : Type u_1} [inst : LE α] {y : WithZero α} {a : α} (hy : y ≠ 0), a ≤ WithZero.unzero hy ↔ ↑a ≤ y

theorem WithZero.unbot_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithZero α} {b : α} (hx : x ≠ 0), WithZero.unzero hx ≤ b ↔ x ≤ ↑b

theorem WithZero.one_le_coe E0 #

∀ {α : Type u_1} [inst : LE α] {a : α} [inst_1 : One α], 1 ≤ ↑a ↔ 1 ≤ a

theorem WithZero.coe_le_one E0 #

∀ {α : Type u_1} [inst : LE α] {a : α} [inst_1 : One α], ↑a ≤ 1 ↔ a ≤ 1

theorem WithZero.unzero_le_unzero E0 #

∀ {α : Type u_1} [inst : LE α] {x y : WithZero α} (hx : x ≠ 0) (hy : y ≠ 0),
  WithZero.unzero hx ≤ WithZero.unzero hy ↔ x ≤ y

instance WithZero.instLT E0 #

{α : Type u_1} → [LT α] → LT (WithZero α)

The order on WithZero α, defined by ⊥ < ↑a and a < b → ↑a < ↑b.

theorem WithZero.lt_def E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithZero α}, x < y ↔ (x = 0 ∧ ∃ b, y = ↑b) ∨ ∃ a b, a < b ∧ x = ↑a ∧ y = ↑b

theorem WithZero.lt_iff_exists E1 #

∀ {α : Type u_1} [inst : LT α] {x y : WithZero α}, x < y ↔ ∃ b, y = ↑b ∧ ∀ (a : α), x = ↑a → a < b

theorem WithZero.coe_lt_coe E0 #

∀ {α : Type u_1} [inst : LT α] {a b : α}, ↑a < ↑b ↔ a < b

theorem WithZero.zero_lt_coe E0 #

∀ {α : Type u_1} [inst : LT α] (a : α), 0 < ↑a

theorem WithZero.not_lt_zero E0 #

∀ {α : Type u_1} [inst : LT α] (a : WithZero α), ¬a < 0

theorem WithZero.lt_iff_exists_coe E0 #

∀ {α : Type u_1} [inst : LT α] {x y : WithZero α}, x < y ↔ ∃ b, y = ↑b ∧ x < ↑b

theorem WithZero.lt_coe_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithZero α} {b : α}, x < ↑b ↔ ∀ (a : α), x = ↑a → a < b

theorem WithZero.pos_iff_ne_zero E1 #

∀ {α : Type u_1} [inst : LT α] {x : WithZero α}, 0 < x ↔ x ≠ 0

A version of pos_iff_ne_zero for WithZero that only requires LT α, not PartialOrder α.

theorem WithZero.lt_unzero_iff E0 #

∀ {α : Type u_1} [inst : LT α] {y : WithZero α} {a : α} (hy : y ≠ 0), a < WithZero.unzero hy ↔ ↑a < y

theorem WithZero.unzero_lt_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithZero α} {b : α} (hx : x ≠ 0), WithZero.unzero hx < b ↔ x < ↑b

theorem WithZero.one_lt_coe E0 #

∀ {α : Type u_1} [inst : LT α] {a : α} [inst_1 : One α], 1 < ↑a ↔ 1 < a

theorem WithZero.coe_lt_one E0 #

∀ {α : Type u_1} [inst : LT α] {a : α} [inst_1 : One α], ↑a < 1 ↔ a < 1

instance WithZero.instPreorder E0 #

{α : Type u_1} → [Preorder α] → Preorder (WithZero α)

instance WithZero.instMulLeftMono E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : Mul α] [MulLeftMono α], MulLeftMono (WithZero α)

theorem WithZero.addLeftMono E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : AddZeroClass α] [AddLeftMono α],
  (∀ (a : α), 0 ≤ a) → AddLeftMono (WithZero α)

instance WithZero.instExistsAddOfLE E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : Add α] [ExistsAddOfLE α], ExistsAddOfLE (WithZero α)

theorem WithZero.map'_mono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : MulOneClass α]
  [inst_3 : MulOneClass β] {f : α →* β}, Monotone ⇑f → Monotone ⇑(WithZero.map' f)

theorem WithZero.map'_strictMono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : MulOneClass α]
  [inst_3 : MulOneClass β] {f : α →* β}, StrictMono ⇑f → StrictMono ⇑(WithZero.map' f)

theorem WithZero.exists_ne_zero_and_lt E1 #

∀ {α : Type u_1} [inst : Preorder α] {x : WithZero α} [NoMinOrder α], x ≠ 0 → ∃ y, y ≠ 0 ∧ y < x

theorem WithZero.toAdd_unzero_lt_of_lt_ofAdd E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : WithZero (Multiplicative α)} {b : α} (ha : a ≠ 0),
  a < ↑(Multiplicative.ofAdd b) → Multiplicative.toAdd (WithZero.unzero ha) < b

theorem WithZero.lt_ofAdd_of_toAdd_unzero_lt E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : WithZero (Multiplicative α)} {b : α} (ha : a ≠ 0),
  Multiplicative.toAdd (WithZero.unzero ha) < b → a < ↑(Multiplicative.ofAdd b)

theorem WithZero.lt_ofAdd_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : WithZero (Multiplicative α)} {b : α} (ha : a ≠ 0),
  a < ↑(Multiplicative.ofAdd b) ↔ Multiplicative.toAdd (WithZero.unzero ha) < b

theorem WithZero.toAdd_unzero_le_of_lt_ofAdd E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : WithZero (Multiplicative α)} {b : α} (ha : a ≠ 0),
  a ≤ ↑(Multiplicative.ofAdd b) → Multiplicative.toAdd (WithZero.unzero ha) ≤ b

theorem WithZero.le_ofAdd_of_toAdd_unzero_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : WithZero (Multiplicative α)} {b : α} (ha : a ≠ 0),
  Multiplicative.toAdd (WithZero.unzero ha) ≤ b → a ≤ ↑(Multiplicative.ofAdd b)

theorem WithZero.le_ofAdd_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : WithZero (Multiplicative α)} {b : α} (ha : a ≠ 0),
  a ≤ ↑(Multiplicative.ofAdd b) ↔ Multiplicative.toAdd (WithZero.unzero ha) ≤ b

theorem WithZero.toAdd_unzero_eq_iff E0 #

∀ {α : Type u_3} {a : WithZero (Multiplicative α)} (h : a ≠ 0) (b : α),
  Multiplicative.toAdd (WithZero.unzero h) = b ↔ a = ↑(Multiplicative.ofAdd b)

instance WithZero.instPartialOrder E0 #

{α : Type u_1} → [PartialOrder α] → PartialOrder (WithZero α)

instance WithZero.instMulLeftReflectLT E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : Mul α] [MulLeftReflectLT α], MulLeftReflectLT (WithZero α)

instance WithZero.semilatticeSup E0 #

{α : Type u_1} → [SemilatticeSup α] → SemilatticeSup (WithZero α)

theorem WithZero.coe_sup E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] (a b : α), ↑(a ⊔ b) = ↑a ⊔ ↑b

instance WithZero.semilatticeInf E0 #

{α : Type u_1} → [SemilatticeInf α] → SemilatticeInf (WithZero α)

theorem WithZero.coe_inf E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] (a b : α), ↑(a ⊓ b) = ↑a ⊓ ↑b

instance WithZero.instLattice E0 #

{α : Type u_1} → [Lattice α] → Lattice (WithZero α)

instance WithZero.decidableEq E0 #

{α : Type u_1} → [DecidableEq α] → DecidableEq (WithZero α)

instance WithZero.decidableLE E0 #

{α : Type u_1} → [inst : Preorder α] → [DecidableLE α] → DecidableLE (WithZero α)

instance WithZero.decidableLT E0 #

{α : Type u_1} → [inst : Preorder α] → [DecidableLT α] → DecidableLT (WithZero α)

instance WithZero.total_le E0 #

∀ {α : Type u_1} [inst : Preorder α] [Std.Total fun x1 x2 ↦ x1 ≤ x2], Std.Total fun x1 x2 ↦ x1 ≤ x2

instance WithZero.instLinearOrder E0 #

{α : Type u_1} → [LinearOrder α] → LinearOrder (WithZero α)

theorem WithZero.le_max_iff E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, ↑a ≤ max ↑b ↑c ↔ a ≤ max b c

theorem WithZero.min_le_iff E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, min ↑a ↑b ≤ ↑c ↔ min a b ≤ c

theorem WithZero.exists_ne_zero_and_le_and_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x y : WithZero α}, x ≠ 0 → y ≠ 0 → ∃ z, z ≠ 0 ∧ z ≤ x ∧ z ≤ y

theorem WithZero.exists_ne_zero_and_lt_and_lt E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x y : WithZero α} [NoMinOrder α], x ≠ 0 → y ≠ 0 → ∃ z, z ≠ 0 ∧ z < x ∧ z < y

instance WithZero.isOrderedMonoid E0 #

∀ {α : Type u_1} [inst : CommMonoid α] [inst_1 : Preorder α] [IsOrderedMonoid α], IsOrderedMonoid (WithZero α)

theorem WithZero.isOrderedAddMonoid E1 #

∀ {α : Type u_1} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α],
  (∀ (a : α), 0 ≤ a) → IsOrderedAddMonoid (WithZero α)

If 0 is the least element in α, then WithZero α is an ordered AddMonoid.

instance WithZero.instCanonicallyOrderedAdd E0 #

∀ {α : Type u_1} [inst : AddZeroClass α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α],
  CanonicallyOrderedAdd (WithZero α)

Adding a new zero to a canonically ordered additive monoid produces another one.

instance WithZero.instLinearOrderedCommMonoidWithZero E0 #

{α : Type u_1} →
  [inst : CommMonoid α] →
    [inst_1 : LinearOrder α] → [IsOrderedCancelMonoid α] → LinearOrderedCommMonoidWithZero (WithZero α)

instance WithZero.instLinearOrderedCommGroupWithZero E0 #

{α : Type u_1} →
  [inst : CommGroup α] → [inst_1 : LinearOrder α] → [IsOrderedMonoid α] → LinearOrderedCommGroupWithZero (WithZero α)

instance WithZero.instLinearOrderedCommGroupWithZeroMultiplicativeInt E0 #

LinearOrderedCommGroupWithZero (WithZero (Multiplicative ℤ))

theorem WithZero.exp_le_exp E0 #

∀ {G : Type u_3} [inst : Preorder G] {a b : G}, WithZero.exp a ≤ WithZero.exp b ↔ a ≤ b

theorem WithZero.exp_lt_exp E0 #

∀ {G : Type u_3} [inst : Preorder G] {a b : G}, WithZero.exp a < WithZero.exp b ↔ a < b

theorem WithZero.exp_pos E0 #

∀ {G : Type u_3} [inst : Preorder G] {a : G}, 0 < WithZero.exp a

theorem WithZero.exp_le_one_iff E0 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddMonoid G], WithZero.exp a ≤ 1 ↔ a ≤ 0

theorem WithZero.exp_lt_one_iff E0 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddMonoid G], WithZero.exp a < 1 ↔ a < 0

theorem WithZero.one_le_exp_iff E0 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddMonoid G], 1 ≤ WithZero.exp a ↔ 0 ≤ a

theorem WithZero.one_lt_exp_iff E0 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddMonoid G], 1 < WithZero.exp a ↔ 0 < a

theorem WithZero.log_le_iff_le_exp E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  x ≠ 0 → (x.log ≤ a ↔ x ≤ WithZero.exp a)

theorem WithZero.log_lt_iff_lt_exp E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  x ≠ 0 → (x.log < a ↔ x < WithZero.exp a)

theorem WithZero.log_le_log E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] {x y : WithZero (Multiplicative G)},
  x ≠ 0 → y ≠ 0 → (x.log ≤ y.log ↔ x ≤ y)

theorem WithZero.log_lt_log E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] {x y : WithZero (Multiplicative G)},
  x ≠ 0 → y ≠ 0 → (x.log < y.log ↔ x < y)

theorem WithZero.le_log_iff_exp_le E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  x ≠ 0 → (a ≤ x.log ↔ WithZero.exp a ≤ x)

theorem WithZero.lt_log_iff_exp_lt E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  x ≠ 0 → (a < x.log ↔ WithZero.exp a < x)

theorem WithZero.le_exp_of_log_le E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  x.log ≤ a → x ≤ WithZero.exp a

theorem WithZero.lt_exp_of_log_lt E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  x.log < a → x < WithZero.exp a

theorem WithZero.le_log_of_exp_le E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  WithZero.exp a ≤ x → a ≤ x.log

theorem WithZero.lt_log_of_exp_lt E1 #

∀ {G : Type u_3} [inst : Preorder G] {a : G} [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)},
  WithZero.exp a < x → a < x.log

def WithZero.expOrderIso E1 #

{G : Type u_3} → [inst : Preorder G] → [inst_1 : AddGroup G] → G ≃o (WithZero (Multiplicative G))ˣ

The exponential map as an order isomorphism between G and Gᵐ⁰ˣ.

theorem WithZero.val_expOrderIso_apply E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] (a : G),
  ↑(WithZero.expOrderIso a) = ↑(Multiplicative.ofAdd a)

theorem WithZero.expOrderIso_symm_apply E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] (a : (WithZero (Multiplicative G))ˣ),
  (RelIso.symm WithZero.expOrderIso) a = Multiplicative.toAdd (WithZero.unzero ⋯)

theorem WithZero.val_inv_expOrderIso_apply E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] (a : G),
  ↑(WithZero.expOrderIso a)⁻¹ = (↑(Multiplicative.ofAdd a))⁻¹

def WithZero.logOrderIso E1 #

{G : Type u_3} → [inst : Preorder G] → [inst_1 : AddGroup G] → (WithZero (Multiplicative G))ˣ ≃o G

The logarithm as an order isomorphism between Gᵐ⁰ˣ and G.

theorem WithZero.logOrderIso_apply E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] (a : (WithZero (Multiplicative G))ˣ),
  WithZero.logOrderIso a = Multiplicative.toAdd (WithZero.unzero ⋯)

theorem WithZero.val_logOrderIso_symm_apply E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] (a : G),
  ↑((RelIso.symm WithZero.logOrderIso) a) = ↑(Multiplicative.ofAdd a)

theorem WithZero.val_inv_logOrderIso_symm_apply E0 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] (a : G),
  ↑((RelIso.symm WithZero.logOrderIso) a)⁻¹ = (↑(Multiplicative.ofAdd a))⁻¹

theorem WithZero.lt_mul_exp_iff_le E1 #

∀ {x y : WithZero (Multiplicative ℤ)}, y ≠ 0 → (x < y * WithZero.exp 1 ↔ x ≤ y)

theorem WithZero.exists_exp_neg_natCast_lt E1 #

∀ {x : WithZero (Multiplicative ℤ)}, x ≠ 0 → ∃ k, WithZero.exp (-↑k) < x

theorem WithZero.exists_exp_neg_natCast_lt_and_lt E1 #

∀ {x y : WithZero (Multiplicative ℤ)}, x ≠ 0 → y ≠ 0 → ∃ k, WithZero.exp (-↑k) < x ∧ WithZero.exp (-↑k) < y

theorem WithZero.le_exp_log E1 #

∀ {G : Type u_3} [inst : Preorder G] [inst_1 : AddGroup G] {x : WithZero (Multiplicative G)}, x ≤ WithZero.exp x.log

theorem WithZero.le_unzeroD_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithZero α} {a b : α}, x ≠ 0 → (b ≤ WithZero.unzeroD a x ↔ ↑b ≤ x)

theorem WithZero.unzeroD_le_iff E0 #

∀ {α : Type u_1} [inst : LE α] {x : WithZero α} {a b : α}, (x = 0 → a ≤ b) → (WithZero.unzeroD a x ≤ b ↔ x ≤ ↑b)

theorem WithZero.unzeroD_mono E1 #

∀ {α : Type u_1} [inst : LE α] {x y : WithZero α} {a : α}, x ≠ 0 → x ≤ y → WithZero.unzeroD a x ≤ WithZero.unzeroD a y

theorem WithZero.lt_unzeroD_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithZero α} {a b : α}, x ≠ 0 → (b < WithZero.unzeroD a x ↔ ↑b < x)

theorem WithZero.unzeroD_lt_iff E0 #

∀ {α : Type u_1} [inst : LT α] {x : WithZero α} {a b : α}, (x = 0 → a < b) → (WithZero.unzeroD a x < b ↔ x < ↑b)

theorem WithZero.le_coe_unzeroD E1 #

∀ {α : Type u_1} [inst : Preorder α] (x : WithZero α) (b : α), x ≤ ↑(WithZero.unzeroD b x)

theorem WithZero.le_unzeroD E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {y : WithZero α} {a b : α}, ↑b ≤ y → b ≤ WithZero.unzeroD a y

Deprecated aliases

NameNew nameSince
WithZero.zero_lezero_le2026-05-06