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.AffineMap

174 declarations and 8 deprecated aliases. Mathlib docs · Source

Affine maps

This file defines affine maps.

Main definitions

  • AffineMap is the type of affine maps between two affine spaces with the same ring k. Various basic examples of affine maps are defined, including const, id, lineMap and homothety.

Notation

  • P1 →ᵃ[k] P2 is a notation for AffineMap k P1 P2;
  • AffineSpace V P: a localized notation for AddTorsor V P defined in LinearAlgebra.AffineSpace.Basic.

Implementation notes

outParam is used in the definition of [AddTorsor V P] to make V an implicit argument (deduced from P) in most cases. As for modules, k is an explicit argument rather than implied by P or V.

This file only provides purely algebraic definitions and results. Those depending on analysis or topology are defined elsewhere; see Analysis.Normed.Affine.AddTorsor and Topology.Algebra.Affine.

References

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

Definition of AffineMap.lineMap and lemmas about it

theorem AffineMap.mk.inj E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {inst : Ring k}
  {inst_1 : AddCommGroup V1} {inst_2 : Module k V1} {inst_3 : AddTorsor V1 P1} {inst_4 : AddCommGroup V2}
  {inst_5 : Module k V2} {inst_6 : AddTorsor V2 P2} {toFun : P1 → P2} {linear : V1 →ₗ[k] V2}
  {map_vadd' : ∀ (p : P1) (v : V1), toFun (v +ᵥ p) = linear v +ᵥ toFun p} {toFun_1 : P1 → P2} {linear_1 : V1 →ₗ[k] V2}
  {map_vadd'_1 : ∀ (p : P1) (v : V1), toFun_1 (v +ᵥ p) = linear_1 v +ᵥ toFun_1 p},
  { toFun := toFun, linear := linear, map_vadd' := map_vadd' } =
      { toFun := toFun_1, linear := linear_1, map_vadd' := map_vadd'_1 } →
    toFun = toFun_1 ∧ linear = linear_1

def AffineMap.ctorIdx E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          {inst : Ring k} →
            {inst_1 : AddCommGroup V1} →
              {inst_2 : Module k V1} →
                {inst_3 : AddTorsor V1 P1} →
                  {inst_4 : AddCommGroup V2} → {inst_5 : Module k V2} → {inst_6 : AddTorsor V2 P2} → (P1 →ᵃ[k] P2) → ℕ

theorem AffineMap.mk.injEq E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (toFun : P1 → P2) (linear : V1 →ₗ[k] V2)
  (map_vadd' : ∀ (p : P1) (v : V1), toFun (v +ᵥ p) = linear v +ᵥ toFun p) (toFun_1 : P1 → P2) (linear_1 : V1 →ₗ[k] V2)
  (map_vadd'_1 : ∀ (p : P1) (v : V1), toFun_1 (v +ᵥ p) = linear_1 v +ᵥ toFun_1 p),
  ({ toFun := toFun, linear := linear, map_vadd' := map_vadd' } =
      { toFun := toFun_1, linear := linear_1, map_vadd' := map_vadd'_1 }) =
    (toFun = toFun_1 ∧ linear = linear_1)

structure AffineMap E3 #

(k : Type u_1) →
  {V1 : Type u_2} →
    (P1 : Type u_3) →
      {V2 : Type u_4} →
        (P2 : Type u_5) →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [Module k V1] →
                [AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] →
                    [Module k V2] → [AddTorsor V2 P2] → Type (max (max (max u_2 u_3) u_4) u_5)

An AffineMap k P1 P2 (notation: P1 →ᵃ[k] P2) is a map from P1 to P2 that induces a corresponding linear map from V1 to V2.

ctor AffineMap.mk E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] →
                    [inst_5 : Module k V2] →
                      [inst_6 : AddTorsor V2 P2] →
                        (toFun : P1 → P2) →
                          (linear : V1 →ₗ[k] V2) →
                            (∀ (p : P1) (v : V1), toFun (v +ᵥ p) = linear v +ᵥ toFun p) → P1 →ᵃ[k] P2

abbrev AffineMap.toFun E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] →
                    [inst_5 : Module k V2] → [inst_6 : AddTorsor V2 P2] → (P1 →ᵃ[k] P2) → P1 → P2

The underlying function between the affine spaces P1 and P2.

abbrev AffineMap.linear E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] →
                    [inst_5 : Module k V2] → [inst_6 : AddTorsor V2 P2] → (P1 →ᵃ[k] P2) → V1 →ₗ[k] V2

The linear map between the corresponding vector spaces V1 and V2. This represents how the affine map acts on differences of points.

theorem AffineMap.map_vadd' E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (self : P1 →ᵃ[k] P2) (p : P1) (v : V1),
  self.toFun (v +ᵥ p) = self.linear v +ᵥ self.toFun p

def «term_→ᵃ[_]_» E1 #

Lean.TrailingParserDescr

An AffineMap k P1 P2 (notation: P1 →ᵃ[k] P2) is a map from P1 to P2 that induces a corresponding linear map from V1 to V2.

instance AffineMap.instFunLike E0 #

(k : Type u_1) →
  {V1 : Type u_2} →
    (P1 : Type u_3) →
      {V2 : Type u_4} →
        (P2 : Type u_5) →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] →
                    [inst_5 : Module k V2] → [inst_6 : AddTorsor V2 P2] → FunLike (P1 →ᵃ[k] P2) P1 P2

def LinearMap.toAffineMap E1 #

{k : Type u_1} →
  {V₁ : Type u_2} →
    {V₂ : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V₁] →
          [inst_2 : Module k V₁] → [inst_3 : AddCommGroup V₂] → [inst_4 : Module k V₂] → (V₁ →ₗ[k] V₂) → V₁ →ᵃ[k] V₂

Reinterpret a linear map as an affine map.

theorem LinearMap.coe_toAffineMap E0 #

∀ {k : Type u_1} {V₁ : Type u_2} {V₂ : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V₁] [inst_2 : Module k V₁]
  [inst_3 : AddCommGroup V₂] [inst_4 : Module k V₂] (f : V₁ →ₗ[k] V₂), ⇑f.toAffineMap = ⇑f

theorem LinearMap.toAffineMap_linear E0 #

∀ {k : Type u_1} {V₁ : Type u_2} {V₂ : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V₁] [inst_2 : Module k V₁]
  [inst_3 : AddCommGroup V₂] [inst_4 : Module k V₂] (f : V₁ →ₗ[k] V₂), f.toAffineMap.linear = f

