The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Order.Ring.Unbundled.Basic
118 declarations. Mathlib docs · Source
Basic facts for ordered rings and semirings
This file develops the basics of ordered (semi)rings in an unbundled fashion for later use with
the bundled classes from Mathlib/Algebra/Order/Ring/Defs.lean.
Generality
Each section is labelled with a corresponding bundled ordered ring typeclass in mind. Mixins for relating the order structures and ring structures are added as needed.
TODO
The mixin assumptions can be relaxed in most cases.
Note that OrderDual does not satisfy any of the ordered ring typeclasses due to the
zero_le_one field.
theorem add_one_le_two_mul E1 #
∀ {R : Type u} [inst : LE R] [inst_1 : NonAssocSemiring R] [AddLeftMono R] {a : R}, 1 ≤ a → a + 1 ≤ 2 * a
theorem add_le_mul_two_add E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b : R} [ZeroLEOneClass R] [MulPosMono R] [AddLeftMono R],
2 ≤ a → 0 ≤ b → a + (2 + b) ≤ a * (2 + b)
theorem mul_le_mul_of_nonpos_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c : R} [ExistsAddOfLE R] [PosMulMono R] [AddRightMono R]
[AddRightReflectLE R], b ≤ a → c ≤ 0 → c * a ≤ c * b
theorem mul_le_mul_of_nonpos_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c : R} [ExistsAddOfLE R] [MulPosMono R] [AddRightMono R]
[AddRightReflectLE R], b ≤ a → c ≤ 0 → a * c ≤ b * c
theorem mul_nonneg_of_nonpos_of_nonpos E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b : R} [ExistsAddOfLE R] [MulPosMono R] [AddRightMono R]
[AddRightReflectLE R], a ≤ 0 → b ≤ 0 → 0 ≤ a * b
theorem mul_le_mul_of_nonneg_of_nonpos E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c d : R} [ExistsAddOfLE R] [MulPosMono R] [PosMulMono R]
[AddRightMono R] [AddRightReflectLE R], c ≤ a → b ≤ d → 0 ≤ c → b ≤ 0 → a * b ≤ c * d
theorem mul_le_mul_of_nonneg_of_nonpos' E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c d : R} [ExistsAddOfLE R] [PosMulMono R] [MulPosMono R]
[AddRightMono R] [AddRightReflectLE R], c ≤ a → b ≤ d → 0 ≤ a → d ≤ 0 → a * b ≤ c * d
theorem mul_le_mul_of_nonpos_of_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c d : R} [ExistsAddOfLE R] [MulPosMono R] [PosMulMono R]
[AddRightMono R] [AddRightReflectLE R], a ≤ c → d ≤ b → c ≤ 0 → 0 ≤ b → a * b ≤ c * d
theorem mul_le_mul_of_nonpos_of_nonneg' E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c d : R} [ExistsAddOfLE R] [PosMulMono R] [MulPosMono R]
[AddRightMono R] [AddRightReflectLE R], c ≤ a → b ≤ d → 0 ≤ a → d ≤ 0 → a * b ≤ c * d
theorem mul_le_mul_of_nonpos_of_nonneg'' E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c d : R} [ExistsAddOfLE R] [PosMulMono R] [MulPosMono R]
[AddRightMono R] [AddRightReflectLE R], a ≤ c → d ≤ b → a ≤ 0 → 0 ≤ d → a * b ≤ c * d
theorem mul_le_mul_of_nonpos_of_nonpos E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c d : R} [ExistsAddOfLE R] [MulPosMono R] [PosMulMono R]
[AddRightMono R] [AddRightReflectLE R], c ≤ a → d ≤ b → c ≤ 0 → b ≤ 0 → a * b ≤ c * d
theorem mul_le_mul_of_nonpos_of_nonpos' E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b c d : R} [ExistsAddOfLE R] [PosMulMono R] [MulPosMono R]
[AddRightMono R] [AddRightReflectLE R], c ≤ a → d ≤ b → a ≤ 0 → d ≤ 0 → a * b ≤ c * d
theorem le_mul_of_le_one_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b : R} [ExistsAddOfLE R] [MulPosMono R] [AddRightMono R]
[AddRightReflectLE R], b ≤ 0 → a ≤ 1 → b ≤ a * b
Variant of mul_le_of_le_one_left for b non-positive instead of non-negative.
theorem mul_le_of_one_le_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b : R} [ExistsAddOfLE R] [MulPosMono R] [AddRightMono R]
[AddRightReflectLE R], b ≤ 0 → 1 ≤ a → a * b ≤ b
Variant of le_mul_of_one_le_left for b non-positive instead of non-negative.
theorem le_mul_of_le_one_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b : R} [ExistsAddOfLE R] [PosMulMono R] [AddRightMono R]
[AddRightReflectLE R], a ≤ 0 → b ≤ 1 → a ≤ a * b
Variant of mul_le_of_le_one_right for a non-positive instead of non-negative.
theorem mul_le_of_one_le_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] {a b : R} [ExistsAddOfLE R] [PosMulMono R] [AddRightMono R]
[AddRightReflectLE R], a ≤ 0 → 1 ≤ b → a * b ≤ a
Variant of le_mul_of_one_le_right for a non-positive instead of non-negative.
theorem antitone_mul_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] [ExistsAddOfLE R] [PosMulMono R] [AddRightMono R]
[AddRightReflectLE R] {a : R}, a ≤ 0 → Antitone fun x ↦ a * x
theorem antitone_mul_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : Preorder R] [ExistsAddOfLE R] [MulPosMono R] [AddRightMono R]
[AddRightReflectLE R] {a : R}, a ≤ 0 → Antitone fun x ↦ x * a
theorem Monotone.const_mul_of_nonpos E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : Preorder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [PosMulMono R] [AddRightMono R] [AddRightReflectLE R], Monotone f → a ≤ 0 → Antitone fun x ↦ a * f x
theorem Monotone.mul_const_of_nonpos E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : Preorder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [MulPosMono R] [AddRightMono R] [AddRightReflectLE R], Monotone f → a ≤ 0 → Antitone fun x ↦ f x * a
theorem Antitone.const_mul_of_nonpos E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : Preorder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [PosMulMono R] [AddRightMono R] [AddRightReflectLE R], Antitone f → a ≤ 0 → Monotone fun x ↦ a * f x
theorem Antitone.mul_const_of_nonpos E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : Preorder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [MulPosMono R] [AddRightMono R] [AddRightReflectLE R], Antitone f → a ≤ 0 → Monotone fun x ↦ f x * a
theorem Antitone.mul_monotone E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : Preorder R] [inst_2 : Preorder α] {f g : α → R}
[ExistsAddOfLE R] [PosMulMono R] [MulPosMono R] [AddRightMono R] [AddRightReflectLE R],
Antitone f → Monotone g → (∀ (x : α), f x ≤ 0) → (∀ (x : α), 0 ≤ g x) → Antitone (f * g)
theorem Monotone.mul_antitone E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : Preorder R] [inst_2 : Preorder α] {f g : α → R}
[ExistsAddOfLE R] [PosMulMono R] [MulPosMono R] [AddRightMono R] [AddRightReflectLE R],
Monotone f → Antitone g → (∀ (x : α), 0 ≤ f x) → (∀ (x : α), g x ≤ 0) → Antitone (f * g)
theorem Antitone.mul E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : Preorder R] [inst_2 : Preorder α] {f g : α → R}
[ExistsAddOfLE R] [PosMulMono R] [MulPosMono R] [AddRightMono R] [AddRightReflectLE R],
Antitone f → Antitone g → (∀ (x : α), f x ≤ 0) → (∀ (x : α), g x ≤ 0) → Monotone (f * g)
theorem lt_two_mul_self E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a : R} [ZeroLEOneClass R] [MulPosStrictMono R] [NeZero 1]
[AddLeftStrictMono R], 0 < a → a < 2 * a
theorem mul_lt_mul_of_neg_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b c : R} [ExistsAddOfLE R] [PosMulStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R], b < a → c < 0 → c * a < c * b
theorem mul_lt_mul_of_neg_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b c : R} [ExistsAddOfLE R] [MulPosStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R], b < a → c < 0 → a * c < b * c
theorem mul_pos_of_neg_of_neg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R] {a b : R}, a < 0 → b < 0 → 0 < a * b
theorem lt_mul_of_lt_one_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b : R} [ExistsAddOfLE R] [MulPosStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R], b < 0 → a < 1 → b < a * b
Variant of mul_lt_of_lt_one_left for b negative instead of positive.
theorem mul_lt_of_one_lt_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b : R} [ExistsAddOfLE R] [MulPosStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R], b < 0 → 1 < a → a * b < b
Variant of lt_mul_of_one_lt_left for b negative instead of positive.
theorem lt_mul_of_lt_one_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b : R} [ExistsAddOfLE R] [PosMulStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R], a < 0 → b < 1 → a < a * b
Variant of mul_lt_of_lt_one_right for a negative instead of positive.
theorem mul_lt_of_one_lt_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b : R} [ExistsAddOfLE R] [PosMulStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R], a < 0 → 1 < b → a * b < a
Variant of lt_mul_of_lt_one_right for a negative instead of positive.
theorem strictAnti_mul_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] [ExistsAddOfLE R] [PosMulStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R] {a : R}, a < 0 → StrictAnti fun x ↦ a * x
theorem strictAnti_mul_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R] {a : R}, a < 0 → StrictAnti fun x ↦ x * a
theorem StrictMono.const_mul_of_neg E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : PartialOrder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [PosMulStrictMono R] [AddRightStrictMono R] [AddRightReflectLT R],
StrictMono f → a < 0 → StrictAnti fun x ↦ a * f x
theorem StrictMono.mul_const_of_neg E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : PartialOrder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [MulPosStrictMono R] [AddRightStrictMono R] [AddRightReflectLT R],
StrictMono f → a < 0 → StrictAnti fun x ↦ f x * a
theorem StrictAnti.const_mul_of_neg E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : PartialOrder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [PosMulStrictMono R] [AddRightStrictMono R] [AddRightReflectLT R],
StrictAnti f → a < 0 → StrictMono fun x ↦ a * f x
theorem StrictAnti.mul_const_of_neg E1 #
∀ {R : Type u} {α : Type u_1} [inst : Semiring R] [inst_1 : PartialOrder R] {a : R} [inst_2 : Preorder α] {f : α → R}
[ExistsAddOfLE R] [MulPosStrictMono R] [AddRightStrictMono R] [AddRightReflectLT R],
StrictAnti f → a < 0 → StrictMono fun x ↦ f x * a
theorem mul_add_mul_le_mul_add_mul E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b c d : R} [ExistsAddOfLE R] [MulPosMono R]
[AddLeftMono R] [AddLeftReflectLE R], a ≤ b → c ≤ d → a * d + b * c ≤ a * c + b * d
Binary rearrangement inequality.
theorem mul_add_mul_le_mul_add_mul' E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b c d : R} [ExistsAddOfLE R] [MulPosMono R]
[AddLeftMono R] [AddLeftReflectLE R], b ≤ a → d ≤ c → a * d + b * c ≤ a * c + b * d
Binary rearrangement inequality.
theorem mul_add_mul_lt_mul_add_mul E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b c d : R} [AddLeftReflectLT R] [ExistsAddOfLE R]
[MulPosStrictMono R] [AddLeftStrictMono R], a < b → c < d → a * d + b * c < a * c + b * d
Binary strict rearrangement inequality.
theorem mul_add_mul_lt_mul_add_mul' E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : PartialOrder R] {a b c d : R} [AddLeftReflectLT R] [ExistsAddOfLE R]
[MulPosStrictMono R] [AddLeftStrictMono R], b < a → d < c → a * d + b * c < a * c + b * d
Binary rearrangement inequality.
theorem nonneg_and_nonneg_or_nonpos_and_nonpos_of_mul_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R] [PosMulStrictMono R],
0 ≤ a * b → 0 ≤ a ∧ 0 ≤ b ∨ a ≤ 0 ∧ b ≤ 0
theorem nonneg_of_mul_nonneg_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R], 0 ≤ a * b → 0 < b → 0 ≤ a
theorem nonneg_of_mul_nonneg_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R], 0 ≤ a * b → 0 < a → 0 ≤ b
theorem nonpos_of_mul_nonpos_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R], a * b ≤ 0 → 0 < b → a ≤ 0
theorem nonpos_of_mul_nonpos_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R], a * b ≤ 0 → 0 < a → b ≤ 0
theorem mul_nonneg_iff_of_pos_left E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {b c : R} [PosMulStrictMono R], 0 < c → (0 ≤ c * b ↔ 0 ≤ b)
theorem mul_nonneg_iff_of_pos_right E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {b c : R} [MulPosStrictMono R], 0 < c → (0 ≤ b * c ↔ 0 ≤ b)
theorem add_le_mul_of_left_le_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ZeroLEOneClass R] [NeZero 1] [MulPosStrictMono R]
[AddLeftMono R], 2 ≤ a → a ≤ b → a + b ≤ a * b
theorem add_le_mul_of_right_le_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ZeroLEOneClass R] [NeZero 1] [AddLeftMono R]
[PosMulStrictMono R], 2 ≤ b → b ≤ a → a + b ≤ a * b
theorem add_le_mul E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ZeroLEOneClass R] [NeZero 1] [MulPosStrictMono R]
[PosMulStrictMono R] [AddLeftMono R], 2 ≤ a → 2 ≤ b → a + b ≤ a * b
theorem add_le_mul' E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ZeroLEOneClass R] [NeZero 1] [MulPosStrictMono R]
[PosMulStrictMono R] [AddLeftMono R], 2 ≤ a → 2 ≤ b → a + b ≤ b * a
theorem mul_nonneg_iff_right_nonneg_of_pos E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R], 0 < a → (0 ≤ a * b ↔ 0 ≤ b)
theorem mul_nonneg_iff_left_nonneg_of_pos E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R] [MulPosStrictMono R],
0 < b → (0 ≤ a * b ↔ 0 ≤ a)
theorem nonpos_of_mul_nonneg_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R], 0 ≤ a * b → b < 0 → a ≤ 0
theorem nonpos_of_mul_nonneg_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R], 0 ≤ a * b → a < 0 → b ≤ 0
theorem Units.inv_pos E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ZeroLEOneClass R] [NeZero 1] [PosMulStrictMono R] {u : Rˣ},
0 < ↑u⁻¹ ↔ 0 < ↑u
theorem Units.inv_neg E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ZeroLEOneClass R] [NeZero 1] [MulPosMono R] [PosMulMono R]
{u : Rˣ}, ↑u⁻¹ < 0 ↔ ↑u < 0
theorem cmp_mul_pos_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a : R} [PosMulStrictMono R],
0 < a → ∀ (b c : R), cmp (a * b) (a * c) = cmp b c
theorem cmp_mul_pos_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a : R} [MulPosStrictMono R],
0 < a → ∀ (b c : R), cmp (b * a) (c * a) = cmp b c
theorem mul_max_of_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a : R} [PosMulMono R] (b c : R),
0 ≤ a → a * max b c = max (a * b) (a * c)
theorem mul_min_of_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a : R} [PosMulMono R] (b c : R),
0 ≤ a → a * min b c = min (a * b) (a * c)
theorem max_mul_of_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {c : R} [MulPosMono R] (a b : R),
0 ≤ c → max a b * c = max (a * c) (b * c)
theorem min_mul_of_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {c : R} [MulPosMono R] (a b : R),
0 ≤ c → min a b * c = min (a * c) (b * c)
theorem le_of_mul_le_of_one_le E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ZeroLEOneClass R] [NeZero 1] [MulPosStrictMono R]
[PosMulMono R] {a b c : R}, a * c ≤ b → 0 ≤ b → 1 ≤ c → a ≤ b
theorem nonneg_le_nonneg_of_sq_le_sq E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [PosMulStrictMono R] [MulPosMono R] {a b : R},
0 ≤ b → a * a ≤ b * b → a ≤ b
theorem mul_self_le_mul_self_iff E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [PosMulStrictMono R] [MulPosMono R] {a b : R},
0 ≤ a → 0 ≤ b → (a ≤ b ↔ a * a ≤ b * b)
theorem mul_self_lt_mul_self_iff E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [PosMulStrictMono R] [MulPosMono R] {a b : R},
0 ≤ a → 0 ≤ b → (a < b ↔ a * a < b * b)
theorem mul_self_inj E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [PosMulStrictMono R] [MulPosMono R] {a b : R},
0 ≤ a → 0 ≤ b → (a * a = b * b ↔ a = b)
theorem sign_cases_of_C_mul_pow_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R],
(∀ (n : ℕ), 0 ≤ a * b ^ n) → a = 0 ∨ 0 < a ∧ 0 ≤ b
theorem mul_pos_iff E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ExistsAddOfLE R] [PosMulStrictMono R]
[MulPosStrictMono R] [AddLeftStrictMono R] [AddLeftReflectLT R], 0 < a * b ↔ 0 < a ∧ 0 < b ∨ a < 0 ∧ b < 0
theorem mul_nonneg_iff E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ExistsAddOfLE R] [MulPosStrictMono R]
[PosMulStrictMono R] [AddLeftReflectLE R] [AddLeftMono R], 0 ≤ a * b ↔ 0 ≤ a ∧ 0 ≤ b ∨ a ≤ 0 ∧ b ≤ 0
theorem mul_nonneg_of_three E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R] [PosMulStrictMono R]
[AddLeftMono R] [AddLeftReflectLE R] (a b c : R), 0 ≤ a * b ∨ 0 ≤ b * c ∨ 0 ≤ c * a
Out of three elements of a linearly ordered semiring, two must have the same sign.
theorem mul_nonneg_iff_pos_imp_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ExistsAddOfLE R] [PosMulStrictMono R]
[MulPosStrictMono R] [AddLeftMono R] [AddLeftReflectLE R], 0 ≤ a * b ↔ (0 < a → 0 ≤ b) ∧ (0 < b → 0 ≤ a)
theorem mul_le_mul_left_of_neg E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulStrictMono R] [AddRightMono R]
[AddRightReflectLE R] {a b c : R}, c < 0 → (c * a ≤ c * b ↔ b ≤ a)
theorem mul_le_mul_right_of_neg E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R] [AddRightMono R]
[AddRightReflectLE R] {a b c : R}, c < 0 → (a * c ≤ b * c ↔ b ≤ a)
theorem mul_lt_mul_left_of_neg E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R] {a b c : R}, c < 0 → (c * a < c * b ↔ b < a)
theorem mul_lt_mul_right_of_neg E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[AddRightStrictMono R] [AddRightReflectLT R] {a b c : R}, c < 0 → (a * c < b * c ↔ b < a)
theorem lt_of_mul_lt_mul_of_nonpos_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b c : R} [ExistsAddOfLE R] [PosMulMono R]
[AddRightMono R] [AddRightReflectLE R], c * a < c * b → c ≤ 0 → b < a
theorem lt_of_mul_lt_mul_of_nonpos_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b c : R} [ExistsAddOfLE R] [MulPosMono R]
[AddRightMono R] [AddRightReflectLE R], a * c < b * c → c ≤ 0 → b < a
theorem cmp_mul_neg_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulStrictMono R] [AddRightReflectLT R]
[AddRightStrictMono R] {a : R}, a < 0 → ∀ (b c : R), cmp (a * b) (a * c) = cmp c b
theorem cmp_mul_neg_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R] [AddRightReflectLT R]
[AddRightStrictMono R] {a : R}, a < 0 → ∀ (b c : R), cmp (b * a) (c * a) = cmp c b
theorem mul_self_pos E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulStrictMono R] [MulPosStrictMono R]
[AddLeftStrictMono R] [AddLeftReflectLT R] {a : R}, 0 < a * a ↔ a ≠ 0
theorem nonneg_of_mul_nonpos_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R] [AddRightMono R]
[AddRightReflectLE R] {a b : R}, a * b ≤ 0 → b < 0 → 0 ≤ a
theorem nonneg_of_mul_nonpos_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R] [AddRightMono R]
[AddRightReflectLE R] {a b : R}, a * b ≤ 0 → a < 0 → 0 ≤ b
theorem pos_of_mul_neg_left E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosMono R] [AddRightMono R]
[AddRightReflectLE R] {a b : R}, a * b < 0 → b ≤ 0 → 0 < a
theorem pos_of_mul_neg_right E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosMono R] [AddRightMono R]
[AddRightReflectLE R] {a b : R}, a * b < 0 → a ≤ 0 → 0 < b
theorem neg_iff_pos_of_mul_neg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ExistsAddOfLE R] [PosMulMono R] [MulPosMono R]
[AddRightMono R] [AddRightReflectLE R], a * b < 0 → (a < 0 ↔ 0 < b)
theorem pos_iff_neg_of_mul_neg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [ExistsAddOfLE R] [PosMulMono R] [MulPosMono R]
[AddRightMono R] [AddRightReflectLE R], a * b < 0 → (0 < a ↔ b < 0)
theorem sq_nonneg E2 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulMono R] [AddLeftMono R] (a : R),
0 ≤ a ^ 2
theorem sq_nonpos_iff E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulMono R] [AddLeftMono R]
[NoZeroDivisors R] (r : R), r ^ 2 ≤ 0 ↔ r = 0
theorem pow_two_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulMono R] [AddLeftMono R] (a : R),
0 ≤ a ^ 2
Alias of sq_nonneg.
theorem mul_self_nonneg E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulMono R] [AddLeftMono R] (a : R),
0 ≤ a * a
instance instZeroLEOneClassOfExistsAddOfLEOfPosMulMonoOfAddLeftMono E0 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [PosMulMono R] [AddLeftMono R],
ZeroLEOneClass R
theorem mul_self_add_mul_self_eq_zero E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [NoZeroDivisors R] [ExistsAddOfLE R]
[PosMulMono R] [AddLeftMono R], a * a + b * b = 0 ↔ a = 0 ∧ b = 0
The sum of two terms of the form x * x is zero iff both elements are zero.
theorem sq_add_sq_eq_zero E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b : R} [NoZeroDivisors R] [ExistsAddOfLE R]
[PosMulMono R] [AddLeftMono R], a ^ 2 + b ^ 2 = 0 ↔ a = 0 ∧ b = 0
The sum of two squares is zero iff both elements are zero
theorem pos_of_right_mul_lt_le E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b c : R} [ExistsAddOfLE R] [PosMulMono R]
[AddRightMono R] [AddRightReflectLE R], a * b < a * c → b ≤ c → 0 < a
theorem pos_of_left_mul_lt_le E1 #
∀ {R : Type u} [inst : Semiring R] [inst_1 : LinearOrder R] {a b c : R} [ExistsAddOfLE R] [MulPosMono R] [AddLeftMono R]
[AddRightReflectLE R], b * a < c * a → b ≤ c → 0 < a
theorem max_mul_mul_le_max_mul_max E1 #
∀ {R : Type u} [inst : CommSemiring R] [inst_1 : LinearOrder R] {a d : R} [PosMulMono R] [MulPosMono R] (b c : R),
0 ≤ a → 0 ≤ d → max (a * b) (d * c) ≤ max a c * max d b
theorem two_mul_le_add_sq E1 #
∀ {R : Type u} [inst : CommSemiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[AddLeftReflectLE R] [AddLeftMono R] (a b : R), 2 * a * b ≤ a ^ 2 + b ^ 2
Binary, squared, and division-free arithmetic mean-geometric mean inequality (aka AM-GM inequality) for linearly ordered commutative semirings.
theorem two_mul_le_add_pow_two E1 #
∀ {R : Type u} [inst : CommSemiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[AddLeftReflectLE R] [AddLeftMono R] (a b : R), 2 * a * b ≤ a ^ 2 + b ^ 2
Alias of two_mul_le_add_sq.
Binary, squared, and division-free arithmetic mean-geometric mean inequality (aka AM-GM inequality) for linearly ordered commutative semirings.
theorem four_mul_le_sq_add E1 #
∀ {R : Type u} [inst : CommSemiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[AddLeftReflectLE R] [AddLeftMono R] (a b : R), 4 * a * b ≤ (a + b) ^ 2
Binary, squared, and division-free arithmetic mean-geometric mean inequality (aka AM-GM inequality) for linearly ordered commutative semirings.
theorem four_mul_le_pow_two_add E1 #
∀ {R : Type u} [inst : CommSemiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[AddLeftReflectLE R] [AddLeftMono R] (a b : R), 4 * a * b ≤ (a + b) ^ 2
Alias of four_mul_le_sq_add.
Binary, squared, and division-free arithmetic mean-geometric mean inequality (aka AM-GM inequality) for linearly ordered commutative semirings.
theorem two_mul_le_add_of_sq_le_mul E1 #
∀ {R : Type u} [inst : CommSemiring R] [inst_1 : LinearOrder R] [ExistsAddOfLE R] [MulPosStrictMono R]
[PosMulStrictMono R] [AddLeftReflectLE R] [AddLeftMono R] {a b r : R}, 0 ≤ a → 0 ≤ b → r ^ 2 ≤ a * b → 2 * r ≤ a + b
Binary and division-free arithmetic mean-geometric mean inequality (aka AM-GM inequality) for linearly ordered commutative semirings.
theorem mul_neg_iff E0 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R] [MulPosStrictMono R]
[AddLeftStrictMono R], a * b < 0 ↔ 0 < a ∧ b < 0 ∨ a < 0 ∧ 0 < b
theorem mul_nonpos_iff E0 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R] [PosMulStrictMono R]
[AddLeftMono R], a * b ≤ 0 ↔ 0 ≤ a ∧ b ≤ 0 ∨ a ≤ 0 ∧ 0 ≤ b
theorem mul_nonneg_iff_neg_imp_nonpos E1 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R] [MulPosStrictMono R]
[AddLeftMono R], 0 ≤ a * b ↔ (a < 0 → b ≤ 0) ∧ (b < 0 → a ≤ 0)
theorem mul_nonpos_iff_pos_imp_nonpos E1 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R] [MulPosStrictMono R]
[AddLeftMono R], a * b ≤ 0 ↔ (0 < a → b ≤ 0) ∧ (b < 0 → 0 ≤ a)
theorem mul_nonpos_iff_neg_imp_nonneg E1 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [PosMulStrictMono R] [MulPosStrictMono R]
[AddLeftMono R], a * b ≤ 0 ↔ (a < 0 → 0 ≤ b) ∧ (0 < b → a ≤ 0)
theorem neg_one_lt_zero E1 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] [ZeroLEOneClass R] [NeZero 1] [AddLeftStrictMono R], -1 < 0
theorem sub_one_lt E1 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] [ZeroLEOneClass R] [NeZero 1] [AddLeftStrictMono R] (a : R),
a - 1 < a
theorem mul_self_le_mul_self_of_le_of_neg_le E1 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [MulPosMono R] [PosMulMono R] [AddLeftMono R],
a ≤ b → -a ≤ b → a * a ≤ b * b
theorem sub_mul_sub_nonneg_iff E0 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R] [PosMulStrictMono R]
[AddLeftMono R] (x : R), a ≤ b → (0 ≤ (x - a) * (x - b) ↔ x ≤ a ∨ b ≤ x)
theorem sub_mul_sub_nonpos_iff E0 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R] [PosMulStrictMono R]
[AddLeftMono R] (x : R), a ≤ b → ((x - a) * (x - b) ≤ 0 ↔ a ≤ x ∧ x ≤ b)
theorem sub_mul_sub_pos_iff E0 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R] [PosMulStrictMono R]
[AddLeftMono R] (x : R), a ≤ b → (0 < (x - a) * (x - b) ↔ x < a ∨ b < x)
theorem sub_mul_sub_neg_iff E0 #
∀ {R : Type u} [inst : Ring R] [inst_1 : LinearOrder R] {a b : R} [MulPosStrictMono R] [PosMulStrictMono R]
[AddLeftMono R] (x : R), a ≤ b → ((x - a) * (x - b) < 0 ↔ a < x ∧ x < b)