Ordered groups #
This file develops the basics of ordered groups.
Implementation details #
Unfortunately, the number of '
appended to lemmas in this file
may differ between the multiplicative and the additive version of a lemma.
The reason is that we did not want to change existing names in the library.
- add : α → α → α
- zero : α
- nsmul : ℕ → α → α
- nsmul_zero : ∀ (x : α), AddMonoid.nsmul 0 x = 0
- nsmul_succ : ∀ (n : ℕ) (x : α), AddMonoid.nsmul (n + 1) x = x + AddMonoid.nsmul n x
- neg : α → α
- sub : α → α → α
- zsmul : ℤ → α → α
- zsmul_zero' : ∀ (a : α), SubNegMonoid.zsmul 0 a = 0
- zsmul_succ' : ∀ (n : ℕ) (a : α), SubNegMonoid.zsmul (Int.ofNat (Nat.succ n)) a = a + SubNegMonoid.zsmul (Int.ofNat n) a
- zsmul_neg' : ∀ (n : ℕ) (a : α), SubNegMonoid.zsmul (Int.negSucc n) a = -SubNegMonoid.zsmul (↑(Nat.succ n)) a
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
Addition is monotone in an ordered additive commutative group.
An ordered additive commutative group is an additive commutative group with a partial order in which addition is strictly monotone.
Instances
- mul : α → α → α
- one : α
- npow : ℕ → α → α
- npow_zero : ∀ (x : α), Monoid.npow 0 x = 1
- npow_succ : ∀ (n : ℕ) (x : α), Monoid.npow (n + 1) x = x * Monoid.npow n x
- inv : α → α
- div : α → α → α
- zpow : ℤ → α → α
- zpow_zero' : ∀ (a : α), DivInvMonoid.zpow 0 a = 1
- zpow_succ' : ∀ (n : ℕ) (a : α), DivInvMonoid.zpow (Int.ofNat (Nat.succ n)) a = a * DivInvMonoid.zpow (Int.ofNat n) a
- zpow_neg' : ∀ (n : ℕ) (a : α), DivInvMonoid.zpow (Int.negSucc n) a = (DivInvMonoid.zpow (↑(Nat.succ n)) a)⁻¹
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
Multiplication is monotone in an ordered commutative group.
An ordered commutative group is a commutative group with a partial order in which multiplication is strictly monotone.
Instances
Equations
- One or more equations did not get rendered due to their size.
A choice-free shortcut instance.
A choice-free shortcut instance.
A choice-free shortcut instance.
A choice-free shortcut instance.
Uses right
co(ntra)variant.
Uses right
co(ntra)variant.
Uses right
co(ntra)variant.
Uses right
co(ntra)variant.
Uses right
co(ntra)variant.
Uses right
co(ntra)variant.
Uses right
co(ntra)variant.
Uses right
co(ntra)variant.
Alias of the forward direction of neg_le_neg_iff
.
Alias of the reverse direction of sub_le_self_iff
.
Alias of the forward direction of lt_inv'
.
Alias of the forward direction of inv_lt'
.
Alias of the reverse direction of sub_lt_self_iff
.
Alias of Left.neg_le_self
.
Alias of Left.neg_lt_self
.
Alias of the forward direction of inv_lt_inv_iff
.
Alias of the forward direction of le_inv_mul_iff_mul_le
.
Alias of the reverse direction of le_inv_mul_iff_mul_le
.
Alias of the reverse direction of inv_mul_le_iff_le_mul
.
Alias of the forward direction of lt_inv_mul_iff_mul_lt
.
Alias of the reverse direction of lt_inv_mul_iff_mul_lt
.
Alias of the forward direction of inv_mul_lt_iff_lt_mul
.
Alias of the reverse direction of inv_mul_lt_iff_lt_mul
.
Alias of the forward direction of inv_mul_lt_iff_lt_mul
.
Alias of the forward direction of inv_mul_lt_iff_lt_mul
.
Alias of mul_lt_mul_left'
.
Alias of le_of_mul_le_mul_left'
.
Alias of lt_of_mul_lt_mul_left'
.
Alias of the reverse direction of sub_nonneg
.
Alias of the forward direction of sub_nonneg
.
Alias of the forward direction of sub_nonpos
.
Alias of the reverse direction of sub_nonpos
.
Alias of the reverse direction of le_sub_iff_add_le
.
Alias of the forward direction of le_sub_iff_add_le
.
Alias of the reverse direction of le_sub_iff_add_le'
.
Alias of the forward direction of le_sub_iff_add_le'
.
Alias of the reverse direction of sub_le_iff_le_add'
.
Alias of the forward direction of sub_le_iff_le_add'
.
Alias of the reverse direction of sub_pos
.
Alias of the forward direction of sub_pos
.
For a - -b = a + b
, see sub_neg_eq_add
.
Alias of the reverse direction of sub_neg
.
For a - -b = a + b
, see sub_neg_eq_add
.
Alias of the forward direction of sub_neg
.
For a - -b = a + b
, see sub_neg_eq_add
.
Alias of sub_neg
.
For a - -b = a + b
, see sub_neg_eq_add
.
Alias of the reverse direction of lt_sub_iff_add_lt
.
Alias of the forward direction of lt_sub_iff_add_lt
.
Alias of the forward direction of sub_lt_iff_lt_add
.
Alias of the reverse direction of sub_lt_iff_lt_add
.
Alias of the forward direction of lt_sub_iff_add_lt'
.
Alias of the reverse direction of lt_sub_iff_add_lt'
.
Alias of the reverse direction of sub_lt_iff_lt_add'
.
Alias of the forward direction of sub_lt_iff_lt_add'
.
Linearly ordered commutative groups #
- add : α → α → α
- zero : α
- nsmul : ℕ → α → α
- nsmul_zero : ∀ (x : α), AddMonoid.nsmul 0 x = 0
- nsmul_succ : ∀ (n : ℕ) (x : α), AddMonoid.nsmul (n + 1) x = x + AddMonoid.nsmul n x
- neg : α → α
- sub : α → α → α
- zsmul : ℤ → α → α
- zsmul_zero' : ∀ (a : α), SubNegMonoid.zsmul 0 a = 0
- zsmul_succ' : ∀ (n : ℕ) (a : α), SubNegMonoid.zsmul (Int.ofNat (Nat.succ n)) a = a + SubNegMonoid.zsmul (Int.ofNat n) a
- zsmul_neg' : ∀ (n : ℕ) (a : α), SubNegMonoid.zsmul (Int.negSucc n) a = -SubNegMonoid.zsmul (↑(Nat.succ n)) a
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
- min : α → α → α
- max : α → α → α
- compare : α → α → Ordering
A linear order is total.
- decidableLE : DecidableRel fun x x_1 => x ≤ x_1
In a linearly ordered type, we assume the order relations are all decidable.
- decidableEq : DecidableEq α
In a linearly ordered type, we assume the order relations are all decidable.
- decidableLT : DecidableRel fun x x_1 => x < x_1
In a linearly ordered type, we assume the order relations are all decidable.
The minimum function is equivalent to the one you get from
minOfLe
.The minimum function is equivalent to the one you get from
maxOfLe
.- compare_eq_compareOfLessAndEq : ∀ (a b : α), compare a b = compareOfLessAndEq a b
Comparison via
compare
is equal to the canonical comparison given decidable<
and=
.
A linearly ordered additive commutative group is an additive commutative group with a linear order in which addition is monotone.
Instances
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
- min : α → α → α
- max : α → α → α
- compare : α → α → Ordering
- decidableLE : DecidableRel fun x x_1 => x ≤ x_1
- decidableEq : DecidableEq α
- decidableLT : DecidableRel fun x x_1 => x < x_1
- compare_eq_compareOfLessAndEq : ∀ (a b : α), compare a b = compareOfLessAndEq a b
- add : α → α → α
- zero : α
- nsmul : ℕ → α → α
- nsmul_zero : ∀ (x : α), AddMonoid.nsmul 0 x = 0
- nsmul_succ : ∀ (n : ℕ) (x : α), AddMonoid.nsmul (n + 1) x = x + AddMonoid.nsmul n x
- top : α
- neg : α → α
- sub : α → α → α
- zsmul : ℤ → α → α
- zsmul_zero' : ∀ (a : α), LinearOrderedAddCommGroupWithTop.zsmul 0 a = 0
- zsmul_succ' : ∀ (n : ℕ) (a : α), LinearOrderedAddCommGroupWithTop.zsmul (Int.ofNat (Nat.succ n)) a = a + LinearOrderedAddCommGroupWithTop.zsmul (Int.ofNat n) a
- zsmul_neg' : ∀ (n : ℕ) (a : α), LinearOrderedAddCommGroupWithTop.zsmul (Int.negSucc n) a = -LinearOrderedAddCommGroupWithTop.zsmul (↑(Nat.succ n)) a
- exists_pair_ne : ∃ x y, x ≠ y
A linearly ordered commutative monoid with an additively absorbing ⊤
element.
Instances should include number systems with an infinite element adjoined.
Instances
- mul : α → α → α
- one : α
- npow : ℕ → α → α
- npow_zero : ∀ (x : α), Monoid.npow 0 x = 1
- npow_succ : ∀ (n : ℕ) (x : α), Monoid.npow (n + 1) x = x * Monoid.npow n x
- inv : α → α
- div : α → α → α
- zpow : ℤ → α → α
- zpow_zero' : ∀ (a : α), DivInvMonoid.zpow 0 a = 1
- zpow_succ' : ∀ (n : ℕ) (a : α), DivInvMonoid.zpow (Int.ofNat (Nat.succ n)) a = a * DivInvMonoid.zpow (Int.ofNat n) a
- zpow_neg' : ∀ (n : ℕ) (a : α), DivInvMonoid.zpow (Int.negSucc n) a = (DivInvMonoid.zpow (↑(Nat.succ n)) a)⁻¹
- le : α → α → Prop
- lt : α → α → Prop
- le_refl : ∀ (a : α), a ≤ a
- min : α → α → α
- max : α → α → α
- compare : α → α → Ordering
A linear order is total.
- decidableLE : DecidableRel fun x x_1 => x ≤ x_1
In a linearly ordered type, we assume the order relations are all decidable.
- decidableEq : DecidableEq α
In a linearly ordered type, we assume the order relations are all decidable.
- decidableLT : DecidableRel fun x x_1 => x < x_1
In a linearly ordered type, we assume the order relations are all decidable.
The minimum function is equivalent to the one you get from
minOfLe
.The minimum function is equivalent to the one you get from
maxOfLe
.- compare_eq_compareOfLessAndEq : ∀ (a b : α), compare a b = compareOfLessAndEq a b
Comparison via
compare
is equal to the canonical comparison given decidable<
and=
.
A linearly ordered commutative group is a commutative group with a linear order in which multiplication is monotone.
Instances
Equations
- eq_zero_of_neg_eq.match_1 motive x h_1 h_2 h_3 = Or.casesOn x (fun h => h_1 h) fun h => Or.casesOn h (fun h => h_2 h) fun h => h_3 h
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
- nonneg : α → Prop
- pos : α → Prop
- pos_iff : ∀ (a : α), AddCommGroup.PositiveCone.pos s a ↔ AddCommGroup.PositiveCone.nonneg s a ∧ ¬AddCommGroup.PositiveCone.nonneg s (-a)
- zero_nonneg : AddCommGroup.PositiveCone.nonneg s 0
- add_nonneg : ∀ {a b : α}, AddCommGroup.PositiveCone.nonneg s a → AddCommGroup.PositiveCone.nonneg s b → AddCommGroup.PositiveCone.nonneg s (a + b)
- nonneg_antisymm : ∀ {a : α}, AddCommGroup.PositiveCone.nonneg s a → AddCommGroup.PositiveCone.nonneg s (-a) → a = 0
A collection of elements in an AddCommGroup
designated as "non-negative".
This is useful for constructing an OrderedAddCommGroup
by choosing a positive cone in an existing AddCommGroup
.
Instances For
- nonneg : α → Prop
- pos : α → Prop
- pos_iff : ∀ (a : α), AddCommGroup.PositiveCone.pos s.toPositiveCone a ↔ AddCommGroup.PositiveCone.nonneg s.toPositiveCone a ∧ ¬AddCommGroup.PositiveCone.nonneg s.toPositiveCone (-a)
- zero_nonneg : AddCommGroup.PositiveCone.nonneg s.toPositiveCone 0
- add_nonneg : ∀ {a b : α}, AddCommGroup.PositiveCone.nonneg s.toPositiveCone a → AddCommGroup.PositiveCone.nonneg s.toPositiveCone b → AddCommGroup.PositiveCone.nonneg s.toPositiveCone (a + b)
- nonneg_antisymm : ∀ {a : α}, AddCommGroup.PositiveCone.nonneg s.toPositiveCone a → AddCommGroup.PositiveCone.nonneg s.toPositiveCone (-a) → a = 0
- nonnegDecidable : DecidablePred s.nonneg
For any
a
the propositionnonneg a
is decidable - nonneg_total : ∀ (a : α), AddCommGroup.PositiveCone.nonneg s.toPositiveCone a ∨ AddCommGroup.PositiveCone.nonneg s.toPositiveCone (-a)
Either
a
or-a
isnonneg
A positive cone in an AddCommGroup
induces a linear order if
for every a
, either a
or -a
is non-negative.
Instances For
Construct an OrderedAddCommGroup
by
designating a positive cone in an existing AddCommGroup
.
Equations
- OrderedAddCommGroup.mkOfPositiveCone C = let src := inst; OrderedAddCommGroup.mk (_ : ∀ (a b : α), a ≤ b → ∀ (c : α), c + a ≤ c + b)
Instances For
Construct a LinearOrderedAddCommGroup
by
designating a positive cone in an existing AddCommGroup
such that for every a
, either a
or -a
is non-negative.
Equations
- One or more equations did not get rendered due to their size.