theorem AffineMap.coe_mk E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 → P2) (linear : V1 →ₗ[k] V2)
  (add : ∀ (p : P1) (v : V1), f (v +ᵥ p) = linear v +ᵥ f p), ⇑{ toFun := f, linear := linear, map_vadd' := add } = f

Constructing an affine map and coercing back to a function produces the same map.

theorem AffineMap.toFun_eq_coe E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2), f.toFun = ⇑f

toFun is the same as the result of coercing to a function.

theorem AffineMap.map_vadd E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2) (p : P1) (v : V1), f (v +ᵥ p) = f.linear v +ᵥ f p

An affine map on the result of adding a vector to a point produces the same result as the linear map applied to that vector, added to the affine map applied to that point.

theorem AffineMap.linear_apply_vsub E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2) (p1 p2 : P1), f.linear (p1 -ᵥ p2) = f p1 -ᵥ f p2

The linear map on the result of subtracting two points is the result of subtracting the result of the affine map on those two points.

theorem AffineMap.ext E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] {f g : P1 →ᵃ[k] P2}, (∀ (p : P1), f p = g p) → f = g

Two affine maps are equal if they coerce to the same function.

theorem AffineMap.ext_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] {f g : P1 →ᵃ[k] P2}, f = g ↔ ∀ (p : P1), f p = g p

theorem AffineMap.coeFn_injective E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2], Function.Injective DFunLike.coe

theorem AffineMap.congr_arg E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2) {x y : P1}, x = y → f x = f y

theorem AffineMap.congr_fun E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] {f g : P1 →ᵃ[k] P2}, f = g → ∀ (x : P1), f x = g x

theorem AffineMap.ext_linear E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] {f g : P1 →ᵃ[k] P2},
  f.linear = g.linear → ∀ {p : P1}, f p = g p → f = g

Two affine maps are equal if they have equal linear maps and are equal at some point.

theorem AffineMap.ext_linear_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] {f g : P1 →ᵃ[k] P2}, f = g ↔ f.linear = g.linear ∧ ∃ p, f p = g p

Two affine maps are equal if they have equal linear maps and are equal at some point.

def AffineMap.const E3 #

(k : Type u_1) →
  {V1 : Type u_2} →
    (P1 : Type u_3) →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → [inst_6 : AddTorsor V2 P2] → P2 → P1 →ᵃ[k] P2

The constant function as an AffineMap.

theorem AffineMap.coe_const E0 #

∀ (k : Type u_1) {V1 : Type u_2} (P1 : Type u_3) {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (p : P2), ⇑(AffineMap.const k P1 p) = Function.const P1 p

theorem AffineMap.const_apply E0 #

∀ (k : Type u_1) {V1 : Type u_2} (P1 : Type u_3) {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (p : P2) (q : P1), (AffineMap.const k P1 p) q = p

theorem AffineMap.const_linear E0 #

∀ (k : Type u_1) {V1 : Type u_2} (P1 : Type u_3) {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (p : P2), (AffineMap.const k P1 p).linear = 0

theorem AffineMap.linear_eq_zero_iff_exists_const E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2), f.linear = 0 ↔ ∃ q, f = AffineMap.const k P1 q

instance AffineMap.nonempty E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2], Nonempty (P1 →ᵃ[k] P2)

def AffineMap.mk' E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] →
                    [inst_5 : Module k V2] →
                      [inst_6 : AddTorsor V2 P2] →
                        (f : P1 → P2) →
                          (f' : V1 →ₗ[k] V2) → (p : P1) → (∀ (p' : P1), f p' = f' (p' -ᵥ p) +ᵥ f p) → P1 →ᵃ[k] P2

Construct an affine map by verifying the relation between the map and its linear part at one base point. Namely, this function takes a map f : P₁ → P₂, a linear map f' : V₁ →ₗ[k] V₂, and a point p such that for any other point p' we have f p' = f' (p' -ᵥ p) +ᵥ f p.

theorem AffineMap.coe_mk' E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1)
  (h : ∀ (p' : P1), f p' = f' (p' -ᵥ p) +ᵥ f p), ⇑(AffineMap.mk' f f' p h) = f

theorem AffineMap.mk'_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1)
  (h : ∀ (p' : P1), f p' = f' (p' -ᵥ p) +ᵥ f p), (AffineMap.mk' f f' p h).linear = f'

instance AffineMap.instSMulOfSMulCommClass E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : Module k V1] →
              [inst_3 : AddTorsor V1 P1] →
                [inst_4 : AddCommGroup V2] →
                  [inst_5 : Module k V2] →
                    {R : Type u_10} → [inst_6 : DistribSMul R V2] → [SMulCommClass k R V2] → SMul R (P1 →ᵃ[k] V2)

instance AffineMap.instIsSMulApply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] {R : Type u_10}
  [inst_6 : DistribSMul R V2] [inst_7 : SMulCommClass k R V2], IsSMulApply R (P1 →ᵃ[k] V2)

instance AffineMap.mulAction E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : Module k V1] →
              [inst_3 : AddTorsor V1 P1] →
                [inst_4 : AddCommGroup V2] →
                  [inst_5 : Module k V2] →
                    {R : Type u_10} →
                      [inst_6 : Monoid R] →
                        [inst_7 : DistribMulAction R V2] → [SMulCommClass k R V2] → MulAction R (P1 →ᵃ[k] V2)

The space of affine maps to a module inherits an R-action from the action on its codomain.

theorem AffineMap.smul_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] {R : Type u_10}
  [inst_6 : Monoid R] [inst_7 : DistribMulAction R V2] [inst_8 : SMulCommClass k R V2] (t : R) (f : P1 →ᵃ[k] V2),
  (t • f).linear = t • f.linear

instance AffineMap.isCentralScalar E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] {R : Type u_10}
  [inst_6 : Monoid R] [inst_7 : DistribMulAction R V2] [inst_8 : SMulCommClass k R V2]
  [inst_9 : DistribMulAction Rᵐᵒᵖ V2] [inst_10 : IsCentralScalar R V2], IsCentralScalar R (P1 →ᵃ[k] V2)

instance AffineMap.instZero E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : Module k V1] →
              [inst_3 : AddTorsor V1 P1] → [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → Zero (P1 →ᵃ[k] V2)

instance AffineMap.instIsZeroApply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2],
  IsZeroApply (P1 →ᵃ[k] V2)

instance AffineMap.instAdd E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : Module k V1] →
              [inst_3 : AddTorsor V1 P1] → [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → Add (P1 →ᵃ[k] V2)

instance AffineMap.instIsAddApply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2],
  IsAddApply (P1 →ᵃ[k] V2)

