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 / V05. Groups

Mathlib.Algebra.Torsor.Defs

77 declarations and 1 deprecated aliases. Mathlib docs · Source

Torsors of group actions

This file defines torsors of additive and multiplicative group actions.

Notation

The group elements are referred to as acting on points. This file uses the notation +ᵥ for adding a group element to a point and -ᵥ for subtracting two points to produce a group element, as well as • and /ₛ for the corresponding operations in multiplicative torsors.

Implementation notes

Affine spaces are a motivating example of additive torsors. Additional simply transitive actions which give rise to torsors include the action of the Weyl group on Weyl chambers, the action of non-zero scalars on the non-vanishing elements of the top exterior power of a finite-dimensional vector space, the action of the general linear group of a vector space on the bases of that space, and the monodromy action of the fundamental group of a space on a fibre of its universal cover. Both the additive and multiplicative notation will be useful to formalise such examples.

Notation

  • v +ᵥ p is a notation for VAdd.vadd, the left action of an additive monoid;
  • p₁ -ᵥ p₂ is a notation for VSub.vsub, the difference between two points in an additive torsor as an element of the corresponding additive group;
  • v • p is a notation for SMul.smul, the left action of a multiplicative monoid;
  • p₁ /ₛ p₂ is a notation for SDiv.sdiv, the quotient of two points in a multiplicative torsor as an element of the corresponding multiplicative group;

References

  • https://en.wikipedia.org/wiki/Principal_homogeneous_space
  • https://en.wikipedia.org/wiki/Affine_space

def Torsor.ctorIdx E1 #

{G : outParam (Type u_1)} → {P : Type u_2} → {inst : Group G} → Torsor G P → ℕ

def AddTorsor.ctorIdx E1 #

{G : outParam (Type u_1)} → {P : Type u_2} → {inst : AddGroup G} → AddTorsor G P → ℕ

class AddTorsor E3 #

(G : outParam (Type u_1)) → Type u_2 → [AddGroup G] → Type (max u_1 u_2)

An AddTorsor G P gives a structure to the nonempty type P, acted on by an AddGroup G with a transitive and free action given by the +ᵥ operation and a corresponding subtraction given by the -ᵥ operation. In the case of a vector space, it is an affine space.

ctor AddTorsor.mk E0 #

{G : outParam (Type u_1)} →
  {P : Type u_2} →
    [inst : AddGroup G] →
      [toAddAction : AddAction G P] →
        [toVSub : VSub G P] →
          [nonempty : Nonempty P] →
            (∀ (p₁ p₂ : P), (p₁ -ᵥ p₂) +ᵥ p₂ = p₁) → (∀ (g : G) (p : P), (g +ᵥ p) -ᵥ p = g) → AddTorsor G P

instance AddTorsor.toVSub E0 #

{G : outParam (Type u_1)} → {P : Type u_2} → {inst : AddGroup G} → [self : AddTorsor G P] → VSub G P

instance AddTorsor.toAddAction E0 #

{G : outParam (Type u_1)} → {P : Type u_2} → {inst : AddGroup G} → [self : AddTorsor G P] → AddAction G P

instance AddTorsor.nonempty E0 #

∀ {G : outParam (Type u_1)} {P : Type u_2} {inst : AddGroup G} [self : AddTorsor G P], Nonempty P

theorem AddTorsor.vsub_vadd' E1 #

∀ {G : outParam (Type u_1)} {P : Type u_2} {inst : AddGroup G} [self : AddTorsor G P] (p₁ p₂ : P), (p₁ -ᵥ p₂) +ᵥ p₂ = p₁

Torsor subtraction and addition with the same element cancels out.

theorem AddTorsor.vadd_vsub' E1 #

∀ {G : outParam (Type u_1)} {P : Type u_2} {inst : AddGroup G} [self : AddTorsor G P] (g : G) (p : P), (g +ᵥ p) -ᵥ p = g

Torsor addition and subtraction with the same element cancels out.

class Torsor E1 #

(G : outParam (Type u_1)) → Type u_2 → [Group G] → Type (max u_1 u_2)

A Torsor G P gives a structure to the nonempty type P, acted on by a Group G with a transitive and free action given by the • operation and a corresponding division given by the /ₛ operation.

instance Torsor.toMulAction E0 #

{G : outParam (Type u_1)} → {P : Type u_2} → {inst : Group G} → [self : Torsor G P] → MulAction G P

instance Torsor.toSDiv E0 #

{G : outParam (Type u_1)} → {P : Type u_2} → {inst : Group G} → [self : Torsor G P] → SDiv G P

ctor Torsor.mk E0 #

