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.Unbundled.MinMax

32 declarations. Mathlib docs · Source

theorem fn_min_add_fn_max E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : AddCommSemigroup β] (f : α → β) (a b : α),
  f (min a b) + f (max a b) = f a + f b

theorem fn_min_mul_fn_max E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : CommSemigroup β] (f : α → β) (a b : α),
  f (min a b) * f (max a b) = f a * f b

theorem fn_max_add_fn_min E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : AddCommSemigroup β] (f : α → β) (a b : α),
  f (max a b) + f (min a b) = f a + f b

theorem fn_max_mul_fn_min E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : CommSemigroup β] (f : α → β) (a b : α),
  f (max a b) * f (min a b) = f a * f b

theorem min_add_max E0 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : AddCommSemigroup α] (a b : α), min a b + max a b = a + b

theorem min_mul_max E0 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : CommSemigroup α] (a b : α), min a b * max a b = a * b

theorem max_mul_min E0 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : CommSemigroup α] (a b : α), max a b * min a b = a * b

theorem max_add_min E0 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : AddCommSemigroup α] (a b : α), max a b + min a b = a + b

theorem min_mul_mul_left E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulLeftMono α] (a b c : α), min (a * b) (a * c) = a * min b c

theorem min_add_add_left E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddLeftMono α] (a b c : α), min (a + b) (a + c) = a + min b c

theorem max_add_add_left E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddLeftMono α] (a b c : α), max (a + b) (a + c) = a + max b c

theorem max_mul_mul_left E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulLeftMono α] (a b c : α), max (a * b) (a * c) = a * max b c

theorem min_add_add_right E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddRightMono α] (a b c : α), min (a + c) (b + c) = min a b + c

theorem min_mul_mul_right E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulRightMono α] (a b c : α), min (a * c) (b * c) = min a b * c

theorem max_add_add_right E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddRightMono α] (a b c : α), max (a + c) (b + c) = max a b + c

theorem max_mul_mul_right E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulRightMono α] (a b c : α), max (a * c) (b * c) = max a b * c

theorem lt_or_lt_of_mul_lt_mul E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulLeftMono α] [MulRightMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ * b₁ < a₂ * b₂ → a₁ < a₂ ∨ b₁ < b₂

theorem lt_or_lt_of_add_lt_add E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddLeftMono α] [AddRightMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ + b₁ < a₂ + b₂ → a₁ < a₂ ∨ b₁ < b₂

theorem le_or_lt_of_mul_le_mul E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulLeftMono α] [MulRightStrictMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ * b₁ ≤ a₂ * b₂ → a₁ ≤ a₂ ∨ b₁ < b₂

theorem le_or_lt_of_add_le_add E3 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddLeftMono α] [AddRightStrictMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ + b₁ ≤ a₂ + b₂ → a₁ ≤ a₂ ∨ b₁ < b₂

theorem lt_or_le_of_mul_le_mul E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulLeftStrictMono α] [MulRightMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ * b₁ ≤ a₂ * b₂ → a₁ < a₂ ∨ b₁ ≤ b₂

theorem lt_or_le_of_add_le_add E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddLeftStrictMono α] [AddRightMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ + b₁ ≤ a₂ + b₂ → a₁ < a₂ ∨ b₁ ≤ b₂

theorem le_or_le_of_mul_le_mul E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulLeftStrictMono α] [MulRightStrictMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ * b₁ ≤ a₂ * b₂ → a₁ ≤ a₂ ∨ b₁ ≤ b₂

theorem le_or_le_of_add_le_add E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddLeftStrictMono α] [AddRightStrictMono α] {a₁ a₂ b₁ b₂ : α},
  a₁ + b₁ ≤ a₂ + b₂ → a₁ ≤ a₂ ∨ b₁ ≤ b₂

theorem add_lt_add_iff_of_le_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Add α] [AddLeftMono α] [AddRightMono α] [AddLeftStrictMono α]
  [AddRightStrictMono α] {a₁ a₂ b₁ b₂ : α}, a₁ ≤ a₂ → b₁ ≤ b₂ → (a₁ + b₁ < a₂ + b₂ ↔ a₁ < a₂ ∨ b₁ < b₂)

theorem mul_lt_mul_iff_of_le_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : Mul α] [MulLeftMono α] [MulRightMono α] [MulLeftStrictMono α]
  [MulRightStrictMono α] {a₁ a₂ b₁ b₂ : α}, a₁ ≤ a₂ → b₁ ≤ b₂ → (a₁ * b₁ < a₂ * b₂ ↔ a₁ < a₂ ∨ b₁ < b₂)

theorem min_le_add_of_nonneg_right E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : AddZeroClass α] [AddLeftMono α] {a b : α}, 0 ≤ b → min a b ≤ a + b

theorem min_le_mul_of_one_le_right E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : MulOneClass α] [MulLeftMono α] {a b : α}, 1 ≤ b → min a b ≤ a * b

theorem min_le_mul_of_one_le_left E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : MulOneClass α] [MulRightMono α] {a b : α}, 1 ≤ a → min a b ≤ a * b

theorem min_le_add_of_nonneg_left E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : AddZeroClass α] [AddRightMono α] {a b : α}, 0 ≤ a → min a b ≤ a + b

theorem max_le_mul_of_one_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : MulOneClass α] [MulLeftMono α] [MulRightMono α] {a b : α},
  1 ≤ a → 1 ≤ b → max a b ≤ a * b

theorem max_le_add_of_nonneg E1 #

∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : AddZeroClass α] [AddLeftMono α] [AddRightMono α] {a b : α},
  0 ≤ a → 0 ≤ b → max a b ≤ a + b