instance AffineMap.instSub E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : Module k V1] →
              [inst_3 : AddTorsor V1 P1] → [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → Sub (P1 →ᵃ[k] V2)

instance AffineMap.instIsSubApply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2],
  IsSubApply (P1 →ᵃ[k] V2)

instance AffineMap.instNeg E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : Module k V1] →
              [inst_3 : AddTorsor V1 P1] → [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → Neg (P1 →ᵃ[k] V2)

instance AffineMap.instIsNegApply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2],
  IsNegApply (P1 →ᵃ[k] V2)

theorem AffineMap.zero_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2],
  AffineMap.linear 0 = 0

theorem AffineMap.add_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2]
  (f g : P1 →ᵃ[k] V2), (f + g).linear = f.linear + g.linear

theorem AffineMap.sub_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2]
  (f g : P1 →ᵃ[k] V2), (f - g).linear = f.linear - g.linear

theorem AffineMap.neg_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] (f : P1 →ᵃ[k] V2),
  (-f).linear = -f.linear

instance AffineMap.instAddCommGroup E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : Module k V1] →
              [inst_3 : AddTorsor V1 P1] →
                [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → AddCommGroup (P1 →ᵃ[k] V2)

The set of affine maps to a vector space is an additive commutative group.

instance AffineMap.instAddTorsor E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] →
                    [inst_5 : Module k V2] → [inst_6 : AddTorsor V2 P2] → AddTorsor (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)

The space of affine maps from P1 to P2 is an affine space over the space of affine maps from P1 to the vector space V2 corresponding to P2.

theorem AffineMap.vadd_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1),
  (f +ᵥ g) p = f p +ᵥ g p

theorem AffineMap.vadd_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2),
  (f +ᵥ g).linear = f.linear + g.linear

theorem AffineMap.vsub_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f g : P1 →ᵃ[k] P2) (p : P1), (f -ᵥ g) p = f p -ᵥ g p

theorem AffineMap.vsub_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f g : P1 →ᵃ[k] P2), (f -ᵥ g).linear = f.linear - g.linear

def AffineMap.fst E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → [inst_6 : AddTorsor V2 P2] → P1 × P2 →ᵃ[k] P1

Prod.fst as an AffineMap.

theorem AffineMap.coe_fst E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2], ⇑AffineMap.fst = Prod.fst

theorem AffineMap.fst_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2], AffineMap.fst.linear = LinearMap.fst k V1 V2

def AffineMap.snd E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : Module k V1] →
                [inst_3 : AddTorsor V1 P1] →
                  [inst_4 : AddCommGroup V2] → [inst_5 : Module k V2] → [inst_6 : AddTorsor V2 P2] → P1 × P2 →ᵃ[k] P2

Prod.snd as an AffineMap.

theorem AffineMap.coe_snd E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2], ⇑AffineMap.snd = Prod.snd

theorem AffineMap.snd_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2], AffineMap.snd.linear = LinearMap.snd k V1 V2

def AffineMap.id E1 #

(k : Type u_1) →
  {V1 : Type u_2} →
    (P1 : Type u_3) →
      [inst : Ring k] → [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → P1 →ᵃ[k] P1

Identity map as an affine map.

theorem AffineMap.coe_id E0 #

∀ (k : Type u_1) {V1 : Type u_2} (P1 : Type u_3) [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1], ⇑(AffineMap.id k P1) = id

The identity affine map acts as the identity.

theorem AffineMap.id_linear E0 #

∀ (k : Type u_1) {V1 : Type u_2} (P1 : Type u_3) [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1], (AffineMap.id k P1).linear = LinearMap.id

theorem AffineMap.id_apply E0 #

∀ (k : Type u_1) {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p : P1), (AffineMap.id k P1) p = p

The identity affine map acts as the identity.

instance AffineMap.instInhabited E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → Inhabited (P1 →ᵃ[k] P1)

def AffineMap.comp E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          {V3 : Type u_6} →
            {P3 : Type u_7} →
              [inst : Ring k] →
                [inst_1 : AddCommGroup V1] →
                  [inst_2 : Module k V1] →
                    [inst_3 : AddTorsor V1 P1] →
                      [inst_4 : AddCommGroup V2] →
                        [inst_5 : Module k V2] →
                          [inst_6 : AddTorsor V2 P2] →
                            [inst_7 : AddCommGroup V3] →
                              [inst_8 : Module k V3] →
                                [inst_9 : AddTorsor V3 P3] → (P2 →ᵃ[k] P3) → (P1 →ᵃ[k] P2) → P1 →ᵃ[k] P3

Composition of affine maps.

theorem AffineMap.comp_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1]
  [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] [inst_7 : AddCommGroup V3]
  [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2),
  (f.comp g).linear = f.linear ∘ₗ g.linear

theorem AffineMap.coe_comp E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1]
  [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] [inst_7 : AddCommGroup V3]
  [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2), ⇑(f.comp g) = ⇑f ∘ ⇑g

Composition of affine maps acts as applying the two functions.

theorem AffineMap.comp_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1]
  [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] [inst_7 : AddCommGroup V3]
  [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1), (f.comp g) p = f (g p)

Composition of affine maps acts as applying the two functions.

theorem AffineMap.comp_id E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2), f.comp (AffineMap.id k P1) = f

theorem AffineMap.id_comp E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2), (AffineMap.id k P2).comp f = f

theorem AffineMap.comp_assoc E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  {V4 : Type u_8} {P4 : Type u_9} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2]
  [inst_7 : AddCommGroup V3] [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] [inst_10 : AddCommGroup V4]
  [inst_11 : Module k V4] [inst_12 : AddTorsor V4 P4] (f₃₄ : P3 →ᵃ[k] P4) (f₂₃ : P2 →ᵃ[k] P3) (f₁₂ : P1 →ᵃ[k] P2),
  (f₃₄.comp f₂₃).comp f₁₂ = f₃₄.comp (f₂₃.comp f₁₂)

instance AffineMap.instOne E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → One (P1 →ᵃ[k] P1)

instance AffineMap.instIsOneApplyEqSelf E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1], IsOneApplyEqSelf (P1 →ᵃ[k] P1)

theorem AffineMap.one_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1], AffineMap.linear 1 = LinearMap.id

instance AffineMap.instMul E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → Mul (P1 →ᵃ[k] P1)

instance AffineMap.instIsMulApplyEqComp E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1], IsMulApplyEqComp (P1 →ᵃ[k] P1)

theorem AffineMap.mul_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (f g : P1 →ᵃ[k] P1), (f * g).linear = f.linear ∘ₗ g.linear