{G : outParam (Type u_1)} →
  {P : Type u_2} →
    [inst : Group G] →
      [toMulAction : MulAction G P] →
        [toSDiv : SDiv G P] →
          [nonempty : Nonempty P] →
            (∀ (p₁ p₂ : P), (p₁ /ₛ p₂) • p₂ = p₁) → (∀ (g : G) (p : P), g • p /ₛ p = g) → Torsor G P

instance Torsor.nonempty E0 #

∀ {G : outParam (Type u_1)} {P : Type u_2} {inst : Group G} [self : Torsor G P], Nonempty P

theorem Torsor.sdiv_smul' E1 #

∀ {G : outParam (Type u_1)} {P : Type u_2} {inst : Group G} [self : Torsor G P] (p₁ p₂ : P), (p₁ /ₛ p₂) • p₂ = p₁

Scalar division and multiplication with the same element cancels out.

theorem Torsor.smul_sdiv' E1 #

∀ {G : outParam (Type u_1)} {P : Type u_2} {inst : Group G} [self : Torsor G P] (g : G) (p : P), g • p /ₛ p = g

Scalar multiplication and division with the same element cancels out.

instance Group.instTorsor E0 #

(G : Type u_1) → [inst : Group G] → Torsor G G

A Group G is a torsor for itself.

instance AddGroup.instAddTorsor E0 #

(G : Type u_1) → [inst : AddGroup G] → AddTorsor G G

An AddGroup G is a torsor for itself.

theorem sdiv_eq_div E0 #

∀ {G : Type u_1} [inst : Group G] (g₁ g₂ : G), g₁ /ₛ g₂ = g₁ / g₂

Simplify division for a torsor for a Group G over itself.

theorem vsub_eq_sub E0 #

∀ {G : Type u_1} [inst : AddGroup G] (g₁ g₂ : G), g₁ -ᵥ g₂ = g₁ - g₂

Simplify subtraction for a torsor for an AddGroup G over itself.

theorem sdiv_smul E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (p₁ p₂ : P), (p₁ /ₛ p₂) • p₂ = p₁

Scalar multiplying the result of dividing another point produces that point.

theorem vsub_vadd E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (p₁ p₂ : P), (p₁ -ᵥ p₂) +ᵥ p₂ = p₁

Adding the result of subtracting from another point produces that point.

theorem smul_sdiv E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (g : G) (p : P), g • p /ₛ p = g

Multiplying by a group element then dividing by the original point produces that group element.

theorem vadd_vsub E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (g : G) (p : P), (g +ᵥ p) -ᵥ p = g

Adding a group element then subtracting the original point produces that group element.

theorem smul_right_cancel E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] {g₁ g₂ : G} (p : P), g₁ • p = g₂ • p → g₁ = g₂

If the same point multiplied with two group elements produces equal results, those group elements are equal.

theorem vadd_right_cancel E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] {g₁ g₂ : G} (p : P), g₁ +ᵥ p = g₂ +ᵥ p → g₁ = g₂

If the same point added to two group elements produces equal results, those group elements are equal.

theorem vadd_right_cancel_iff E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] {g₁ g₂ : G} (p : P), g₁ +ᵥ p = g₂ +ᵥ p ↔ g₁ = g₂

theorem smul_right_cancel_iff E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] {g₁ g₂ : G} (p : P), g₁ • p = g₂ • p ↔ g₁ = g₂

theorem smul_right_injective' E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (p : P), Function.Injective fun x ↦ x • p

Multiplying a group element with the point p is an injective function.

theorem vadd_right_injective E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (p : P), Function.Injective fun x ↦ x +ᵥ p

Adding a group element to the point p is an injective function.

theorem smul_sdiv_assoc E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (g : G) (p₁ p₂ : P), g • p₁ /ₛ p₂ = g * (p₁ /ₛ p₂)

Multiplying a group element with a point, then dividing by another point, produces the same result as dividing the points then multiplying the group element.

theorem vadd_vsub_assoc E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (g : G) (p₁ p₂ : P),
  (g +ᵥ p₁) -ᵥ p₂ = g + (p₁ -ᵥ p₂)

Adding a group element to a point, then subtracting another point, produces the same result as subtracting the points then adding the group element.

theorem sdiv_self E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (p : P), p /ₛ p = 1

Dividing a point by itself produces 1.

theorem vsub_self E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (p : P), p -ᵥ p = 0

Subtracting a point from itself produces 0.

theorem sdiv_eq_one_iff_eq E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] {p₁ p₂ : P}, p₁ /ₛ p₂ = 1 ↔ p₁ = p₂

Dividing two points produces 1 if and only if they are equal.

