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.LinearAlgebra.AffineSpace.Basis

59 declarations and 2 deprecated aliases. Mathlib docs · Source

Affine bases and barycentric coordinates

Suppose P is an affine space modelled on the module V over the ring k, and p : ι → P is an affine-independent family of points spanning P. Given this data, each point q : P may be written uniquely as an affine combination: q = w₀ p₀ + w₁ p₁ + ⋯ for some (finitely-supported) weights wᵢ. For each i : ι, we thus have an affine map P →ᵃ[k] k, namely q ↦ wᵢ. This family of maps is known as the family of barycentric coordinates. It is defined in this file.

The construction

Fixing i : ι, and allowing j : ι to range over the values j ≠ i, we obtain a basis bᵢ of V defined by bᵢ j = p j -ᵥ p i. Let fᵢ j : V →ₗ[k] k be the corresponding dual basis and let fᵢ = ∑ j, fᵢ j : V →ₗ[k] k be the corresponding "sum of all coordinates" form. Then the ith barycentric coordinate of q : P is 1 - fᵢ (q -ᵥ p i).

Main definitions

  • fintypeAffineCoords: the AffineSubspace of ι → k (for Fintype ι) where coordinates sum to 1.
  • finsuppAffineCoords: the AffineSubspace of ι →₀ k where coordinates sum to 1.
  • AffineBasis: a structure representing an affine basis of an affine space.
  • AffineBasis.coord: the map P →ᵃ[k] k corresponding to i : ι.
  • AffineBasis.coord_apply_eq: the behaviour of AffineBasis.coord i on p i.
  • AffineBasis.coord_apply_ne: the behaviour of AffineBasis.coord i on p j when j ≠ i.
  • AffineBasis.coord_apply: the behaviour of AffineBasis.coord i on p j for general j.
  • AffineBasis.coord_apply_combination: the characterisation of AffineBasis.coord i in terms of affine combinations, i.e., AffineBasis.coord i (w₀ p₀ + w₁ p₁ + ⋯) = wᵢ.

TODO

  • Construct the affine equivalence between P and finsuppAffineCoords ι k.

def AffineBasis.ctorIdx E1 #

{ι : Type u₁} →
  {k : Type u₂} →
    {V : Type u₃} →
      {P : Type u₄} →
        {inst : AddCommGroup V} →
          {inst_1 : AddTorsor V P} → {inst_2 : Ring k} → {inst_3 : Module k V} → AffineBasis ι k P → ℕ

theorem AffineBasis.mk.inj E1 #