instance AffineMap.instPowNat E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → Pow (P1 →ᵃ[k] P1) ℕ

instance AffineMap.instIsNPowApplyEqIterate E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1], IsNPowApplyEqIterate (P1 →ᵃ[k] P1)

theorem AffineMap.pow_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (f : P1 →ᵃ[k] P1) (n : ℕ), (f ^ n).linear = f.linear ^ n

instance AffineMap.instMonoid E0 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → Monoid (P1 →ᵃ[k] P1)

def AffineMap.linearHom E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1

AffineMap.linear on endomorphisms is a MonoidHom.

theorem AffineMap.linearHom_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (self : P1 →ᵃ[k] P1), AffineMap.linearHom self = self.linear

theorem AffineMap.linear_injective_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2),
  Function.Injective ⇑f.linear ↔ Function.Injective ⇑f

theorem AffineMap.linear_surjective_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2),
  Function.Surjective ⇑f.linear ↔ Function.Surjective ⇑f

theorem AffineMap.linear_bijective_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2),
  Function.Bijective ⇑f.linear ↔ Function.Bijective ⇑f

theorem AffineMap.image_vsub_image E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] {s t : Set P1} (f : P1 →ᵃ[k] P2),
  ⇑f '' s -ᵥ ⇑f '' t = ⇑f.linear '' (s -ᵥ t)

def AffineMap.prod E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          {V3 : Type u_6} →
            {P3 : Type u_7} →
              [inst : Ring k] →
                [inst_1 : AddCommGroup V1] →
                  [inst_2 : Module k V1] →
                    [inst_3 : AddTorsor V1 P1] →
                      [inst_4 : AddCommGroup V2] →
                        [inst_5 : Module k V2] →
                          [inst_6 : AddTorsor V2 P2] →
                            [inst_7 : AddCommGroup V3] →
                              [inst_8 : Module k V3] →
                                [inst_9 : AddTorsor V3 P3] → (P1 →ᵃ[k] P2) → (P1 →ᵃ[k] P3) → P1 →ᵃ[k] P2 × P3

The product of two affine maps is an affine map.

theorem AffineMap.prod_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1]
  [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] [inst_7 : AddCommGroup V3]
  [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] (f : P1 →ᵃ[k] P2) (g : P1 →ᵃ[k] P3),
  (f.prod g).linear = f.linear.prod g.linear

theorem AffineMap.coe_prod E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1]
  [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] [inst_7 : AddCommGroup V3]
  [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] (f : P1 →ᵃ[k] P2) (g : P1 →ᵃ[k] P3),
  ⇑(f.prod g) = Function.prod ⇑f ⇑g

theorem AffineMap.prod_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1]
  [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] [inst_7 : AddCommGroup V3]
  [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] (f : P1 →ᵃ[k] P2) (g : P1 →ᵃ[k] P3) (p : P1),
  (f.prod g) p = (f p, g p)

def AffineMap.prodMap E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      {V2 : Type u_4} →
        {P2 : Type u_5} →
          {V3 : Type u_6} →
            {P3 : Type u_7} →
              {V4 : Type u_8} →
                {P4 : Type u_9} →
                  [inst : Ring k] →
                    [inst_1 : AddCommGroup V1] →
                      [inst_2 : Module k V1] →
                        [inst_3 : AddTorsor V1 P1] →
                          [inst_4 : AddCommGroup V2] →
                            [inst_5 : Module k V2] →
                              [inst_6 : AddTorsor V2 P2] →
                                [inst_7 : AddCommGroup V3] →
                                  [inst_8 : Module k V3] →
                                    [inst_9 : AddTorsor V3 P3] →
                                      [inst_10 : AddCommGroup V4] →
                                        [inst_11 : Module k V4] →
                                          [inst_12 : AddTorsor V4 P4] →
                                            (P1 →ᵃ[k] P2) → (P3 →ᵃ[k] P4) → P1 × P3 →ᵃ[k] P2 × P4

Prod.map of two affine maps.

theorem AffineMap.prodMap_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  {V4 : Type u_8} {P4 : Type u_9} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2]
  [inst_7 : AddCommGroup V3] [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] [inst_10 : AddCommGroup V4]
  [inst_11 : Module k V4] [inst_12 : AddTorsor V4 P4] (f : P1 →ᵃ[k] P2) (g : P3 →ᵃ[k] P4),
  (f.prodMap g).linear = f.linear.prodMap g.linear

theorem AffineMap.coe_prodMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  {V4 : Type u_8} {P4 : Type u_9} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2]
  [inst_7 : AddCommGroup V3] [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] [inst_10 : AddCommGroup V4]
  [inst_11 : Module k V4] [inst_12 : AddTorsor V4 P4] (f : P1 →ᵃ[k] P2) (g : P3 →ᵃ[k] P4),
  ⇑(f.prodMap g) = Prod.map ⇑f ⇑g

theorem AffineMap.prodMap_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} {V3 : Type u_6} {P3 : Type u_7}
  {V4 : Type u_8} {P4 : Type u_9} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2] [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2]
  [inst_7 : AddCommGroup V3] [inst_8 : Module k V3] [inst_9 : AddTorsor V3 P3] [inst_10 : AddCommGroup V4]
  [inst_11 : Module k V4] [inst_12 : AddTorsor V4 P4] (f : P1 →ᵃ[k] P2) (g : P3 →ᵃ[k] P4) (x : P1 × P3),
  (f.prodMap g) x = (f x.1, g x.2)

def AffineMap.lineMap E1 #

{k : Type u_1} →
  {V1 : Type u_2} →
    {P1 : Type u_3} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : Module k V1] → [inst_3 : AddTorsor V1 P1] → P1 → P1 → k →ᵃ[k] P1

The affine map from k to P1 sending 0 to p₀ and 1 to p₁.

theorem AffineMap.coe_lineMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1), ⇑(AffineMap.lineMap p₀ p₁) = fun c ↦ c • (p₁ -ᵥ p₀) +ᵥ p₀

theorem AffineMap.lineMap_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c : k), (AffineMap.lineMap p₀ p₁) c = c • (p₁ -ᵥ p₀) +ᵥ p₀

theorem AffineMap.lineMap_apply_module' E1 #

∀ {k : Type u_1} {V1 : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] (p₀ p₁ : V1) (c : k),
  (AffineMap.lineMap p₀ p₁) c = c • (p₁ - p₀) + p₀

theorem AffineMap.lineMap_apply_module E1 #

∀ {k : Type u_1} {V1 : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] (p₀ p₁ : V1) (c : k),
  (AffineMap.lineMap p₀ p₁) c = (1 - c) • p₀ + c • p₁

