The areas / V04. Order and lattices
Mathlib.Algebra.Order.Interval.Set.SuccPred
43 declarations and 2 deprecated aliases. Mathlib docs · Source
Set intervals in an additive successor-predecessor order
This file proves relations between the various set intervals in an additive successor/predecessor order.
Notes
Please keep in sync with:
Mathlib/Algebra/Order/Interval/Finset/SuccPred.leanMathlib/Order/Interval/Finset/SuccPred.leanMathlib/Order/Interval/Set/SuccPred.lean
TODO
Copy over insert lemmas from Mathlib/Order/Interval/Finset/Nat.lean.
Two-sided intervals
Orders possibly with maximal elements
Equalities of intervals
Inserting into intervals
Orders with no maximal elements
Equalities of intervals
Inserting into intervals
Orders possibly with minimal elements
Equalities of intervals
Inserting into intervals
Orders with no minimal elements
Equalities of intervals
Inserting into intervals
One-sided interval towards ⊥
One-sided interval towards ⊤
theorem Set.Ico_add_one_left_eq_Ioo E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] (a b : α),
Set.Ico (a + 1) b = Set.Ioo a b
theorem Set.Icc_add_one_left_eq_Ioc_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a : α},
¬IsMax a → ∀ (b : α), Set.Icc (a + 1) b = Set.Ioc a b
theorem Set.Ico_add_one_right_eq_Icc_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {b : α},
¬IsMax b → ∀ (a : α), Set.Ico a (b + 1) = Set.Icc a b
theorem Set.Ioo_add_one_right_eq_Ioc_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {b : α},
¬IsMax b → ∀ (a : α), Set.Ioo a (b + 1) = Set.Ioc a b
theorem Set.Ico_add_one_add_one_eq_Ioc_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {b : α},
¬IsMax b → ∀ (a : α), Set.Ico (a + 1) (b + 1) = Set.Ioc a b
theorem Set.insert_Icc_add_one_left_eq_Icc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α},
a ≤ b → insert a (Set.Icc (a + 1) b) = Set.Icc a b
theorem Set.insert_Icc_right_eq_Icc_add_one E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α},
a ≤ b + 1 → insert (b + 1) (Set.Icc a b) = Set.Icc a (b + 1)
theorem Set.insert_Ico_right_eq_Ico_add_one_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α},
a ≤ b → ¬IsMax b → insert b (Set.Ico a b) = Set.Ico a (b + 1)
theorem Set.insert_Ico_add_one_left_eq_Ico E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α},
a < b → insert a (Set.Ico (a + 1) b) = Set.Ico a b
theorem Set.insert_Ioc_right_eq_Ioc_add_one_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α},
a ≤ b → ¬IsMax b → insert (b + 1) (Set.Ioc a b) = Set.Ioc a (b + 1)
theorem Set.insert_Ioc_add_one_left_eq_Ioc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α},
a < b → insert (a + 1) (Set.Ioc (a + 1) b) = Set.Ioc a b
theorem Set.Icc_add_one_left_eq_Ioc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] [NoMaxOrder α] (a b : α),
Set.Icc (a + 1) b = Set.Ioc a b
theorem Set.Ico_add_one_right_eq_Icc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] [NoMaxOrder α] (a b : α),
Set.Ico a (b + 1) = Set.Icc a b
theorem Set.Ioo_add_one_right_eq_Ioc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] [NoMaxOrder α] (a b : α),
Set.Ioo a (b + 1) = Set.Ioc a b
theorem Set.Ico_add_one_add_one_eq_Ioc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] [NoMaxOrder α] (a b : α),
Set.Ico (a + 1) (b + 1) = Set.Ioc a b
theorem Set.insert_Ico_right_eq_Ico_add_one E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α} [NoMaxOrder α],
a ≤ b → insert b (Set.Ico a b) = Set.Ico a (b + 1)
theorem Set.insert_Ioc_right_eq_Ioc_add_one E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a b : α} [NoMaxOrder α],
a ≤ b → insert (b + 1) (Set.Ioc a b) = Set.Ioc a (b + 1)
theorem Set.Ioc_sub_one_right_eq_Ioo E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] (a b : α),
Set.Ioc a (b - 1) = Set.Ioo a b
theorem Set.Icc_sub_one_right_eq_Ico_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {b : α},
¬IsMin b → ∀ (a : α), Set.Icc a (b - 1) = Set.Ico a b
theorem Set.Ioc_sub_one_left_eq_Icc_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a : α},
¬IsMin a → ∀ (b : α), Set.Ioc (a - 1) b = Set.Icc a b
theorem Set.Ioo_sub_one_left_eq_Ico_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a : α},
¬IsMin a → ∀ (b : α), Set.Ioo (a - 1) b = Set.Ico a b
theorem Set.Ioc_sub_one_sub_one_eq_Ico_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a : α},
¬IsMin a → ∀ (b : α), Set.Ioc (a - 1) (b - 1) = Set.Ico a b
theorem Set.insert_Icc_sub_one_right_eq_Icc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α},
a ≤ b → insert b (Set.Icc a (b - 1)) = Set.Icc a b
theorem Set.insert_Icc_left_eq_Icc_sub_one E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α},
a - 1 ≤ b → insert (a - 1) (Set.Icc a b) = Set.Icc (a - 1) b
theorem Set.insert_Ioc_left_eq_Ioc_sub_one_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α},
a ≤ b → ¬IsMin a → insert a (Set.Ioc a b) = Set.Ioc (a - 1) b
theorem Set.insert_Ioc_sub_one_right_eq_Ioc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α},
a < b → insert b (Set.Ioc a (b - 1)) = Set.Ioc a b
theorem Set.insert_Ico_left_eq_Ico_sub_one_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α},
a ≤ b → ¬IsMin a → insert (a - 1) (Set.Ico a b) = Set.Ico (a - 1) b
theorem Set.insert_Ico_sub_one_right_eq_Ico E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α},
a < b → insert (b - 1) (Set.Ico a (b - 1)) = Set.Ico a b
theorem Set.Icc_sub_one_right_eq_Ico E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] [NoMinOrder α] (a b : α),
Set.Icc a (b - 1) = Set.Ico a b
theorem Set.Ioc_sub_one_left_eq_Icc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] [NoMinOrder α] (a b : α),
Set.Ioc (a - 1) b = Set.Icc a b
theorem Set.Ioo_sub_one_left_eq_Ico E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] [NoMinOrder α] (a b : α),
Set.Ioo (a - 1) b = Set.Ico a b
theorem Set.Ioc_sub_one_sub_one_eq_Ico E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] [NoMinOrder α] (a b : α),
Set.Ioc (a - 1) (b - 1) = Set.Ico a b
theorem Set.insert_Ioc_left_eq_Ioc_sub_one E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α} [NoMinOrder α],
a ≤ b → insert a (Set.Ioc a b) = Set.Ioc (a - 1) b
theorem Set.insert_Ico_left_eq_Ico_sub_one E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a b : α} [NoMinOrder α],
a ≤ b → insert (a - 1) (Set.Ico a b) = Set.Ico (a - 1) b
theorem Set.Icc_add_one_sub_one_eq_Ioo E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [inst_3 : Sub α] [SuccAddOrder α]
[PredSubOrder α] [Nontrivial α] (a b : α), Set.Icc (a + 1) (b - 1) = Set.Ioo a b
theorem Set.Iio_add_one_eq_Iic_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {b : α},
¬IsMax b → Set.Iio (b + 1) = Set.Iic b
theorem Set.Iio_add_one_eq_Iic E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] [NoMaxOrder α] (b : α),
Set.Iio (b + 1) = Set.Iic b
theorem Set.Iic_sub_one_eq_Iio_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {b : α},
¬IsMin b → Set.Iic (b - 1) = Set.Iio b
theorem Set.Iic_sub_one_eq_Iio E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] [NoMinOrder α] (b : α),
Set.Iic (b - 1) = Set.Iio b
theorem Set.Ici_add_one_eq_Ioi_of_not_isMax E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] {a : α},
¬IsMax a → Set.Ici (a + 1) = Set.Ioi a
theorem Set.Ici_add_one_eq_Ioi E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Add α] [SuccAddOrder α] [NoMaxOrder α] (a : α),
Set.Ici (a + 1) = Set.Ioi a
theorem Set.Ioi_sub_one_eq_Ici_of_not_isMin E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] {a : α},
¬IsMin a → Set.Ioi (a - 1) = Set.Ici a
theorem Set.Ioi_sub_one_eq_Ici E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : One α] [inst_2 : Sub α] [PredSubOrder α] [NoMinOrder α] (a : α),
Set.Ioi (a - 1) = Set.Ici a
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.Ioo_sub_one_left_eq_Ioc | Set.Ioo_sub_one_left_eq_Ico | 2026-09-03 |
Set.Ioo_sub_one_left_eq_Ioc_of_not_isMin | Set.Ioo_sub_one_left_eq_Ico_of_not_isMin | 2026-09-03 |