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 / V04. Order and lattices

Mathlib.Algebra.Order.Monoid.Canonical.Defs

54 declarations. Mathlib docs · Source

class CanonicallyOrderedAdd E1 #

(α : Type u_1) → [Add α] → [LE α] → Prop

An ordered additive monoid is CanonicallyOrderedAdd if the ordering coincides with the subtractibility relation, which is to say, a ≤ b iff there exists c with b = a + c. This is satisfied by the natural numbers, for example, but not the integers or other nontrivial ordered groups.

We have a ≤ b + a and a ≤ a + b as separate fields. In the commutative case the second field is redundant, but in the noncommutative case (satisfied most relevantly by the ordinals), this extra field allows us to prove more things without the extra commutativity assumption.

ctor CanonicallyOrderedAdd.mk E0 #

∀ {α : Type u_1} [inst : Add α] [inst_1 : LE α] [toExistsAddOfLE : ExistsAddOfLE α],
  (∀ (a b : α), a ≤ b + a) → (∀ (a b : α), a ≤ a + b) → CanonicallyOrderedAdd α

instance CanonicallyOrderedAdd.toExistsAddOfLE E0 #

∀ {α : Type u_1} {inst : Add α} {inst_1 : LE α} [self : CanonicallyOrderedAdd α], ExistsAddOfLE α

theorem CanonicallyOrderedAdd.le_add_self E1 #

∀ {α : Type u_1} {inst : Add α} {inst_1 : LE α} [self : CanonicallyOrderedAdd α] (a b : α), a ≤ b + a

For any a and b, a ≤ a + b

theorem CanonicallyOrderedAdd.le_self_add E1 #

∀ {α : Type u_1} {inst : Add α} {inst_1 : LE α} [self : CanonicallyOrderedAdd α] (a b : α), a ≤ a + b

class CanonicallyOrderedMul E1 #

(α : Type u_1) → [Mul α] → [LE α] → Prop

An ordered monoid is CanonicallyOrderedMul if the ordering coincides with the divisibility relation, which is to say, a ≤ b iff there exists c with b = a * c. Examples seem rare; it seems more likely that the OrderDual of a naturally-occurring lattice satisfies this than the lattice itself (for example, dual of the lattice of ideals of a PID or Dedekind domain satisfy this; collections of all things ≤ 1 seem to be more natural that collections of all things ≥ 1).

instance CanonicallyOrderedMul.toExistsMulOfLE E0 #

∀ {α : Type u_1} {inst : Mul α} {inst_1 : LE α} [self : CanonicallyOrderedMul α], ExistsMulOfLE α

ctor CanonicallyOrderedMul.mk E0 #

∀ {α : Type u_1} [inst : Mul α] [inst_1 : LE α] [toExistsMulOfLE : ExistsMulOfLE α],
  (∀ (a b : α), a ≤ b * a) → (∀ (a b : α), a ≤ a * b) → CanonicallyOrderedMul α

theorem CanonicallyOrderedMul.le_mul_self E1 #

∀ {α : Type u_1} {inst : Mul α} {inst_1 : LE α} [self : CanonicallyOrderedMul α] (a b : α), a ≤ b * a

For any a and b, a ≤ a * b

theorem CanonicallyOrderedMul.le_self_mul E1 #

∀ {α : Type u_1} {inst : Mul α} {inst_1 : LE α} [self : CanonicallyOrderedMul α] (a b : α), a ≤ a * b

theorem le_mul_self E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : LE α] [CanonicallyOrderedMul α] {a b : α}, a ≤ b * a

theorem le_add_self E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : LE α] [CanonicallyOrderedAdd α] {a b : α}, a ≤ b + a

theorem le_self_mul E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : LE α] [CanonicallyOrderedMul α] {a b : α}, a ≤ a * b

theorem le_self_add E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : LE α] [CanonicallyOrderedAdd α] {a b : α}, a ≤ a + b

theorem self_le_add_left E0 #

∀ {α : Type u} [inst : Add α] [inst_1 : LE α] [CanonicallyOrderedAdd α] (a b : α), a ≤ b + a