theorem AffineMap.lineMap_apply_ring' E1 #

∀ {k : Type u_1} [inst : Ring k] (a b c : k), (AffineMap.lineMap a b) c = c * (b - a) + a

theorem AffineMap.lineMap_apply_ring E1 #

∀ {k : Type u_1} [inst : Ring k] (a b c : k), (AffineMap.lineMap a b) c = (1 - c) * a + c * b

theorem AffineMap.lineMap_vadd_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p : P1) (v : V1) (c : k), (AffineMap.lineMap p (v +ᵥ p)) c = c • v +ᵥ p

theorem AffineMap.lineMap_linear E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1), (AffineMap.lineMap p₀ p₁).linear = LinearMap.id.smulRight (p₁ -ᵥ p₀)

theorem AffineMap.lineMap_same_apply E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p : P1) (c : k), (AffineMap.lineMap p p) c = p

theorem AffineMap.lineMap_same E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p : P1), AffineMap.lineMap p p = AffineMap.const k k p

theorem AffineMap.lineMap_apply_zero E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1), (AffineMap.lineMap p₀ p₁) 0 = p₀

theorem AffineMap.lineMap_apply_one E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1), (AffineMap.lineMap p₀ p₁) 1 = p₁

theorem AffineMap.lineMap_eq_lineMap_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [IsDomain k] [Module.IsTorsionFree k V1] {p₀ p₁ : P1} {c₁ c₂ : k},
  (AffineMap.lineMap p₀ p₁) c₁ = (AffineMap.lineMap p₀ p₁) c₂ ↔ p₀ = p₁ ∨ c₁ = c₂

theorem AffineMap.lineMap_eq_left_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [IsDomain k] [Module.IsTorsionFree k V1] {p₀ p₁ : P1} {c : k},
  (AffineMap.lineMap p₀ p₁) c = p₀ ↔ p₀ = p₁ ∨ c = 0

theorem AffineMap.lineMap_eq_right_iff E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [IsDomain k] [Module.IsTorsionFree k V1] {p₀ p₁ : P1} {c : k},
  (AffineMap.lineMap p₀ p₁) c = p₁ ↔ p₀ = p₁ ∨ c = 1

theorem AffineMap.lineMap_injective E1 #

∀ (k : Type u_1) {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] [IsDomain k] [Module.IsTorsionFree k V1] {p₀ p₁ : P1},
  p₀ ≠ p₁ → Function.Injective ⇑(AffineMap.lineMap p₀ p₁)

theorem AffineMap.apply_lineMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k),
  f ((AffineMap.lineMap p₀ p₁) c) = (AffineMap.lineMap (f p₀) (f p₁)) c

theorem AffineMap.comp_lineMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1),
  f.comp (AffineMap.lineMap p₀ p₁) = AffineMap.lineMap (f p₀) (f p₁)

theorem AffineMap.fst_lineMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (p₀ p₁ : P1 × P2) (c : k),
  ((AffineMap.lineMap p₀ p₁) c).1 = (AffineMap.lineMap p₀.1 p₁.1) c

theorem AffineMap.snd_lineMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} {V2 : Type u_4} {P2 : Type u_5} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : Module k V1] [inst_3 : AddTorsor V1 P1] [inst_4 : AddCommGroup V2]
  [inst_5 : Module k V2] [inst_6 : AddTorsor V2 P2] (p₀ p₁ : P1 × P2) (c : k),
  ((AffineMap.lineMap p₀ p₁) c).2 = (AffineMap.lineMap p₀.2 p₁.2) c

theorem AffineMap.lineMap_symm E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1),
  AffineMap.lineMap p₀ p₁ = (AffineMap.lineMap p₁ p₀).comp (AffineMap.lineMap 1 0)

theorem AffineMap.lineMap_apply_one_sub E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c : k), (AffineMap.lineMap p₀ p₁) (1 - c) = (AffineMap.lineMap p₁ p₀) c

theorem AffineMap.lineMap_vsub_left E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c : k), (AffineMap.lineMap p₀ p₁) c -ᵥ p₀ = c • (p₁ -ᵥ p₀)

theorem AffineMap.left_vsub_lineMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c : k), p₀ -ᵥ (AffineMap.lineMap p₀ p₁) c = c • (p₀ -ᵥ p₁)

theorem AffineMap.lineMap_vsub_right E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c : k), (AffineMap.lineMap p₀ p₁) c -ᵥ p₁ = (1 - c) • (p₀ -ᵥ p₁)

theorem AffineMap.right_vsub_lineMap E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c : k), p₁ -ᵥ (AffineMap.lineMap p₀ p₁) c = (1 - c) • (p₁ -ᵥ p₀)

theorem AffineMap.lineMap_vadd_lineMap E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k),
  (AffineMap.lineMap v₁ v₂) c +ᵥ (AffineMap.lineMap p₁ p₂) c = (AffineMap.lineMap (v₁ +ᵥ p₁) (v₂ +ᵥ p₂)) c

theorem AffineMap.lineMap_vsub_lineMap E1 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₁ p₂ p₃ p₄ : P1) (c : k),
  (AffineMap.lineMap p₁ p₂) c -ᵥ (AffineMap.lineMap p₃ p₄) c = (AffineMap.lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄)) c

theorem AffineMap.lineMap_lineMap_right E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c d : k),
  (AffineMap.lineMap p₀ ((AffineMap.lineMap p₀ p₁) c)) d = (AffineMap.lineMap p₀ p₁) (d * c)

theorem AffineMap.lineMap_lineMap_left E0 #

∀ {k : Type u_1} {V1 : Type u_2} {P1 : Type u_3} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddTorsor V1 P1] (p₀ p₁ : P1) (c d : k),
  (AffineMap.lineMap ((AffineMap.lineMap p₀ p₁) c) p₁) d = (AffineMap.lineMap p₀ p₁) (1 - (1 - d) * (1 - c))

theorem AffineMap.lineMap_mono E1 #

∀ {k : Type u_1} {V1 : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : LinearOrder k] [inst_4 : Preorder V1] [AddRightMono V1] [SMulPosMono k V1] {p₀ p₁ : V1},
  p₀ ≤ p₁ → Monotone ⇑(AffineMap.lineMap p₀ p₁)

theorem AffineMap.lineMap_anti E1 #

∀ {k : Type u_1} {V1 : Type u_2} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : LinearOrder k] [inst_4 : Preorder V1] [AddLeftMono V1] [SMulPosMono k V1] {p₀ p₁ : V1},
  p₁ ≤ p₀ → Antitone ⇑(AffineMap.lineMap p₀ p₁)

