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.Ring.Canonical

18 declarations. Mathlib docs · Source

instance CanonicallyOrderedAdd.toZeroLEOneClass E0 #

∀ {R : Type u} [inst : AddZeroClass R] [inst_1 : One R] [inst_2 : LE R] [CanonicallyOrderedAdd R], ZeroLEOneClass R

theorem Odd.pos E1 #

∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [Nontrivial R] {a : R},
  Odd a → 0 < a

instance CanonicallyOrderedAdd.toMulLeftMono E0 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : LE R] [CanonicallyOrderedAdd R], MulLeftMono R

instance CanonicallyOrderedAdd.toMulRightMono E0 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : LE R] [CanonicallyOrderedAdd R], MulRightMono R

theorem CanonicallyOrderedAdd.toIsOrderedMonoid E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R], IsOrderedMonoid R

theorem CanonicallyOrderedAdd.toIsOrderedRing E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R], IsOrderedRing R

theorem CanonicallyOrderedAdd.mul_pos E0 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [NoZeroDivisors R] {a b : R},
  0 < a * b ↔ 0 < a ∧ 0 < b

theorem CanonicallyOrderedAdd.pow_pos E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [IsReduced R] {a : R},
  0 < a → ∀ (n : ℕ), 0 < a ^ n

theorem CanonicallyOrderedAdd.mul_lt_mul_of_lt_of_lt E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [PosMulStrictMono R]
  {a b c d : R}, a < b → c < d → a * c < b * d

theorem AddLECancellable.mul_tsub E1 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] {a b c : R}, AddLECancellable (a * c) → a * (b - c) = a * b - a * c

theorem AddLECancellable.tsub_mul E1 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] {a b c : R}, AddLECancellable (b * c) → (a - b) * c = a * c - b * c

theorem mul_tsub E1 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] [AddLeftReflectLE R] (a b c : R), a * (b - c) = a * b - a * c

theorem tsub_mul E1 #

∀ {R : Type u} [inst : NonUnitalNonAssocSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] [AddLeftReflectLE R] (a b c : R), (a - b) * c = a * c - b * c

theorem mul_tsub_one E1 #

∀ {R : Type u} [inst : NonAssocSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] [AddLeftReflectLE R] (a b : R), a * (b - 1) = a * b - a

theorem tsub_one_mul E1 #

∀ {R : Type u} [inst : NonAssocSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] [AddLeftReflectLE R] (a b : R), (a - 1) * b = a * b - b

theorem mul_self_tsub_mul_self E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] [AddLeftReflectLE R] (a b : R), a * a - b * b = (a + b) * (a - b)

The tsub version of mul_self_sub_mul_self. Notably, this holds for Nat and NNReal.

theorem sq_tsub_sq E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] [AddLeftReflectLE R] (a b : R), a ^ 2 - b ^ 2 = (a + b) * (a - b)

The tsub version of sq_sub_sq. Notably, this holds for Nat and NNReal.

theorem mul_self_tsub_one E1 #

∀ {R : Type u} [inst : CommSemiring R] [inst_1 : PartialOrder R] [CanonicallyOrderedAdd R] [inst_3 : Sub R]
  [OrderedSub R] [Std.Total fun x1 x2 ↦ x1 ≤ x2] [AddLeftReflectLE R] (a : R), a * a - 1 = (a + 1) * (a - 1)