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 / V22. Affine, Euclidean and convex geometry

Mathlib.Algebra.Order.AddTorsor

36 declarations. Mathlib docs · Source

Ordered scalar multiplication and vector addition

This file defines ordered scalar multiplication and vector addition, and proves some properties. In the additive case, a motivating example is given by the additive action of ℤ on subsets of reals that are closed under integer translation. The order compatibility allows for a treatment of the R((z))-module structure on (z ^ s) V((z)) for an R-module V, using the formalism of Hahn series. In the multiplicative case, a standard example is the action of non-negative rationals on an ordered field.

Main definitions

  • IsOrderedSMul : inequalities are preserved by scalar multiplication.
  • IsOrderedVAdd : inequalities are preserved by translation.
  • IsCancelSMul : the scalar multiplication version of cancellative multiplication
  • IsCancelVAdd : the vector addition version of cancellative addition
  • IsOrderedCancelSMul : inequalities are preserved and reflected by scalar multiplication.
  • IsOrderedCancelVAdd : inequalities are preserved and reflected by translation.

Instances

  • IsOrderedMonoid.toIsOrderedSMul
  • IsOrderedAddMonoid.toIsOrderedVAdd
  • IsOrderedSMul.toCovariantClassLeft
  • IsOrderedVAdd.toCovariantClassLeft
  • IsOrderedCancelSMul.toCancelSMul
  • IsOrderedCancelVAdd.toCancelVAdd
  • IsOrderedCancelMonoid.toIsOrderedCancelSMul
  • IsOrderedCancelAddMonoid.toIsOrderedCancelVAdd
  • IsOrderedCancelSMul.toContravariantClassLeft
  • IsOrderedCancelVAdd.toContravariantClassLeft

Implementation notes

  • Because these classes mix the algebra and order hierarchies, we write them as Prop-valued mixins.
  • Despite the file name, Ordered AddTorsors are not defined as a separate class. To implement them, combine [AddTorsor G P] with [IsOrderedCancelVAdd G P]

TODO

  • (lex) prod instances
  • Pi instances
  • WithTop (in a different file?)

class IsOrderedVAdd E1 #

(G : Type u_3) → (P : Type u_4) → [LE G] → [LE P] → [VAdd G P] → Prop

An ordered vector addition is a bi-monotone vector addition.

ctor IsOrderedVAdd.mk E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : LE G] [inst_1 : LE P] [inst_2 : VAdd G P],
  (∀ (a b : P), a ≤ b → ∀ (c : G), c +ᵥ a ≤ c +ᵥ b) →
    (∀ (c d : G), c ≤ d → ∀ (a : P), c +ᵥ a ≤ d +ᵥ a) → IsOrderedVAdd G P

theorem IsOrderedVAdd.vadd_le_vadd_left E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : VAdd G P} [self : IsOrderedVAdd G P] (a b : P),
  a ≤ b → ∀ (c : G), c +ᵥ a ≤ c +ᵥ b

theorem IsOrderedVAdd.vadd_le_vadd_right E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : VAdd G P} [self : IsOrderedVAdd G P] (c d : G),
  c ≤ d → ∀ (a : P), c +ᵥ a ≤ d +ᵥ a

class IsOrderedSMul E1 #

(G : Type u_3) → (P : Type u_4) → [LE G] → [LE P] → [SMul G P] → Prop

An ordered scalar multiplication is a bi-monotone scalar multiplication. Note that this is different from IsOrderedModule whose defining conditions are restricted to nonnegative elements.

ctor IsOrderedSMul.mk E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : LE G] [inst_1 : LE P] [inst_2 : SMul G P],
  (∀ (a b : P), a ≤ b → ∀ (c : G), c • a ≤ c • b) → (∀ (c d : G), c ≤ d → ∀ (a : P), c • a ≤ d • a) → IsOrderedSMul G P

theorem IsOrderedSMul.smul_le_smul_left E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : SMul G P} [self : IsOrderedSMul G P] (a b : P),
  a ≤ b → ∀ (c : G), c • a ≤ c • b