theorem AffineMap.decomp E1 #

∀ {k : Type u_1} {V1 : Type u_2} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddCommGroup V2] [inst_4 : Module k V2] (f : V1 →ᵃ[k] V2), ⇑f = ⇑f.linear + fun x ↦ f 0

Decomposition of an affine map in the special case when the point space and vector space are the same.

theorem AffineMap.decomp' E1 #

∀ {k : Type u_1} {V1 : Type u_2} {V2 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : Module k V1]
  [inst_3 : AddCommGroup V2] [inst_4 : Module k V2] (f : V1 →ᵃ[k] V2), ⇑f.linear = ⇑f - fun x ↦ f 0

Decomposition of an affine map in the special case when the point space and vector space are the same.

theorem AffineMap.image_uIcc E1 #

∀ {k : Type u_10} [inst : Field k] [inst_1 : LinearOrder k] [IsStrictOrderedRing k] (f : k →ᵃ[k] k) (a b : k),
  ⇑f '' Set.uIcc a b = Set.uIcc (f a) (f b)

def AffineMap.proj E1 #

{k : Type u_1} →
  [inst : Ring k] →
    {ι : Type u_10} →
      {V : ι → Type u_11} →
        {P : ι → Type u_12} →
          [inst_1 : (i : ι) → AddCommGroup (V i)] →
            [inst_2 : (i : ι) → Module k (V i)] →
              [inst_3 : (i : ι) → AddTorsor (V i) (P i)] → (i : ι) → ((i : ι) → P i) →ᵃ[k] P i

Evaluation at a point as an affine map.

theorem AffineMap.proj_apply E0 #

∀ {k : Type u_1} [inst : Ring k] {ι : Type u_10} {V : ι → Type u_11} {P : ι → Type u_12}
  [inst_1 : (i : ι) → AddCommGroup (V i)] [inst_2 : (i : ι) → Module k (V i)] [inst_3 : (i : ι) → AddTorsor (V i) (P i)]
  (i : ι) (f : (i : ι) → P i), (AffineMap.proj i) f = f i

theorem AffineMap.proj_linear E0 #

∀ {k : Type u_1} [inst : Ring k] {ι : Type u_10} {V : ι → Type u_11} {P : ι → Type u_12}
  [inst_1 : (i : ι) → AddCommGroup (V i)] [inst_2 : (i : ι) → Module k (V i)] [inst_3 : (i : ι) → AddTorsor (V i) (P i)]
  (i : ι), (AffineMap.proj i).linear = LinearMap.proj i

theorem AffineMap.pi_lineMap_apply E0 #

∀ {k : Type u_1} [inst : Ring k] {ι : Type u_10} {V : ι → Type u_11} {P : ι → Type u_12}
  [inst_1 : (i : ι) → AddCommGroup (V i)] [inst_2 : (i : ι) → Module k (V i)] [inst_3 : (i : ι) → AddTorsor (V i) (P i)]
  (f g : (i : ι) → P i) (c : k) (i : ι), (AffineMap.lineMap f g) c i = (AffineMap.lineMap (f i) (g i)) c

instance AffineMap.distribMulAction E0 #

{R : Type u_1} →
  {k : Type u_2} →
    {V1 : Type u_3} →
      {P1 : Type u_4} →
        {V2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : AddTorsor V1 P1] →
                [inst_3 : AddCommGroup V2] →
                  [inst_4 : Module k V1] →
                    [inst_5 : Module k V2] →
                      [inst_6 : Monoid R] →
                        [inst_7 : DistribMulAction R V2] → [SMulCommClass k R V2] → DistribMulAction R (P1 →ᵃ[k] V2)

The space of affine maps to a module inherits an R-action from the action on its codomain.

instance AffineMap.instModule E0 #

{R : Type u_1} →
  {k : Type u_2} →
    {V1 : Type u_3} →
      {P1 : Type u_4} →
        {V2 : Type u_5} →
          [inst : Ring k] →
            [inst_1 : AddCommGroup V1] →
              [inst_2 : AddTorsor V1 P1] →
                [inst_3 : AddCommGroup V2] →
                  [inst_4 : Module k V1] →
                    [inst_5 : Module k V2] →
                      [inst_6 : Semiring R] → [inst_7 : Module R V2] → [SMulCommClass k R V2] → Module R (P1 →ᵃ[k] V2)

The space of affine maps taking values in an R-module is an R-module.

def AffineMap.toConstProdLinearMap E1 #

(R : Type u_1) →
  {k : Type u_2} →
    {V1 : Type u_3} →
      {V2 : Type u_5} →
        [inst : Ring k] →
          [inst_1 : AddCommGroup V1] →
            [inst_2 : AddCommGroup V2] →
              [inst_3 : Module k V1] →
                [inst_4 : Module k V2] →
                  [inst_5 : Semiring R] →
                    [inst_6 : Module R V2] → [inst_7 : SMulCommClass k R V2] → (V1 →ᵃ[k] V2) ≃ₗ[R] V2 × (V1 →ₗ[k] V2)

The space of affine maps between two modules is linearly equivalent to the product of the domain with the space of linear maps, by taking the value of the affine map at (0 : V1) and the linear part.

See note [bundled maps over different rings]

theorem AffineMap.toConstProdLinearMap_apply E0 #

∀ (R : Type u_1) {k : Type u_2} {V1 : Type u_3} {V2 : Type u_5} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddCommGroup V2] [inst_3 : Module k V1] [inst_4 : Module k V2] [inst_5 : Semiring R] [inst_6 : Module R V2]
  [inst_7 : SMulCommClass k R V2] (f : V1 →ᵃ[k] V2), (AffineMap.toConstProdLinearMap R) f = (f 0, f.linear)

theorem AffineMap.toConstProdLinearMap_symm_apply E0 #

∀ (R : Type u_1) {k : Type u_2} {V1 : Type u_3} {V2 : Type u_5} [inst : Ring k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddCommGroup V2] [inst_3 : Module k V1] [inst_4 : Module k V2] [inst_5 : Semiring R] [inst_6 : Module R V2]
  [inst_7 : SMulCommClass k R V2] (p : V2 × (V1 →ₗ[k] V2)),
  (AffineMap.toConstProdLinearMap R).symm p = p.2.toAffineMap + AffineMap.const k V1 p.1