theorem vsub_eq_zero_iff_eq E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] {p₁ p₂ : P}, p₁ -ᵥ p₂ = 0 ↔ p₁ = p₂

Subtracting two points produces 0 if and only if they are equal.

theorem vsub_ne_zero E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] {p q : P}, p -ᵥ q ≠ 0 ↔ p ≠ q

theorem sdiv_ne_one E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] {p q : P}, p /ₛ q ≠ 1 ↔ p ≠ q

theorem sdiv_mul_sdiv_cancel E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (p₁ p₂ p₃ : P), (p₁ /ₛ p₂) * (p₂ /ₛ p₃) = p₁ /ₛ p₃

Cancellation multiplying the results of two divisions.

theorem vsub_add_vsub_cancel E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (p₁ p₂ p₃ : P), p₁ -ᵥ p₂ + (p₂ -ᵥ p₃) = p₁ -ᵥ p₃

Cancellation adding the results of two subtractions.

theorem inv_sdiv_eq_sdiv_rev E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (p₁ p₂ : P), (p₁ /ₛ p₂)⁻¹ = p₂ /ₛ p₁

Dividing two points in the reverse order produces the inverse of dividing them.

theorem neg_vsub_eq_vsub_rev E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (p₁ p₂ : P), -(p₁ -ᵥ p₂) = p₂ -ᵥ p₁

Subtracting two points in the reverse order produces the negation of subtracting them.

theorem smul_sdiv_eq_div_sdiv E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (g : G) (p q : P), g • p /ₛ q = g / (q /ₛ p)

theorem vadd_vsub_eq_sub_vsub E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (g : G) (p q : P), (g +ᵥ p) -ᵥ q = g - (q -ᵥ p)

theorem sdiv_smul_eq_sdiv_div E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (p₁ p₂ : P) (g : G), p₁ /ₛ g • p₂ = (p₁ /ₛ p₂) / g

Dividing by the result of multiplying with a group element produces the same result as dividing the points and dividing by that group element.

theorem vsub_vadd_eq_vsub_sub E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (p₁ p₂ : P) (g : G),
  p₁ -ᵥ (g +ᵥ p₂) = p₁ -ᵥ p₂ - g

Subtracting the result of adding a group element produces the same result as subtracting the points and subtracting that group element.

theorem sdiv_div_sdiv_cancel_right E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (p₁ p₂ p₃ : P), (p₁ /ₛ p₃) / (p₂ /ₛ p₃) = p₁ /ₛ p₂

Cancellation dividing the results of two divisions.

theorem vsub_sub_vsub_cancel_right E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (p₁ p₂ p₃ : P), p₁ -ᵥ p₃ - (p₂ -ᵥ p₃) = p₁ -ᵥ p₂

Cancellation subtracting the results of two subtractions.

theorem vadd_eq_vadd_iff_neg_add_eq_vsub E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] {v₁ v₂ : G} {p₁ p₂ : P},
  v₁ +ᵥ p₁ = v₂ +ᵥ p₂ ↔ -v₁ + v₂ = p₁ -ᵥ p₂

theorem smul_eq_smul_iff_inv_mul_eq_sdiv E1 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] {v₁ v₂ : G} {p₁ p₂ : P},
  v₁ • p₁ = v₂ • p₂ ↔ v₁⁻¹ * v₂ = p₁ /ₛ p₂

theorem smul_sdiv_smul_cancel_right E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [T : Torsor G P] (v₁ v₂ : G) (p : P), v₁ • p /ₛ v₂ • p = v₁ / v₂

theorem vadd_vsub_vadd_cancel_right E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [T : AddTorsor G P] (v₁ v₂ : G) (p : P),
  (v₁ +ᵥ p) -ᵥ (v₂ +ᵥ p) = v₁ - v₂

def Equiv.smulConst E1 #

{G : Type u_1} → {P : Type u_2} → [inst : Group G] → [Torsor G P] → P → G ≃ P

v ↦ v • p as an equivalence.

def Equiv.vaddConst E1 #

{G : Type u_1} → {P : Type u_2} → [inst : AddGroup G] → [AddTorsor G P] → P → G ≃ P

v ↦ v +ᵥ p as an equivalence.

theorem Equiv.coe_vaddConst E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [inst_1 : AddTorsor G P] (p : P),
  ⇑(Equiv.vaddConst p) = fun v ↦ v +ᵥ p

theorem Equiv.coe_smulConst E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [inst_1 : Torsor G P] (p : P), ⇑(Equiv.smulConst p) = fun v ↦ v • p

theorem Equiv.coe_smulConst_symm E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [inst_1 : Torsor G P] (p : P),
  ⇑(Equiv.smulConst p).symm = fun p' ↦ p' /ₛ p