∀ {ι : Type u₁} {k : Type u₂} {V : Type u₃} {P : Type u₄} {inst : AddCommGroup V} {inst_1 : AddTorsor V P}
  {inst_2 : Ring k} {inst_3 : Module k V} {toFun : ι → P} {ind' : AffineIndependent k toFun}
  {tot' : affineSpan k (Set.range toFun) = ⊤} {toFun_1 : ι → P} {ind'_1 : AffineIndependent k toFun_1}
  {tot'_1 : affineSpan k (Set.range toFun_1) = ⊤},
  { toFun := toFun, ind' := ind', tot' := tot' } = { toFun := toFun_1, ind' := ind'_1, tot' := tot'_1 } →
    toFun = toFun_1

theorem AffineBasis.mk.injEq E0 #

∀ {ι : Type u₁} {k : Type u₂} {V : Type u₃} {P : Type u₄} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (toFun : ι → P) (ind' : AffineIndependent k toFun)
  (tot' : affineSpan k (Set.range toFun) = ⊤) (toFun_1 : ι → P) (ind'_1 : AffineIndependent k toFun_1)
  (tot'_1 : affineSpan k (Set.range toFun_1) = ⊤),
  ({ toFun := toFun, ind' := ind', tot' := tot' } = { toFun := toFun_1, ind' := ind'_1, tot' := tot'_1 }) =
    (toFun = toFun_1)

def fintypeAffineCoords E3 #

(ι : Type u_1) → (k : Type u_2) → [inst : Ring k] → [Fintype ι] → AffineSubspace k (ι → k)

The space of coordinates for affine combinations indexed by a Fintype.

theorem mem_fintypeAffineCoords_iff_sum E0 #

∀ {ι : Type u_1} {k : Type u_2} [inst : Ring k] [inst_1 : Fintype ι] {w : ι → k},
  w ∈ fintypeAffineCoords ι k ↔ ∑ i, w i = 1

theorem AffineIndependent.injOn_affineCombination_fintypeAffineCoords E1 #

∀ {ι : Type u_1} {k : Type u_2} {V : Type u_3} {P : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V]
  [inst_2 : Module k V] [inst_3 : AddTorsor V P] [inst_4 : Fintype ι] {p : ι → P},
  AffineIndependent k p → Set.InjOn ⇑(Finset.affineCombination k Finset.univ p) ↑(fintypeAffineCoords ι k)

def finsuppAffineCoords E3 #

(ι : Type u_1) → (k : Type u_2) → [inst : Ring k] → AffineSubspace k (ι →₀ k)

The space of coordinates for affine combinations indexed by a general type.

theorem mem_finsuppAffineCoords_iff_linearCombination E0 #

∀ {ι : Type u_1} {k : Type u_2} [inst : Ring k] {w : ι →₀ k},
  w ∈ finsuppAffineCoords ι k ↔ (Finsupp.linearCombination k 1) w = 1

structure AffineBasis E3 #

Type u₁ →
  (k : Type u₂) →
    {V : Type u₃} →
      (P : Type u₄) → [inst : AddCommGroup V] → [AddTorsor V P] → [inst_2 : Ring k] → [Module k V] → Type (max u₁ u₄)

An affine basis is a family of affine-independent points whose span is the top subspace.

ctor AffineBasis.mk E0 #

{ι : Type u₁} →
  {k : Type u₂} →
    {V : Type u₃} →
      {P : Type u₄} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] →
            [inst_2 : Ring k] →
              [inst_3 : Module k V] →
                (toFun : ι → P) → AffineIndependent k toFun → affineSpan k (Set.range toFun) = ⊤ → AffineBasis ι k P

abbrev AffineBasis.toFun E1 #

{ι : Type u₁} →
  {k : Type u₂} →
    {V : Type u₃} →
      {P : Type u₄} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] → [inst_2 : Ring k] → [inst_3 : Module k V] → AffineBasis ι k P → ι → P

The underlying family of points.

Do NOT use directly. Use the coercion instead.

theorem AffineBasis.ind' E1 #

∀ {ι : Type u₁} {k : Type u₂} {V : Type u₃} {P : Type u₄} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (self : AffineBasis ι k P), AffineIndependent k self.toFun

theorem AffineBasis.tot' E1 #

∀ {ι : Type u₁} {k : Type u₂} {V : Type u₃} {P : Type u₄} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (self : AffineBasis ι k P), affineSpan k (Set.range self.toFun) = ⊤

instance AffineBasis.instInhabitedPUnit E0 #

{k : Type u_5} → [inst : Ring k] → Inhabited (AffineBasis PUnit.{u_8 + 1} k PUnit.{u_8 + 1})

The unique point in a single-point space is the simplest example of an affine basis.

instance AffineBasis.instFunLike E0 #

{ι : Type u_1} →
  {k : Type u_5} →
    {V : Type u_6} →
      {P : Type u_7} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] → [inst_2 : Ring k] → [inst_3 : Module k V] → FunLike (AffineBasis ι k P) ι P

theorem AffineBasis.ext E1 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] {b₁ b₂ : AffineBasis ι k P}, ⇑b₁ = ⇑b₂ → b₁ = b₂

theorem AffineBasis.ext_iff E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] {b₁ b₂ : AffineBasis ι k P}, b₁ = b₂ ↔ ⇑b₁ = ⇑b₂

theorem AffineBasis.ind E1 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P), AffineIndependent k ⇑b

theorem AffineBasis.tot E1 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P), affineSpan k (Set.range ⇑b) = ⊤

theorem AffineBasis.nonempty E1 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P), Nonempty ι

def AffineBasis.reindex E1 #

