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.Interval.Set.Group

48 declarations. Mathlib docs · Source

Lemmas about arithmetic operations and intervals

inv_mem_Ixx_iff, sub_mem_Ixx_iff

add_mem_Ixx_iff_left

add_mem_Ixx_iff_right

sub_mem_Ixx_iff_left

sub_mem_Ixx_iff_right

sub_mem_Ixx_zero_right and sub_mem_Ixx_zero_iff_right; this specializes the previous lemmas to the case of reflecting the interval.

Lemmas about disjointness of translates of intervals

theorem Set.neg_mem_Icc_iff E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a c d : α},
  -a ∈ Set.Icc c d ↔ a ∈ Set.Icc (-d) (-c)

theorem Set.inv_mem_Icc_iff E0 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] {a c d : α},
  a⁻¹ ∈ Set.Icc c d ↔ a ∈ Set.Icc d⁻¹ c⁻¹

theorem Set.neg_mem_Ico_iff E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a c d : α},
  -a ∈ Set.Ico c d ↔ a ∈ Set.Ioc (-d) (-c)

theorem Set.inv_mem_Ico_iff E0 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] {a c d : α},
  a⁻¹ ∈ Set.Ico c d ↔ a ∈ Set.Ioc d⁻¹ c⁻¹

theorem Set.neg_mem_Ioc_iff E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a c d : α},
  -a ∈ Set.Ioc c d ↔ a ∈ Set.Ico (-d) (-c)

theorem Set.inv_mem_Ioc_iff E0 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] {a c d : α},
  a⁻¹ ∈ Set.Ioc c d ↔ a ∈ Set.Ico d⁻¹ c⁻¹

theorem Set.neg_mem_Ioo_iff E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a c d : α},
  -a ∈ Set.Ioo c d ↔ a ∈ Set.Ioo (-d) (-c)

theorem Set.inv_mem_Ioo_iff E0 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] {a c d : α},
  a⁻¹ ∈ Set.Ioo c d ↔ a ∈ Set.Ioo d⁻¹ c⁻¹

theorem Set.add_mem_Icc_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Icc c d ↔ a ∈ Set.Icc (c - b) (d - b)

theorem Set.add_mem_Ico_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Ico c d ↔ a ∈ Set.Ico (c - b) (d - b)

theorem Set.add_mem_Ioc_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Ioc c d ↔ a ∈ Set.Ioc (c - b) (d - b)

theorem Set.add_mem_Ioo_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Ioo c d ↔ a ∈ Set.Ioo (c - b) (d - b)

theorem Set.add_mem_Icc_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Icc c d ↔ b ∈ Set.Icc (c - a) (d - a)

theorem Set.add_mem_Ico_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Ico c d ↔ b ∈ Set.Ico (c - a) (d - a)

theorem Set.add_mem_Ioc_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Ioc c d ↔ b ∈ Set.Ioc (c - a) (d - a)

theorem Set.add_mem_Ioo_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a + b ∈ Set.Ioo c d ↔ b ∈ Set.Ioo (c - a) (d - a)

theorem Set.sub_mem_Icc_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Icc c d ↔ a ∈ Set.Icc (c + b) (d + b)

theorem Set.sub_mem_Ico_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Ico c d ↔ a ∈ Set.Ico (c + b) (d + b)

theorem Set.sub_mem_Ioc_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Ioc c d ↔ a ∈ Set.Ioc (c + b) (d + b)

theorem Set.sub_mem_Ioo_iff_left E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Ioo c d ↔ a ∈ Set.Ioo (c + b) (d + b)

theorem Set.sub_mem_Icc_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Icc c d ↔ b ∈ Set.Icc (a - d) (a - c)

theorem Set.sub_mem_Ico_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Ico c d ↔ b ∈ Set.Ioc (a - d) (a - c)

theorem Set.sub_mem_Ioc_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Ioc c d ↔ b ∈ Set.Ico (a - d) (a - c)