theorem self_le_mul_left E0 #

∀ {α : Type u} [inst : Mul α] [inst_1 : LE α] [CanonicallyOrderedMul α] (a b : α), a ≤ b * a

theorem self_le_add_right E0 #

∀ {α : Type u} [inst : Add α] [inst_1 : LE α] [CanonicallyOrderedAdd α] (a b : α), a ≤ a + b

theorem self_le_mul_right E0 #

∀ {α : Type u} [inst : Mul α] [inst_1 : LE α] [CanonicallyOrderedMul α] (a b : α), a ≤ a * b

theorem le_iff_exists_add E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : LE α] [CanonicallyOrderedAdd α] {a b : α}, a ≤ b ↔ ∃ c, b = a + c

theorem le_iff_exists_mul E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : LE α] [CanonicallyOrderedMul α] {a b : α}, a ≤ b ↔ ∃ c, b = a * c

theorem le_of_mul_le_left E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : Preorder α] [CanonicallyOrderedMul α] {a b c : α}, a * b ≤ c → a ≤ c

theorem le_of_add_le_left E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α] {a b c : α}, a + b ≤ c → a ≤ c

theorem le_add_of_le_left E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α] {a b c : α}, a ≤ b → a ≤ b + c

theorem le_mul_of_le_left E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : Preorder α] [CanonicallyOrderedMul α] {a b c : α}, a ≤ b → a ≤ b * c

theorem le_of_add_le_right E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α] {a b c : α}, a + b ≤ c → b ≤ c

theorem le_of_mul_le_right E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : Preorder α] [CanonicallyOrderedMul α] {a b c : α}, a * b ≤ c → b ≤ c

theorem le_add_of_le_right E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α] {a b c : α}, a ≤ c → a ≤ b + c

theorem le_mul_of_le_right E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : Preorder α] [CanonicallyOrderedMul α] {a b c : α}, a ≤ c → a ≤ b * c

theorem le_mul_left E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : Preorder α] [CanonicallyOrderedMul α] {a b c : α}, a ≤ c → a ≤ b * c

Alias of le_mul_of_le_right.

theorem le_add_left E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α] {a b c : α}, a ≤ c → a ≤ b + c

Alias of le_add_of_le_right.

theorem le_mul_right E1 #

∀ {α : Type u} [inst : Mul α] [inst_1 : Preorder α] [CanonicallyOrderedMul α] {a b c : α}, a ≤ b → a ≤ b * c

Alias of le_mul_of_le_left.

theorem le_add_right E1 #

∀ {α : Type u} [inst : Add α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α] {a b c : α}, a ≤ b → a ≤ b + c

Alias of le_add_of_le_left.

theorem le_iff_exists_mul' E1 #

∀ {α : Type u} [inst : CommMagma α] [inst_1 : Preorder α] [CanonicallyOrderedMul α] {a b : α}, a ≤ b ↔ ∃ c, b = c * a

theorem le_iff_exists_add' E1 #

∀ {α : Type u} [inst : AddCommMagma α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α] {a b : α}, a ≤ b ↔ ∃ c, b = c + a

instance instIsBotOneClass E0 #

∀ {α : Type u} [inst : MulOneClass α] [inst_1 : LE α] [CanonicallyOrderedMul α], IsBotOneClass α

instance instIsBotZeroClass E0 #

∀ {α : Type u} [inst : AddZeroClass α] [inst_1 : LE α] [CanonicallyOrderedAdd α], IsBotZeroClass α

theorem exists_pos_add_of_lt E1 #

∀ {α : Type u} [inst : AddZeroClass α] [inst_1 : PartialOrder α] [CanonicallyOrderedAdd α] {a b : α},
  a < b → ∃ c, ∃ (_ : 0 < c), a + c = b

theorem exists_one_lt_mul_of_lt E1 #

∀ {α : Type u} [inst : MulOneClass α] [inst_1 : PartialOrder α] [CanonicallyOrderedMul α] {a b : α},
  a < b → ∃ c, ∃ (_ : 1 < c), a * c = b