{ι : Type u_1} →
  {ι' : Type u_2} →
    {k : Type u_5} →
      {V : Type u_6} →
        {P : Type u_7} →
          [inst : AddCommGroup V] →
            [inst_1 : AddTorsor V P] →
              [inst_2 : Ring k] → [inst_3 : Module k V] → AffineBasis ι k P → ι ≃ ι' → AffineBasis ι' k P

Composition of an affine basis and an equivalence of index types.

theorem AffineBasis.coe_reindex E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V]
  [inst_1 : AddTorsor V P] [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (e : ι ≃ ι'),
  ⇑(b.reindex e) = ⇑b ∘ ⇑e.symm

theorem AffineBasis.reindex_apply E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V]
  [inst_1 : AddTorsor V P] [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (e : ι ≃ ι') (i' : ι'),
  (b.reindex e) i' = b (e.symm i')

theorem AffineBasis.reindex_refl E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P), b.reindex (Equiv.refl ι) = b

def AffineBasis.basisOf E1 #

{ι : Type u_1} →
  {k : Type u_5} →
    {V : Type u_6} →
      {P : Type u_7} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] →
            [inst_2 : Ring k] → [inst_3 : Module k V] → AffineBasis ι k P → (i : ι) → Module.Basis { j // j ≠ i } k V

Given an affine basis for an affine space P, if we single out one member of the family, we obtain a linear basis for the model space V.

The linear basis corresponding to the singled-out member i : ι is indexed by {j : ι // j ≠ i} and its jth element is b j -ᵥ b i. (See basisOf_apply.)

theorem AffineBasis.basisOf_apply E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (i : ι) (j : { j // j ≠ i }),
  (b.basisOf i) j = b ↑j -ᵥ b i

theorem AffineBasis.basisOf_reindex E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V]
  [inst_1 : AddTorsor V P] [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (e : ι ≃ ι') (i : ι'),
  (b.reindex e).basisOf i = (b.basisOf (e.symm i)).reindex (e.subtypeEquiv ⋯)

def AffineBasis.coord E3 #

{ι : Type u_1} →
  {k : Type u_5} →
    {V : Type u_6} →
      {P : Type u_7} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] → [inst_2 : Ring k] → [inst_3 : Module k V] → AffineBasis ι k P → ι → P →ᵃ[k] k

The ith barycentric coordinate of a point.

theorem AffineBasis.linear_eq_sumCoords E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (i : ι), (b.coord i).linear = -(b.basisOf i).sumCoords

theorem AffineBasis.coord_reindex E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V]
  [inst_1 : AddTorsor V P] [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (e : ι ≃ ι') (i : ι'),
  (b.reindex e).coord i = b.coord (e.symm i)

theorem AffineBasis.coord_apply_eq E3 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (i : ι), (b.coord i) (b i) = 1

theorem AffineBasis.coord_apply_ne E3 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) {i j : ι}, i ≠ j → (b.coord i) (b j) = 0

theorem AffineBasis.coord_apply E3 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) [inst_4 : DecidableEq ι] (i j : ι),
  (b.coord i) (b j) = if i = j then 1 else 0

theorem AffineBasis.coord_apply_combination_of_mem E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) {s : Finset ι} {i : ι},
  i ∈ s → ∀ {w : ι → k}, s.sum w = 1 → (b.coord i) ((Finset.affineCombination k s ⇑b) w) = w i

theorem AffineBasis.coord_apply_combination_of_notMem E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) {s : Finset ι} {i : ι},
  i ∉ s → ∀ {w : ι → k}, s.sum w = 1 → (b.coord i) ((Finset.affineCombination k s ⇑b) w) = 0

theorem AffineBasis.sum_coord_apply_eq_one E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) [inst_4 : Fintype ι] (q : P), ∑ i, (b.coord i) q = 1

theorem AffineBasis.affineCombination_coord_eq_self E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) [inst_4 : Fintype ι] (q : P),
  ((Finset.affineCombination k Finset.univ ⇑b) fun i ↦ (b.coord i) q) = q

theorem AffineBasis.linear_combination_coord_eq_self E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} [inst : AddCommGroup V] [inst_1 : Ring k] [inst_2 : Module k V]
  [inst_3 : Fintype ι] (b : AffineBasis ι k V) (v : V), ∑ i, (b.coord i) v • b i = v

