The areas / V04. Order and lattices
Mathlib.Algebra.Order.AddGroupWithTop
81 declarations. Mathlib docs · Source
def LinearOrderedAddCommGroupWithTop.ctorIdx E1 #
{α : Type u_3} → LinearOrderedAddCommGroupWithTop α → ℕ
def LinearOrderedAddCommMonoidWithTop.ctorIdx E1 #
{α : Type u_3} → LinearOrderedAddCommMonoidWithTop α → ℕ
class LinearOrderedAddCommMonoidWithTop E1 #
Type u_3 → Type u_3
A linearly ordered commutative monoid with an additively absorbing ⊤ element.
Instances should include number systems with an infinite element adjoined.
instance LinearOrderedAddCommMonoidWithTop.toOrderTop E0 #
{α : Type u_3} → [self : LinearOrderedAddCommMonoidWithTop α] → OrderTop α
instance LinearOrderedAddCommMonoidWithTop.toIsOrderedAddMonoid E0 #
∀ {α : Type u_3} [self : LinearOrderedAddCommMonoidWithTop α], IsOrderedAddMonoid α
instance LinearOrderedAddCommMonoidWithTop.toAddCommMonoid E0 #
{α : Type u_3} → [self : LinearOrderedAddCommMonoidWithTop α] → AddCommMonoid α
instance LinearOrderedAddCommMonoidWithTop.toLinearOrder E0 #
{α : Type u_3} → [self : LinearOrderedAddCommMonoidWithTop α] → LinearOrder α
ctor LinearOrderedAddCommMonoidWithTop.mk E0 #
{α : Type u_3} →
[toAddCommMonoid : AddCommMonoid α] →
[toLinearOrder : LinearOrder α] →
[toIsOrderedAddMonoid : IsOrderedAddMonoid α] →
[toOrderTop : OrderTop α] →
(∀ (x : α), ⊤ + x = ⊤) → (∀ ⦃x : α⦄, x ≠ ⊤ → IsAddLeftRegular x) → LinearOrderedAddCommMonoidWithTop α
theorem LinearOrderedAddCommMonoidWithTop.top_add' E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommMonoidWithTop α] (x : α), ⊤ + x = ⊤
In a LinearOrderedAddCommMonoidWithTop, the ⊤ element is invariant under addition.
theorem LinearOrderedAddCommMonoidWithTop.isAddLeftRegular_of_ne_top E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommMonoidWithTop α] ⦃x : α⦄, x ≠ ⊤ → IsAddLeftRegular x
class LinearOrderedAddCommGroupWithTop E1 #
Type u_3 → Type u_3
A linearly ordered commutative group with an additively absorbing ⊤ element.
Instances should include number systems with an infinite element adjoined.
abbrev LinearOrderedAddCommGroupWithTop.toSub E1 #
{α : Type u_3} → [self : LinearOrderedAddCommGroupWithTop α] → Sub α
ctor LinearOrderedAddCommGroupWithTop.mk E0 #
{α : Type u_3} →
[toAddCommMonoid : AddCommMonoid α] →
[toLinearOrder : LinearOrder α] →
[toIsOrderedAddMonoid : IsOrderedAddMonoid α] →
[toOrderTop : OrderTop α] →
[toNeg : Neg α] →
[toSub : Sub α] →
[toZSMul : ZSMul α] →
autoParam (∀ (a b : α), a - b = a + -b) SubNegMonoid.sub_eq_add_neg._autoParam →
autoParam (∀ (a : α), 0 • a = 0) SubNegMonoid.zsmul_zero'._autoParam →
autoParam (∀ (n : ℕ) (a : α), ↑n.succ • a = ↑n • a + a) SubNegMonoid.zsmul_succ'._autoParam →
autoParam (∀ (n : ℕ) (a : α), Int.negSucc n • a = -(↑n.succ • a))
SubNegMonoid.zsmul_neg'._autoParam →
[toNontrivial : Nontrivial α] →
(∀ (x : α), ⊤ + x = ⊤) →
-⊤ = ⊤ → (∀ ⦃x : α⦄, x ≠ ⊤ → x + -x = 0) → LinearOrderedAddCommGroupWithTop α
instance LinearOrderedAddCommGroupWithTop.toOrderTop E0 #
{α : Type u_3} → [self : LinearOrderedAddCommGroupWithTop α] → OrderTop α
instance LinearOrderedAddCommGroupWithTop.toSubNegMonoid E0 #
{α : Type u_3} → [self : LinearOrderedAddCommGroupWithTop α] → SubNegMonoid α
instance LinearOrderedAddCommGroupWithTop.toIsOrderedAddMonoid E0 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α], IsOrderedAddMonoid α
instance LinearOrderedAddCommGroupWithTop.toAddCommMonoid E0 #
{α : Type u_3} → [self : LinearOrderedAddCommGroupWithTop α] → AddCommMonoid α
instance LinearOrderedAddCommGroupWithTop.toLinearOrder E0 #
{α : Type u_3} → [self : LinearOrderedAddCommGroupWithTop α] → LinearOrder α
abbrev LinearOrderedAddCommGroupWithTop.toNeg E1 #
{α : Type u_3} → [self : LinearOrderedAddCommGroupWithTop α] → Neg α
abbrev LinearOrderedAddCommGroupWithTop.toZSMul E1 #
{α : Type u_3} → [self : LinearOrderedAddCommGroupWithTop α] → ZSMul α
instance LinearOrderedAddCommGroupWithTop.toNontrivial E0 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α], Nontrivial α
theorem LinearOrderedAddCommGroupWithTop.zsmul_succ' E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α] (n : ℕ) (a : α), ↑n.succ • a = ↑n • a + a
theorem LinearOrderedAddCommGroupWithTop.sub_eq_add_neg E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α] (a b : α), a - b = a + -b
theorem LinearOrderedAddCommGroupWithTop.zsmul_neg' E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α] (n : ℕ) (a : α), Int.negSucc n • a = -(↑n.succ • a)
theorem LinearOrderedAddCommGroupWithTop.zsmul_zero' E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α] (a : α), 0 • a = 0
theorem LinearOrderedAddCommGroupWithTop.top_add' E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α] (x : α), ⊤ + x = ⊤
In a LinearOrderedAddCommMonoidWithTop, the ⊤ element is invariant under addition.
theorem LinearOrderedAddCommGroupWithTop.neg_top E0 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α], -⊤ = ⊤
theorem LinearOrderedAddCommGroupWithTop.add_neg_cancel_of_ne_top E1 #
∀ {α : Type u_3} [self : LinearOrderedAddCommGroupWithTop α] ⦃x : α⦄, x ≠ ⊤ → x + -x = 0
theorem top_add E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] (a : α), ⊤ + a = ⊤
theorem add_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] (a : α), a + ⊤ = ⊤
theorem IsAddRegular.of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {a : α}, a ≠ ⊤ → IsAddRegular a
theorem add_left_injective_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] (b : α), b ≠ ⊤ → Function.Injective fun x ↦ x + b
theorem add_right_injective_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] (b : α), b ≠ ⊤ → Function.Injective fun x ↦ b + x
theorem add_left_inj_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {a b c : α}, a ≠ ⊤ → (b + a = c + a ↔ b = c)
theorem add_right_inj_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {a b c : α}, a ≠ ⊤ → (a + b = a + c ↔ b = c)
theorem add_left_strictMono_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {b : α}, b ≠ ⊤ → StrictMono fun x ↦ x + b
theorem add_right_strictMono_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {b : α}, b ≠ ⊤ → StrictMono fun x ↦ b + x
theorem add_le_add_iff_left_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {a b c : α}, a ≠ ⊤ → (b + a ≤ c + a ↔ b ≤ c)
theorem add_le_add_iff_right_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {a b c : α}, a ≠ ⊤ → (a + b ≤ a + c ↔ b ≤ c)
theorem add_lt_add_iff_left_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {a b c : α}, a ≠ ⊤ → (b + a < c + a ↔ b < c)
theorem add_lt_add_iff_right_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommMonoidWithTop α] {a b c : α}, a ≠ ⊤ → (a + b < a + c ↔ b < c)
theorem LinearOrderedAddCommGroupWithTop.neg_add_cancel_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, a ≠ ⊤ → -a + a = 0
theorem LinearOrderedAddCommGroupWithTop.add_neg_cancel_left_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, a ≠ ⊤ → ∀ (b : α), a + (-a + b) = b
theorem LinearOrderedAddCommGroupWithTop.neg_add_cancel_left_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, a ≠ ⊤ → ∀ (b : α), -a + (a + b) = b
theorem LinearOrderedAddCommGroupWithTop.add_neg_cancel_right_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {b : α}, b ≠ ⊤ → ∀ (a : α), a + b + -b = a
theorem LinearOrderedAddCommGroupWithTop.neg_add_cancel_right_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {b : α}, b ≠ ⊤ → ∀ (a : α), a + -b + b = a
theorem LinearOrderedAddCommGroupWithTop.top_ne_zero E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α], ⊤ ≠ 0
theorem LinearOrderedAddCommGroupWithTop.zero_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α], 0 ≠ ⊤
theorem LinearOrderedAddCommGroupWithTop.top_pos E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α], 0 < ⊤
theorem LinearOrderedAddCommGroupWithTop.isAddUnit_iff E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, IsAddUnit a ↔ a ≠ ⊤
instance LinearOrderedAddCommGroupWithTop.instLinearOrderedAddCommMonoidWithTop E0 #
{α : Type u_2} → [LinearOrderedAddCommGroupWithTop α] → LinearOrderedAddCommMonoidWithTop α
theorem LinearOrderedAddCommGroupWithTop.add_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b : α}, a + b ≠ ⊤ ↔ a ≠ ⊤ ∧ b ≠ ⊤
theorem LinearOrderedAddCommGroupWithTop.add_eq_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b : α}, a + b = ⊤ ↔ a = ⊤ ∨ b = ⊤
theorem LinearOrderedAddCommGroupWithTop.add_lt_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b : α}, a + b < ⊤ ↔ a < ⊤ ∧ b < ⊤
theorem LinearOrderedAddCommGroupWithTop.neg_eq_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, -a = ⊤ ↔ a = ⊤
theorem LinearOrderedAddCommGroupWithTop.sub_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, a - ⊤ = ⊤
instance LinearOrderedAddCommGroupWithTop.toSubtractionMonoid E0 #
{α : Type u_2} → [LinearOrderedAddCommGroupWithTop α] → SubtractionMonoid α
theorem LinearOrderedAddCommGroupWithTop.sub_left_injective_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {b : α}, b ≠ ⊤ → Function.Injective fun x ↦ x - b
theorem LinearOrderedAddCommGroupWithTop.sub_right_injective_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {b : α}, b ≠ ⊤ → Function.Injective fun x ↦ b - x
theorem LinearOrderedAddCommGroupWithTop.sub_left_inj_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b c : α}, a ≠ ⊤ → (b - a = c - a ↔ b = c)
theorem LinearOrderedAddCommGroupWithTop.sub_right_inj_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b c : α}, a ≠ ⊤ → (a - b = a - c ↔ b = c)
theorem LinearOrderedAddCommGroupWithTop.sub_left_strictMono_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {b : α}, b ≠ ⊤ → StrictMono fun x ↦ x - b
theorem LinearOrderedAddCommGroupWithTop.sub_le_sub_iff_left_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b c : α}, a ≠ ⊤ → (b - a ≤ c - a ↔ b ≤ c)
theorem LinearOrderedAddCommGroupWithTop.sub_lt_sub_iff_left_of_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b c : α}, a ≠ ⊤ → (b - a < c - a ↔ b < c)
theorem LinearOrderedAddCommGroupWithTop.add_neg_cancel_iff_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, a + -a = 0 ↔ a ≠ ⊤
theorem LinearOrderedAddCommGroupWithTop.sub_self_eq_zero_iff_ne_top E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, a - a = 0 ↔ a ≠ ⊤
theorem LinearOrderedAddCommGroupWithTop.sub_self_eq_zero_of_ne_top E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, a ≠ ⊤ → a - a = 0
Alias of the reverse direction of LinearOrderedAddCommGroupWithTop.sub_self_eq_zero_iff_ne_top.
theorem LinearOrderedAddCommGroupWithTop.sub_pos E1 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b : α}, 0 < a - b ↔ b < a ∨ b = ⊤
theorem LinearOrderedAddCommGroupWithTop.neg_pos E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, 0 < -a ↔ a < 0 ∨ a = ⊤
theorem LinearOrderedAddCommGroupWithTop.sub_self_nonneg E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a : α}, 0 ≤ a - a
theorem LinearOrderedAddCommGroupWithTop.sub_eq_zero E0 #
∀ {α : Type u_2} [inst : LinearOrderedAddCommGroupWithTop α] {a b : α}, a ≠ ⊤ → (b - a = 0 ↔ b = a)
instance WithTop.linearOrderedAddCommMonoidWithTop E0 #
{α : Type u_2} →
[inst : AddCancelCommMonoid α] →
[inst_1 : LinearOrder α] → [IsOrderedAddMonoid α] → LinearOrderedAddCommMonoidWithTop (WithTop α)
instance WithTop.LinearOrderedAddCommGroup.instNeg E0 #
{G : Type u_1} → [AddCommGroup G] → Neg (WithTop G)
instance WithTop.LinearOrderedAddCommGroup.instSub E0 #
{G : Type u_1} → [AddCommGroup G] → Sub (WithTop G)
If G has subtraction, we can extend the subtraction to WithTop G, by setting x - ⊤ = ⊤ and
⊤ - x = ⊤. This definition is only registered as an instance on additive commutative groups, to
avoid conflicting with the instance WithTop.instSub on types with a bottom element.
theorem WithTop.LinearOrderedAddCommGroup.coe_neg E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (a : G), ↑(-a) = -↑a
theorem WithTop.LinearOrderedAddCommGroup.coe_sub E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (a b : G), ↑(a - b) = ↑a - ↑b
theorem WithTop.LinearOrderedAddCommGroup.neg_top E0 #
∀ {G : Type u_1} [inst : AddCommGroup G], -⊤ = ⊤
theorem WithTop.LinearOrderedAddCommGroup.top_sub E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (x : WithTop G), ⊤ - x = ⊤
theorem WithTop.LinearOrderedAddCommGroup.sub_top E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (x : WithTop G), x - ⊤ = ⊤
theorem WithTop.LinearOrderedAddCommGroup.sub_eq_top_iff E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] {x y : WithTop G}, x - y = ⊤ ↔ x = ⊤ ∨ y = ⊤
instance WithTop.LinearOrderedAddCommGroup.instLinearOrderedAddCommGroupWithTopOfIsOrderedAddMonoid E0 #
{G : Type u_1} →
[inst : AddCommGroup G] →
[inst_1 : LinearOrder G] → [IsOrderedAddMonoid G] → LinearOrderedAddCommGroupWithTop (WithTop G)