theorem AffineMap.lineMap_apply' E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} {V2 : Type u_5} {P2 : Type u_6} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : AddTorsor V1 P1] [inst_3 : AddCommGroup V2] [inst_4 : AddTorsor V2 P2]
  [inst_5 : Module k V1] [inst_6 : Module k V2] [inst_7 : SMulCommClass k k V2] (f g : P1 →ᵃ[k] P2) (c : k) (p : P1),
  ((AffineMap.lineMap f g) c) p = (AffineMap.lineMap (f p) (g p)) c

Interpolating between affine maps with lineMap commutes with evaluation.

def AffineMap.pi E1 #

{k : Type u_2} →
  {V1 : Type u_3} →
    {P1 : Type u_4} →
      [inst : Ring k] →
        [inst_1 : AddCommGroup V1] →
          [inst_2 : AddTorsor V1 P1] →
            [inst_3 : Module k V1] →
              {ι : Type u_9} →
                {φv : ι → Type u_10} →
                  {φp : ι → Type u_11} →
                    [inst_4 : (i : ι) → AddCommGroup (φv i)] →
                      [inst_5 : (i : ι) → Module k (φv i)] →
                        [inst_6 : (i : ι) → AddTorsor (φv i) (φp i)] →
                          ((i : ι) → P1 →ᵃ[k] φp i) → P1 →ᵃ[k] (i : ι) → φp i

pi construction for affine maps. From a family of affine maps it produces an affine map into a family of affine spaces.

This is the affine version of LinearMap.pi.

theorem AffineMap.pi_linear E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : AddTorsor V1 P1]
  [inst_3 : Module k V1] {ι : Type u_9} {φv : ι → Type u_10} {φp : ι → Type u_11}
  [inst_4 : (i : ι) → AddCommGroup (φv i)] [inst_5 : (i : ι) → Module k (φv i)]
  [inst_6 : (i : ι) → AddTorsor (φv i) (φp i)] (f : (i : ι) → P1 →ᵃ[k] φp i),
  (AffineMap.pi f).linear = LinearMap.pi fun a ↦ (f a).linear

theorem AffineMap.pi_apply E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : AddTorsor V1 P1]
  [inst_3 : Module k V1] {ι : Type u_9} {φv : ι → Type u_10} {φp : ι → Type u_11}
  [inst_4 : (i : ι) → AddCommGroup (φv i)] [inst_5 : (i : ι) → Module k (φv i)]
  [inst_6 : (i : ι) → AddTorsor (φv i) (φp i)] (fp : (i : ι) → P1 →ᵃ[k] φp i) (c : P1) (i : ι),
  (AffineMap.pi fp) c i = (fp i) c

theorem AffineMap.pi_comp E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} {V3 : Type u_7} {P3 : Type u_8} [inst : Ring k]
  [inst_1 : AddCommGroup V1] [inst_2 : AddTorsor V1 P1] [inst_3 : AddCommGroup V3] [inst_4 : AddTorsor V3 P3]
  [inst_5 : Module k V1] [inst_6 : Module k V3] {ι : Type u_9} {φv : ι → Type u_10} {φp : ι → Type u_11}
  [inst_7 : (i : ι) → AddCommGroup (φv i)] [inst_8 : (i : ι) → Module k (φv i)]
  [inst_9 : (i : ι) → AddTorsor (φv i) (φp i)] (fp : (i : ι) → P1 →ᵃ[k] φp i) (g : P3 →ᵃ[k] P1),
  (AffineMap.pi fp).comp g = AffineMap.pi fun i ↦ (fp i).comp g

theorem AffineMap.pi_eq_zero E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : AddTorsor V1 P1]
  [inst_3 : Module k V1] {ι : Type u_9} {φv : ι → Type u_10} [inst_4 : (i : ι) → AddCommGroup (φv i)]
  [inst_5 : (i : ι) → Module k (φv i)] (fv : (i : ι) → P1 →ᵃ[k] φv i), AffineMap.pi fv = 0 ↔ ∀ (i : ι), fv i = 0

theorem AffineMap.pi_zero E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : AddTorsor V1 P1]
  [inst_3 : Module k V1] {ι : Type u_9} {φv : ι → Type u_10} [inst_4 : (i : ι) → AddCommGroup (φv i)]
  [inst_5 : (i : ι) → Module k (φv i)], (AffineMap.pi fun x ↦ 0) = 0

theorem AffineMap.proj_pi E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : Ring k] [inst_1 : AddCommGroup V1] [inst_2 : AddTorsor V1 P1]
  [inst_3 : Module k V1] {ι : Type u_9} {φv : ι → Type u_10} {φp : ι → Type u_11}
  [inst_4 : (i : ι) → AddCommGroup (φv i)] [inst_5 : (i : ι) → Module k (φv i)]
  [inst_6 : (i : ι) → AddTorsor (φv i) (φp i)] (fp : (i : ι) → P1 →ᵃ[k] φp i) (i : ι),
  (AffineMap.proj i).comp (AffineMap.pi fp) = fp i

theorem AffineMap.pi_ext_zero E1 #

∀ {k : Type u_2} {V2 : Type u_5} {P2 : Type u_6} [inst : Ring k] [inst_1 : AddCommGroup V2] [inst_2 : AddTorsor V2 P2]
  [inst_3 : Module k V2] {ι : Type u_9} {φv : ι → Type u_10} [inst_4 : (i : ι) → AddCommGroup (φv i)]
  [inst_5 : (i : ι) → Module k (φv i)] [Finite ι] [inst_7 : DecidableEq ι] {f g : ((i : ι) → φv i) →ᵃ[k] P2},
  (∀ (i : ι) (x : φv i), f (Pi.single i x) = g (Pi.single i x)) → f 0 = g 0 → f = g

Two affine maps from a Pi-type of modules (i : ι) → φv i are equal if they are equal in their operation on Pi.single and at zero. Analogous to LinearMap.pi_ext. See also pi_ext_nonempty, which instead of agreement at zero requires Nonempty ι.

theorem AffineMap.pi_ext_nonempty E1 #

∀ {k : Type u_2} {V2 : Type u_5} {P2 : Type u_6} [inst : Ring k] [inst_1 : AddCommGroup V2] [inst_2 : AddTorsor V2 P2]
  [inst_3 : Module k V2] {ι : Type u_9} {φv : ι → Type u_10} [inst_4 : (i : ι) → AddCommGroup (φv i)]
  [inst_5 : (i : ι) → Module k (φv i)] [Finite ι] [inst_7 : DecidableEq ι] {f g : ((i : ι) → φv i) →ᵃ[k] P2}
  [Nonempty ι], (∀ (i : ι) (x : φv i), f (Pi.single i x) = g (Pi.single i x)) → f = g