theorem IsOrderedSMul.smul_le_smul_right E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : SMul G P} [self : IsOrderedSMul G P] (c d : G),
  c ≤ d → ∀ (a : P), c • a ≤ d • a

instance instCovariantClassHVAddLeOfIsOrderedVAdd E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : LE P] [inst_2 : VAdd G P] [IsOrderedVAdd G P],
  CovariantClass G P (fun x1 x2 ↦ x1 +ᵥ x2) fun x1 x2 ↦ x1 ≤ x2

instance instCovariantClassHSMulLeOfIsOrderedSMul E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : LE P] [inst_2 : SMul G P] [IsOrderedSMul G P],
  CovariantClass G P (fun x1 x2 ↦ x1 • x2) fun x1 x2 ↦ x1 ≤ x2

instance instIsOrderedVAddOfIsOrderedAddMonoid E0 #

∀ {G : Type u_1} [inst : AddCommMonoid G] [inst_1 : Preorder G] [IsOrderedAddMonoid G], IsOrderedVAdd G G

instance instIsOrderedSMulOfIsOrderedMonoid E0 #

∀ {G : Type u_1} [inst : CommMonoid G] [inst_1 : Preorder G] [IsOrderedMonoid G], IsOrderedSMul G G

theorem IsOrderedSMul.smul_le_smul E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : Preorder P] [inst_2 : SMul G P] [IsOrderedSMul G P] {a b : G}
  {c d : P}, a ≤ b → c ≤ d → a • c ≤ b • d

theorem IsOrderedVAdd.vadd_le_vadd E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : Preorder P] [inst_2 : VAdd G P] [IsOrderedVAdd G P] {a b : G}
  {c d : P}, a ≤ b → c ≤ d → a +ᵥ c ≤ b +ᵥ d

theorem Monotone.smul E1 #

∀ {G : Type u_1} {P : Type u_2} {γ : Type u_3} [inst : Preorder G] [inst_1 : Preorder P] [inst_2 : Preorder γ]
  [inst_3 : SMul G P] [IsOrderedSMul G P] {f : γ → G} {g : γ → P}, Monotone f → Monotone g → Monotone fun x ↦ f x • g x

theorem Monotone.vadd E1 #

∀ {G : Type u_1} {P : Type u_2} {γ : Type u_3} [inst : Preorder G] [inst_1 : Preorder P] [inst_2 : Preorder γ]
  [inst_3 : VAdd G P] [IsOrderedVAdd G P] {f : γ → G} {g : γ → P}, Monotone f → Monotone g → Monotone fun x ↦ f x +ᵥ g x

class IsOrderedCancelVAdd E1 #

(G : Type u_3) → (P : Type u_4) → [LE G] → [LE P] → [VAdd G P] → Prop

An ordered cancellative vector addition is an ordered vector addition that is cancellative.

instance IsOrderedCancelVAdd.toIsOrderedVAdd E0 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : VAdd G P} [self : IsOrderedCancelVAdd G P],
  IsOrderedVAdd G P

ctor IsOrderedCancelVAdd.mk E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : LE G] [inst_1 : LE P] [inst_2 : VAdd G P] [toIsOrderedVAdd : IsOrderedVAdd G P],
  (∀ (a : G) (b c : P), a +ᵥ b ≤ a +ᵥ c → b ≤ c) →
    (∀ (a b : G) (c : P), a +ᵥ c ≤ b +ᵥ c → a ≤ b) → IsOrderedCancelVAdd G P

theorem IsOrderedCancelVAdd.le_of_vadd_le_vadd_left E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : VAdd G P} [self : IsOrderedCancelVAdd G P]
  (a : G) (b c : P), a +ᵥ b ≤ a +ᵥ c → b ≤ c

theorem IsOrderedCancelVAdd.le_of_vadd_le_vadd_right E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : VAdd G P} [self : IsOrderedCancelVAdd G P]
  (a b : G) (c : P), a +ᵥ c ≤ b +ᵥ c → a ≤ b

class IsOrderedCancelSMul E1 #