theorem lt_iff_exists_add E1 #

∀ {α : Type u} [inst : AddZeroClass α] [inst_1 : PartialOrder α] [CanonicallyOrderedAdd α] {a b : α}
  [AddLeftStrictMono α], a < b ↔ ∃ c > 0, b = a + c

theorem lt_iff_exists_mul E1 #

∀ {α : Type u} [inst : MulOneClass α] [inst_1 : PartialOrder α] [CanonicallyOrderedMul α] {a b : α}
  [MulLeftStrictMono α], a < b ↔ ∃ c > 1, b = a * c

instance CanonicallyOrderedMul.toMulLeftMono E0 #

∀ {α : Type u} [inst : Semigroup α] [inst_1 : LE α] [CanonicallyOrderedMul α], MulLeftMono α

instance CanonicallyOrderedAdd.toAddLeftMono E0 #

∀ {α : Type u} [inst : AddSemigroup α] [inst_1 : LE α] [CanonicallyOrderedAdd α], AddLeftMono α

theorem CanonicallyOrderedMul.toIsOrderedMonoid E1 #

∀ {α : Type u} [inst : CommMonoid α] [inst_1 : Preorder α] [CanonicallyOrderedMul α], IsOrderedMonoid α

theorem CanonicallyOrderedAdd.toIsOrderedAddMonoid E1 #

∀ {α : Type u} [inst : AddCommMonoid α] [inst_1 : Preorder α] [CanonicallyOrderedAdd α], IsOrderedAddMonoid α

instance CanonicallyOrderedCommMonoid.toUniqueUnits E0 #

{α : Type u} → [inst : Monoid α] → [inst_1 : PartialOrder α] → [CanonicallyOrderedMul α] → Unique αˣ

instance CanonicallyOrderedCommMonoid.toUniqueAddUnits E0 #

{α : Type u} → [inst : AddMonoid α] → [inst_1 : PartialOrder α] → [CanonicallyOrderedAdd α] → Unique (AddUnits α)

theorem one_lt_mul_iff E0 #

∀ {α : Type u} [inst : CommMonoid α] [inst_1 : PartialOrder α] [CanonicallyOrderedMul α] {a b : α},
  1 < a * b ↔ 1 < a ∨ 1 < b

theorem add_pos_iff E0 #

∀ {α : Type u} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [CanonicallyOrderedAdd α] {a b : α},
  0 < a + b ↔ 0 < a ∨ 0 < b

theorem min_mul_distrib E1 #

∀ {α : Type u} [inst : Monoid α] [inst_1 : LinearOrder α] [CanonicallyOrderedMul α] (a b c : α),
  min a (b * c) = min a (min a b * min a c)

theorem min_add_distrib E1 #

∀ {α : Type u} [inst : AddMonoid α] [inst_1 : LinearOrder α] [CanonicallyOrderedAdd α] (a b c : α),
  min a (b + c) = min a (min a b + min a c)

theorem min_add_distrib' E1 #

∀ {α : Type u} [inst : AddMonoid α] [inst_1 : LinearOrder α] [CanonicallyOrderedAdd α] (a b c : α),
  min (a + b) c = min (min a c + min b c) c

theorem min_mul_distrib' E1 #

∀ {α : Type u} [inst : Monoid α] [inst_1 : LinearOrder α] [CanonicallyOrderedMul α] (a b c : α),
  min (a * b) c = min (min a c * min b c) c

theorem bot_eq_one' E0 #

∀ {α : Type u} [inst : Monoid α] [inst_1 : LinearOrder α] [CanonicallyOrderedMul α] [inst_3 : OrderBot α], ⊥ = 1

In a linearly ordered monoid, we are happy for bot_eq_one to be a @[simp] lemma.

theorem bot_eq_zero' E0 #

∀ {α : Type u} [inst : AddMonoid α] [inst_1 : LinearOrder α] [CanonicallyOrderedAdd α] [inst_3 : OrderBot α], ⊥ = 0

In a linearly ordered monoid, we are happy for bot_eq_zero to be a @[simp] lemma