Two affine maps from a Pi-type of modules (i : ι) → φv i are equal if they are equal in their operation on Pi.single and ι is nonempty. Analogous to LinearMap.pi_ext. See also pi_ext_zero, which instead of Nonempty ι requires agreement at 0.

theorem AffineMap.pi_ext_nonempty' E1 #

∀ {k : Type u_2} {V2 : Type u_5} {P2 : Type u_6} [inst : Ring k] [inst_1 : AddCommGroup V2] [inst_2 : AddTorsor V2 P2]
  [inst_3 : Module k V2] {ι : Type u_9} {φv : ι → Type u_10} [inst_4 : (i : ι) → AddCommGroup (φv i)]
  [inst_5 : (i : ι) → Module k (φv i)] [Finite ι] [inst_7 : DecidableEq ι] {f g : ((i : ι) → φv i) →ᵃ[k] P2}
  [Nonempty ι],
  (∀ (i : ι), f.comp (LinearMap.single k φv i).toAffineMap = g.comp (LinearMap.single k φv i).toAffineMap) → f = g

This is used as the ext lemma instead of AffineMap.pi_ext_nonempty for reasons explained in note [partially-applied ext lemmas]. Analogous to LinearMap.pi_ext'

def AffineMap.homothety E3 #

{k : Type u_2} →
  {V1 : Type u_3} →
    {P1 : Type u_4} →
      [inst : CommRing k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : AddTorsor V1 P1] → [inst_3 : Module k V1] → P1 → k → P1 →ᵃ[k] P1

homothety c r is the homothety (also known as dilation) about c with scale factor r.

theorem AffineMap.homothety_def E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r : k),
  AffineMap.homothety c r = r • (AffineMap.id k P1 -ᵥ AffineMap.const k P1 c) +ᵥ AffineMap.const k P1 c

theorem AffineMap.coe_homothety E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r : k),
  ⇑(AffineMap.homothety c r) = fun p ↦ r • (p -ᵥ c) +ᵥ c

theorem AffineMap.homothety_apply E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r : k) (p : P1),
  (AffineMap.homothety c r) p = r • (p -ᵥ c) +ᵥ c

theorem AffineMap.homothety_linear E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r : k),
  (AffineMap.homothety c r).linear = r • LinearMap.id

theorem AffineMap.homothety_eq_lineMap E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r : k) (p : P1),
  (AffineMap.homothety c r) p = (AffineMap.lineMap c p) r

theorem AffineMap.homothety_one E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1), AffineMap.homothety c 1 = AffineMap.id k P1

theorem AffineMap.homothety_apply_same E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r : k), (AffineMap.homothety c r) c = c

theorem AffineMap.homothety_mul_apply E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r₁ r₂ : k) (p : P1),
  (AffineMap.homothety c (r₁ * r₂)) p = (AffineMap.homothety c r₁) ((AffineMap.homothety c r₂) p)

theorem AffineMap.homothety_mul E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r₁ r₂ : k),
  AffineMap.homothety c (r₁ * r₂) = (AffineMap.homothety c r₁).comp (AffineMap.homothety c r₂)

theorem AffineMap.homothety_zero E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1), AffineMap.homothety c 0 = AffineMap.const k P1 c

theorem AffineMap.homothety_add E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1) (r₁ r₂ : k),
  AffineMap.homothety c (r₁ + r₂) = r₁ • (AffineMap.id k P1 -ᵥ AffineMap.const k P1 c) +ᵥ AffineMap.homothety c r₂

theorem AffineMap.homothety_eq_iff_of_mul_eq_one E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] {c p q : P1} {r₁ r₂ : k},
  r₁ * r₂ = 1 → ((AffineMap.homothety c r₁) p = q ↔ (AffineMap.homothety c r₂) q = p)

theorem AffineMap.homothety_injective E1 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] [Module.IsTorsionFree k V1] [IsCancelMulZero k] (c : P1) {r : k},
  r ≠ 0 → Function.Injective ⇑(AffineMap.homothety c r)

theorem AffineMap.homothety_inj E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] [Module.IsTorsionFree k V1] [IsCancelMulZero k] (c : P1) {r : k},
  r ≠ 0 → ∀ {p q : P1}, (AffineMap.homothety c r) p = (AffineMap.homothety c r) q ↔ p = q

def AffineMap.homothetyHom E1 #

{k : Type u_2} →
  {V1 : Type u_3} →
    {P1 : Type u_4} →
      [inst : CommRing k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : AddTorsor V1 P1] → [inst_3 : Module k V1] → P1 → k →* P1 →ᵃ[k] P1

homothety as a multiplicative monoid homomorphism.

theorem AffineMap.coe_homothetyHom E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1), ⇑(AffineMap.homothetyHom c) = AffineMap.homothety c

def AffineMap.homothetyAffine E1 #

{k : Type u_2} →
  {V1 : Type u_3} →
    {P1 : Type u_4} →
      [inst : CommRing k] →
        [inst_1 : AddCommGroup V1] → [inst_2 : AddTorsor V1 P1] → [inst_3 : Module k V1] → P1 → k →ᵃ[k] P1 →ᵃ[k] P1

homothety as an affine map.

theorem AffineMap.coe_homothetyAffine E0 #

∀ {k : Type u_2} {V1 : Type u_3} {P1 : Type u_4} [inst : CommRing k] [inst_1 : AddCommGroup V1]
  [inst_2 : AddTorsor V1 P1] [inst_3 : Module k V1] (c : P1), ⇑(AffineMap.homothetyAffine c) = AffineMap.homothety c

theorem Convex.combo_affine_apply E0 #

∀ {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Ring 𝕜] [inst_1 : AddCommGroup E] [inst_2 : AddCommGroup F]
  [inst_3 : Module 𝕜 E] [inst_4 : Module 𝕜 F] {x y : E} {a b : 𝕜} {f : E →ᵃ[𝕜] F},
  a + b = 1 → f (a • x + b • y) = a • f x + b • f y

Applying an affine map to an affine combination of two points yields an affine combination of the images.

Deprecated aliases

NameNew nameSince
AffineMap.coe_addFunLike.coe_add2026-11-02
AffineMap.coe_mulFunLike.coe_mul_eq_comp2026-11-02
AffineMap.coe_negFunLike.coe_neg2026-11-02
AffineMap.coe_oneFunLike.coe_one_eq_id2026-11-02
AffineMap.coe_smulFunLike.coe_smul2026-11-02
AffineMap.coe_subFunLike.coe_sub2026-11-02
AffineMap.coe_zeroFunLike.coe_zero2026-11-02
AffineMap.linearMap_vsubAffineMap.linear_apply_vsub2026-09-22