A variant of AffineBasis.affineCombination_coord_eq_self for the special case when the affine space is a module so we can talk about linear combinations.

theorem AffineBasis.ext_elem E1 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) [Finite ι] {q₁ q₂ : P},
  (∀ (i : ι), (b.coord i) q₁ = (b.coord i) q₂) → q₁ = q₂

theorem AffineBasis.coe_coord_of_subsingleton_eq_one E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) [Subsingleton ι] (i : ι), ⇑(b.coord i) = 1

theorem AffineBasis.surjective_coord E1 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) [Nontrivial ι] (i : ι),
  Function.Surjective ⇑(b.coord i)

def AffineBasis.coords E1 #

{ι : Type u_1} →
  {k : Type u_5} →
    {V : Type u_6} →
      {P : Type u_7} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] → [inst_2 : Ring k] → [inst_3 : Module k V] → AffineBasis ι k P → P →ᵃ[k] ι → k

Barycentric coordinates as an affine map.

theorem AffineBasis.coords_apply E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (b : AffineBasis ι k P) (q : P) (i : ι), b.coords q i = (b.coord i) q

instance AffineBasis.instVAdd E0 #

{ι : Type u_1} →
  {k : Type u_5} →
    {V : Type u_6} →
      {P : Type u_7} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] → [inst_2 : Ring k] → [inst_3 : Module k V] → VAdd V (AffineBasis ι k P)

instance AffineBasis.instIsVAddApply E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V], IsVAddApply V (AffineBasis ι k P)

theorem AffineBasis.basisOf_vadd E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] (v : V) (b : AffineBasis ι k P), (v +ᵥ b).basisOf = b.basisOf

instance AffineBasis.instAddAction E0 #

{ι : Type u_1} →
  {k : Type u_5} →
    {V : Type u_6} →
      {P : Type u_7} →
        [inst : AddCommGroup V] →
          [inst_1 : AddTorsor V P] → [inst_2 : Ring k] → [inst_3 : Module k V] → AddAction V (AffineBasis ι k P)

theorem AffineBasis.coord_vadd E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : Ring k] [inst_3 : Module k V] {i : ι} (v : V) (b : AffineBasis ι k P),
  (v +ᵥ b).coord i = (b.coord i).comp ↑(AffineEquiv.constVAdd k P v).symm

instance AffineBasis.instSMul E0 #

{ι : Type u_1} →
  {G : Type u_3} →
    {k : Type u_5} →
      {V : Type u_6} →
        [inst : AddCommGroup V] →
          [inst_1 : Ring k] →
            [inst_2 : Module k V] →
              [inst_3 : Group G] → [inst_4 : DistribMulAction G V] → [SMulCommClass G k V] → SMul G (AffineBasis ι k V)

In an affine space that is also a vector space, an AffineBasis can be scaled.

TODO: generalize to include SMul (P ≃ᵃ[k] P) (AffineBasis ι k P), which acts on P with a VAdd version of a DistribMulAction.

instance AffineBasis.instIsSMulApply E0 #

∀ {ι : Type u_1} {G : Type u_3} {k : Type u_5} {V : Type u_6} [inst : AddCommGroup V] [inst_1 : Ring k]
  [inst_2 : Module k V] [inst_3 : Group G] [inst_4 : DistribMulAction G V] [inst_5 : SMulCommClass G k V],
  IsSMulApply G (AffineBasis ι k V)

instance AffineBasis.instSMulCommClass E0 #