(G : Type u_3) → (P : Type u_4) → [LE G] → [LE P] → [SMul G P] → Prop

An ordered cancellative scalar multiplication is an ordered scalar multiplication that is cancellative.

ctor IsOrderedCancelSMul.mk E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : LE G] [inst_1 : LE P] [inst_2 : SMul G P] [toIsOrderedSMul : IsOrderedSMul G P],
  (∀ (a : G) (b c : P), a • b ≤ a • c → b ≤ c) → (∀ (a b : G) (c : P), a • c ≤ b • c → a ≤ b) → IsOrderedCancelSMul G P

instance IsOrderedCancelSMul.toIsOrderedSMul E0 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : SMul G P} [self : IsOrderedCancelSMul G P],
  IsOrderedSMul G P

theorem IsOrderedCancelSMul.le_of_smul_le_smul_left E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : SMul G P} [self : IsOrderedCancelSMul G P]
  (a : G) (b c : P), a • b ≤ a • c → b ≤ c

theorem IsOrderedCancelSMul.le_of_smul_le_smul_right E1 #

∀ {G : Type u_3} {P : Type u_4} {inst : LE G} {inst_1 : LE P} {inst_2 : SMul G P} [self : IsOrderedCancelSMul G P]
  (a b : G) (c : P), a • c ≤ b • c → a ≤ b

instance instIsCancelSMulOfIsOrderedCancelSMul E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : PartialOrder G] [inst_1 : PartialOrder P] [inst_2 : SMul G P]
  [IsOrderedCancelSMul G P], IsCancelSMul G P

instance instIsCancelVAddOfIsOrderedCancelVAdd E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : PartialOrder G] [inst_1 : PartialOrder P] [inst_2 : VAdd G P]
  [IsOrderedCancelVAdd G P], IsCancelVAdd G P

instance instIsOrderedCancelSMulOfIsOrderedCancelMonoid E0 #

∀ {G : Type u_1} [inst : CommMonoid G] [inst_1 : Preorder G] [IsOrderedCancelMonoid G], IsOrderedCancelSMul G G

instance instIsOrderedCancelVAddOfIsOrderedAddCancelMonoid E0 #

∀ {G : Type u_1} [inst : AddCommMonoid G] [inst_1 : Preorder G] [IsOrderedCancelAddMonoid G], IsOrderedCancelVAdd G G

instance instContravariantClassHVAddLeOfIsOrderedCancelVAdd E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : LE P] [inst_2 : VAdd G P] [IsOrderedCancelVAdd G P],
  ContravariantClass G P (fun x1 x2 ↦ x1 +ᵥ x2) fun x1 x2 ↦ x1 ≤ x2

instance instContravariantClassHSMulLeOfIsOrderedCancelSMul E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : LE P] [inst_2 : SMul G P] [IsOrderedCancelSMul G P],
  ContravariantClass G P (fun x1 x2 ↦ x1 • x2) fun x1 x2 ↦ x1 ≤ x2

theorem VAdd.vadd_lt_vadd_of_le_of_lt E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : Preorder P] [inst_2 : VAdd G P] [IsOrderedCancelVAdd G P]
  {a b : G} {c d : P}, a ≤ b → c < d → a +ᵥ c < b +ᵥ d

theorem SMul.smul_lt_smul_of_le_of_lt E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : LE G] [inst_1 : Preorder P] [inst_2 : SMul G P] [IsOrderedCancelSMul G P]
  {a b : G} {c d : P}, a ≤ b → c < d → a • c < b • d

theorem SMul.smul_lt_smul_of_lt_of_le E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Preorder G] [inst_1 : Preorder P] [inst_2 : SMul G P] [IsOrderedCancelSMul G P]
  {a b : G} {c d : P}, a < b → c ≤ d → a • c < b • d

theorem VAdd.vadd_lt_vadd_of_lt_of_le E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Preorder G] [inst_1 : Preorder P] [inst_2 : VAdd G P] [IsOrderedCancelVAdd G P]
  {a b : G} {c d : P}, a < b → c ≤ d → a +ᵥ c < b +ᵥ d