theorem Set.sub_mem_Ioo_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b c d : α},
  a - b ∈ Set.Ioo c d ↔ b ∈ Set.Ioo (a - d) (a - c)

theorem Set.mem_Icc_iff_abs_le E0 #

∀ {R : Type u_2} [inst : AddCommGroup R] [inst_1 : LinearOrder R] [IsOrderedAddMonoid R] {x y z : R},
  |x - y| ≤ z ↔ y ∈ Set.Icc (x - z) (x + z)

theorem Set.sub_mem_Icc_zero_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b : α},
  b - a ∈ Set.Icc 0 b ↔ a ∈ Set.Icc 0 b

theorem Set.sub_mem_Ico_zero_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b : α},
  b - a ∈ Set.Ico 0 b ↔ a ∈ Set.Ioc 0 b

theorem Set.sub_mem_Ioc_zero_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b : α},
  b - a ∈ Set.Ioc 0 b ↔ a ∈ Set.Ico 0 b

theorem Set.sub_mem_Ioo_zero_iff_right E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {a b : α},
  b - a ∈ Set.Ioo 0 b ↔ a ∈ Set.Ioo 0 b

theorem Set.nonempty_Ico_sdiff E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α] {x dx y dy : α},
  dy < dx → 0 < dx → Nonempty ↑(Set.Ico x (x + dx) \ Set.Ico y (y + dy))

If we remove a smaller interval from a larger, the result is nonempty

theorem Set.pairwise_disjoint_Ioc_add_zsmul E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] (a b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioc (a + n • b) (a + (n + 1) • b))

theorem Set.pairwise_disjoint_Ioc_mul_zpow E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] (a b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioc (a * b ^ n) (a * b ^ (n + 1)))

theorem Set.pairwise_disjoint_Ico_mul_zpow E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] (a b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ico (a * b ^ n) (a * b ^ (n + 1)))

theorem Set.pairwise_disjoint_Ico_add_zsmul E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] (a b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ico (a + n • b) (a + (n + 1) • b))

theorem Set.pairwise_disjoint_Ioo_add_zsmul E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] (a b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioo (a + n • b) (a + (n + 1) • b))

theorem Set.pairwise_disjoint_Ioo_mul_zpow E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] (a b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioo (a * b ^ n) (a * b ^ (n + 1)))

theorem Set.pairwise_disjoint_Ioc_zpow E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] (b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioc (b ^ n) (b ^ (n + 1)))

theorem Set.pairwise_disjoint_Ioc_zsmul E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] (b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioc (n • b) ((n + 1) • b))

theorem Set.pairwise_disjoint_Ico_zsmul E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] (b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ico (n • b) ((n + 1) • b))

theorem Set.pairwise_disjoint_Ico_zpow E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] (b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ico (b ^ n) (b ^ (n + 1)))

theorem Set.pairwise_disjoint_Ioo_zpow E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] (b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioo (b ^ n) (b ^ (n + 1)))

theorem Set.pairwise_disjoint_Ioo_zsmul E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] (b : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioo (n • b) ((n + 1) • b))

theorem Set.pairwise_disjoint_Ioc_add_intCast E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α] (a : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioc (a + ↑n) (a + ↑n + 1))

theorem Set.pairwise_disjoint_Ico_add_intCast E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α] (a : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ico (a + ↑n) (a + ↑n + 1))

theorem Set.pairwise_disjoint_Ioo_add_intCast E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α] (a : α),
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioo (a + ↑n) (a + ↑n + 1))

theorem Set.pairwise_disjoint_Ico_intCast E1 #

∀ (α : Type u_1) [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α],
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ico (↑n) (↑n + 1))

theorem Set.pairwise_disjoint_Ioo_intCast E1 #

∀ (α : Type u_1) [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α],
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioo (↑n) (↑n + 1))

theorem Set.pairwise_disjoint_Ioc_intCast E1 #

∀ (α : Type u_1) [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α],
  Pairwise (Function.onFun Disjoint fun n ↦ Set.Ioc (↑n) (↑n + 1))