theorem Equiv.coe_vaddConst_symm E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [inst_1 : AddTorsor G P] (p : P),
  ⇑(Equiv.vaddConst p).symm = fun p' ↦ p' -ᵥ p

def Equiv.constSDiv E1 #

{G : Type u_1} → {P : Type u_2} → [inst : Group G] → [Torsor G P] → P → P ≃ G

p' ↦ p /ₛ p' as an equivalence.

def Equiv.constVSub E1 #

{G : Type u_1} → {P : Type u_2} → [inst : AddGroup G] → [AddTorsor G P] → P → P ≃ G

p' ↦ p -ᵥ p' as an equivalence.

theorem Equiv.coe_constSDiv E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [inst_1 : Torsor G P] (p : P), ⇑(Equiv.constSDiv p) = fun x ↦ p /ₛ x

theorem Equiv.coe_constVSub E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [inst_1 : AddTorsor G P] (p : P),
  ⇑(Equiv.constVSub p) = fun x ↦ p -ᵥ x

theorem Equiv.coe_constVSub_symm E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : AddGroup G] [inst_1 : AddTorsor G P] (p : P),
  ⇑(Equiv.constVSub p).symm = fun v ↦ -v +ᵥ p

theorem Equiv.coe_constSDiv_symm E0 #

∀ {G : Type u_1} {P : Type u_2} [inst : Group G] [inst_1 : Torsor G P] (p : P),
  ⇑(Equiv.constSDiv p).symm = fun v ↦ v⁻¹ • p

def Equiv.constSMul E1 #

{G : Type u_1} → (P : Type u_2) → [inst : Group G] → [Torsor G P] → G → Equiv.Perm P

The permutation given by p ↦ v • p.

def Equiv.constVAdd E1 #

{G : Type u_1} → (P : Type u_2) → [inst : AddGroup G] → [AddTorsor G P] → G → Equiv.Perm P

The permutation given by p ↦ v +ᵥ p.

theorem Equiv.coe_constSMul E0 #

∀ {G : Type u_1} (P : Type u_2) [inst : Group G] [inst_1 : Torsor G P] (v : G), ⇑(Equiv.constSMul P v) = fun x ↦ v • x

theorem Equiv.coe_constVAdd E0 #

∀ {G : Type u_1} (P : Type u_2) [inst : AddGroup G] [inst_1 : AddTorsor G P] (v : G),
  ⇑(Equiv.constVAdd P v) = fun x ↦ v +ᵥ x

def Equiv.pointReflection E1 #

{G : Type u_3} → {P : Type u_4} → [inst : AddGroup G] → [AddTorsor G P] → P → Equiv.Perm P

Point reflection in x as a permutation.

theorem Equiv.pointReflection_apply E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : AddGroup G] [inst_1 : AddTorsor G P] (x y : P),
  (Equiv.pointReflection x) y = (x -ᵥ y) +ᵥ x

theorem Equiv.pointReflection_vsub_left E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : AddGroup G] [inst_1 : AddTorsor G P] (x y : P),
  (Equiv.pointReflection x) y -ᵥ x = x -ᵥ y

theorem Equiv.pointReflection_vsub_right E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : AddGroup G] [inst_1 : AddTorsor G P] (x y : P),
  (Equiv.pointReflection x) y -ᵥ y = 2 • (x -ᵥ y)

theorem Equiv.pointReflection_symm E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : AddGroup G] [inst_1 : AddTorsor G P] (x : P),
  Equiv.symm (Equiv.pointReflection x) = Equiv.pointReflection x

theorem Equiv.pointReflection_self E0 #

∀ {G : Type u_3} {P : Type u_4} [inst : AddGroup G] [inst_1 : AddTorsor G P] (x : P), (Equiv.pointReflection x) x = x

theorem Equiv.pointReflection_involutive E1 #

∀ {G : Type u_3} {P : Type u_4} [inst : AddGroup G] [inst_1 : AddTorsor G P] (x : P),
  Function.Involutive ⇑(Equiv.pointReflection x)

theorem AddTorsor.subsingleton_iff E0 #

∀ (G : Type u_1) (P : Type u_2) [inst : AddGroup G] [AddTorsor G P], Subsingleton G ↔ Subsingleton P

theorem Torsor.subsingleton_iff E0 #

∀ (G : Type u_1) (P : Type u_2) [inst : Group G] [Torsor G P], Subsingleton G ↔ Subsingleton P

Deprecated aliases

NameNew nameSince
addGroupIsAddTorsorAddGroup.instAddTorsor2026-05-04