∀ {ι : Type u_1} {G : Type u_3} {G' : Type u_4} {k : Type u_5} {V : Type u_6} [inst : AddCommGroup V] [inst_1 : Ring k]
  [inst_2 : Module k V] [inst_3 : Group G] [inst_4 : Group G'] [inst_5 : DistribMulAction G V]
  [inst_6 : DistribMulAction G' V] [inst_7 : SMulCommClass G k V] [inst_8 : SMulCommClass G' k V]
  [SMulCommClass G G' V], SMulCommClass G G' (AffineBasis ι k V)

TODO: generalize to include SMul (P ≃ᵃ[k] P) (AffineBasis ι k P), which acts on P with a VAdd version of a DistribMulAction.

instance AffineBasis.instIsScalarTower E0 #

∀ {ι : Type u_1} {G : Type u_3} {G' : Type u_4} {k : Type u_5} {V : Type u_6} [inst : AddCommGroup V] [inst_1 : Ring k]
  [inst_2 : Module k V] [inst_3 : Group G] [inst_4 : Group G'] [inst_5 : DistribMulAction G V]
  [inst_6 : DistribMulAction G' V] [inst_7 : SMulCommClass G k V] [inst_8 : SMulCommClass G' k V] [inst_9 : SMul G G']
  [IsScalarTower G G' V], IsScalarTower G G' (AffineBasis ι k V)

TODO: generalize to include SMul (P ≃ᵃ[k] P) (AffineBasis ι k P), which acts on P with a VAdd version of a DistribMulAction.

theorem AffineBasis.basisOf_smul E0 #

∀ {ι : Type u_1} {G : Type u_3} {k : Type u_5} {V : Type u_6} [inst : AddCommGroup V] [inst_1 : Ring k]
  [inst_2 : Module k V] [inst_3 : Group G] [inst_4 : DistribMulAction G V] [inst_5 : SMulCommClass G k V] (a : G)
  (b : AffineBasis ι k V) (i : ι), (a • b).basisOf i = a • b.basisOf i

theorem AffineBasis.reindex_smul E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {G : Type u_3} {k : Type u_5} {V : Type u_6} [inst : AddCommGroup V] [inst_1 : Ring k]
  [inst_2 : Module k V] [inst_3 : Group G] [inst_4 : DistribMulAction G V] [inst_5 : SMulCommClass G k V] (a : G)
  (b : AffineBasis ι k V) (e : ι ≃ ι'), (a • b).reindex e = a • b.reindex e

theorem AffineBasis.coord_smul E0 #

∀ {ι : Type u_1} {G : Type u_3} {k : Type u_5} {V : Type u_6} [inst : AddCommGroup V] [inst_1 : Ring k]
  [inst_2 : Module k V] [inst_3 : Group G] [inst_4 : DistribMulAction G V] [inst_5 : SMulCommClass G k V] (a : G)
  (b : AffineBasis ι k V) (i : ι),
  (a • b).coord i = (b.coord i).comp (↑(DistribMulAction.toLinearEquiv k V a).symm).toAffineMap

instance AffineBasis.instMulAction E0 #

{ι : Type u_1} →
  {G : Type u_3} →
    {k : Type u_5} →
      {V : Type u_6} →
        [inst : AddCommGroup V] →
          [inst_1 : Ring k] →
            [inst_2 : Module k V] →
              [inst_3 : Group G] →
                [inst_4 : DistribMulAction G V] → [SMulCommClass G k V] → MulAction G (AffineBasis ι k V)

TODO: generalize to include SMul (P ≃ᵃ[k] P) (AffineBasis ι k P), which acts on P with a VAdd version of a DistribMulAction.

theorem AffineBasis.coord_apply_centroid E0 #

∀ {ι : Type u_1} {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : DivisionRing k] [inst_3 : Module k V] [CharZero k] (b : AffineBasis ι k P) {s : Finset ι} {i : ι},
  i ∈ s → (b.coord i) (Finset.centroid k s ⇑b) = (↑s.card)⁻¹

theorem AffineBasis.exists_affine_subbasis E1 #

∀ {k : Type u_5} {V : Type u_6} {P : Type u_7} [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : DivisionRing k] [inst_3 : Module k V] {t : Set P}, affineSpan k t = ⊤ → ∃ s ⊆ t, ∃ b, ⇑b = Subtype.val

theorem AffineBasis.exists_affineBasis E1 #

∀ (k : Type u_5) (V : Type u_6) (P : Type u_7) [inst : AddCommGroup V] [inst_1 : AddTorsor V P]
  [inst_2 : DivisionRing k] [inst_3 : Module k V], ∃ s b, ⇑b = Subtype.val

Deprecated aliases

NameNew nameSince
AffineBasis.coe_smulFunLike.coe_smul2026-10-26
AffineBasis.coe_vaddFunLike.coe_vadd2026-10-26