linear_algebra.affine_space.affine_mapMathlib.LinearAlgebra.AffineSpace.AffineMap

This file has been ported!

Changes since the initial port

The following section lists changes to this file in mathlib3 and mathlib4 that occured after the initial port. Most recent changes are shown first. Hovering over a commit will show all commits associated with the same mathlib3 commit.

Changes in mathlib3

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(last sync)

refactor(linear_algebra/affine_space/affine_{map,equiv}): add fun_like instances (#18575)

Going all the way and defining a new affine_map_class class can wait till after the port; but adding fun_like makes the port easier.

This has to reorder a few declarations in affine_equiv.lean. The only new declarations are the new instances.

Diff
@@ -59,11 +59,24 @@ structure affine_map (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Ty
 
 notation P1 ` →ᵃ[`:25 k:25 `] `:0 P2:0 := affine_map k P1 P2
 
-instance (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
-    [ring k]
-    [add_comm_group V1] [module k V1] [affine_space V1 P1]
-    [add_comm_group V2] [module k V2] [affine_space V2 P2]:
-    has_coe_to_fun (P1 →ᵃ[k] P2) (λ _, P1 → P2) := ⟨affine_map.to_fun⟩
+instance affine_map.fun_like (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
+  [ring k]
+  [add_comm_group V1] [module k V1] [affine_space V1 P1]
+  [add_comm_group V2] [module k V2] [affine_space V2 P2]:
+  fun_like (P1 →ᵃ[k] P2) P1 (λ _, P2) :=
+{ coe := affine_map.to_fun,
+  coe_injective' := λ ⟨f, f_linear, f_add⟩ ⟨g, g_linear, g_add⟩ (h : f = g), begin
+    cases (add_torsor.nonempty : nonempty P1) with p,
+    congr' with v,
+    apply vadd_right_cancel (f p),
+    erw [← f_add, h, ← g_add]
+  end }
+
+instance affine_map.has_coe_to_fun (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
+  [ring k]
+  [add_comm_group V1] [module k V1] [affine_space V1 P1]
+  [add_comm_group V2] [module k V2] [affine_space V2 P2] :
+  has_coe_to_fun (P1 →ᵃ[k] P2) (λ _, P1 → P2) := fun_like.has_coe_to_fun
 
 namespace linear_map
 
@@ -115,20 +128,12 @@ by conv_rhs { rw [←vsub_vadd p1 p2, map_vadd, vadd_vsub] }
 
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext] lemma ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
-begin
-  rcases f with ⟨f, f_linear, f_add⟩,
-  rcases g with ⟨g, g_linear, g_add⟩,
-  obtain rfl : f = g := funext h,
-  congr' with v,
-  cases (add_torsor.nonempty : nonempty P1) with p,
-  apply vadd_right_cancel (f p),
-  erw [← f_add, ← g_add]
-end
+fun_like.ext _ _ h
 
 lemma ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p := ⟨λ h p, h ▸ rfl, ext⟩
 
 lemma coe_fn_injective : @function.injective (P1 →ᵃ[k] P2) (P1 → P2) coe_fn :=
-λ f g H, ext $ congr_fun H
+fun_like.coe_injective
 
 protected lemma congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
 congr_arg _ h

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(no changes)

(first ported)

Changes in mathlib3port

mathlib3
mathlib3port
Diff
@@ -697,7 +697,7 @@ theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ :=
 theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁ c₂ : k} :
     lineMap p₀ p₁ c₁ = lineMap p₀ p₁ c₂ ↔ p₀ = p₁ ∨ c₁ = c₂ := by
   rw [line_map_apply, line_map_apply, ← @vsub_eq_zero_iff_eq V1, vadd_vsub_vadd_cancel_right, ←
-    sub_smul, smul_eq_zero, sub_eq_zero, vsub_eq_zero_iff_eq, or_comm', eq_comm]
+    sub_smul, smul_eq_zero, sub_eq_zero, vsub_eq_zero_iff_eq, or_comm, eq_comm]
 #align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iff
 -/
 
Diff
@@ -828,7 +828,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
 theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f 0 := by
-  rw [decomp] <;> simp only [LinearMap.map_zero, Pi.add_apply, add_sub_cancel, zero_add]
+  rw [decomp] <;> simp only [LinearMap.map_zero, Pi.add_apply, add_sub_cancel_right, zero_add]
 #align affine_map.decomp' AffineMap.decomp'
 -/
 
Diff
@@ -64,8 +64,8 @@ structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 :
 
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
-#print AffineMap.instDFunLike /-
-instance AffineMap.instDFunLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+#print AffineMap.instFunLike /-
+instance AffineMap.instFunLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
     [Ring k] [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
     [affine_space V2 P2] : DFunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
     where
@@ -76,7 +76,7 @@ instance AffineMap.instDFunLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : T
     congr with v
     apply vadd_right_cancel (f p)
     erw [← f_add, h, ← g_add]
-#align affine_map.fun_like AffineMap.instDFunLike
+#align affine_map.fun_like AffineMap.instFunLike
 -/
 
 #print AffineMap.hasCoeToFun /-
Diff
@@ -64,10 +64,10 @@ structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 :
 
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
-#print AffineMap.funLike /-
-instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+#print AffineMap.instDFunLike /-
+instance AffineMap.instDFunLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
     [Ring k] [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
-    [affine_space V2 P2] : FunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
+    [affine_space V2 P2] : DFunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
     where
   coe := AffineMap.toFun
   coe_injective' := fun ⟨f, f_linear, f_add⟩ ⟨g, g_linear, g_add⟩ (h : f = g) =>
@@ -76,14 +76,14 @@ instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _
     congr with v
     apply vadd_right_cancel (f p)
     erw [← f_add, h, ← g_add]
-#align affine_map.fun_like AffineMap.funLike
+#align affine_map.fun_like AffineMap.instDFunLike
 -/
 
 #print AffineMap.hasCoeToFun /-
 instance AffineMap.hasCoeToFun (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
     [Ring k] [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
     [affine_space V2 P2] : CoeFun (P1 →ᵃ[k] P2) fun _ => P1 → P2 :=
-  FunLike.hasCoeToFun
+  DFunLike.hasCoeToFun
 #align affine_map.has_coe_to_fun AffineMap.hasCoeToFun
 -/
 
@@ -165,7 +165,7 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
 theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
-  FunLike.ext _ _ h
+  DFunLike.ext _ _ h
 #align affine_map.ext AffineMap.ext
 -/
 
@@ -177,7 +177,7 @@ theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
 
 #print AffineMap.coeFn_injective /-
 theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeFn :=
-  FunLike.coe_injective
+  DFunLike.coe_injective
 #align affine_map.coe_fn_injective AffineMap.coeFn_injective
 -/
 
Diff
@@ -3,11 +3,11 @@ Copyright (c) 2020 Joseph Myers. All rights reserved.
 Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Joseph Myers
 -/
-import Mathbin.Data.Set.Pointwise.Interval
-import Mathbin.LinearAlgebra.AffineSpace.Basic
-import Mathbin.LinearAlgebra.BilinearMap
-import Mathbin.LinearAlgebra.Pi
-import Mathbin.LinearAlgebra.Prod
+import Data.Set.Pointwise.Interval
+import LinearAlgebra.AffineSpace.Basic
+import LinearAlgebra.BilinearMap
+import LinearAlgebra.Pi
+import LinearAlgebra.Prod
 
 #align_import linear_algebra.affine_space.affine_map from "leanprover-community/mathlib"@"bd1fc183335ea95a9519a1630bcf901fe9326d83"
 
Diff
@@ -275,7 +275,7 @@ instance : MulAction R (P1 →ᵃ[k] V2)
     where
   smul c f := ⟨c • f, c • f.linear, fun p v => by simp [smul_add]⟩
   one_smul f := ext fun p => one_smul _ _
-  mul_smul c₁ c₂ f := ext fun p => mul_smul _ _ _
+  hMul_smul c₁ c₂ f := ext fun p => hMul_smul _ _ _
 
 #print AffineMap.coe_smul /-
 @[simp, norm_cast]
Diff
@@ -2,11 +2,6 @@
 Copyright (c) 2020 Joseph Myers. All rights reserved.
 Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Joseph Myers
-
-! This file was ported from Lean 3 source module linear_algebra.affine_space.affine_map
-! leanprover-community/mathlib commit bd1fc183335ea95a9519a1630bcf901fe9326d83
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
 -/
 import Mathbin.Data.Set.Pointwise.Interval
 import Mathbin.LinearAlgebra.AffineSpace.Basic
@@ -14,6 +9,8 @@ import Mathbin.LinearAlgebra.BilinearMap
 import Mathbin.LinearAlgebra.Pi
 import Mathbin.LinearAlgebra.Prod
 
+#align_import linear_algebra.affine_space.affine_map from "leanprover-community/mathlib"@"bd1fc183335ea95a9519a1630bcf901fe9326d83"
+
 /-!
 # Affine maps
 
Diff
@@ -65,7 +65,6 @@ structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 :
 #align affine_map AffineMap
 -/
 
--- mathport name: «expr →ᵃ[ ] »
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
 #print AffineMap.funLike /-
@@ -105,15 +104,19 @@ def toAffineMap : V₁ →ᵃ[k] V₂ where
 #align linear_map.to_affine_map LinearMap.toAffineMap
 -/
 
+#print LinearMap.coe_toAffineMap /-
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
   rfl
 #align linear_map.coe_to_affine_map LinearMap.coe_toAffineMap
+-/
 
+#print LinearMap.toAffineMap_linear /-
 @[simp]
 theorem toAffineMap_linear : f.toAffineMap.linear = f :=
   rfl
 #align linear_map.to_affine_map_linear LinearMap.toAffineMap_linear
+-/
 
 end LinearMap
 
@@ -124,21 +127,24 @@ variable {k : Type _} {V1 : Type _} {P1 : Type _} {V2 : Type _} {P2 : Type _} {V
   [affine_space V1 P1] [AddCommGroup V2] [Module k V2] [affine_space V2 P2] [AddCommGroup V3]
   [Module k V3] [affine_space V3 P3] [AddCommGroup V4] [Module k V4] [affine_space V4 P4]
 
-include V1 V2
-
+#print AffineMap.coe_mk /-
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
 @[simp]
 theorem coe_mk (f : P1 → P2) (linear add) : ((mk f linear add : P1 →ᵃ[k] P2) : P1 → P2) = f :=
   rfl
 #align affine_map.coe_mk AffineMap.coe_mk
+-/
 
+#print AffineMap.toFun_eq_coe /-
 /-- `to_fun` is the same as the result of coercing to a function. -/
 @[simp]
 theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
   rfl
 #align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coe
+-/
 
+#print AffineMap.map_vadd /-
 /-- 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. -/
@@ -146,7 +152,9 @@ affine map applied to that point. -/
 theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.linear v +ᵥ f p :=
   f.map_vadd' p v
 #align affine_map.map_vadd AffineMap.map_vadd
+-/
 
+#print AffineMap.linearMap_vsub /-
 /-- 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. -/
@@ -154,16 +162,21 @@ points. -/
 theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2) = f p1 -ᵥ f p2 := by
   conv_rhs => rw [← vsub_vadd p1 p2, map_vadd, vadd_vsub]
 #align affine_map.linear_map_vsub AffineMap.linearMap_vsub
+-/
 
+#print AffineMap.ext /-
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
 theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
   FunLike.ext _ _ h
 #align affine_map.ext AffineMap.ext
+-/
 
+#print AffineMap.ext_iff /-
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
   ⟨fun h p => h ▸ rfl, ext⟩
 #align affine_map.ext_iff AffineMap.ext_iff
+-/
 
 #print AffineMap.coeFn_injective /-
 theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeFn :=
@@ -171,13 +184,17 @@ theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeF
 #align affine_map.coe_fn_injective AffineMap.coeFn_injective
 -/
 
+#print AffineMap.congr_arg /-
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
   congr_arg _ h
 #align affine_map.congr_arg AffineMap.congr_arg
+-/
 
+#print AffineMap.congr_fun /-
 protected theorem congr_fun {f g : P1 →ᵃ[k] P2} (h : f = g) (x : P1) : f x = g x :=
   h ▸ rfl
 #align affine_map.congr_fun AffineMap.congr_fun
+-/
 
 variable (k P1)
 
@@ -191,18 +208,23 @@ def const (p : P2) : P1 →ᵃ[k] P2
 #align affine_map.const AffineMap.const
 -/
 
+#print AffineMap.coe_const /-
 @[simp]
 theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
   rfl
 #align affine_map.coe_const AffineMap.coe_const
+-/
 
+#print AffineMap.const_linear /-
 @[simp]
 theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
   rfl
 #align affine_map.const_linear AffineMap.const_linear
+-/
 
 variable {k P1}
 
+#print AffineMap.linear_eq_zero_iff_exists_const /-
 theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) : f.linear = 0 ↔ ∃ q, f = const k P1 q :=
   by
   refine' ⟨fun h => _, fun h => _⟩
@@ -213,6 +235,7 @@ theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) : f.linear = 0 ↔
   · rcases h with ⟨q, rfl⟩
     exact const_linear k P1 q
 #align affine_map.linear_eq_zero_iff_exists_const AffineMap.linear_eq_zero_iff_exists_const
+-/
 
 #print AffineMap.nonempty /-
 instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
@@ -220,6 +243,7 @@ instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
 #align affine_map.nonempty AffineMap.nonempty
 -/
 
+#print AffineMap.mk' /-
 /-- 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`. -/
@@ -229,16 +253,21 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
   linear := f'
   map_vadd' p' v := by rw [h, h p', vadd_vsub_assoc, f'.map_add, vadd_vadd]
 #align affine_map.mk' AffineMap.mk'
+-/
 
+#print AffineMap.coe_mk' /-
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
   rfl
 #align affine_map.coe_mk' AffineMap.coe_mk'
+-/
 
+#print AffineMap.mk'_linear /-
 @[simp]
 theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h).linear = f' :=
   rfl
 #align affine_map.mk'_linear AffineMap.mk'_linear
+-/
 
 section SMul
 
@@ -251,15 +280,19 @@ instance : MulAction R (P1 →ᵃ[k] V2)
   one_smul f := ext fun p => one_smul _ _
   mul_smul c₁ c₂ f := ext fun p => mul_smul _ _ _
 
+#print AffineMap.coe_smul /-
 @[simp, norm_cast]
 theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • f :=
   rfl
 #align affine_map.coe_smul AffineMap.coe_smul
+-/
 
+#print AffineMap.smul_linear /-
 @[simp]
 theorem smul_linear (t : R) (f : P1 →ᵃ[k] V2) : (t • f).linear = t • f.linear :=
   rfl
 #align affine_map.smul_linear AffineMap.smul_linear
+-/
 
 instance [DistribMulAction Rᵐᵒᵖ V2] [IsCentralScalar R V2] : IsCentralScalar R (P1 →ᵃ[k] V2)
     where op_smul_eq_smul r x := ext fun _ => op_smul_eq_smul _ _
@@ -276,45 +309,61 @@ instance : Sub (P1 →ᵃ[k] V2)
 
 instance : Neg (P1 →ᵃ[k] V2) where neg f := ⟨-f, -f.linear, fun p v => by simp [add_comm]⟩
 
+#print AffineMap.coe_zero /-
 @[simp, norm_cast]
 theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
   rfl
 #align affine_map.coe_zero AffineMap.coe_zero
+-/
 
+#print AffineMap.coe_add /-
 @[simp, norm_cast]
 theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
   rfl
 #align affine_map.coe_add AffineMap.coe_add
+-/
 
+#print AffineMap.coe_neg /-
 @[simp, norm_cast]
 theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
   rfl
 #align affine_map.coe_neg AffineMap.coe_neg
+-/
 
+#print AffineMap.coe_sub /-
 @[simp, norm_cast]
 theorem coe_sub (f g : P1 →ᵃ[k] V2) : ⇑(f - g) = f - g :=
   rfl
 #align affine_map.coe_sub AffineMap.coe_sub
+-/
 
+#print AffineMap.zero_linear /-
 @[simp]
 theorem zero_linear : (0 : P1 →ᵃ[k] V2).linear = 0 :=
   rfl
 #align affine_map.zero_linear AffineMap.zero_linear
+-/
 
+#print AffineMap.add_linear /-
 @[simp]
 theorem add_linear (f g : P1 →ᵃ[k] V2) : (f + g).linear = f.linear + g.linear :=
   rfl
 #align affine_map.add_linear AffineMap.add_linear
+-/
 
+#print AffineMap.sub_linear /-
 @[simp]
 theorem sub_linear (f g : P1 →ᵃ[k] V2) : (f - g).linear = f.linear - g.linear :=
   rfl
 #align affine_map.sub_linear AffineMap.sub_linear
+-/
 
+#print AffineMap.neg_linear /-
 @[simp]
 theorem neg_linear (f : P1 →ᵃ[k] V2) : (-f).linear = -f.linear :=
   rfl
 #align affine_map.neg_linear AffineMap.neg_linear
+-/
 
 /-- The set of affine maps to a vector space is an additive commutative group. -/
 instance : AddCommGroup (P1 →ᵃ[k] V2) :=
@@ -335,54 +384,68 @@ instance : affine_space (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)
   vsub_vadd' f g := ext fun p => vsub_vadd (f p) (g p)
   vadd_vsub' f g := ext fun p => vadd_vsub (f p) (g p)
 
+#print AffineMap.vadd_apply /-
 @[simp]
 theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +ᵥ g) p = f p +ᵥ g p :=
   rfl
 #align affine_map.vadd_apply AffineMap.vadd_apply
+-/
 
+#print AffineMap.vsub_apply /-
 @[simp]
 theorem vsub_apply (f g : P1 →ᵃ[k] P2) (p : P1) : (f -ᵥ g : P1 →ᵃ[k] V2) p = f p -ᵥ g p :=
   rfl
 #align affine_map.vsub_apply AffineMap.vsub_apply
+-/
 
+#print AffineMap.fst /-
 /-- `prod.fst` as an `affine_map`. -/
 def fst : P1 × P2 →ᵃ[k] P1 where
   toFun := Prod.fst
   linear := LinearMap.fst k V1 V2
   map_vadd' _ _ := rfl
 #align affine_map.fst AffineMap.fst
+-/
 
+#print AffineMap.coe_fst /-
 @[simp]
 theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
   rfl
 #align affine_map.coe_fst AffineMap.coe_fst
+-/
 
+#print AffineMap.fst_linear /-
 @[simp]
 theorem fst_linear : (fst : P1 × P2 →ᵃ[k] P1).linear = LinearMap.fst k V1 V2 :=
   rfl
 #align affine_map.fst_linear AffineMap.fst_linear
+-/
 
+#print AffineMap.snd /-
 /-- `prod.snd` as an `affine_map`. -/
 def snd : P1 × P2 →ᵃ[k] P2 where
   toFun := Prod.snd
   linear := LinearMap.snd k V1 V2
   map_vadd' _ _ := rfl
 #align affine_map.snd AffineMap.snd
+-/
 
+#print AffineMap.coe_snd /-
 @[simp]
 theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
   rfl
 #align affine_map.coe_snd AffineMap.coe_snd
+-/
 
+#print AffineMap.snd_linear /-
 @[simp]
 theorem snd_linear : (snd : P1 × P2 →ᵃ[k] P2).linear = LinearMap.snd k V1 V2 :=
   rfl
 #align affine_map.snd_linear AffineMap.snd_linear
+-/
 
 variable (k P1)
 
-omit V2
-
 #print AffineMap.id /-
 /-- Identity map as an affine map. -/
 def id : P1 →ᵃ[k] P1 where
@@ -400,10 +463,12 @@ theorem coe_id : ⇑(id k P1) = id :=
 #align affine_map.coe_id AffineMap.coe_id
 -/
 
+#print AffineMap.id_linear /-
 @[simp]
 theorem id_linear : (id k P1).linear = LinearMap.id :=
   rfl
 #align affine_map.id_linear AffineMap.id_linear
+-/
 
 variable {P1}
 
@@ -419,8 +484,6 @@ variable {k P1}
 instance : Inhabited (P1 →ᵃ[k] P1) :=
   ⟨id k P1⟩
 
-include V2 V3
-
 #print AffineMap.comp /-
 /-- Composition of affine maps. -/
 def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
@@ -434,37 +497,41 @@ def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
 #align affine_map.comp AffineMap.comp
 -/
 
+#print AffineMap.coe_comp /-
 /-- Composition of affine maps acts as applying the two functions. -/
 @[simp]
 theorem coe_comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : ⇑(f.comp g) = f ∘ g :=
   rfl
 #align affine_map.coe_comp AffineMap.coe_comp
+-/
 
+#print AffineMap.comp_apply /-
 /-- Composition of affine maps acts as applying the two functions. -/
 theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp g p = f (g p) :=
   rfl
 #align affine_map.comp_apply AffineMap.comp_apply
+-/
 
-omit V3
-
+#print AffineMap.comp_id /-
 @[simp]
 theorem comp_id (f : P1 →ᵃ[k] P2) : f.comp (id k P1) = f :=
   ext fun p => rfl
 #align affine_map.comp_id AffineMap.comp_id
+-/
 
+#print AffineMap.id_comp /-
 @[simp]
 theorem id_comp (f : P1 →ᵃ[k] P2) : (id k P2).comp f = f :=
   ext fun p => rfl
 #align affine_map.id_comp AffineMap.id_comp
+-/
 
-include V3 V4
-
+#print AffineMap.comp_assoc /-
 theorem comp_assoc (f₃₄ : P3 →ᵃ[k] P4) (f₂₃ : P2 →ᵃ[k] P3) (f₁₂ : P1 →ᵃ[k] P2) :
     (f₃₄.comp f₂₃).comp f₁₂ = f₃₄.comp (f₂₃.comp f₁₂) :=
   rfl
 #align affine_map.comp_assoc AffineMap.comp_assoc
-
-omit V2 V3 V4
+-/
 
 instance : Monoid (P1 →ᵃ[k] P1) where
   one := id k P1
@@ -473,16 +540,21 @@ instance : Monoid (P1 →ᵃ[k] P1) where
   mul_one := comp_id
   mul_assoc := comp_assoc
 
+#print AffineMap.coe_mul /-
 @[simp]
 theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
   rfl
 #align affine_map.coe_mul AffineMap.coe_mul
+-/
 
+#print AffineMap.coe_one /-
 @[simp]
 theorem coe_one : ⇑(1 : P1 →ᵃ[k] P1) = id :=
   rfl
 #align affine_map.coe_one AffineMap.coe_one
+-/
 
+#print AffineMap.linearHom /-
 /-- `affine_map.linear` on endomorphisms is a `monoid_hom`. -/
 @[simps]
 def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
@@ -491,9 +563,9 @@ def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
   map_one' := rfl
   map_mul' _ _ := rfl
 #align affine_map.linear_hom AffineMap.linearHom
+-/
 
-include V2
-
+#print AffineMap.linear_injective_iff /-
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
     Function.Injective f.linear ↔ Function.Injective f :=
@@ -503,7 +575,9 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
     simp [f.map_vadd, vadd_vsub_assoc]
   rw [h, Equiv.comp_injective, Equiv.injective_comp]
 #align affine_map.linear_injective_iff AffineMap.linear_injective_iff
+-/
 
+#print AffineMap.linear_surjective_iff /-
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
     Function.Surjective f.linear ↔ Function.Surjective f :=
@@ -513,13 +587,17 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
     simp [f.map_vadd, vadd_vsub_assoc]
   rw [h, Equiv.comp_surjective, Equiv.surjective_comp]
 #align affine_map.linear_surjective_iff AffineMap.linear_surjective_iff
+-/
 
+#print AffineMap.linear_bijective_iff /-
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
     Function.Bijective f.linear ↔ Function.Bijective f :=
   and_congr f.linear_injective_iff f.linear_surjective_iff
 #align affine_map.linear_bijective_iff AffineMap.linear_bijective_iff
+-/
 
+#print AffineMap.image_vsub_image /-
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
   ext v
@@ -531,151 +609,196 @@ theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
   · rintro ⟨-, ⟨x, hx, y, hy, rfl⟩, rfl⟩
     exact ⟨x, hx, y, hy, rfl⟩
 #align affine_map.image_vsub_image AffineMap.image_vsub_image
-
-omit V2
+-/
 
 /-! ### Definition of `affine_map.line_map` and lemmas about it -/
 
 
+#print AffineMap.lineMap /-
 /-- The affine map from `k` to `P1` sending `0` to `p₀` and `1` to `p₁`. -/
 def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
   ((LinearMap.id : k →ₗ[k] k).smul_right (p₁ -ᵥ p₀)).toAffineMap +ᵥ const k k p₀
 #align affine_map.line_map AffineMap.lineMap
+-/
 
+#print AffineMap.coe_lineMap /-
 theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c => c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
 #align affine_map.coe_line_map AffineMap.coe_lineMap
+-/
 
+#print AffineMap.lineMap_apply /-
 theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
 #align affine_map.line_map_apply AffineMap.lineMap_apply
+-/
 
+#print AffineMap.lineMap_apply_module' /-
 theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c • (p₁ - p₀) + p₀ :=
   rfl
 #align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'
+-/
 
+#print AffineMap.lineMap_apply_module /-
 theorem lineMap_apply_module (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = (1 - c) • p₀ + c • p₁ := by
   simp [line_map_apply_module', smul_sub, sub_smul] <;> abel
 #align affine_map.line_map_apply_module AffineMap.lineMap_apply_module
+-/
 
-omit V1
-
+#print AffineMap.lineMap_apply_ring' /-
 theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
   rfl
 #align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'
+-/
 
+#print AffineMap.lineMap_apply_ring /-
 theorem lineMap_apply_ring (a b c : k) : lineMap a b c = (1 - c) * a + c * b :=
   lineMap_apply_module a b c
 #align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ring
+-/
 
-include V1
-
+#print AffineMap.lineMap_vadd_apply /-
 theorem lineMap_vadd_apply (p : P1) (v : V1) (c : k) : lineMap p (v +ᵥ p) c = c • v +ᵥ p := by
   rw [line_map_apply, vadd_vsub]
 #align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_apply
+-/
 
+#print AffineMap.lineMap_linear /-
 @[simp]
 theorem lineMap_linear (p₀ p₁ : P1) :
     (lineMap p₀ p₁ : k →ᵃ[k] P1).linear = LinearMap.id.smul_right (p₁ -ᵥ p₀) :=
   add_zero _
 #align affine_map.line_map_linear AffineMap.lineMap_linear
+-/
 
+#print AffineMap.lineMap_same_apply /-
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by simp [line_map_apply]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
+-/
 
+#print AffineMap.lineMap_same /-
 @[simp]
 theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
   ext <| lineMap_same_apply p
 #align affine_map.line_map_same AffineMap.lineMap_same
+-/
 
+#print AffineMap.lineMap_apply_zero /-
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by simp [line_map_apply]
 #align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zero
+-/
 
+#print AffineMap.lineMap_apply_one /-
 @[simp]
 theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ := by simp [line_map_apply]
 #align affine_map.line_map_apply_one AffineMap.lineMap_apply_one
+-/
 
+#print AffineMap.lineMap_eq_lineMap_iff /-
 @[simp]
 theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁ c₂ : k} :
     lineMap p₀ p₁ c₁ = lineMap p₀ p₁ c₂ ↔ p₀ = p₁ ∨ c₁ = c₂ := by
   rw [line_map_apply, line_map_apply, ← @vsub_eq_zero_iff_eq V1, vadd_vsub_vadd_cancel_right, ←
     sub_smul, smul_eq_zero, sub_eq_zero, vsub_eq_zero_iff_eq, or_comm', eq_comm]
 #align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iff
+-/
 
+#print AffineMap.lineMap_eq_left_iff /-
 @[simp]
 theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
     lineMap p₀ p₁ c = p₀ ↔ p₀ = p₁ ∨ c = 0 := by
   rw [← @line_map_eq_line_map_iff k V1, line_map_apply_zero]
 #align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iff
+-/
 
+#print AffineMap.lineMap_eq_right_iff /-
 @[simp]
 theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
     lineMap p₀ p₁ c = p₁ ↔ p₀ = p₁ ∨ c = 1 := by
   rw [← @line_map_eq_line_map_iff k V1, line_map_apply_one]
 #align affine_map.line_map_eq_right_iff AffineMap.lineMap_eq_right_iff
+-/
 
 variable (k)
 
+#print AffineMap.lineMap_injective /-
 theorem lineMap_injective [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} (h : p₀ ≠ p₁) :
     Function.Injective (lineMap p₀ p₁ : k → P1) := fun c₁ c₂ hc =>
   (lineMap_eq_lineMap_iff.mp hc).resolve_left h
 #align affine_map.line_map_injective AffineMap.lineMap_injective
+-/
 
 variable {k}
 
-include V2
-
+#print AffineMap.apply_lineMap /-
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
     f (lineMap p₀ p₁ c) = lineMap (f p₀) (f p₁) c := by simp [line_map_apply]
 #align affine_map.apply_line_map AffineMap.apply_lineMap
+-/
 
+#print AffineMap.comp_lineMap /-
 @[simp]
 theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
     f.comp (lineMap p₀ p₁) = lineMap (f p₀) (f p₁) :=
   ext <| f.apply_lineMap p₀ p₁
 #align affine_map.comp_line_map AffineMap.comp_lineMap
+-/
 
+#print AffineMap.fst_lineMap /-
 @[simp]
 theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = lineMap p₀.1 p₁.1 c :=
   fst.apply_lineMap p₀ p₁ c
 #align affine_map.fst_line_map AffineMap.fst_lineMap
+-/
 
+#print AffineMap.snd_lineMap /-
 @[simp]
 theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = lineMap p₀.2 p₁.2 c :=
   snd.apply_lineMap p₀ p₁ c
 #align affine_map.snd_line_map AffineMap.snd_lineMap
+-/
 
-omit V2
-
+#print AffineMap.lineMap_symm /-
 theorem lineMap_symm (p₀ p₁ : P1) :
     lineMap p₀ p₁ = (lineMap p₁ p₀).comp (lineMap (1 : k) (0 : k)) := by rw [comp_line_map]; simp
 #align affine_map.line_map_symm AffineMap.lineMap_symm
+-/
 
+#print AffineMap.lineMap_apply_one_sub /-
 theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c := by
   rw [line_map_symm p₀, comp_apply]; congr; simp [line_map_apply]
 #align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_sub
+-/
 
+#print AffineMap.lineMap_vsub_left /-
 @[simp]
 theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₀ = c • (p₁ -ᵥ p₀) :=
   vadd_vsub _ _
 #align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_left
+-/
 
+#print AffineMap.left_vsub_lineMap /-
 @[simp]
 theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁ c = c • (p₀ -ᵥ p₁) := by
   rw [← neg_vsub_eq_vsub_rev, line_map_vsub_left, ← smul_neg, neg_vsub_eq_vsub_rev]
 #align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMap
+-/
 
+#print AffineMap.lineMap_vsub_right /-
 @[simp]
 theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₁ = (1 - c) • (p₀ -ᵥ p₁) := by
   rw [← line_map_apply_one_sub, line_map_vsub_left]
 #align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_right
+-/
 
+#print AffineMap.right_vsub_lineMap /-
 @[simp]
 theorem right_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₁ -ᵥ lineMap p₀ p₁ c = (1 - c) • (p₁ -ᵥ p₀) := by
   rw [← line_map_apply_one_sub, left_vsub_line_map]
 #align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMap
+-/
 
 #print AffineMap.lineMap_vadd_lineMap /-
 theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
@@ -684,12 +807,15 @@ theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
 #align affine_map.line_map_vadd_line_map AffineMap.lineMap_vadd_lineMap
 -/
 
+#print AffineMap.lineMap_vsub_lineMap /-
 theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
     lineMap p₁ p₂ c -ᵥ lineMap p₃ p₄ c = lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄) c :=
   letI : affine_space (V1 × V1) (P1 × P1) := Prod.addTorsor
   ((fst : P1 × P1 →ᵃ[k] P1) -ᵥ (snd : P1 × P1 →ᵃ[k] P1)).apply_lineMap (_, _) (_, _) c
 #align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMap
+-/
 
+#print AffineMap.decomp /-
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
 theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0 :=
@@ -699,15 +825,17 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
     f x = f.linear x +ᵥ f 0 := by simp [← f.map_vadd]
     _ = (f.linear.to_fun + fun z : V1 => f 0) x := by simp
 #align affine_map.decomp AffineMap.decomp
+-/
 
+#print AffineMap.decomp' /-
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
 theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f 0 := by
   rw [decomp] <;> simp only [LinearMap.map_zero, Pi.add_apply, add_sub_cancel, zero_add]
 #align affine_map.decomp' AffineMap.decomp'
+-/
 
-omit V1
-
+#print AffineMap.image_uIcc /-
 theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) :=
   by
@@ -720,14 +848,14 @@ theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b
   rw [this, Set.image_comp]
   simp only [Set.image_add_const_uIcc, Set.image_mul_const_uIcc]
 #align affine_map.image_uIcc AffineMap.image_uIcc
+-/
 
 section
 
 variable {ι : Type _} {V : ∀ i : ι, Type _} {P : ∀ i : ι, Type _} [∀ i, AddCommGroup (V i)]
   [∀ i, Module k (V i)] [∀ i, AddTorsor (V i) (P i)]
 
-include V
-
+#print AffineMap.proj /-
 /-- Evaluation at a point as an affine map. -/
 def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
     where
@@ -735,21 +863,28 @@ def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
   linear := @LinearMap.proj k ι _ V _ _ i
   map_vadd' p v := rfl
 #align affine_map.proj AffineMap.proj
+-/
 
+#print AffineMap.proj_apply /-
 @[simp]
 theorem proj_apply (i : ι) (f : ∀ i, P i) : @proj k _ ι V P _ _ _ i f = f i :=
   rfl
 #align affine_map.proj_apply AffineMap.proj_apply
+-/
 
+#print AffineMap.proj_linear /-
 @[simp]
 theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.proj k ι _ V _ _ i :=
   rfl
 #align affine_map.proj_linear AffineMap.proj_linear
+-/
 
+#print AffineMap.pi_lineMap_apply /-
 theorem pi_lineMap_apply (f g : ∀ i, P i) (c : k) (i : ι) :
     lineMap f g c i = lineMap (f i) (g i) c :=
   (proj i : (∀ i, P i) →ᵃ[k] P i).apply_lineMap f g c
 #align affine_map.pi_line_map_apply AffineMap.pi_lineMap_apply
+-/
 
 end
 
@@ -765,8 +900,6 @@ variable [Ring k] [AddCommGroup V1] [affine_space V1 P1] [AddCommGroup V2]
 
 variable [Module k V1] [Module k V2]
 
-include V1
-
 section DistribMulAction
 
 variable [Monoid R] [DistribMulAction R V2] [SMulCommClass k R V2]
@@ -792,6 +925,7 @@ instance : Module R (P1 →ᵃ[k] V2) :=
 
 variable (R)
 
+#print AffineMap.toConstProdLinearMap /-
 /-- 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.
@@ -807,6 +941,7 @@ def toConstProdLinearMap : (V1 →ᵃ[k] V2) ≃ₗ[R] V2 × (V1 →ₗ[k] V2)
   map_add' := by simp
   map_smul' := by simp
 #align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMap
+-/
 
 end Module
 
@@ -818,8 +953,6 @@ variable [CommRing k] [AddCommGroup V1] [affine_space V1 P1] [AddCommGroup V2]
 
 variable [Module k V1] [Module k V2]
 
-include V1
-
 #print AffineMap.homothety /-
 /-- `homothety c r` is the homothety (also known as dilation) about `c` with scale factor `r`. -/
 def homothety (c : P1) (r : k) : P1 →ᵃ[k] P1 :=
@@ -827,10 +960,12 @@ def homothety (c : P1) (r : k) : P1 →ᵃ[k] P1 :=
 #align affine_map.homothety AffineMap.homothety
 -/
 
+#print AffineMap.homothety_def /-
 theorem homothety_def (c : P1) (r : k) :
     homothety c r = r • (id k P1 -ᵥ const k P1 c) +ᵥ const k P1 c :=
   rfl
 #align affine_map.homothety_def AffineMap.homothety_def
+-/
 
 #print AffineMap.homothety_apply /-
 theorem homothety_apply (c : P1) (r : k) (p : P1) : homothety c r p = r • (p -ᵥ c : V1) +ᵥ c :=
@@ -844,9 +979,11 @@ theorem homothety_eq_lineMap (c : P1) (r : k) (p : P1) : homothety c r p = lineM
 #align affine_map.homothety_eq_line_map AffineMap.homothety_eq_lineMap
 -/
 
+#print AffineMap.homothety_one /-
 @[simp]
 theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 := by ext p; simp [homothety_apply]
 #align affine_map.homothety_one AffineMap.homothety_one
+-/
 
 #print AffineMap.homothety_apply_same /-
 @[simp]
@@ -855,47 +992,63 @@ theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
 #align affine_map.homothety_apply_same AffineMap.homothety_apply_same
 -/
 
+#print AffineMap.homothety_mul_apply /-
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
   simp [homothety_apply, mul_smul]
 #align affine_map.homothety_mul_apply AffineMap.homothety_mul_apply
+-/
 
+#print AffineMap.homothety_mul /-
 theorem homothety_mul (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ * r₂) = (homothety c r₁).comp (homothety c r₂) :=
   ext <| homothety_mul_apply c r₁ r₂
 #align affine_map.homothety_mul AffineMap.homothety_mul
+-/
 
+#print AffineMap.homothety_zero /-
 @[simp]
 theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c := by ext p;
   simp [homothety_apply]
 #align affine_map.homothety_zero AffineMap.homothety_zero
+-/
 
+#print AffineMap.homothety_add /-
 @[simp]
 theorem homothety_add (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ + r₂) = r₁ • (id k P1 -ᵥ const k P1 c) +ᵥ homothety c r₂ := by
   simp only [homothety_def, add_smul, vadd_vadd]
 #align affine_map.homothety_add AffineMap.homothety_add
+-/
 
+#print AffineMap.homothetyHom /-
 /-- `homothety` as a multiplicative monoid homomorphism. -/
 def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
   ⟨homothety c, homothety_one c, homothety_mul c⟩
 #align affine_map.homothety_hom AffineMap.homothetyHom
+-/
 
+#print AffineMap.coe_homothetyHom /-
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
   rfl
 #align affine_map.coe_homothety_hom AffineMap.coe_homothetyHom
+-/
 
+#print AffineMap.homothetyAffine /-
 /-- `homothety` as an affine map. -/
 def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
   ⟨homothety c, (LinearMap.lsmul k _).flip (id k P1 -ᵥ const k P1 c),
     Function.swap (homothety_add c)⟩
 #align affine_map.homothety_affine AffineMap.homothetyAffine
+-/
 
+#print AffineMap.coe_homothetyAffine /-
 @[simp]
 theorem coe_homothetyAffine (c : P1) : ⇑(homothetyAffine c : k →ᵃ[k] _) = homothety c :=
   rfl
 #align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffine
+-/
 
 end CommRing
 
@@ -905,12 +1058,14 @@ section
 
 variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Module 𝕜 E] [Module 𝕜 F]
 
+#print Convex.combo_affine_apply /-
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
 theorem Convex.combo_affine_apply {x y : E} {a b : 𝕜} {f : E →ᵃ[𝕜] F} (h : a + b = 1) :
     f (a • x + b • y) = a • f x + b • f y := by
   simp only [Convex.combo_eq_smul_sub_add h, ← vsub_eq_sub]; exact f.apply_line_map _ _ _
 #align convex.combo_affine_apply Convex.combo_affine_apply
+-/
 
 end
 
Diff
@@ -686,8 +686,7 @@ theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
 
 theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
     lineMap p₁ p₂ c -ᵥ lineMap p₃ p₄ c = lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄) c :=
-  letI-- Why Lean fails to find this instance without a hint?
-   : affine_space (V1 × V1) (P1 × P1) := Prod.addTorsor
+  letI : affine_space (V1 × V1) (P1 × P1) := Prod.addTorsor
   ((fst : P1 × P1 →ᵃ[k] P1) -ᵥ (snd : P1 × P1 →ᵃ[k] P1)).apply_lineMap (_, _) (_, _) c
 #align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMap
 
@@ -699,7 +698,6 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
   calc
     f x = f.linear x +ᵥ f 0 := by simp [← f.map_vadd]
     _ = (f.linear.to_fun + fun z : V1 => f 0) x := by simp
-    
 #align affine_map.decomp AffineMap.decomp
 
 /-- Decomposition of an affine map in the special case when the point space and vector space
Diff
@@ -57,8 +57,8 @@ open scoped Affine
 /-- An `affine_map k P1 P2` (notation: `P1 →ᵃ[k] P2`) is a map from `P1` to `P2` that
 induces a corresponding linear map from `V1` to `V2`. -/
 structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _) [Ring k]
-  [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
-  [affine_space V2 P2] where
+    [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
+    [affine_space V2 P2] where
   toFun : P1 → P2
   linear : V1 →ₗ[k] V2
   map_vadd' : ∀ (p : P1) (v : V1), to_fun (v +ᵥ p) = linear v +ᵥ to_fun p
@@ -654,7 +654,7 @@ theorem lineMap_symm (p₀ p₁ : P1) :
 #align affine_map.line_map_symm AffineMap.lineMap_symm
 
 theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c := by
-  rw [line_map_symm p₀, comp_apply]; congr ; simp [line_map_apply]
+  rw [line_map_symm p₀, comp_apply]; congr; simp [line_map_apply]
 #align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_sub
 
 @[simp]
Diff
@@ -51,7 +51,7 @@ topology are defined elsewhere; see `analysis.normed_space.add_torsor` and
 -/
 
 
-open Affine
+open scoped Affine
 
 #print AffineMap /-
 /-- An `affine_map k P1 P2` (notation: `P1 →ᵃ[k] P2`) is a map from `P1` to `P2` that
Diff
@@ -105,23 +105,11 @@ def toAffineMap : V₁ →ᵃ[k] V₂ where
 #align linear_map.to_affine_map LinearMap.toAffineMap
 -/
 
-/- warning: linear_map.coe_to_affine_map -> LinearMap.coe_toAffineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (V₁ -> V₂) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) => V₁ -> V₂) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) => V₁ -> V₂) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
-but is expected to have type
-  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
-Case conversion may be inaccurate. Consider using '#align linear_map.coe_to_affine_map LinearMap.coe_toAffineMapₓ'. -/
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
   rfl
 #align linear_map.coe_to_affine_map LinearMap.coe_toAffineMap
 
-/- warning: linear_map.to_affine_map_linear -> LinearMap.toAffineMap_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (AffineMap.linear.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) f
-but is expected to have type
-  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) (AffineMap.linear.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) f
-Case conversion may be inaccurate. Consider using '#align linear_map.to_affine_map_linear LinearMap.toAffineMap_linearₓ'. -/
 @[simp]
 theorem toAffineMap_linear : f.toAffineMap.linear = f :=
   rfl
@@ -138,9 +126,6 @@ variable {k : Type _} {V1 : Type _} {P1 : Type _} {V2 : Type _} {P2 : Type _} {V
 
 include V1 V2
 
-/- warning: affine_map.coe_mk -> AffineMap.coe_mk is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
 @[simp]
@@ -148,18 +133,12 @@ theorem coe_mk (f : P1 → P2) (linear add) : ((mk f linear add : P1 →ᵃ[k] P
   rfl
 #align affine_map.coe_mk AffineMap.coe_mk
 
-/- warning: affine_map.to_fun_eq_coe -> AffineMap.toFun_eq_coe is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coeₓ'. -/
 /-- `to_fun` is the same as the result of coercing to a function. -/
 @[simp]
 theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
   rfl
 #align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coe
 
-/- warning: affine_map.map_vadd -> AffineMap.map_vadd is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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. -/
@@ -168,9 +147,6 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
   f.map_vadd' p v
 #align affine_map.map_vadd AffineMap.map_vadd
 
-/- warning: affine_map.linear_map_vsub -> AffineMap.linearMap_vsub is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- 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. -/
@@ -179,18 +155,12 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
   conv_rhs => rw [← vsub_vadd p1 p2, map_vadd, vadd_vsub]
 #align affine_map.linear_map_vsub AffineMap.linearMap_vsub
 
-/- warning: affine_map.ext -> AffineMap.ext is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.ext AffineMap.extₓ'. -/
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
 theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
   FunLike.ext _ _ h
 #align affine_map.ext AffineMap.ext
 
-/- warning: affine_map.ext_iff -> AffineMap.ext_iff is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.ext_iff AffineMap.ext_iffₓ'. -/
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
   ⟨fun h p => h ▸ rfl, ext⟩
 #align affine_map.ext_iff AffineMap.ext_iff
@@ -201,16 +171,10 @@ theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeF
 #align affine_map.coe_fn_injective AffineMap.coeFn_injective
 -/
 
-/- warning: affine_map.congr_arg -> AffineMap.congr_arg is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.congr_arg AffineMap.congr_argₓ'. -/
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
   congr_arg _ h
 #align affine_map.congr_arg AffineMap.congr_arg
 
-/- warning: affine_map.congr_fun -> AffineMap.congr_fun is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.congr_fun AffineMap.congr_funₓ'. -/
 protected theorem congr_fun {f g : P1 →ᵃ[k] P2} (h : f = g) (x : P1) : f x = g x :=
   h ▸ rfl
 #align affine_map.congr_fun AffineMap.congr_fun
@@ -227,20 +191,11 @@ def const (p : P2) : P1 →ᵃ[k] P2
 #align affine_map.const AffineMap.const
 -/
 
-/- warning: affine_map.coe_const -> AffineMap.coe_const is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_const AffineMap.coe_constₓ'. -/
 @[simp]
 theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
   rfl
 #align affine_map.coe_const AffineMap.coe_const
 
-/- warning: affine_map.const_linear -> AffineMap.const_linear is a dubious translation:
-lean 3 declaration is
-  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (OfNat.ofNat.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (OfNat.mk.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.zero.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasZero.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))))))
-but is expected to have type
-  forall (k : Type.{u3}) {V1 : Type.{u5}} (P1 : Type.{u2}) {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, u5, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.const.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (OfNat.ofNat.{max u5 u4} (LinearMap.{u3, u3, u5, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.toOfNat0.{max u5 u4} (LinearMap.{u3, u3, u5, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instZeroLinearMap.{u3, u3, u5, u4} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
-Case conversion may be inaccurate. Consider using '#align affine_map.const_linear AffineMap.const_linearₓ'. -/
 @[simp]
 theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
   rfl
@@ -248,9 +203,6 @@ theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
 
 variable {k P1}
 
-/- warning: affine_map.linear_eq_zero_iff_exists_const -> AffineMap.linear_eq_zero_iff_exists_const is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.linear_eq_zero_iff_exists_const AffineMap.linear_eq_zero_iff_exists_constₓ'. -/
 theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) : f.linear = 0 ↔ ∃ q, f = const k P1 q :=
   by
   refine' ⟨fun h => _, fun h => _⟩
@@ -268,9 +220,6 @@ instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
 #align affine_map.nonempty AffineMap.nonempty
 -/
 
-/- warning: affine_map.mk' -> AffineMap.mk' is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.mk' AffineMap.mk'ₓ'. -/
 /-- 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`. -/
@@ -281,17 +230,11 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
   map_vadd' p' v := by rw [h, h p', vadd_vsub_assoc, f'.map_add, vadd_vadd]
 #align affine_map.mk' AffineMap.mk'
 
-/- warning: affine_map.coe_mk' -> AffineMap.coe_mk' is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
   rfl
 #align affine_map.coe_mk' AffineMap.coe_mk'
 
-/- warning: affine_map.mk'_linear -> AffineMap.mk'_linear is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.mk'_linear AffineMap.mk'_linearₓ'. -/
 @[simp]
 theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h).linear = f' :=
   rfl
@@ -308,17 +251,11 @@ instance : MulAction R (P1 →ᵃ[k] V2)
   one_smul f := ext fun p => one_smul _ _
   mul_smul c₁ c₂ f := ext fun p => mul_smul _ _ _
 
-/- warning: affine_map.coe_smul -> AffineMap.coe_smul is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_smul AffineMap.coe_smulₓ'. -/
 @[simp, norm_cast]
 theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • f :=
   rfl
 #align affine_map.coe_smul AffineMap.coe_smul
 
-/- warning: affine_map.smul_linear -> AffineMap.smul_linear is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.smul_linear AffineMap.smul_linearₓ'. -/
 @[simp]
 theorem smul_linear (t : R) (f : P1 →ᵃ[k] V2) : (t • f).linear = t • f.linear :=
   rfl
@@ -339,77 +276,41 @@ instance : Sub (P1 →ᵃ[k] V2)
 
 instance : Neg (P1 →ᵃ[k] V2) where neg f := ⟨-f, -f.linear, fun p v => by simp [add_comm]⟩
 
-/- warning: affine_map.coe_zero -> AffineMap.coe_zero is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)], Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{max (succ u2) (succ u3) (succ u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (OfNat.ofNat.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (OfNat.mk.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (Zero.zero.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasZero.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6))))) (OfNat.ofNat.{max u3 u4} (P1 -> V2) 0 (OfNat.mk.{max u3 u4} (P1 -> V2) 0 (Zero.zero.{max u3 u4} (P1 -> V2) (Pi.instZero.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))))))))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u4}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u4} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u2) (succ u4)) (succ u3), succ u4, succ u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (OfNat.ofNat.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u4, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) 0 (Zero.toOfNat0.{max u4 u3} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (Pi.instZero.{u4, u3} P1 (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (fun (i : P1) => NegZeroClass.toZero.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))))))
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_zero AffineMap.coe_zeroₓ'. -/
 @[simp, norm_cast]
 theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
   rfl
 #align affine_map.coe_zero AffineMap.coe_zero
 
-/- warning: affine_map.coe_add -> AffineMap.coe_add is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_add AffineMap.coe_addₓ'. -/
 @[simp, norm_cast]
 theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
   rfl
 #align affine_map.coe_add AffineMap.coe_add
 
-/- warning: affine_map.coe_neg -> AffineMap.coe_neg is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (Neg.neg.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasNeg.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u3 u4} (P1 -> V2) (Pi.instNeg.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasNeg.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
-but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (Pi.instNeg.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (fun (i : P1) => NegZeroClass.toNeg.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5)))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f))
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_neg AffineMap.coe_negₓ'. -/
 @[simp, norm_cast]
 theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
   rfl
 #align affine_map.coe_neg AffineMap.coe_neg
 
-/- warning: affine_map.coe_sub -> AffineMap.coe_sub is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_sub AffineMap.coe_subₓ'. -/
 @[simp, norm_cast]
 theorem coe_sub (f g : P1 →ᵃ[k] V2) : ⇑(f - g) = f - g :=
   rfl
 #align affine_map.coe_sub AffineMap.coe_sub
 
-/- warning: affine_map.zero_linear -> AffineMap.zero_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)], Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (OfNat.ofNat.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (OfNat.mk.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (Zero.zero.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasZero.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6))))) (OfNat.ofNat.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (OfNat.mk.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.zero.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasZero.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))))))
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u2, u4} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u2, u3} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (LinearMap.{u2, u2, u4, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u2, u4, u1, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) (OfNat.ofNat.{max (max u4 u1) u3} (AffineMap.{u2, u4, u1, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u4 u1) u3} (AffineMap.{u2, u4, u1, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u4, u1, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (LinearMap.{u2, u2, u4, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.toOfNat0.{max u4 u3} (LinearMap.{u2, u2, u4, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instZeroLinearMap.{u2, u2, u4, u3} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))))
-Case conversion may be inaccurate. Consider using '#align affine_map.zero_linear AffineMap.zero_linearₓ'. -/
 @[simp]
 theorem zero_linear : (0 : P1 →ᵃ[k] V2).linear = 0 :=
   rfl
 #align affine_map.zero_linear AffineMap.zero_linear
 
-/- warning: affine_map.add_linear -> AffineMap.add_linear is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.add_linear AffineMap.add_linearₓ'. -/
 @[simp]
 theorem add_linear (f g : P1 →ᵃ[k] V2) : (f + g).linear = f.linear + g.linear :=
   rfl
 #align affine_map.add_linear AffineMap.add_linear
 
-/- warning: affine_map.sub_linear -> AffineMap.sub_linear is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.sub_linear AffineMap.sub_linearₓ'. -/
 @[simp]
 theorem sub_linear (f g : P1 →ᵃ[k] V2) : (f - g).linear = f.linear - g.linear :=
   rfl
 #align affine_map.sub_linear AffineMap.sub_linear
 
-/- warning: affine_map.neg_linear -> AffineMap.neg_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (Neg.neg.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasNeg.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasNeg.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f))
-but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u3) (succ u1)} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instNegLinearMapToAddCommMonoid.{u4, u4, u3, u1} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f))
-Case conversion may be inaccurate. Consider using '#align affine_map.neg_linear AffineMap.neg_linearₓ'. -/
 @[simp]
 theorem neg_linear (f : P1 →ᵃ[k] V2) : (-f).linear = -f.linear :=
   rfl
@@ -434,28 +335,16 @@ instance : affine_space (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)
   vsub_vadd' f g := ext fun p => vsub_vadd (f p) (g p)
   vadd_vsub' f g := ext fun p => vadd_vsub (f p) (g p)
 
-/- warning: affine_map.vadd_apply -> AffineMap.vadd_apply is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.vadd_apply AffineMap.vadd_applyₓ'. -/
 @[simp]
 theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +ᵥ g) p = f p +ᵥ g p :=
   rfl
 #align affine_map.vadd_apply AffineMap.vadd_apply
 
-/- warning: affine_map.vsub_apply -> AffineMap.vsub_apply is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.vsub_apply AffineMap.vsub_applyₓ'. -/
 @[simp]
 theorem vsub_apply (f g : P1 →ᵃ[k] P2) (p : P1) : (f -ᵥ g : P1 →ᵃ[k] V2) p = f p -ᵥ g p :=
   rfl
 #align affine_map.vsub_apply AffineMap.vsub_apply
 
-/- warning: affine_map.fst -> AffineMap.fst is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u3, u5, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4
-Case conversion may be inaccurate. Consider using '#align affine_map.fst AffineMap.fstₓ'. -/
 /-- `prod.fst` as an `affine_map`. -/
 def fst : P1 × P2 →ᵃ[k] P1 where
   toFun := Prod.fst
@@ -463,31 +352,16 @@ def fst : P1 × P2 →ᵃ[k] P1 where
   map_vadd' _ _ := rfl
 #align affine_map.fst AffineMap.fst
 
-/- warning: affine_map.coe_fst -> AffineMap.coe_fst is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_fst AffineMap.coe_fstₓ'. -/
 @[simp]
 theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
   rfl
 #align affine_map.coe_fst AffineMap.coe_fst
 
-/- warning: affine_map.fst_linear -> AffineMap.fst_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u2 u4)) (succ u2)} (LinearMap.{u1, u1, max u2 u4, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (Prod.{u2, u4} V1 V2) V1 (AddCommGroup.toAddCommMonoid.{max u2 u4} (Prod.{u2, u4} V1 V2) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_3) (AffineMap.linear.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.fst.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u5} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V1 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_3) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u5, u2} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u2, u1, u5} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.fst.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
-Case conversion may be inaccurate. Consider using '#align affine_map.fst_linear AffineMap.fst_linearₓ'. -/
 @[simp]
 theorem fst_linear : (fst : P1 × P2 →ᵃ[k] P1).linear = LinearMap.fst k V1 V2 :=
   rfl
 #align affine_map.fst_linear AffineMap.fst_linear
 
-/- warning: affine_map.snd -> AffineMap.snd is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u3, u5, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7
-Case conversion may be inaccurate. Consider using '#align affine_map.snd AffineMap.sndₓ'. -/
 /-- `prod.snd` as an `affine_map`. -/
 def snd : P1 × P2 →ᵃ[k] P2 where
   toFun := Prod.snd
@@ -495,20 +369,11 @@ def snd : P1 × P2 →ᵃ[k] P2 where
   map_vadd' _ _ := rfl
 #align affine_map.snd AffineMap.snd
 
-/- warning: affine_map.coe_snd -> AffineMap.coe_snd is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_snd AffineMap.coe_sndₓ'. -/
 @[simp]
 theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
   rfl
 #align affine_map.coe_snd AffineMap.coe_snd
 
-/- warning: affine_map.snd_linear -> AffineMap.snd_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u2 u4)) (succ u4)} (LinearMap.{u1, u1, max u2 u4, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (Prod.{u2, u4} V1 V2) V2 (AddCommGroup.toAddCommMonoid.{max u2 u4} (Prod.{u2, u4} V1 V2) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_6) (AffineMap.linear.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.snd.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V2 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_6) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u4, u1} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u2, u1, u5} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.snd.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
-Case conversion may be inaccurate. Consider using '#align affine_map.snd_linear AffineMap.snd_linearₓ'. -/
 @[simp]
 theorem snd_linear : (snd : P1 × P2 →ᵃ[k] P2).linear = LinearMap.snd k V1 V2 :=
   rfl
@@ -535,12 +400,6 @@ theorem coe_id : ⇑(id k P1) = id :=
 #align affine_map.coe_id AffineMap.coe_id
 -/
 
-/- warning: affine_map.id_linear -> AffineMap.id_linear is a dubious translation:
-lean 3 declaration is
-  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (AffineMap.linear.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (LinearMap.id.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)
-but is expected to have type
-  forall (k : Type.{u2}) {V1 : Type.{u3}} (P1 : Type.{u1}) [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u1} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)], Eq.{succ u3} (LinearMap.{u2, u2, u3, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3 _inst_3) (AffineMap.linear.{u2, u3, u1, u3, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u3, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (LinearMap.id.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3)
-Case conversion may be inaccurate. Consider using '#align affine_map.id_linear AffineMap.id_linearₓ'. -/
 @[simp]
 theorem id_linear : (id k P1).linear = LinearMap.id :=
   rfl
@@ -575,18 +434,12 @@ def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
 #align affine_map.comp AffineMap.comp
 -/
 
-/- warning: affine_map.coe_comp -> AffineMap.coe_comp is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_comp AffineMap.coe_compₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 @[simp]
 theorem coe_comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : ⇑(f.comp g) = f ∘ g :=
   rfl
 #align affine_map.coe_comp AffineMap.coe_comp
 
-/- warning: affine_map.comp_apply -> AffineMap.comp_apply is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.comp_apply AffineMap.comp_applyₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp g p = f (g p) :=
   rfl
@@ -594,17 +447,11 @@ theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp
 
 omit V3
 
-/- warning: affine_map.comp_id -> AffineMap.comp_id is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.comp_id AffineMap.comp_idₓ'. -/
 @[simp]
 theorem comp_id (f : P1 →ᵃ[k] P2) : f.comp (id k P1) = f :=
   ext fun p => rfl
 #align affine_map.comp_id AffineMap.comp_id
 
-/- warning: affine_map.id_comp -> AffineMap.id_comp is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.id_comp AffineMap.id_compₓ'. -/
 @[simp]
 theorem id_comp (f : P1 →ᵃ[k] P2) : (id k P2).comp f = f :=
   ext fun p => rfl
@@ -612,9 +459,6 @@ theorem id_comp (f : P1 →ᵃ[k] P2) : (id k P2).comp f = f :=
 
 include V3 V4
 
-/- warning: affine_map.comp_assoc -> AffineMap.comp_assoc is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.comp_assoc AffineMap.comp_assocₓ'. -/
 theorem comp_assoc (f₃₄ : P3 →ᵃ[k] P4) (f₂₃ : P2 →ᵃ[k] P3) (f₁₂ : P1 →ᵃ[k] P2) :
     (f₃₄.comp f₂₃).comp f₁₂ = f₃₄.comp (f₂₃.comp f₁₂) :=
   rfl
@@ -629,31 +473,16 @@ instance : Monoid (P1 →ᵃ[k] P1) where
   mul_one := comp_id
   mul_assoc := comp_assoc
 
-/- warning: affine_map.coe_mul -> AffineMap.coe_mul is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_mul AffineMap.coe_mulₓ'. -/
 @[simp]
 theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
   rfl
 #align affine_map.coe_mul AffineMap.coe_mul
 
-/- warning: affine_map.coe_one -> AffineMap.coe_one is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (OfNat.mk.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.one.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))))) (id.{succ u3} P1)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.toOfNat1.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))) (id.{succ u3} P1)
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_one AffineMap.coe_oneₓ'. -/
 @[simp]
 theorem coe_one : ⇑(1 : P1 →ᵃ[k] P1) = id :=
   rfl
 #align affine_map.coe_one AffineMap.coe_one
 
-/- warning: affine_map.linear_hom -> AffineMap.linearHom is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], MonoidHom.{max u2 u3, u2} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (MulZeroOneClass.toMulOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (NonAssocSemiring.toMulZeroOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (NonAssocRing.toNonAssocSemiring.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Ring.toNonAssocRing.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Module.End.ring.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) _inst_2 _inst_3)))))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], MonoidHom.{max u3 u2, u2} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (MulZeroOneClass.toMulOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (NonAssocSemiring.toMulZeroOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Semiring.toNonAssocSemiring.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Module.End.semiring.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))
-Case conversion may be inaccurate. Consider using '#align affine_map.linear_hom AffineMap.linearHomₓ'. -/
 /-- `affine_map.linear` on endomorphisms is a `monoid_hom`. -/
 @[simps]
 def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
@@ -665,9 +494,6 @@ def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
 
 include V2
 
-/- warning: affine_map.linear_injective_iff -> AffineMap.linear_injective_iff is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
     Function.Injective f.linear ↔ Function.Injective f :=
@@ -678,9 +504,6 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
   rw [h, Equiv.comp_injective, Equiv.injective_comp]
 #align affine_map.linear_injective_iff AffineMap.linear_injective_iff
 
-/- warning: affine_map.linear_surjective_iff -> AffineMap.linear_surjective_iff is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
     Function.Surjective f.linear ↔ Function.Surjective f :=
@@ -691,18 +514,12 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
   rw [h, Equiv.comp_surjective, Equiv.surjective_comp]
 #align affine_map.linear_surjective_iff AffineMap.linear_surjective_iff
 
-/- warning: affine_map.linear_bijective_iff -> AffineMap.linear_bijective_iff is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
     Function.Bijective f.linear ↔ Function.Bijective f :=
   and_congr f.linear_injective_iff f.linear_surjective_iff
 #align affine_map.linear_bijective_iff AffineMap.linear_bijective_iff
 
-/- warning: affine_map.image_vsub_image -> AffineMap.image_vsub_image is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
   ext v
@@ -720,146 +537,65 @@ omit V2
 /-! ### Definition of `affine_map.line_map` and lemmas about it -/
 
 
-/- warning: affine_map.line_map -> AffineMap.lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4)
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map AffineMap.lineMapₓ'. -/
 /-- The affine map from `k` to `P1` sending `0` to `p₀` and `1` to `p₁`. -/
 def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
   ((LinearMap.id : k →ₗ[k] k).smul_right (p₁ -ᵥ p₀)).toAffineMap +ᵥ const k k p₀
 #align affine_map.line_map AffineMap.lineMap
 
-/- warning: affine_map.coe_line_map -> AffineMap.coe_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u3)} ((fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u1}} {P1 : Type.{u2}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (forall (a : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) a) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u2), succ u3, succ u2} (AffineMap.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u1, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => HVAdd.hVAdd.{u1, u2, u2} V1 P1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (instHVAdd.{u1, u2} V1 P1 (AddAction.toVAdd.{u1, u2} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u3, u1, u1} k V1 V1 (instHSMul.{u3, u1} k V1 (SMulZeroClass.toSMul.{u3, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u1} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u1} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u2} V1 P1 (AddTorsor.toVSub.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_line_map AffineMap.coe_lineMapₓ'. -/
 theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c => c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
 #align affine_map.coe_line_map AffineMap.coe_lineMap
 
-/- warning: affine_map.line_map_apply -> AffineMap.lineMap_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply AffineMap.lineMap_applyₓ'. -/
 theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
 #align affine_map.line_map_apply AffineMap.lineMap_apply
 
-/- warning: affine_map.line_map_apply_module' -> AffineMap.lineMap_apply_module' is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toHasSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'ₓ'. -/
 theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c • (p₁ - p₀) + p₀ :=
   rfl
 #align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'
 
-/- warning: affine_map.line_map_apply_module -> AffineMap.lineMap_apply_module is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c p₁))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) p₀) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c p₁))
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module AffineMap.lineMap_apply_moduleₓ'. -/
 theorem lineMap_apply_module (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = (1 - c) • p₀ + c • p₁ := by
   simp [line_map_apply_module', smul_sub, sub_smul] <;> abel
 #align affine_map.line_map_apply_module AffineMap.lineMap_apply_module
 
 omit V1
 
-/- warning: affine_map.line_map_apply_ring' -> AffineMap.lineMap_apply_ring' is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) b a)) a)
-but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) b a)) a)
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'ₓ'. -/
 theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
   rfl
 #align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'
 
-/- warning: affine_map.line_map_apply_ring -> AffineMap.lineMap_apply_ring is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c b))
-but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Distrib.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonUnitalNonAssocSemiring.toDistrib.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonAssocRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)))))) (HMul.hMul.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (instHMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonUnitalNonAssocRing.toMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonAssocRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)))) (HSub.hSub.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (instHSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)) (OfNat.ofNat.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) 1 (One.toOfNat1.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Semiring.toOne.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) c b))
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ringₓ'. -/
 theorem lineMap_apply_ring (a b c : k) : lineMap a b c = (1 - c) * a + c * b :=
   lineMap_apply_module a b c
 #align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ring
 
 include V1
 
-/- warning: affine_map.line_map_vadd_apply -> AffineMap.lineMap_vadd_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c v) p)
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) v p)) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c v) p)
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_applyₓ'. -/
 theorem lineMap_vadd_apply (p : P1) (v : V1) (c : k) : lineMap p (v +ᵥ p) c = c • v +ᵥ p := by
   rw [line_map_apply, vadd_vsub]
 #align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_apply
 
-/- warning: affine_map.line_map_linear -> AffineMap.lineMap_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2)} (LinearMap.{u1, u1, u1, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u1} k (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3) (AffineMap.linear.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u1, u1, u2, u1} k k V1 k (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) _inst_3 (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (Ring.toSemiring.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3 (IsScalarTower.left.{u1, u2} k V1 (Ring.toMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u1, u1} k k (Ring.toSemiring.{u1} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (LinearMap.{u3, u3, u3, u2} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u3} k (Ring.toAddCommGroup.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) _inst_3) (AffineMap.linear.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u3, u3, u2, u3} k k V1 k (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) _inst_3 (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (Ring.toSemiring.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) _inst_3 (IsScalarTower.left.{u3, u2} k V1 (MonoidWithZero.toMonoid.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u3, u3} k k (Ring.toSemiring.{u3} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (VSub.vsub.{u2, u1} V1 P1 (AddTorsor.toVSub.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_linear AffineMap.lineMap_linearₓ'. -/
 @[simp]
 theorem lineMap_linear (p₀ p₁ : P1) :
     (lineMap p₀ p₁ : k →ᵃ[k] P1).linear = LinearMap.id.smul_right (p₁ -ᵥ p₀) :=
   add_zero _
 #align affine_map.line_map_linear AffineMap.lineMap_linear
 
-/- warning: affine_map.line_map_same_apply -> AffineMap.lineMap_same_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same_apply AffineMap.lineMap_same_applyₓ'. -/
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by simp [line_map_apply]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
 
-/- warning: affine_map.line_map_same -> AffineMap.lineMap_same is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 p)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 p)
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same AffineMap.lineMap_sameₓ'. -/
 @[simp]
 theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
   ext <| lineMap_same_apply p
 #align affine_map.line_map_same AffineMap.lineMap_same
 
-/- warning: affine_map.line_map_apply_zero -> AffineMap.lineMap_apply_zero is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))) p₀
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) p₀
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zeroₓ'. -/
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by simp [line_map_apply]
 #align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zero
 
-/- warning: affine_map.line_map_apply_one -> AffineMap.lineMap_apply_one is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))))) p₁
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) p₁
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one AffineMap.lineMap_apply_oneₓ'. -/
 @[simp]
 theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ := by simp [line_map_apply]
 #align affine_map.line_map_apply_one AffineMap.lineMap_apply_one
 
-/- warning: affine_map.line_map_eq_line_map_iff -> AffineMap.lineMap_eq_lineMap_iff is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁ c₂ : k} :
     lineMap p₀ p₁ c₁ = lineMap p₀ p₁ c₂ ↔ p₀ = p₁ ∨ c₁ = c₂ := by
@@ -867,18 +603,12 @@ theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁
     sub_smul, smul_eq_zero, sub_eq_zero, vsub_eq_zero_iff_eq, or_comm', eq_comm]
 #align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iff
 
-/- warning: affine_map.line_map_eq_left_iff -> AffineMap.lineMap_eq_left_iff is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
     lineMap p₀ p₁ c = p₀ ↔ p₀ = p₁ ∨ c = 0 := by
   rw [← @line_map_eq_line_map_iff k V1, line_map_apply_zero]
 #align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iff
 
-/- warning: affine_map.line_map_eq_right_iff -> AffineMap.lineMap_eq_right_iff is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_right_iff AffineMap.lineMap_eq_right_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
     lineMap p₀ p₁ c = p₁ ↔ p₀ = p₁ ∨ c = 1 := by
@@ -887,12 +617,6 @@ theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k}
 
 variable (k)
 
-/- warning: affine_map.line_map_injective -> AffineMap.lineMap_injective is a dubious translation:
-lean 3 declaration is
-  forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u3} P1 p₀ p₁) -> (Function.Injective.{succ u1, succ u3} k P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
-but is expected to have type
-  forall (k : Type.{u3}) {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u1} P1 p₀ p₁) -> (Function.Injective.{succ u3, succ u1} k P1 (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_injective AffineMap.lineMap_injectiveₓ'. -/
 theorem lineMap_injective [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} (h : p₀ ≠ p₁) :
     Function.Injective (lineMap p₀ p₁ : k → P1) := fun c₁ c₂ hc =>
   (lineMap_eq_lineMap_iff.mp hc).resolve_left h
@@ -902,34 +626,22 @@ variable {k}
 
 include V2
 
-/- warning: affine_map.apply_line_map -> AffineMap.apply_lineMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.apply_line_map AffineMap.apply_lineMapₓ'. -/
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
     f (lineMap p₀ p₁ c) = lineMap (f p₀) (f p₁) c := by simp [line_map_apply]
 #align affine_map.apply_line_map AffineMap.apply_lineMap
 
-/- warning: affine_map.comp_line_map -> AffineMap.comp_lineMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.comp_line_map AffineMap.comp_lineMapₓ'. -/
 @[simp]
 theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
     f.comp (lineMap p₀ p₁) = lineMap (f p₀) (f p₁) :=
   ext <| f.apply_lineMap p₀ p₁
 #align affine_map.comp_line_map AffineMap.comp_lineMap
 
-/- warning: affine_map.fst_line_map -> AffineMap.fst_lineMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.fst_line_map AffineMap.fst_lineMapₓ'. -/
 @[simp]
 theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = lineMap p₀.1 p₁.1 c :=
   fst.apply_lineMap p₀ p₁ c
 #align affine_map.fst_line_map AffineMap.fst_lineMap
 
-/- warning: affine_map.snd_line_map -> AffineMap.snd_lineMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.snd_line_map AffineMap.snd_lineMapₓ'. -/
 @[simp]
 theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = lineMap p₀.2 p₁.2 c :=
   snd.apply_lineMap p₀ p₁ c
@@ -937,53 +649,29 @@ theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = l
 
 omit V2
 
-/- warning: affine_map.line_map_symm -> AffineMap.lineMap_symm is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u1, u1, u1, u1, u1, u2, u3} k k k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u3, u3, u3, u3, u3, u2, u1} k k k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u3, u3, u3} k k k _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_symm AffineMap.lineMap_symmₓ'. -/
 theorem lineMap_symm (p₀ p₁ : P1) :
     lineMap p₀ p₁ = (lineMap p₁ p₀).comp (lineMap (1 : k) (0 : k)) := by rw [comp_line_map]; simp
 #align affine_map.line_map_symm AffineMap.lineMap_symm
 
-/- warning: affine_map.line_map_apply_one_sub -> AffineMap.lineMap_apply_one_sub is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_subₓ'. -/
 theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c := by
   rw [line_map_symm p₀, comp_apply]; congr ; simp [line_map_apply]
 #align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_sub
 
-/- warning: affine_map.line_map_vsub_left -> AffineMap.lineMap_vsub_left is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_leftₓ'. -/
 @[simp]
 theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₀ = c • (p₁ -ᵥ p₀) :=
   vadd_vsub _ _
 #align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_left
 
-/- warning: affine_map.left_vsub_line_map -> AffineMap.left_vsub_lineMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMapₓ'. -/
 @[simp]
 theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁ c = c • (p₀ -ᵥ p₁) := by
   rw [← neg_vsub_eq_vsub_rev, line_map_vsub_left, ← smul_neg, neg_vsub_eq_vsub_rev]
 #align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMap
 
-/- warning: affine_map.line_map_vsub_right -> AffineMap.lineMap_vsub_right is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_rightₓ'. -/
 @[simp]
 theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₁ = (1 - c) • (p₀ -ᵥ p₁) := by
   rw [← line_map_apply_one_sub, line_map_vsub_left]
 #align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_right
 
-/- warning: affine_map.right_vsub_line_map -> AffineMap.right_vsub_lineMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMapₓ'. -/
 @[simp]
 theorem right_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₁ -ᵥ lineMap p₀ p₁ c = (1 - c) • (p₁ -ᵥ p₀) := by
   rw [← line_map_apply_one_sub, left_vsub_line_map]
@@ -996,9 +684,6 @@ theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
 #align affine_map.line_map_vadd_line_map AffineMap.lineMap_vadd_lineMap
 -/
 
-/- warning: affine_map.line_map_vsub_line_map -> AffineMap.lineMap_vsub_lineMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMapₓ'. -/
 theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
     lineMap p₁ p₂ c -ᵥ lineMap p₃ p₄ c = lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄) c :=
   letI-- Why Lean fails to find this instance without a hint?
@@ -1006,9 +691,6 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
   ((fst : P1 × P1 →ᵃ[k] P1) -ᵥ (snd : P1 × P1 →ᵃ[k] P1)).apply_lineMap (_, _) (_, _) c
 #align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMap
 
-/- warning: affine_map.decomp -> AffineMap.decomp is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
 theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0 :=
@@ -1020,9 +702,6 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
     
 #align affine_map.decomp AffineMap.decomp
 
-/- warning: affine_map.decomp' -> AffineMap.decomp' is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
 theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f 0 := by
@@ -1031,9 +710,6 @@ theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f
 
 omit V1
 
-/- warning: affine_map.image_uIcc -> AffineMap.image_uIcc is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.image_uIcc AffineMap.image_uIccₓ'. -/
 theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) :=
   by
@@ -1054,12 +730,6 @@ variable {ι : Type _} {V : ∀ i : ι, Type _} {P : ∀ i : ι, Type _} [∀ i,
 
 include V
 
-/- warning: affine_map.proj -> AffineMap.proj is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)
-but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)
-Case conversion may be inaccurate. Consider using '#align affine_map.proj AffineMap.projₓ'. -/
 /-- Evaluation at a point as an affine map. -/
 def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
     where
@@ -1068,28 +738,16 @@ def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
   map_vadd' p v := rfl
 #align affine_map.proj AffineMap.proj
 
-/- warning: affine_map.proj_apply -> AffineMap.proj_apply is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.proj_apply AffineMap.proj_applyₓ'. -/
 @[simp]
 theorem proj_apply (i : ι) (f : ∀ i, P i) : @proj k _ ι V P _ _ _ i f = f i :=
   rfl
 #align affine_map.proj_apply AffineMap.proj_apply
 
-/- warning: affine_map.proj_linear -> AffineMap.proj_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), Eq.{max (succ (max u2 u3)) (succ u3)} (LinearMap.{u1, u1, max u2 u3, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (forall (i : ι), V i) (V i) (AddCommGroup.toAddCommMonoid.{max u2 u3} (forall (i : ι), V i) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i))) (AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) ((fun (i : ι) => _inst_15 i) i)) (AffineMap.linear.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i) (AffineMap.proj.{u1, u2, u3, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i)) (LinearMap.proj.{u1, u2, u3} k ι (Ring.toSemiring.{u1} k _inst_1) V (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i) i)
-but is expected to have type
-  forall {k : Type.{u2}} [_inst_1 : Ring.{u2} k] {ι : Type.{u4}} {V : ι -> Type.{u3}} {P : ι -> Type.{u1}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u2, u3} k (V i) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u1} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), Eq.{max (succ u4) (succ u3)} (LinearMap.{u2, u2, max u4 u3, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (forall (i : ι), V i) (V i) (AddCommGroup.toAddCommMonoid.{max u4 u3} (forall (i : ι), V i) (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i))) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (_inst_15 i)) (AffineMap.linear.{u2, max u4 u3, max u4 u1, u3, u1} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u4, u3, u1} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.proj.{u2, u4, u3, u1} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i)) (LinearMap.proj.{u2, u4, u3} k ι (Ring.toSemiring.{u2} k _inst_1) V (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i) i)
-Case conversion may be inaccurate. Consider using '#align affine_map.proj_linear AffineMap.proj_linearₓ'. -/
 @[simp]
 theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.proj k ι _ V _ _ i :=
   rfl
 #align affine_map.proj_linear AffineMap.proj_linear
 
-/- warning: affine_map.pi_line_map_apply -> AffineMap.pi_lineMap_apply is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.pi_line_map_apply AffineMap.pi_lineMap_applyₓ'. -/
 theorem pi_lineMap_apply (f g : ∀ i, P i) (c : k) (i : ι) :
     lineMap f g c i = lineMap (f i) (g i) c :=
   (proj i : (∀ i, P i) →ᵃ[k] P i).apply_lineMap f g c
@@ -1136,9 +794,6 @@ instance : Module R (P1 →ᵃ[k] V2) :=
 
 variable (R)
 
-/- warning: affine_map.to_const_prod_linear_map -> AffineMap.toConstProdLinearMap is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMapₓ'. -/
 /-- 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.
@@ -1174,9 +829,6 @@ def homothety (c : P1) (r : k) : P1 →ᵃ[k] P1 :=
 #align affine_map.homothety AffineMap.homothety
 -/
 
-/- warning: affine_map.homothety_def -> AffineMap.homothety_def is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_def AffineMap.homothety_defₓ'. -/
 theorem homothety_def (c : P1) (r : k) :
     homothety c r = r • (id k P1 -ᵥ const k P1 c) +ᵥ const k P1 c :=
   rfl
@@ -1194,12 +846,6 @@ theorem homothety_eq_lineMap (c : P1) (r : k) (p : P1) : homothety c r p = lineM
 #align affine_map.homothety_eq_line_map AffineMap.homothety_eq_lineMap
 -/
 
-/- warning: affine_map.homothety_one -> AffineMap.homothety_one is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))))))) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_one AffineMap.homothety_oneₓ'. -/
 @[simp]
 theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 := by ext p; simp [homothety_apply]
 #align affine_map.homothety_one AffineMap.homothety_one
@@ -1211,79 +857,43 @@ theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
 #align affine_map.homothety_apply_same AffineMap.homothety_apply_same
 -/
 
-/- warning: affine_map.homothety_mul_apply -> AffineMap.homothety_mul_apply is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul_apply AffineMap.homothety_mul_applyₓ'. -/
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
   simp [homothety_apply, mul_smul]
 #align affine_map.homothety_mul_apply AffineMap.homothety_mul_apply
 
-/- warning: affine_map.homothety_mul -> AffineMap.homothety_mul is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (AffineMap.comp.{u1, u2, u3, u2, u3, u2, u3} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul AffineMap.homothety_mulₓ'. -/
 theorem homothety_mul (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ * r₂) = (homothety c r₁).comp (homothety c r₂) :=
   ext <| homothety_mul_apply c r₁ r₂
 #align affine_map.homothety_mul AffineMap.homothety_mul
 
-/- warning: affine_map.homothety_zero -> AffineMap.homothety_zero is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))))))))) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (Zero.toOfNat0.{u1} k (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_zero AffineMap.homothety_zeroₓ'. -/
 @[simp]
 theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c := by ext p;
   simp [homothety_apply]
 #align affine_map.homothety_zero AffineMap.homothety_zero
 
-/- warning: affine_map.homothety_add -> AffineMap.homothety_add is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_add AffineMap.homothety_addₓ'. -/
 @[simp]
 theorem homothety_add (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ + r₂) = r₁ • (id k P1 -ᵥ const k P1 c) +ᵥ homothety c r₂ := by
   simp only [homothety_def, add_smul, vadd_vadd]
 #align affine_map.homothety_add AffineMap.homothety_add
 
-/- warning: affine_map.homothety_hom -> AffineMap.homothetyHom is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (Semiring.toNonAssocSemiring.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_hom AffineMap.homothetyHomₓ'. -/
 /-- `homothety` as a multiplicative monoid homomorphism. -/
 def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
   ⟨homothety c, homothety_one c, homothety_mul c⟩
 #align affine_map.homothety_hom AffineMap.homothetyHom
 
-/- warning: affine_map.coe_homothety_hom -> AffineMap.coe_homothetyHom is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
   rfl
 #align affine_map.coe_homothety_hom AffineMap.coe_homothetyHom
 
-/- warning: affine_map.homothety_affine -> AffineMap.homothetyAffine is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u2 u3, max u3 u2} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (Ring.toAddCommGroup.{u1} k (CommRing.toRing.{u1} k _inst_1)) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_affine AffineMap.homothetyAffineₓ'. -/
 /-- `homothety` as an affine map. -/
 def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
   ⟨homothety c, (LinearMap.lsmul k _).flip (id k P1 -ᵥ const k P1 c),
     Function.swap (homothety_add c)⟩
 #align affine_map.homothety_affine AffineMap.homothetyAffine
 
-/- warning: affine_map.coe_homothety_affine -> AffineMap.coe_homothetyAffine is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffineₓ'. -/
 @[simp]
 theorem coe_homothetyAffine (c : P1) : ⇑(homothetyAffine c : k →ᵃ[k] _) = homothety c :=
   rfl
@@ -1297,9 +907,6 @@ section
 
 variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Module 𝕜 E] [Module 𝕜 F]
 
-/- warning: convex.combo_affine_apply -> Convex.combo_affine_apply is a dubious translation:
-<too large>
-Case conversion may be inaccurate. Consider using '#align convex.combo_affine_apply Convex.combo_affine_applyₓ'. -/
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
 theorem Convex.combo_affine_apply {x y : E} {a b : 𝕜} {f : E →ᵃ[𝕜] F} (h : a + b = 1) :
Diff
@@ -673,9 +673,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
     Function.Injective f.linear ↔ Function.Injective f :=
   by
   obtain ⟨p⟩ := (inferInstance : Nonempty P1)
-  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p :=
-    by
-    ext v
+  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p := by ext v;
     simp [f.map_vadd, vadd_vsub_assoc]
   rw [h, Equiv.comp_injective, Equiv.injective_comp]
 #align affine_map.linear_injective_iff AffineMap.linear_injective_iff
@@ -688,9 +686,7 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
     Function.Surjective f.linear ↔ Function.Surjective f :=
   by
   obtain ⟨p⟩ := (inferInstance : Nonempty P1)
-  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p :=
-    by
-    ext v
+  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p := by ext v;
     simp [f.map_vadd, vadd_vsub_assoc]
   rw [h, Equiv.comp_surjective, Equiv.surjective_comp]
 #align affine_map.linear_surjective_iff AffineMap.linear_surjective_iff
@@ -948,10 +944,7 @@ but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u3, u3, u3, u3, u3, u2, u1} k k k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u3, u3, u3} k k k _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_symm AffineMap.lineMap_symmₓ'. -/
 theorem lineMap_symm (p₀ p₁ : P1) :
-    lineMap p₀ p₁ = (lineMap p₁ p₀).comp (lineMap (1 : k) (0 : k)) :=
-  by
-  rw [comp_line_map]
-  simp
+    lineMap p₀ p₁ = (lineMap p₁ p₀).comp (lineMap (1 : k) (0 : k)) := by rw [comp_line_map]; simp
 #align affine_map.line_map_symm AffineMap.lineMap_symm
 
 /- warning: affine_map.line_map_apply_one_sub -> AffineMap.lineMap_apply_one_sub is a dubious translation:
@@ -960,11 +953,8 @@ lean 3 declaration is
 but is expected to have type
   forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_subₓ'. -/
-theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c :=
-  by
-  rw [line_map_symm p₀, comp_apply]
-  congr
-  simp [line_map_apply]
+theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c := by
+  rw [line_map_symm p₀, comp_apply]; congr ; simp [line_map_apply]
 #align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_sub
 
 /- warning: affine_map.line_map_vsub_left -> AffineMap.lineMap_vsub_left is a dubious translation:
@@ -1159,13 +1149,8 @@ def toConstProdLinearMap : (V1 →ᵃ[k] V2) ≃ₗ[R] V2 × (V1 →ₗ[k] V2)
     where
   toFun f := ⟨f 0, f.linear⟩
   invFun p := p.2.toAffineMap + const k V1 p.1
-  left_inv f := by
-    ext
-    rw [f.decomp]
-    simp
-  right_inv := by
-    rintro ⟨v, f⟩
-    ext <;> simp
+  left_inv f := by ext; rw [f.decomp]; simp
+  right_inv := by rintro ⟨v, f⟩; ext <;> simp
   map_add' := by simp
   map_smul' := by simp
 #align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMap
@@ -1216,10 +1201,7 @@ but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_one AffineMap.homothety_oneₓ'. -/
 @[simp]
-theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 :=
-  by
-  ext p
-  simp [homothety_apply]
+theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 := by ext p; simp [homothety_apply]
 #align affine_map.homothety_one AffineMap.homothety_one
 
 #print AffineMap.homothety_apply_same /-
@@ -1255,9 +1237,7 @@ but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (Zero.toOfNat0.{u1} k (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_zero AffineMap.homothety_zeroₓ'. -/
 @[simp]
-theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
-  by
-  ext p
+theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c := by ext p;
   simp [homothety_apply]
 #align affine_map.homothety_zero AffineMap.homothety_zero
 
@@ -1323,10 +1303,8 @@ Case conversion may be inaccurate. Consider using '#align convex.combo_affine_ap
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
 theorem Convex.combo_affine_apply {x y : E} {a b : 𝕜} {f : E →ᵃ[𝕜] F} (h : a + b = 1) :
-    f (a • x + b • y) = a • f x + b • f y :=
-  by
-  simp only [Convex.combo_eq_smul_sub_add h, ← vsub_eq_sub]
-  exact f.apply_line_map _ _ _
+    f (a • x + b • y) = a • f x + b • f y := by
+  simp only [Convex.combo_eq_smul_sub_add h, ← vsub_eq_sub]; exact f.apply_line_map _ _ _
 #align convex.combo_affine_apply Convex.combo_affine_apply
 
 end
Diff
@@ -139,10 +139,7 @@ variable {k : Type _} {V1 : Type _} {P1 : Type _} {V2 : Type _} {P2 : Type _} {V
 include V1 V2
 
 /- warning: affine_map.coe_mk -> AffineMap.coe_mk is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u5} P2 (f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) linear v) (f p))), Eq.{max (succ u3) (succ u5)} ((fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
@@ -152,10 +149,7 @@ theorem coe_mk (f : P1 → P2) (linear add) : ((mk f linear add : P1 →ᵃ[k] P
 #align affine_map.coe_mk AffineMap.coe_mk
 
 /- warning: affine_map.to_fun_eq_coe -> AffineMap.toFun_eq_coe is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (AffineMap.toFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f)
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u1)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (f : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) f) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coeₓ'. -/
 /-- `to_fun` is the same as the result of coercing to a function. -/
 @[simp]
@@ -164,10 +158,7 @@ theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
 #align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coe
 
 /- warning: affine_map.map_vadd -> AffineMap.map_vadd is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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
@@ -178,10 +169,7 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
 #align affine_map.map_vadd AffineMap.map_vadd
 
 /- warning: affine_map.linear_map_vsub -> AffineMap.linearMap_vsub is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- The linear map on the result of subtracting two points is the
 result of subtracting the result of the affine map on those two
@@ -192,10 +180,7 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
 #align affine_map.linear_map_vsub AffineMap.linearMap_vsub
 
 /- warning: affine_map.ext -> AffineMap.ext is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.ext AffineMap.extₓ'. -/
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
@@ -204,10 +189,7 @@ theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
 #align affine_map.ext AffineMap.ext
 
 /- warning: affine_map.ext_iff -> AffineMap.ext_iff is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.ext_iff AffineMap.ext_iffₓ'. -/
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
   ⟨fun h p => h ▸ rfl, ext⟩
@@ -220,20 +202,14 @@ theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeF
 -/
 
 /- warning: affine_map.congr_arg -> AffineMap.congr_arg is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.congr_arg AffineMap.congr_argₓ'. -/
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
   congr_arg _ h
 #align affine_map.congr_arg AffineMap.congr_arg
 
 /- warning: affine_map.congr_fun -> AffineMap.congr_fun is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.congr_fun AffineMap.congr_funₓ'. -/
 protected theorem congr_fun {f g : P1 →ᵃ[k] P2} (h : f = g) (x : P1) : f x = g x :=
   h ▸ rfl
@@ -252,10 +228,7 @@ def const (p : P2) : P1 →ᵃ[k] P2
 -/
 
 /- warning: affine_map.coe_const -> AffineMap.coe_const is a dubious translation:
-lean 3 declaration is
-  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u5, succ u3} P2 P1 p)
-but is expected to have type
-  forall (k : Type.{u1}) {V1 : Type.{u3}} (P1 : Type.{u5}) {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u4), succ u5, succ u4} (AffineMap.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u4, succ u5} P2 P1 p)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_const AffineMap.coe_constₓ'. -/
 @[simp]
 theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
@@ -276,10 +249,7 @@ theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
 variable {k P1}
 
 /- warning: affine_map.linear_eq_zero_iff_exists_const -> AffineMap.linear_eq_zero_iff_exists_const is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (OfNat.ofNat.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (OfNat.mk.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.zero.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasZero.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))))))) (Exists.{succ u5} P2 (fun (q : P2) => Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 q)))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Eq.{max (succ u4) (succ u2)} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (OfNat.ofNat.{max u4 u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.toOfNat0.{max u4 u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instZeroLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))))))) (Exists.{succ u1} P2 (fun (q : P2) => Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (AffineMap.const.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 q)))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_eq_zero_iff_exists_const AffineMap.linear_eq_zero_iff_exists_constₓ'. -/
 theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) : f.linear = 0 ↔ ∃ q, f = const k P1 q :=
   by
@@ -299,10 +269,7 @@ instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
 -/
 
 /- warning: affine_map.mk' -> AffineMap.mk' is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.mk' AffineMap.mk'ₓ'. -/
 /-- 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
@@ -315,10 +282,7 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
 #align affine_map.mk' AffineMap.mk'
 
 /- warning: affine_map.coe_mk' -> AffineMap.coe_mk' is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
@@ -326,10 +290,7 @@ theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h)
 #align affine_map.coe_mk' AffineMap.coe_mk'
 
 /- warning: affine_map.mk'_linear -> AffineMap.mk'_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.mk'_linear AffineMap.mk'_linearₓ'. -/
 @[simp]
 theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h).linear = f' :=
@@ -348,10 +309,7 @@ instance : MulAction R (P1 →ᵃ[k] V2)
   mul_smul c₁ c₂ f := ext fun p => mul_smul _ _ _
 
 /- warning: affine_map.coe_smul -> AffineMap.coe_smul is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] {R : Type.{u5}} [_inst_14 : Monoid.{u5} R] [_inst_15 : DistribMulAction.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u1, u5, u4} k R V2 (SMulZeroClass.toHasSmul.{u1, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (SMulWithZero.toSmulZeroClass.{u1, u4} k V2 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (MulActionWithZero.toSMulWithZero.{u1, u4} k V2 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (Module.toMulActionWithZero.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_6)))) (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (SMul.smul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (MulAction.toHasSmul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u1, u2, u3, u4, u5} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16)) c f)) (SMul.smul.{u5, max u3 u4} R (P1 -> V2) (Function.hasSMul.{u3, u5, u4} P1 R V2 (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))) c (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) c f)) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (instHSMul.{u1, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (Pi.instSMul.{u3, u2, u1} P1 R (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (fun (i : P1) => SMulZeroClass.toSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (NegZeroClass.toZero.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_14 (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))) _inst_15))))) c (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_smul AffineMap.coe_smulₓ'. -/
 @[simp, norm_cast]
 theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • f :=
@@ -359,10 +317,7 @@ theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • f :=
 #align affine_map.coe_smul AffineMap.coe_smul
 
 /- warning: affine_map.smul_linear -> AffineMap.smul_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] {R : Type.{u5}} [_inst_14 : Monoid.{u5} R] [_inst_15 : DistribMulAction.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u1, u5, u4} k R V2 (SMulZeroClass.toHasSmul.{u1, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (SMulWithZero.toSmulZeroClass.{u1, u4} k V2 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (MulActionWithZero.toSMulWithZero.{u1, u4} k V2 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (Module.toMulActionWithZero.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_6)))) (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))] (t : R) (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (SMul.smul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (MulAction.toHasSmul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u1, u2, u3, u4, u5} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16)) t f)) (SMul.smul.{u5, max u2 u4} R (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasSmul.{u1, u1, u5, u2, u4} k k R V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) _inst_14 _inst_15 _inst_16) t (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (t : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u4) (succ u2)} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) t f)) (HSMul.hSMul.{u1, max u4 u2, max u4 u2} R (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (instHSMul.{u1, max u4 u2} R (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instSMulLinearMap.{u5, u5, u1, u4, u2} k k R V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) _inst_14 _inst_15 _inst_16)) t (AffineMap.linear.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) f))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.smul_linear AffineMap.smul_linearₓ'. -/
 @[simp]
 theorem smul_linear (t : R) (f : P1 →ᵃ[k] V2) : (t • f).linear = t • f.linear :=
@@ -396,10 +351,7 @@ theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
 #align affine_map.coe_zero AffineMap.coe_zero
 
 /- warning: affine_map.coe_add -> AffineMap.coe_add is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HAdd.hAdd.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHAdd.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasAdd.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHAdd.{max u3 u4} (P1 -> V2) (Pi.instAdd.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasAdd.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
-but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (instHAdd.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (Pi.instAdd.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (fun (i : P1) => AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_add AffineMap.coe_addₓ'. -/
 @[simp, norm_cast]
 theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
@@ -418,10 +370,7 @@ theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
 #align affine_map.coe_neg AffineMap.coe_neg
 
 /- warning: affine_map.coe_sub -> AffineMap.coe_sub is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HSub.hSub.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHSub.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasSub.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHSub.{max u3 u4} (P1 -> V2) (Pi.instSub.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasSub.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
-but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (instHSub.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (Pi.instSub.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (fun (i : P1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_sub AffineMap.coe_subₓ'. -/
 @[simp, norm_cast]
 theorem coe_sub (f g : P1 →ᵃ[k] V2) : ⇑(f - g) = f - g :=
@@ -440,10 +389,7 @@ theorem zero_linear : (0 : P1 →ᵃ[k] V2).linear = 0 :=
 #align affine_map.zero_linear AffineMap.zero_linear
 
 /- warning: affine_map.add_linear -> AffineMap.add_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (HAdd.hAdd.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHAdd.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasAdd.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u4, max u2 u4, max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (instHAdd.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasAdd.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) g))
-but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u3) (succ u1)} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u3 u1, max u3 u1, max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (instHAdd.{max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instAddLinearMap.{u4, u4, u3, u1} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))))) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.add_linear AffineMap.add_linearₓ'. -/
 @[simp]
 theorem add_linear (f g : P1 →ᵃ[k] V2) : (f + g).linear = f.linear + g.linear :=
@@ -451,10 +397,7 @@ theorem add_linear (f g : P1 →ᵃ[k] V2) : (f + g).linear = f.linear + g.linea
 #align affine_map.add_linear AffineMap.add_linear
 
 /- warning: affine_map.sub_linear -> AffineMap.sub_linear is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (HSub.hSub.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHSub.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasSub.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u4, max u2 u4, max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (instHSub.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasSub.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) g))
-but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u3) (succ u1)} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u3 u1, max u3 u1, max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (instHSub.{max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instSubLinearMapToAddCommMonoid.{u4, u4, u3, u1} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))))) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.sub_linear AffineMap.sub_linearₓ'. -/
 @[simp]
 theorem sub_linear (f g : P1 →ᵃ[k] V2) : (f - g).linear = f.linear - g.linear :=
@@ -492,10 +435,7 @@ instance : affine_space (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)
   vadd_vsub' f g := ext fun p => vadd_vsub (f p) (g p)
 
 /- warning: affine_map.vadd_apply -> AffineMap.vadd_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (VAdd.vadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toHasVadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7))) f g) p) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (HVAdd.hVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (instHVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)))) f g) p) (HVAdd.hVAdd.{u2, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) _inst_5) _inst_7))) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.vadd_apply AffineMap.vadd_applyₓ'. -/
 @[simp]
 theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +ᵥ g) p = f p +ᵥ g p :=
@@ -503,10 +443,7 @@ theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +
 #align affine_map.vadd_apply AffineMap.vadd_apply
 
 /- warning: affine_map.vsub_apply -> AffineMap.vsub_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (VSub.vsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toHasVsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (VSub.vsub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toVSub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.vsub_apply AffineMap.vsub_applyₓ'. -/
 @[simp]
 theorem vsub_apply (f g : P1 →ᵃ[k] P2) (p : P1) : (f -ᵥ g : P1 →ᵃ[k] V2) p = f p -ᵥ g p :=
@@ -527,10 +464,7 @@ def fst : P1 × P2 →ᵃ[k] P1 where
 #align affine_map.fst AffineMap.fst
 
 /- warning: affine_map.coe_fst -> AffineMap.coe_fst is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u3)} ((Prod.{u3, u5} P1 P2) -> P1) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u2) (succ u3), max (succ (max u3 u5)) (succ u3)} (AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) => (Prod.{u3, u5} P1 P2) -> P1) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u3, u5} P1 P2)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P1) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u3)) (succ u5), succ (max u5 u4), succ u5} (AffineMap.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P1) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_fst AffineMap.coe_fstₓ'. -/
 @[simp]
 theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
@@ -562,10 +496,7 @@ def snd : P1 × P2 →ᵃ[k] P2 where
 #align affine_map.snd AffineMap.snd
 
 /- warning: affine_map.coe_snd -> AffineMap.coe_snd is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u5)} ((Prod.{u3, u5} P1 P2) -> P2) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u4) (succ u5), max (succ (max u3 u5)) (succ u5)} (AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) => (Prod.{u3, u5} P1 P2) -> P2) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u3, u5} P1 P2)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P2) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u2)) (succ u4), succ (max u5 u4), succ u4} (AffineMap.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P2) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_snd AffineMap.coe_sndₓ'. -/
 @[simp]
 theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
@@ -645,10 +576,7 @@ def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
 -/
 
 /- warning: affine_map.coe_comp -> AffineMap.coe_comp is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u7)} (P1 -> P3) (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u3, succ u5, succ u7} P1 P2 P3 (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
-but is expected to have type
-  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u1) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) ᾰ) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u1, succ u5, succ u3} P1 P2 P3 (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_comp AffineMap.coe_compₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 @[simp]
@@ -657,10 +585,7 @@ theorem coe_comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : ⇑(f.comp g) = f
 #align affine_map.coe_comp AffineMap.coe_comp
 
 /- warning: affine_map.comp_apply -> AffineMap.comp_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u7} P3 (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
-but is expected to have type
-  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) p) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_apply AffineMap.comp_applyₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp g p = f (g p) :=
@@ -670,10 +595,7 @@ theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp
 omit V3
 
 /- warning: affine_map.comp_id -> AffineMap.comp_id is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u2, u3, u2, u3, u4, u5} k V1 P1 V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) f
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u4, u3, u4, u3, u2, u1} k V1 P1 V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.id.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) f
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_id AffineMap.comp_idₓ'. -/
 @[simp]
 theorem comp_id (f : P1 →ᵃ[k] P2) : f.comp (id k P1) = f :=
@@ -681,10 +603,7 @@ theorem comp_id (f : P1 →ᵃ[k] P2) : f.comp (id k P1) = f :=
 #align affine_map.comp_id AffineMap.comp_id
 
 /- warning: affine_map.id_comp -> AffineMap.id_comp is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u2, u3, u4, u5, u4, u5} k V1 P1 V2 P2 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_5 _inst_6 _inst_7 (AffineMap.id.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7) f) f
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u4, u3, u2, u1, u2, u1} k V1 P1 V2 P2 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_5 _inst_6 _inst_7 (AffineMap.id.{u5, u2, u1} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7) f) f
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.id_comp AffineMap.id_compₓ'. -/
 @[simp]
 theorem id_comp (f : P1 →ᵃ[k] P2) : (id k P2).comp f = f :=
@@ -694,10 +613,7 @@ theorem id_comp (f : P1 →ᵃ[k] P2) : (id k P2).comp f = f :=
 include V3 V4
 
 /- warning: affine_map.comp_assoc -> AffineMap.comp_assoc is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} {V4 : Type.{u8}} {P4 : Type.{u9}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] [_inst_11 : AddCommGroup.{u8} V4] [_inst_12 : Module.{u1, u8} k V4 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u8} V4 _inst_11)] [_inst_13 : AddTorsor.{u8, u9} V4 P4 (AddCommGroup.toAddGroup.{u8} V4 _inst_11)] (f₃₄ : AffineMap.{u1, u6, u7, u8, u9} k V3 P3 V4 P4 _inst_1 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13) (f₂₃ : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (f₁₂ : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u2) (succ u3) (succ u8) (succ u9)} (AffineMap.{u1, u2, u3, u8, u9} k V1 P1 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_11 _inst_12 _inst_13) (AffineMap.comp.{u1, u2, u3, u4, u5, u8, u9} k V1 P1 V2 P2 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_11 _inst_12 _inst_13 (AffineMap.comp.{u1, u4, u5, u6, u7, u8, u9} k V2 P2 V3 P3 V4 P4 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ f₂₃) f₁₂) (AffineMap.comp.{u1, u2, u3, u6, u7, u8, u9} k V1 P1 V3 P3 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f₂₃ f₁₂))
-but is expected to have type
-  forall {k : Type.{u9}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u4}} {P2 : Type.{u3}} {V3 : Type.{u8}} {P3 : Type.{u7}} {V4 : Type.{u6}} {P4 : Type.{u5}} [_inst_1 : Ring.{u9} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u9, u2} k V1 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u9, u4} k V2 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u3} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u8} V3] [_inst_9 : Module.{u9, u8} k V3 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u8} V3 _inst_8)] [_inst_10 : AddTorsor.{u8, u7} V3 P3 (AddCommGroup.toAddGroup.{u8} V3 _inst_8)] [_inst_11 : AddCommGroup.{u6} V4] [_inst_12 : Module.{u9, u6} k V4 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V4 _inst_11)] [_inst_13 : AddTorsor.{u6, u5} V4 P4 (AddCommGroup.toAddGroup.{u6} V4 _inst_11)] (f₃₄ : AffineMap.{u9, u8, u7, u6, u5} k V3 P3 V4 P4 _inst_1 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13) (f₂₃ : AffineMap.{u9, u4, u3, u8, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (f₁₂ : AffineMap.{u9, u2, u1, u4, u3} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5)} (AffineMap.{u9, u2, u1, u6, u5} k V1 P1 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_11 _inst_12 _inst_13) (AffineMap.comp.{u9, u2, u1, u4, u3, u6, u5} k V1 P1 V2 P2 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_11 _inst_12 _inst_13 (AffineMap.comp.{u9, u4, u3, u8, u7, u6, u5} k V2 P2 V3 P3 V4 P4 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ f₂₃) f₁₂) (AffineMap.comp.{u9, u2, u1, u8, u7, u6, u5} k V1 P1 V3 P3 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ (AffineMap.comp.{u9, u2, u1, u4, u3, u8, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f₂₃ f₁₂))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_assoc AffineMap.comp_assocₓ'. -/
 theorem comp_assoc (f₃₄ : P3 →ᵃ[k] P4) (f₂₃ : P2 →ᵃ[k] P3) (f₁₂ : P1 →ᵃ[k] P2) :
     (f₃₄.comp f₂₃).comp f₁₂ = f₃₄.comp (f₂₃.comp f₁₂) :=
@@ -714,10 +630,7 @@ instance : Monoid (P1 →ᵃ[k] P1) where
   mul_assoc := comp_assoc
 
 /- warning: affine_map.coe_mul -> AffineMap.coe_mul is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u3} (P1 -> P1) (coeFn.{succ (max u2 u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u3, max u2 u3, max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u3, succ u3, succ u3} P1 P1 P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u1, max u2 u1, max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u1, succ u1, succ u1} P1 P1 P1 (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mul AffineMap.coe_mulₓ'. -/
 @[simp]
 theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
@@ -753,10 +666,7 @@ def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
 include V2
 
 /- warning: affine_map.linear_injective_iff -> AffineMap.linear_injective_iff is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
@@ -771,10 +681,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
 #align affine_map.linear_injective_iff AffineMap.linear_injective_iff
 
 /- warning: affine_map.linear_surjective_iff -> AffineMap.linear_surjective_iff is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
@@ -789,10 +696,7 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
 #align affine_map.linear_surjective_iff AffineMap.linear_surjective_iff
 
 /- warning: affine_map.linear_bijective_iff -> AffineMap.linear_bijective_iff is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
@@ -801,10 +705,7 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 #align affine_map.linear_bijective_iff AffineMap.linear_bijective_iff
 
 /- warning: affine_map.image_vsub_image -> AffineMap.image_vsub_image is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {s : Set.{u3} P1} {t : Set.{u3} P1} (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u4} (Set.{u4} V2) (VSub.vsub.{u4, u5} (Set.{u4} V2) (Set.{u5} P2) (Set.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u2, u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u2, u3} (Set.{u2} V1) (Set.{u3} P1) (Set.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) s t))
-but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
@@ -961,10 +862,7 @@ theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ :=
 #align affine_map.line_map_apply_one AffineMap.lineMap_apply_one
 
 /- warning: affine_map.line_map_eq_line_map_iff -> AffineMap.lineMap_eq_lineMap_iff is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c₁ c₂))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c₁ c₂))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁ c₂ : k} :
@@ -974,10 +872,7 @@ theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁
 #align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iff
 
 /- warning: affine_map.line_map_eq_left_iff -> AffineMap.lineMap_eq_left_iff is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
@@ -986,10 +881,7 @@ theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
 #align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iff
 
 /- warning: affine_map.line_map_eq_right_iff -> AffineMap.lineMap_eq_right_iff is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))))))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_right_iff AffineMap.lineMap_eq_right_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
@@ -1015,10 +907,7 @@ variable {k}
 include V2
 
 /- warning: affine_map.apply_line_map -> AffineMap.apply_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (a : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) a) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (succ u5) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _x) (AffineMap.funLike.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.apply_line_map AffineMap.apply_lineMapₓ'. -/
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
@@ -1026,10 +915,7 @@ theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
 #align affine_map.apply_line_map AffineMap.apply_lineMap
 
 /- warning: affine_map.comp_line_map -> AffineMap.comp_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u4) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u1, u1, u2, u3, u4, u5} k k k V1 P1 V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
-but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u5) (succ u2)) (succ u1)} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u5, u5, u4, u3, u2, u1} k k k V1 P1 V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_line_map AffineMap.comp_lineMapₓ'. -/
 @[simp]
 theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
@@ -1038,10 +924,7 @@ theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
 #align affine_map.comp_line_map AffineMap.comp_lineMap
 
 /- warning: affine_map.fst_line_map -> AffineMap.fst_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u3} P1 (Prod.fst.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u3, u5} P1 P2 p₀) (Prod.fst.{u3, u5} P1 P2 p₁)) c)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u5), succ u3, succ u5} (AffineMap.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.fst_line_map AffineMap.fst_lineMapₓ'. -/
 @[simp]
 theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = lineMap p₀.1 p₁.1 c :=
@@ -1049,10 +932,7 @@ theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = l
 #align affine_map.fst_line_map AffineMap.fst_lineMap
 
 /- warning: affine_map.snd_line_map -> AffineMap.snd_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u5} P2 (Prod.snd.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u3, u5} P1 P2 p₀) (Prod.snd.{u3, u5} P1 P2 p₁)) c)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P2) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.snd_line_map AffineMap.snd_lineMapₓ'. -/
 @[simp]
 theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = lineMap p₀.2 p₁.2 c :=
@@ -1088,10 +968,7 @@ theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 -
 #align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_sub
 
 /- warning: affine_map.line_map_vsub_left -> AffineMap.lineMap_vsub_left is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_leftₓ'. -/
 @[simp]
 theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₀ = c • (p₁ -ᵥ p₀) :=
@@ -1099,10 +976,7 @@ theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 #align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_left
 
 /- warning: affine_map.left_vsub_line_map -> AffineMap.left_vsub_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMapₓ'. -/
 @[simp]
 theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁ c = c • (p₀ -ᵥ p₁) := by
@@ -1110,10 +984,7 @@ theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁
 #align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMap
 
 /- warning: affine_map.line_map_vsub_right -> AffineMap.lineMap_vsub_right is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_rightₓ'. -/
 @[simp]
 theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₁ = (1 - c) • (p₀ -ᵥ p₁) := by
@@ -1121,10 +992,7 @@ theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 #align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_right
 
 /- warning: affine_map.right_vsub_line_map -> AffineMap.right_vsub_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMapₓ'. -/
 @[simp]
 theorem right_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₁ -ᵥ lineMap p₀ p₁ c = (1 - c) • (p₁ -ᵥ p₀) := by
@@ -1139,10 +1007,7 @@ theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
 -/
 
 /- warning: affine_map.line_map_vsub_line_map -> AffineMap.lineMap_vsub_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₂ p₄)) c)
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (FunLike.coe.{max (succ u1) (succ u3), succ u1, succ u3} (AffineMap.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.lineMap.{u1, u3, u3} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₂ p₄)) c)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMapₓ'. -/
 theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
     lineMap p₁ p₂ c -ᵥ lineMap p₃ p₄ c = lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄) c :=
@@ -1152,10 +1017,7 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
 #align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMap
 
 /- warning: affine_map.decomp -> AffineMap.decomp is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (instHAdd.{max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (Pi.instAdd.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => AddZeroClass.toHasAdd.{u3} V2 (AddMonoid.toAddZeroClass.{u3} V2 (SubNegMonoid.toAddMonoid.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1169,10 +1031,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
 #align affine_map.decomp AffineMap.decomp
 
 /- warning: affine_map.decomp' -> AffineMap.decomp' is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (HSub.hSub.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (instHSub.{max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (Pi.instSub.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toHasSub.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1183,10 +1042,7 @@ theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f
 omit V1
 
 /- warning: affine_map.image_uIcc -> AffineMap.image_uIcc is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) a b)) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f a) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f b))
-but is expected to have type
-  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f) (Set.uIcc.{u1} k (DistribLattice.toLattice.{u1} k (instDistribLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14))))) a b)) (Set.uIcc.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (DistribLattice.toLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (instDistribLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (LinearOrderedRing.toLinearOrder.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (LinearOrderedCommRing.toLinearOrderedRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (LinearOrderedField.toLinearOrderedCommRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) _inst_14))))) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f a) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f b))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.image_uIcc AffineMap.image_uIccₓ'. -/
 theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) :=
@@ -1223,10 +1079,7 @@ def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
 #align affine_map.proj AffineMap.proj
 
 /- warning: affine_map.proj_apply -> AffineMap.proj_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} (P i) (coeFn.{max (succ (max u2 u3)) (succ (max u2 u4)) (succ u3) (succ u4), max (succ (max u2 u4)) (succ u4)} (AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (fun (_x : AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) => (forall (i : ι), P i) -> (P i)) (AffineMap.hasCoeToFun.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (AffineMap.proj.{u1, u2, u3, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
-but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u3}} {V : ι -> Type.{u2}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u2} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u2} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u2, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : forall (i : ι), P i) => P i) f) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u3 u4))) (succ u2)) (succ u4), succ (max u3 u4), succ u4} (AffineMap.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (forall (i : ι), P i) (fun (_x : forall (i : ι), P i) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : forall (i : ι), P i) => P i) _x) (AffineMap.funLike.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.proj.{u1, u3, u2, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.proj_apply AffineMap.proj_applyₓ'. -/
 @[simp]
 theorem proj_apply (i : ι) (f : ∀ i, P i) : @proj k _ ι V P _ _ _ i f = f i :=
@@ -1245,10 +1098,7 @@ theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.pr
 #align affine_map.proj_linear AffineMap.proj_linear
 
 /- warning: affine_map.pi_line_map_apply -> AffineMap.pi_lineMap_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (coeFn.{max (succ u1) (succ (max u2 u3)) (succ (max u2 u4)), max (succ u1) (succ (max u2 u4))} (AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (fun (_x : AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) => k -> (forall (i : ι), P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u1, max u2 u3, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (coeFn.{max (succ u1) (succ u3) (succ u4), max (succ u1) (succ u4)} (AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (fun (_x : AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) => k -> (P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u1, u3, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
-but is expected to have type
-  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u2 u4)), succ u3, succ (max u2 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => forall (i : ι), P i) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u3, max u2 u1, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P i) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u3, u1, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.pi_line_map_apply AffineMap.pi_lineMap_applyₓ'. -/
 theorem pi_lineMap_apply (f g : ∀ i, P i) (c : k) (i : ι) :
     lineMap f g c i = lineMap (f i) (g i) c :=
@@ -1297,10 +1147,7 @@ instance : Module R (P1 →ᵃ[k] V2) :=
 variable (R)
 
 /- warning: affine_map.to_const_prod_linear_map -> AffineMap.toConstProdLinearMap is a dubious translation:
-lean 3 declaration is
-  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toHasSmul.{u2, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u2, u4} k V2 (MulZeroClass.toHasZero.{u2} k (MulZeroOneClass.toMulZeroClass.{u2} k (MonoidWithZero.toMulZeroOneClass.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toHasSmul.{u1, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u1, u4} R V2 (MulZeroClass.toHasZero.{u1} R (MulZeroOneClass.toMulZeroClass.{u1} R (MonoidWithZero.toMulZeroOneClass.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u3 u4, max u3 u4} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.addCommGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.addCommMonoid.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.module.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.module.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
-but is expected to have type
-  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toSMul.{u2, u4} k V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u2, u4} k V2 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toSMul.{u1, u4} R V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u1, u4} R V2 (MonoidWithZero.toZero.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u4 u3, max u4 u3} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u4 u3} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.instAddCommMonoidSum.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.instModuleLinearMapAddCommMonoid.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMapₓ'. -/
 /-- 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
@@ -1343,10 +1190,7 @@ def homothety (c : P1) (r : k) : P1 →ᵃ[k] P1 :=
 -/
 
 /- warning: affine_map.homothety_def -> AffineMap.homothety_def is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) (HVAdd.hVAdd.{max u3 u2, max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_def AffineMap.homothety_defₓ'. -/
 theorem homothety_def (c : P1) (r : k) :
     homothety c r = r • (id k P1 -ᵥ const k P1 c) +ᵥ const k P1 c :=
@@ -1386,10 +1230,7 @@ theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
 -/
 
 /- warning: affine_map.homothety_mul_apply -> AffineMap.homothety_mul_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) p) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) r₁ r₂)) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul_apply AffineMap.homothety_mul_applyₓ'. -/
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
@@ -1421,10 +1262,7 @@ theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
 #align affine_map.homothety_zero AffineMap.homothety_zero
 
 /- warning: affine_map.homothety_add -> AffineMap.homothety_add is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r₁ (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
-but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_add AffineMap.homothety_addₓ'. -/
 @[simp]
 theorem homothety_add (c : P1) (r₁ r₂ : k) :
@@ -1444,10 +1282,7 @@ def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
 #align affine_map.homothety_hom AffineMap.homothetyHom
 
 /- warning: affine_map.coe_homothety_hom -> AffineMap.coe_homothetyHom is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ (max u2 u3)) (succ u1), max (succ u1) (succ (max u2 u3))} (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (fun (_x : MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (MonoidHom.hasCoeToFun.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (AffineMap.homothetyHom.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2397 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2397 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
@@ -1467,10 +1302,7 @@ def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
 #align affine_map.homothety_affine AffineMap.homothetyAffine
 
 /- warning: affine_map.coe_homothety_affine -> AffineMap.coe_homothetyAffine is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ u1) (succ (max u3 u2)) (succ (max u2 u3)), max (succ u1) (succ (max u2 u3))} (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (fun (_x : AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
-but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (succ u3) (succ (max u2 u1)), succ u3, succ (max u2 u1)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+<too large>
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffineₓ'. -/
 @[simp]
 theorem coe_homothetyAffine (c : P1) : ⇑(homothetyAffine c : k →ᵃ[k] _) = homothety c :=
@@ -1486,10 +1318,7 @@ section
 variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Module 𝕜 E] [Module 𝕜 F]
 
 /- warning: convex.combo_affine_apply -> Convex.combo_affine_apply is a dubious translation:
-lean 3 declaration is
-  forall {𝕜 : Type.{u1}} {E : Type.{u2}} {F : Type.{u3}} [_inst_1 : Ring.{u1} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u3} F] [_inst_4 : Module.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))}, (Eq.{succ u1} 𝕜 (HAdd.hAdd.{u1, u1, u1} 𝕜 𝕜 𝕜 (instHAdd.{u1} 𝕜 (Distrib.toHasAdd.{u1} 𝕜 (Ring.toDistrib.{u1} 𝕜 _inst_1))) a b) (OfNat.ofNat.{u1} 𝕜 1 (OfNat.mk.{u1} 𝕜 1 (One.one.{u1} 𝕜 (AddMonoidWithOne.toOne.{u1} 𝕜 (AddGroupWithOne.toAddMonoidWithOne.{u1} 𝕜 (AddCommGroupWithOne.toAddGroupWithOne.{u1} 𝕜 (Ring.toAddCommGroupWithOne.{u1} 𝕜 _inst_1)))))))) -> (Eq.{succ u3} F (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toHasAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) a x) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) b y))) (HAdd.hAdd.{u3, u3, u3} F F F (instHAdd.{u3} F (AddZeroClass.toHasAdd.{u3} F (AddMonoid.toAddZeroClass.{u3} F (SubNegMonoid.toAddMonoid.{u3} F (AddGroup.toSubNegMonoid.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3)))))) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) a (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f x)) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) b (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f y))))
-but is expected to have type
-  forall {𝕜 : Type.{u3}} {E : Type.{u2}} {F : Type.{u1}} [_inst_1 : Ring.{u3} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u1} F] [_inst_4 : Module.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))}, (Eq.{succ u3} 𝕜 (HAdd.hAdd.{u3, u3, u3} 𝕜 𝕜 𝕜 (instHAdd.{u3} 𝕜 (Distrib.toAdd.{u3} 𝕜 (NonUnitalNonAssocSemiring.toDistrib.{u3} 𝕜 (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u3} 𝕜 (NonAssocRing.toNonUnitalNonAssocRing.{u3} 𝕜 (Ring.toNonAssocRing.{u3} 𝕜 _inst_1)))))) a b) (OfNat.ofNat.{u3} 𝕜 1 (One.toOfNat1.{u3} 𝕜 (Semiring.toOne.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))))) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3)))))) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3) _inst_5))))) a (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f x)) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3) _inst_5))))) b (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f y))))
+<too large>
 Case conversion may be inaccurate. Consider using '#align convex.combo_affine_apply Convex.combo_affine_applyₓ'. -/
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
Diff
@@ -109,7 +109,7 @@ def toAffineMap : V₁ →ᵃ[k] V₂ where
 lean 3 declaration is
   forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (V₁ -> V₂) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) => V₁ -> V₂) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) => V₁ -> V₂) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 but is expected to have type
-  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
+  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 Case conversion may be inaccurate. Consider using '#align linear_map.coe_to_affine_map LinearMap.coe_toAffineMapₓ'. -/
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
@@ -142,7 +142,7 @@ include V1 V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u5} P2 (f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) linear v) (f p))), Eq.{max (succ u3) (succ u5)} ((fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
@@ -167,7 +167,7 @@ theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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
@@ -181,7 +181,7 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- The linear map on the result of subtracting two points is the
 result of subtracting the result of the affine map on those two
@@ -302,7 +302,7 @@ instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
 Case conversion may be inaccurate. Consider using '#align affine_map.mk' AffineMap.mk'ₓ'. -/
 /-- 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
@@ -318,7 +318,7 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
@@ -329,7 +329,7 @@ theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h)
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
 Case conversion may be inaccurate. Consider using '#align affine_map.mk'_linear AffineMap.mk'_linearₓ'. -/
 @[simp]
 theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h).linear = f' :=
@@ -756,7 +756,7 @@ include V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
@@ -774,7 +774,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
@@ -792,7 +792,7 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
@@ -804,7 +804,7 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {s : Set.{u3} P1} {t : Set.{u3} P1} (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u4} (Set.{u4} V2) (VSub.vsub.{u4, u5} (Set.{u4} V2) (Set.{u5} P2) (Set.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u2, u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u2, u3} (Set.{u2} V1) (Set.{u3} P1) (Set.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) s t))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
 Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
@@ -1155,7 +1155,7 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (instHAdd.{max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (Pi.instAdd.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => AddZeroClass.toHasAdd.{u3} V2 (AddMonoid.toAddZeroClass.{u3} V2 (SubNegMonoid.toAddMonoid.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1172,7 +1172,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (HSub.hSub.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (instHSub.{max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (Pi.instSub.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toHasSub.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6193 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
Diff
@@ -1447,7 +1447,7 @@ def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ (max u2 u3)) (succ u1), max (succ u1) (succ (max u2 u3))} (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (fun (_x : MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (MonoidHom.hasCoeToFun.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (AffineMap.homothetyHom.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2397 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2397 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
Diff
@@ -109,7 +109,7 @@ def toAffineMap : V₁ →ᵃ[k] V₂ where
 lean 3 declaration is
   forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (V₁ -> V₂) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) => V₁ -> V₂) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) => V₁ -> V₂) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 but is expected to have type
-  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
+  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 Case conversion may be inaccurate. Consider using '#align linear_map.coe_to_affine_map LinearMap.coe_toAffineMapₓ'. -/
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
@@ -142,7 +142,7 @@ include V1 V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u5} P2 (f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) linear v) (f p))), Eq.{max (succ u3) (succ u5)} ((fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
@@ -167,7 +167,7 @@ theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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
@@ -181,7 +181,7 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- The linear map on the result of subtracting two points is the
 result of subtracting the result of the affine map on those two
@@ -302,7 +302,7 @@ instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
 Case conversion may be inaccurate. Consider using '#align affine_map.mk' AffineMap.mk'ₓ'. -/
 /-- 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
@@ -318,7 +318,7 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
@@ -329,7 +329,7 @@ theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h)
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
 Case conversion may be inaccurate. Consider using '#align affine_map.mk'_linear AffineMap.mk'_linearₓ'. -/
 @[simp]
 theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h).linear = f' :=
@@ -756,7 +756,7 @@ include V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
@@ -774,7 +774,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
@@ -792,7 +792,7 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
@@ -804,7 +804,7 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {s : Set.{u3} P1} {t : Set.{u3} P1} (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u4} (Set.{u4} V2) (VSub.vsub.{u4, u5} (Set.{u4} V2) (Set.{u5} P2) (Set.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u2, u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u2, u3} (Set.{u2} V1) (Set.{u3} P1) (Set.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) s t))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
 Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
@@ -1155,7 +1155,7 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (instHAdd.{max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (Pi.instAdd.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => AddZeroClass.toHasAdd.{u3} V2 (AddMonoid.toAddZeroClass.{u3} V2 (SubNegMonoid.toAddMonoid.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1172,7 +1172,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (HSub.hSub.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (instHSub.{max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (Pi.instSub.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toHasSub.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6191 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
Diff
@@ -109,7 +109,7 @@ def toAffineMap : V₁ →ᵃ[k] V₂ where
 lean 3 declaration is
   forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (V₁ -> V₂) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) => V₁ -> V₂) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) => V₁ -> V₂) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 but is expected to have type
-  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
+  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 Case conversion may be inaccurate. Consider using '#align linear_map.coe_to_affine_map LinearMap.coe_toAffineMapₓ'. -/
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
@@ -142,7 +142,7 @@ include V1 V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u5} P2 (f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) linear v) (f p))), Eq.{max (succ u3) (succ u5)} ((fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
@@ -155,7 +155,7 @@ theorem coe_mk (f : P1 → P2) (linear add) : ((mk f linear add : P1 →ᵃ[k] P
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (AffineMap.toFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f)
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u1)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (f : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) f) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f)
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u1)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (f : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) f) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f)
 Case conversion may be inaccurate. Consider using '#align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coeₓ'. -/
 /-- `to_fun` is the same as the result of coercing to a function. -/
 @[simp]
@@ -167,7 +167,7 @@ theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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
@@ -181,7 +181,7 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- The linear map on the result of subtracting two points is the
 result of subtracting the result of the affine map on those two
@@ -195,7 +195,7 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
 Case conversion may be inaccurate. Consider using '#align affine_map.ext AffineMap.extₓ'. -/
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
@@ -207,7 +207,7 @@ theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.ext_iff AffineMap.ext_iffₓ'. -/
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
   ⟨fun h p => h ▸ rfl, ext⟩
@@ -223,7 +223,7 @@ theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeF
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
 Case conversion may be inaccurate. Consider using '#align affine_map.congr_arg AffineMap.congr_argₓ'. -/
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
   congr_arg _ h
@@ -233,7 +233,7 @@ protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
 Case conversion may be inaccurate. Consider using '#align affine_map.congr_fun AffineMap.congr_funₓ'. -/
 protected theorem congr_fun {f g : P1 →ᵃ[k] P2} (h : f = g) (x : P1) : f x = g x :=
   h ▸ rfl
@@ -255,7 +255,7 @@ def const (p : P2) : P1 →ᵃ[k] P2
 lean 3 declaration is
   forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u5, succ u3} P2 P1 p)
 but is expected to have type
-  forall (k : Type.{u1}) {V1 : Type.{u3}} (P1 : Type.{u5}) {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u4), succ u5, succ u4} (AffineMap.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u4, succ u5} P2 P1 p)
+  forall (k : Type.{u1}) {V1 : Type.{u3}} (P1 : Type.{u5}) {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u4), succ u5, succ u4} (AffineMap.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u4, succ u5} P2 P1 p)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_const AffineMap.coe_constₓ'. -/
 @[simp]
 theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
@@ -318,7 +318,7 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
@@ -351,7 +351,7 @@ instance : MulAction R (P1 →ᵃ[k] V2)
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] {R : Type.{u5}} [_inst_14 : Monoid.{u5} R] [_inst_15 : DistribMulAction.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u1, u5, u4} k R V2 (SMulZeroClass.toHasSmul.{u1, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (SMulWithZero.toSmulZeroClass.{u1, u4} k V2 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (MulActionWithZero.toSMulWithZero.{u1, u4} k V2 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (Module.toMulActionWithZero.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_6)))) (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (SMul.smul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (MulAction.toHasSmul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u1, u2, u3, u4, u5} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16)) c f)) (SMul.smul.{u5, max u3 u4} R (P1 -> V2) (Function.hasSMul.{u3, u5, u4} P1 R V2 (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))) c (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) c f)) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (instHSMul.{u1, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (Pi.instSMul.{u3, u2, u1} P1 R (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (fun (i : P1) => SMulZeroClass.toSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (NegZeroClass.toZero.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_14 (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))) _inst_15))))) c (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) c f)) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (instHSMul.{u1, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (Pi.instSMul.{u3, u2, u1} P1 R (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (fun (i : P1) => SMulZeroClass.toSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (NegZeroClass.toZero.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_14 (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))) _inst_15))))) c (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_smul AffineMap.coe_smulₓ'. -/
 @[simp, norm_cast]
 theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • f :=
@@ -388,7 +388,7 @@ instance : Neg (P1 →ᵃ[k] V2) where neg f := ⟨-f, -f.linear, fun p v => by
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)], Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{max (succ u2) (succ u3) (succ u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (OfNat.ofNat.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (OfNat.mk.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (Zero.zero.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasZero.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6))))) (OfNat.ofNat.{max u3 u4} (P1 -> V2) 0 (OfNat.mk.{max u3 u4} (P1 -> V2) 0 (Zero.zero.{max u3 u4} (P1 -> V2) (Pi.instZero.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))))))))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u4}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u4} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u2) (succ u4)) (succ u3), succ u4, succ u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (OfNat.ofNat.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u4, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) 0 (Zero.toOfNat0.{max u4 u3} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (Pi.instZero.{u4, u3} P1 (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (fun (i : P1) => NegZeroClass.toZero.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))))))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u4}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u4} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u2) (succ u4)) (succ u3), succ u4, succ u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (OfNat.ofNat.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u4, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) 0 (Zero.toOfNat0.{max u4 u3} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (Pi.instZero.{u4, u3} P1 (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) a) (fun (i : P1) => NegZeroClass.toZero.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_zero AffineMap.coe_zeroₓ'. -/
 @[simp, norm_cast]
 theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
@@ -399,7 +399,7 @@ theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HAdd.hAdd.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHAdd.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasAdd.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHAdd.{max u3 u4} (P1 -> V2) (Pi.instAdd.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasAdd.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (instHAdd.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (Pi.instAdd.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (fun (i : P1) => AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (instHAdd.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (Pi.instAdd.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (fun (i : P1) => AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_add AffineMap.coe_addₓ'. -/
 @[simp, norm_cast]
 theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
@@ -410,7 +410,7 @@ theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (Neg.neg.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasNeg.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u3 u4} (P1 -> V2) (Pi.instNeg.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasNeg.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (Pi.instNeg.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (fun (i : P1) => NegZeroClass.toNeg.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5)))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (Pi.instNeg.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (fun (i : P1) => NegZeroClass.toNeg.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5)))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_neg AffineMap.coe_negₓ'. -/
 @[simp, norm_cast]
 theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
@@ -421,7 +421,7 @@ theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HSub.hSub.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHSub.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasSub.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHSub.{max u3 u4} (P1 -> V2) (Pi.instSub.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasSub.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (instHSub.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (Pi.instSub.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (fun (i : P1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (instHSub.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (Pi.instSub.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) ᾰ) (fun (i : P1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) i) _inst_5))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_sub AffineMap.coe_subₓ'. -/
 @[simp, norm_cast]
 theorem coe_sub (f g : P1 →ᵃ[k] V2) : ⇑(f - g) = f - g :=
@@ -495,7 +495,7 @@ instance : affine_space (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (VAdd.vadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toHasVadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7))) f g) p) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (HVAdd.hVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (instHVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)))) f g) p) (HVAdd.hVAdd.{u2, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) _inst_5) _inst_7))) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (HVAdd.hVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (instHVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)))) f g) p) (HVAdd.hVAdd.{u2, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) _inst_5) _inst_7))) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.vadd_apply AffineMap.vadd_applyₓ'. -/
 @[simp]
 theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +ᵥ g) p = f p +ᵥ g p :=
@@ -506,7 +506,7 @@ theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (VSub.vsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toHasVsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (VSub.vsub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toVSub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) p) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (VSub.vsub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toVSub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.vsub_apply AffineMap.vsub_applyₓ'. -/
 @[simp]
 theorem vsub_apply (f g : P1 →ᵃ[k] P2) (p : P1) : (f -ᵥ g : P1 →ᵃ[k] V2) p = f p -ᵥ g p :=
@@ -530,7 +530,7 @@ def fst : P1 × P2 →ᵃ[k] P1 where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u3)} ((Prod.{u3, u5} P1 P2) -> P1) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u2) (succ u3), max (succ (max u3 u5)) (succ u3)} (AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) => (Prod.{u3, u5} P1 P2) -> P1) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u3, u5} P1 P2)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u3)) (succ u5), succ (max u5 u4), succ u5} (AffineMap.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P1) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u3)) (succ u5), succ (max u5 u4), succ u5} (AffineMap.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P1) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_fst AffineMap.coe_fstₓ'. -/
 @[simp]
 theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
@@ -565,7 +565,7 @@ def snd : P1 × P2 →ᵃ[k] P2 where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u5)} ((Prod.{u3, u5} P1 P2) -> P2) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u4) (succ u5), max (succ (max u3 u5)) (succ u5)} (AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) => (Prod.{u3, u5} P1 P2) -> P2) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u3, u5} P1 P2)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u2)) (succ u4), succ (max u5 u4), succ u4} (AffineMap.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P2) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u2)) (succ u4), succ (max u5 u4), succ u4} (AffineMap.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : Prod.{u5, u4} P1 P2) => P2) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_snd AffineMap.coe_sndₓ'. -/
 @[simp]
 theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
@@ -648,7 +648,7 @@ def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u7)} (P1 -> P3) (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u3, succ u5, succ u7} P1 P2 P3 (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
 but is expected to have type
-  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u1) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) ᾰ) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u1, succ u5, succ u3} P1 P2 P3 (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
+  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u1) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) ᾰ) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u1, succ u5, succ u3} P1 P2 P3 (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_comp AffineMap.coe_compₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 @[simp]
@@ -660,7 +660,7 @@ theorem coe_comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : ⇑(f.comp g) = f
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u7} P3 (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) p) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) p) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_apply AffineMap.comp_applyₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp g p = f (g p) :=
@@ -717,7 +717,7 @@ instance : Monoid (P1 →ᵃ[k] P1) where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u3} (P1 -> P1) (coeFn.{succ (max u2 u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u3, max u2 u3, max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u3, succ u3, succ u3} P1 P1 P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u1, max u2 u1, max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u1, succ u1, succ u1} P1 P1 P1 (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u1, max u2 u1, max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u1, succ u1, succ u1} P1 P1 P1 (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mul AffineMap.coe_mulₓ'. -/
 @[simp]
 theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
@@ -728,7 +728,7 @@ theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (OfNat.mk.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.one.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))))) (id.{succ u3} P1)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.toOfNat1.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))) (id.{succ u3} P1)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.toOfNat1.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))) (id.{succ u3} P1)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_one AffineMap.coe_oneₓ'. -/
 @[simp]
 theorem coe_one : ⇑(1 : P1 →ᵃ[k] P1) = id :=
@@ -756,7 +756,7 @@ include V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
@@ -774,7 +774,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
@@ -792,7 +792,7 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
@@ -804,7 +804,7 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {s : Set.{u3} P1} {t : Set.{u3} P1} (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u4} (Set.{u4} V2) (VSub.vsub.{u4, u5} (Set.{u4} V2) (Set.{u5} P2) (Set.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u2, u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u2, u3} (Set.{u2} V1) (Set.{u3} P1) (Set.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) s t))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
 Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
@@ -827,7 +827,7 @@ omit V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map AffineMap.lineMapₓ'. -/
 /-- The affine map from `k` to `P1` sending `0` to `p₀` and `1` to `p₁`. -/
 def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
@@ -838,7 +838,7 @@ def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u3)} ((fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u1}} {P1 : Type.{u2}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (forall (a : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) a) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u2), succ u3, succ u2} (AffineMap.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u1, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => HVAdd.hVAdd.{u1, u2, u2} V1 P1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (instHVAdd.{u1, u2} V1 P1 (AddAction.toVAdd.{u1, u2} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u3, u1, u1} k V1 V1 (instHSMul.{u3, u1} k V1 (SMulZeroClass.toSMul.{u3, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u1} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u1} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u2} V1 P1 (AddTorsor.toVSub.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+  forall {k : Type.{u3}} {V1 : Type.{u1}} {P1 : Type.{u2}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (forall (a : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) a) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u2), succ u3, succ u2} (AffineMap.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u1, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => HVAdd.hVAdd.{u1, u2, u2} V1 P1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (instHVAdd.{u1, u2} V1 P1 (AddAction.toVAdd.{u1, u2} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u3, u1, u1} k V1 V1 (instHSMul.{u3, u1} k V1 (SMulZeroClass.toSMul.{u3, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u1} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u1} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u2} V1 P1 (AddTorsor.toVSub.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_line_map AffineMap.coe_lineMapₓ'. -/
 theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c => c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
@@ -848,7 +848,7 @@ theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c =>
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply AffineMap.lineMap_applyₓ'. -/
 theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
@@ -858,7 +858,7 @@ theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toHasSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'ₓ'. -/
 theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c • (p₁ - p₀) + p₀ :=
   rfl
@@ -868,7 +868,7 @@ theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c p₁))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) p₀) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) p₀) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module AffineMap.lineMap_apply_moduleₓ'. -/
 theorem lineMap_apply_module (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = (1 - c) • p₀ + c • p₁ := by
   simp [line_map_apply_module', smul_sub, sub_smul] <;> abel
@@ -880,7 +880,7 @@ omit V1
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) b a)) a)
 but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) b a)) a)
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) b a)) a)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'ₓ'. -/
 theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
   rfl
@@ -890,7 +890,7 @@ theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c b))
 but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Distrib.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocSemiring.toDistrib.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toNonUnitalRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))))) (HMul.hMul.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocRing.toMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toNonUnitalRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))) (HSub.hSub.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)) (OfNat.ofNat.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) 1 (One.toOfNat1.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Semiring.toOne.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c b))
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Distrib.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonUnitalNonAssocSemiring.toDistrib.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonAssocRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)))))) (HMul.hMul.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (instHMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonUnitalNonAssocRing.toMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (NonAssocRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)))) (HSub.hSub.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (instHSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)) (OfNat.ofNat.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) 1 (One.toOfNat1.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Semiring.toOne.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) (Ring.toSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) c) _inst_1)))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) c b))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ringₓ'. -/
 theorem lineMap_apply_ring (a b c : k) : lineMap a b c = (1 - c) * a + c * b :=
   lineMap_apply_module a b c
@@ -902,7 +902,7 @@ include V1
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c v) p)
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) v p)) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c v) p)
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) v p)) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c v) p)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_applyₓ'. -/
 theorem lineMap_vadd_apply (p : P1) (v : V1) (c : k) : lineMap p (v +ᵥ p) c = c • v +ᵥ p := by
   rw [line_map_apply, vadd_vsub]
@@ -912,7 +912,7 @@ theorem lineMap_vadd_apply (p : P1) (v : V1) (c : k) : lineMap p (v +ᵥ p) c =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2)} (LinearMap.{u1, u1, u1, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u1} k (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3) (AffineMap.linear.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u1, u1, u2, u1} k k V1 k (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) _inst_3 (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (Ring.toSemiring.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3 (IsScalarTower.left.{u1, u2} k V1 (Ring.toMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u1, u1} k k (Ring.toSemiring.{u1} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (LinearMap.{u3, u3, u3, u2} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u3} k (Ring.toAddCommGroup.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) _inst_3) (AffineMap.linear.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u3, u3, u2, u3} k k V1 k (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) _inst_3 (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) _inst_3 (IsScalarTower.left.{u3, u2} k V1 (MonoidWithZero.toMonoid.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u3, u3} k k (Ring.toSemiring.{u3} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1)) (VSub.vsub.{u2, u1} V1 P1 (AddTorsor.toVSub.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (LinearMap.{u3, u3, u3, u2} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u3} k (Ring.toAddCommGroup.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) _inst_3) (AffineMap.linear.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u3, u3, u2, u3} k k V1 k (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) _inst_3 (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (Ring.toSemiring.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) _inst_3 (IsScalarTower.left.{u3, u2} k V1 (MonoidWithZero.toMonoid.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u3, u3} k k (Ring.toSemiring.{u3} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (VSub.vsub.{u2, u1} V1 P1 (AddTorsor.toVSub.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_linear AffineMap.lineMap_linearₓ'. -/
 @[simp]
 theorem lineMap_linear (p₀ p₁ : P1) :
@@ -924,7 +924,7 @@ theorem lineMap_linear (p₀ p₁ : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same_apply AffineMap.lineMap_same_applyₓ'. -/
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by simp [line_map_apply]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
@@ -933,7 +933,7 @@ theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by simp [line
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 p)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 p)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 p)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same AffineMap.lineMap_sameₓ'. -/
 @[simp]
 theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
@@ -944,7 +944,7 @@ theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))) p₀
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) p₀
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) p₀
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zeroₓ'. -/
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by simp [line_map_apply]
@@ -954,7 +954,7 @@ theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))))) p₁
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) p₁
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) p₁
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one AffineMap.lineMap_apply_oneₓ'. -/
 @[simp]
 theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ := by simp [line_map_apply]
@@ -964,7 +964,7 @@ theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c₁ c₂))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c₁ c₂))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c₁ c₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁ c₂ : k} :
@@ -977,7 +977,7 @@ theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
@@ -989,7 +989,7 @@ theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_right_iff AffineMap.lineMap_eq_right_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
@@ -1003,7 +1003,7 @@ variable (k)
 lean 3 declaration is
   forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u3} P1 p₀ p₁) -> (Function.Injective.{succ u1, succ u3} k P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
 but is expected to have type
-  forall (k : Type.{u3}) {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u1} P1 p₀ p₁) -> (Function.Injective.{succ u3, succ u1} k P1 (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
+  forall (k : Type.{u3}) {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u1} P1 p₀ p₁) -> (Function.Injective.{succ u3, succ u1} k P1 (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_injective AffineMap.lineMap_injectiveₓ'. -/
 theorem lineMap_injective [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} (h : p₀ ≠ p₁) :
     Function.Injective (lineMap p₀ p₁ : k → P1) := fun c₁ c₂ hc =>
@@ -1018,7 +1018,7 @@ include V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (a : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) a) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (succ u5) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _x) (AffineMap.funLike.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (a : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) a) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (succ u5) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _x) (AffineMap.funLike.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.apply_line_map AffineMap.apply_lineMapₓ'. -/
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
@@ -1029,7 +1029,7 @@ theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u4) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u1, u1, u2, u3, u4, u5} k k k V1 P1 V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u5) (succ u2)) (succ u1)} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u5, u5, u4, u3, u2, u1} k k k V1 P1 V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u5) (succ u2)) (succ u1)} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u5, u5, u4, u3, u2, u1} k k k V1 P1 V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (Semiring.toModule.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_line_map AffineMap.comp_lineMapₓ'. -/
 @[simp]
 theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
@@ -1041,7 +1041,7 @@ theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u3} P1 (Prod.fst.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u3, u5} P1 P2 p₀) (Prod.fst.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u5), succ u3, succ u5} (AffineMap.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u5), succ u3, succ u5} (AffineMap.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.fst_line_map AffineMap.fst_lineMapₓ'. -/
 @[simp]
 theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = lineMap p₀.1 p₁.1 c :=
@@ -1052,7 +1052,7 @@ theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = l
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u5} P2 (Prod.snd.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u3, u5} P1 P2 p₀) (Prod.snd.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P2) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P2) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.snd_line_map AffineMap.snd_lineMapₓ'. -/
 @[simp]
 theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = lineMap p₀.2 p₁.2 c :=
@@ -1065,7 +1065,7 @@ omit V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u1, u1, u1, u1, u1, u2, u3} k k k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u3, u3, u3, u3, u3, u2, u1} k k k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u3, u3, u3} k k k _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u3, u3, u3, u3, u3, u2, u1} k k k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u3, u3, u3} k k k _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_symm AffineMap.lineMap_symmₓ'. -/
 theorem lineMap_symm (p₀ p₁ : P1) :
     lineMap p₀ p₁ = (lineMap p₁ p₀).comp (lineMap (1 : k) (0 : k)) :=
@@ -1078,7 +1078,7 @@ theorem lineMap_symm (p₀ p₁ : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (Semiring.toModule.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_subₓ'. -/
 theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c :=
   by
@@ -1091,7 +1091,7 @@ theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 -
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_leftₓ'. -/
 @[simp]
 theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₀ = c • (p₁ -ᵥ p₀) :=
@@ -1102,7 +1102,7 @@ theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMapₓ'. -/
 @[simp]
 theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁ c = c • (p₀ -ᵥ p₁) := by
@@ -1113,7 +1113,7 @@ theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_rightₓ'. -/
 @[simp]
 theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₁ = (1 - c) • (p₀ -ᵥ p₁) := by
@@ -1124,7 +1124,7 @@ theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMapₓ'. -/
 @[simp]
 theorem right_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₁ -ᵥ lineMap p₀ p₁ c = (1 - c) • (p₁ -ᵥ p₀) := by
@@ -1142,7 +1142,7 @@ theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₂ p₄)) c)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (FunLike.coe.{max (succ u1) (succ u3), succ u1, succ u3} (AffineMap.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.lineMap.{u1, u3, u3} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₂ p₄)) c)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (FunLike.coe.{max (succ u1) (succ u3), succ u1, succ u3} (AffineMap.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.lineMap.{u1, u3, u3} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₂ p₄)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMapₓ'. -/
 theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
     lineMap p₁ p₂ c -ᵥ lineMap p₃ p₄ c = lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄) c :=
@@ -1155,7 +1155,7 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (instHAdd.{max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (Pi.instAdd.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => AddZeroClass.toHasAdd.{u3} V2 (AddMonoid.toAddZeroClass.{u3} V2 (SubNegMonoid.toAddMonoid.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1172,7 +1172,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (HSub.hSub.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (instHSub.{max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (Pi.instSub.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toHasSub.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1186,7 +1186,7 @@ omit V1
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) a b)) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f a) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f b))
 but is expected to have type
-  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f) (Set.uIcc.{u1} k (DistribLattice.toLattice.{u1} k (instDistribLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14))))) a b)) (Set.uIcc.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (DistribLattice.toLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (instDistribLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedRing.toLinearOrder.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedCommRing.toLinearOrderedRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedField.toLinearOrderedCommRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) _inst_14))))) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f a) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f b))
+  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f) (Set.uIcc.{u1} k (DistribLattice.toLattice.{u1} k (instDistribLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14))))) a b)) (Set.uIcc.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (DistribLattice.toLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (instDistribLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (LinearOrderedRing.toLinearOrder.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (LinearOrderedCommRing.toLinearOrderedRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) (LinearOrderedField.toLinearOrderedCommRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) a) _inst_14))))) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f a) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f b))
 Case conversion may be inaccurate. Consider using '#align affine_map.image_uIcc AffineMap.image_uIccₓ'. -/
 theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) :=
@@ -1212,7 +1212,7 @@ include V
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)
 but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)
 Case conversion may be inaccurate. Consider using '#align affine_map.proj AffineMap.projₓ'. -/
 /-- Evaluation at a point as an affine map. -/
 def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
@@ -1226,7 +1226,7 @@ def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} (P i) (coeFn.{max (succ (max u2 u3)) (succ (max u2 u4)) (succ u3) (succ u4), max (succ (max u2 u4)) (succ u4)} (AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (fun (_x : AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) => (forall (i : ι), P i) -> (P i)) (AffineMap.hasCoeToFun.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (AffineMap.proj.{u1, u2, u3, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
 but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u3}} {V : ι -> Type.{u2}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u2} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u2} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u2, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : forall (i : ι), P i) => P i) f) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u3 u4))) (succ u2)) (succ u4), succ (max u3 u4), succ u4} (AffineMap.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (forall (i : ι), P i) (fun (_x : forall (i : ι), P i) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : forall (i : ι), P i) => P i) _x) (AffineMap.funLike.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.proj.{u1, u3, u2, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u3}} {V : ι -> Type.{u2}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u2} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u2} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u2, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : forall (i : ι), P i) => P i) f) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u3 u4))) (succ u2)) (succ u4), succ (max u3 u4), succ u4} (AffineMap.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (forall (i : ι), P i) (fun (_x : forall (i : ι), P i) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : forall (i : ι), P i) => P i) _x) (AffineMap.funLike.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.proj.{u1, u3, u2, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
 Case conversion may be inaccurate. Consider using '#align affine_map.proj_apply AffineMap.proj_applyₓ'. -/
 @[simp]
 theorem proj_apply (i : ι) (f : ∀ i, P i) : @proj k _ ι V P _ _ _ i f = f i :=
@@ -1237,7 +1237,7 @@ theorem proj_apply (i : ι) (f : ∀ i, P i) : @proj k _ ι V P _ _ _ i f = f i
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), Eq.{max (succ (max u2 u3)) (succ u3)} (LinearMap.{u1, u1, max u2 u3, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (forall (i : ι), V i) (V i) (AddCommGroup.toAddCommMonoid.{max u2 u3} (forall (i : ι), V i) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i))) (AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) ((fun (i : ι) => _inst_15 i) i)) (AffineMap.linear.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i) (AffineMap.proj.{u1, u2, u3, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i)) (LinearMap.proj.{u1, u2, u3} k ι (Ring.toSemiring.{u1} k _inst_1) V (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i) i)
 but is expected to have type
-  forall {k : Type.{u2}} [_inst_1 : Ring.{u2} k] {ι : Type.{u4}} {V : ι -> Type.{u3}} {P : ι -> Type.{u1}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u2, u3} k (V i) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u1} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), Eq.{max (succ u4) (succ u3)} (LinearMap.{u2, u2, max u4 u3, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (forall (i : ι), V i) (V i) (AddCommGroup.toAddCommMonoid.{max u4 u3} (forall (i : ι), V i) (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i))) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (_inst_15 i)) (AffineMap.linear.{u2, max u4 u3, max u4 u1, u3, u1} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u4, u3, u1} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.proj.{u2, u4, u3, u1} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i)) (LinearMap.proj.{u2, u4, u3} k ι (Ring.toSemiring.{u2} k _inst_1) V (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i) i)
+  forall {k : Type.{u2}} [_inst_1 : Ring.{u2} k] {ι : Type.{u4}} {V : ι -> Type.{u3}} {P : ι -> Type.{u1}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u2, u3} k (V i) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u1} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), Eq.{max (succ u4) (succ u3)} (LinearMap.{u2, u2, max u4 u3, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (forall (i : ι), V i) (V i) (AddCommGroup.toAddCommMonoid.{max u4 u3} (forall (i : ι), V i) (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i))) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (_inst_15 i)) (AffineMap.linear.{u2, max u4 u3, max u4 u1, u3, u1} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u4, u3, u1} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.proj.{u2, u4, u3, u1} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i)) (LinearMap.proj.{u2, u4, u3} k ι (Ring.toSemiring.{u2} k _inst_1) V (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i) i)
 Case conversion may be inaccurate. Consider using '#align affine_map.proj_linear AffineMap.proj_linearₓ'. -/
 @[simp]
 theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.proj k ι _ V _ _ i :=
@@ -1248,7 +1248,7 @@ theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.pr
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (coeFn.{max (succ u1) (succ (max u2 u3)) (succ (max u2 u4)), max (succ u1) (succ (max u2 u4))} (AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (fun (_x : AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) => k -> (forall (i : ι), P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u1, max u2 u3, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (coeFn.{max (succ u1) (succ u3) (succ u4), max (succ u1) (succ u4)} (AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (fun (_x : AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) => k -> (P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u1, u3, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
 but is expected to have type
-  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u2 u4)), succ u3, succ (max u2 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => forall (i : ι), P i) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u3, max u2 u1, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) f g) c i) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P i) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u3, u1, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
+  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u2 u4)), succ u3, succ (max u2 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => forall (i : ι), P i) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u3, max u2 u1, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.instAddTorsorForAllForAllAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => P i) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u3, u1, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.pi_line_map_apply AffineMap.pi_lineMap_applyₓ'. -/
 theorem pi_lineMap_apply (f g : ∀ i, P i) (c : k) (i : ι) :
     lineMap f g c i = lineMap (f i) (g i) c :=
@@ -1300,7 +1300,7 @@ variable (R)
 lean 3 declaration is
   forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toHasSmul.{u2, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u2, u4} k V2 (MulZeroClass.toHasZero.{u2} k (MulZeroOneClass.toMulZeroClass.{u2} k (MonoidWithZero.toMulZeroOneClass.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toHasSmul.{u1, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u1, u4} R V2 (MulZeroClass.toHasZero.{u1} R (MulZeroOneClass.toMulZeroClass.{u1} R (MonoidWithZero.toMulZeroOneClass.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u3 u4, max u3 u4} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.addCommGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.addCommMonoid.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.module.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.module.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
 but is expected to have type
-  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toSMul.{u2, u4} k V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u2, u4} k V2 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toSMul.{u1, u4} R V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u1, u4} R V2 (MonoidWithZero.toZero.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u4 u3, max u4 u3} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u4 u3} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (AffineMap.instAddCommMonoidProdLinearMapToSemiringIdToNonAssocSemiringToAddCommMonoidToAddCommMonoid.{u2, u3, u4} k V1 V2 _inst_1 _inst_2 _inst_4 _inst_5 _inst_6) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (AffineMap.instModuleProdLinearMapToSemiringIdToNonAssocSemiringToAddCommMonoidToAddCommMonoidInstAddCommMonoidProdLinearMapToSemiringIdToNonAssocSemiringToAddCommMonoidToAddCommMonoid.{u1, u2, u3, u4} R k V1 V2 _inst_1 _inst_2 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9)
+  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toSMul.{u2, u4} k V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u2, u4} k V2 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toSMul.{u1, u4} R V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u1, u4} R V2 (MonoidWithZero.toZero.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u4 u3, max u4 u3} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u4 u3} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.instAddCommMonoidSum.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.instModuleLinearMapAddCommMonoid.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
 Case conversion may be inaccurate. Consider using '#align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMapₓ'. -/
 /-- 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
@@ -1389,7 +1389,7 @@ theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) p) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) r₁ r₂)) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul_apply AffineMap.homothety_mul_applyₓ'. -/
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
@@ -1400,7 +1400,7 @@ theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (AffineMap.comp.{u1, u2, u3, u2, u3, u2, u3} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul AffineMap.homothety_mulₓ'. -/
 theorem homothety_mul (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ * r₂) = (homothety c r₁).comp (homothety c r₂) :=
@@ -1424,7 +1424,7 @@ theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r₁ (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_add AffineMap.homothety_addₓ'. -/
 @[simp]
 theorem homothety_add (c : P1) (r₁ r₂ : k) :
@@ -1458,7 +1458,7 @@ theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u2 u3, max u3 u2} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (Ring.toAddCommGroup.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (CommRing.toRing.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u2 u3, max u3 u2} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (Ring.toAddCommGroup.{u1} k (CommRing.toRing.{u1} k _inst_1)) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_affine AffineMap.homothetyAffineₓ'. -/
 /-- `homothety` as an affine map. -/
 def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
@@ -1470,7 +1470,7 @@ def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ u1) (succ (max u3 u2)) (succ (max u2 u3)), max (succ u1) (succ (max u2 u3))} (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (fun (_x : AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (succ u3) (succ (max u2 u1)), succ u3, succ (max u2 u1)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (succ u3) (succ (max u2 u1)), succ u3, succ (max u2 u1)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (Semiring.toModule.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffineₓ'. -/
 @[simp]
 theorem coe_homothetyAffine (c : P1) : ⇑(homothetyAffine c : k →ᵃ[k] _) = homothety c :=
@@ -1489,7 +1489,7 @@ variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Modu
 lean 3 declaration is
   forall {𝕜 : Type.{u1}} {E : Type.{u2}} {F : Type.{u3}} [_inst_1 : Ring.{u1} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u3} F] [_inst_4 : Module.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))}, (Eq.{succ u1} 𝕜 (HAdd.hAdd.{u1, u1, u1} 𝕜 𝕜 𝕜 (instHAdd.{u1} 𝕜 (Distrib.toHasAdd.{u1} 𝕜 (Ring.toDistrib.{u1} 𝕜 _inst_1))) a b) (OfNat.ofNat.{u1} 𝕜 1 (OfNat.mk.{u1} 𝕜 1 (One.one.{u1} 𝕜 (AddMonoidWithOne.toOne.{u1} 𝕜 (AddGroupWithOne.toAddMonoidWithOne.{u1} 𝕜 (AddCommGroupWithOne.toAddGroupWithOne.{u1} 𝕜 (Ring.toAddCommGroupWithOne.{u1} 𝕜 _inst_1)))))))) -> (Eq.{succ u3} F (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toHasAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) a x) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) b y))) (HAdd.hAdd.{u3, u3, u3} F F F (instHAdd.{u3} F (AddZeroClass.toHasAdd.{u3} F (AddMonoid.toAddZeroClass.{u3} F (SubNegMonoid.toAddMonoid.{u3} F (AddGroup.toSubNegMonoid.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3)))))) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) a (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f x)) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) b (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f y))))
 but is expected to have type
-  forall {𝕜 : Type.{u3}} {E : Type.{u2}} {F : Type.{u1}} [_inst_1 : Ring.{u3} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u1} F] [_inst_4 : Module.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))}, (Eq.{succ u3} 𝕜 (HAdd.hAdd.{u3, u3, u3} 𝕜 𝕜 𝕜 (instHAdd.{u3} 𝕜 (Distrib.toAdd.{u3} 𝕜 (NonUnitalNonAssocSemiring.toDistrib.{u3} 𝕜 (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u3} 𝕜 (NonUnitalRing.toNonUnitalNonAssocRing.{u3} 𝕜 (Ring.toNonUnitalRing.{u3} 𝕜 _inst_1)))))) a b) (OfNat.ofNat.{u3} 𝕜 1 (One.toOfNat1.{u3} 𝕜 (Semiring.toOne.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))))) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3)))))) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3) _inst_5))))) a (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f x)) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3) _inst_5))))) b (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f y))))
+  forall {𝕜 : Type.{u3}} {E : Type.{u2}} {F : Type.{u1}} [_inst_1 : Ring.{u3} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u1} F] [_inst_4 : Module.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))}, (Eq.{succ u3} 𝕜 (HAdd.hAdd.{u3, u3, u3} 𝕜 𝕜 𝕜 (instHAdd.{u3} 𝕜 (Distrib.toAdd.{u3} 𝕜 (NonUnitalNonAssocSemiring.toDistrib.{u3} 𝕜 (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u3} 𝕜 (NonAssocRing.toNonUnitalNonAssocRing.{u3} 𝕜 (Ring.toNonAssocRing.{u3} 𝕜 _inst_1)))))) a b) (OfNat.ofNat.{u3} 𝕜 1 (One.toOfNat1.{u3} 𝕜 (Semiring.toOne.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))))) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3)))))) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) x) _inst_3) _inst_5))))) a (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f x)) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) y) _inst_3) _inst_5))))) b (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1003 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f y))))
 Case conversion may be inaccurate. Consider using '#align convex.combo_affine_apply Convex.combo_affine_applyₓ'. -/
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
Diff
@@ -1346,7 +1346,7 @@ def homothety (c : P1) (r : k) : P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) (HVAdd.hVAdd.{max u3 u2, max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) (HVAdd.hVAdd.{max u3 u2, max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_def AffineMap.homothety_defₓ'. -/
 theorem homothety_def (c : P1) (r : k) :
     homothety c r = r • (id k P1 -ᵥ const k P1 c) +ᵥ const k P1 c :=
@@ -1369,7 +1369,7 @@ theorem homothety_eq_lineMap (c : P1) (r : k) (p : P1) : homothety c r p = lineM
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))))))) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_one AffineMap.homothety_oneₓ'. -/
 @[simp]
 theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 :=
@@ -1389,7 +1389,7 @@ theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) p) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul_apply AffineMap.homothety_mul_applyₓ'. -/
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
@@ -1400,7 +1400,7 @@ theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (AffineMap.comp.{u1, u2, u3, u2, u3, u2, u3} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul AffineMap.homothety_mulₓ'. -/
 theorem homothety_mul (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ * r₂) = (homothety c r₁).comp (homothety c r₂) :=
@@ -1411,7 +1411,7 @@ theorem homothety_mul (c : P1) (r₁ r₂ : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))))))))) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (Zero.toOfNat0.{u1} k (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (Zero.toOfNat0.{u1} k (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_zero AffineMap.homothety_zeroₓ'. -/
 @[simp]
 theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
@@ -1424,7 +1424,7 @@ theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r₁ (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_add AffineMap.homothety_addₓ'. -/
 @[simp]
 theorem homothety_add (c : P1) (r₁ r₂ : k) :
@@ -1436,7 +1436,7 @@ theorem homothety_add (c : P1) (r₁ r₂ : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (Semiring.toNonAssocSemiring.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_hom AffineMap.homothetyHomₓ'. -/
 /-- `homothety` as a multiplicative monoid homomorphism. -/
 def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
@@ -1447,7 +1447,7 @@ def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ (max u2 u3)) (succ u1), max (succ u1) (succ (max u2 u3))} (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (fun (_x : MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (MonoidHom.hasCoeToFun.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (AffineMap.homothetyHom.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
@@ -1458,7 +1458,7 @@ theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u2 u3, max u3 u2} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (Ring.toAddCommGroup.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (CommRing.toRing.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u2 u3, max u3 u2} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (Ring.toAddCommGroup.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (CommRing.toRing.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (CommSemiring.toSemiring.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_affine AffineMap.homothetyAffineₓ'. -/
 /-- `homothety` as an affine map. -/
 def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
@@ -1470,7 +1470,7 @@ def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ u1) (succ (max u3 u2)) (succ (max u2 u3)), max (succ u1) (succ (max u2 u3))} (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (fun (_x : AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (succ u3) (succ (max u2 u1)), succ u3, succ (max u2 u1)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (succ u3) (succ (max u2 u1)), succ u3, succ (max u2 u1)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (CommSemiring.toSemiring.{u3} k (CommRing.toCommSemiring.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffineₓ'. -/
 @[simp]
 theorem coe_homothetyAffine (c : P1) : ⇑(homothetyAffine c : k →ᵃ[k] _) = homothety c :=
Diff
@@ -517,7 +517,7 @@ theorem vsub_apply (f g : P1 →ᵃ[k] P2) (p : P1) : (f -ᵥ g : P1 →ᵃ[k] V
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u3, u5, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4
 Case conversion may be inaccurate. Consider using '#align affine_map.fst AffineMap.fstₓ'. -/
 /-- `prod.fst` as an `affine_map`. -/
 def fst : P1 × P2 →ᵃ[k] P1 where
@@ -530,7 +530,7 @@ def fst : P1 × P2 →ᵃ[k] P1 where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u3)} ((Prod.{u3, u5} P1 P2) -> P1) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u2) (succ u3), max (succ (max u3 u5)) (succ u3)} (AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) => (Prod.{u3, u5} P1 P2) -> P1) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u3, u5} P1 P2)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u3)) (succ u5), succ (max u5 u4), succ u5} (AffineMap.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u3)) (succ u5), succ (max u5 u4), succ u5} (AffineMap.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_fst AffineMap.coe_fstₓ'. -/
 @[simp]
 theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
@@ -541,7 +541,7 @@ theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u2 u4)) (succ u2)} (LinearMap.{u1, u1, max u2 u4, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (Prod.{u2, u4} V1 V2) V1 (AddCommGroup.toAddCommMonoid.{max u2 u4} (Prod.{u2, u4} V1 V2) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_3) (AffineMap.linear.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.fst.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u5} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V1 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_3) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u5, u2} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u5, u2, u4, u1} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.fst.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
+  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u5} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V1 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_3) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u5, u2} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u2, u1, u5} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.fst.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
 Case conversion may be inaccurate. Consider using '#align affine_map.fst_linear AffineMap.fst_linearₓ'. -/
 @[simp]
 theorem fst_linear : (fst : P1 × P2 →ᵃ[k] P1).linear = LinearMap.fst k V1 V2 :=
@@ -552,7 +552,7 @@ theorem fst_linear : (fst : P1 × P2 →ᵃ[k] P1).linear = LinearMap.fst k V1 V
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u3, u5, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7
 Case conversion may be inaccurate. Consider using '#align affine_map.snd AffineMap.sndₓ'. -/
 /-- `prod.snd` as an `affine_map`. -/
 def snd : P1 × P2 →ᵃ[k] P2 where
@@ -565,7 +565,7 @@ def snd : P1 × P2 →ᵃ[k] P2 where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u5)} ((Prod.{u3, u5} P1 P2) -> P2) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u4) (succ u5), max (succ (max u3 u5)) (succ u5)} (AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) => (Prod.{u3, u5} P1 P2) -> P2) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u3, u5} P1 P2)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u2)) (succ u4), succ (max u5 u4), succ u4} (AffineMap.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u2)) (succ u4), succ (max u5 u4), succ u4} (AffineMap.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u4, u3} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_snd AffineMap.coe_sndₓ'. -/
 @[simp]
 theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
@@ -576,7 +576,7 @@ theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u2 u4)) (succ u4)} (LinearMap.{u1, u1, max u2 u4, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (Prod.{u2, u4} V1 V2) V2 (AddCommGroup.toAddCommMonoid.{max u2 u4} (Prod.{u2, u4} V1 V2) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_6) (AffineMap.linear.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.snd.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V2 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_6) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u4, u1} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u5, u2, u4, u1} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.snd.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
+  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V2 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_6) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u4, u1} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u4, u2, u1, u5} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.snd.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
 Case conversion may be inaccurate. Consider using '#align affine_map.snd_linear AffineMap.snd_linearₓ'. -/
 @[simp]
 theorem snd_linear : (snd : P1 × P2 →ᵃ[k] P2).linear = LinearMap.snd k V1 V2 :=
@@ -1041,7 +1041,7 @@ theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u3} P1 (Prod.fst.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u3, u5} P1 P2 p₀) (Prod.fst.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u5), succ u3, succ u5} (AffineMap.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u5), succ u3, succ u5} (AffineMap.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.fst_line_map AffineMap.fst_lineMapₓ'. -/
 @[simp]
 theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = lineMap p₀.1 p₁.1 c :=
@@ -1052,7 +1052,7 @@ theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = l
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u5} P2 (Prod.snd.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u3, u5} P1 P2 p₀) (Prod.snd.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P2) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u1, u5, u4, u2} V2 P1 P2 V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P2) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.snd_line_map AffineMap.snd_lineMapₓ'. -/
 @[simp]
 theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = lineMap p₀.2 p₁.2 c :=
Diff
@@ -825,7 +825,7 @@ omit V2
 
 /- warning: affine_map.line_map -> AffineMap.lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4)
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map AffineMap.lineMapₓ'. -/
@@ -836,7 +836,7 @@ def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
 
 /- warning: affine_map.coe_line_map -> AffineMap.coe_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u3)} ((fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u3)} ((fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u1}} {P1 : Type.{u2}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (forall (a : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) a) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u2), succ u3, succ u2} (AffineMap.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u1, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => HVAdd.hVAdd.{u1, u2, u2} V1 P1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (instHVAdd.{u1, u2} V1 P1 (AddAction.toVAdd.{u1, u2} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u3, u1, u1} k V1 V1 (instHSMul.{u3, u1} k V1 (SMulZeroClass.toSMul.{u3, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u1} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u1} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u2} V1 P1 (AddTorsor.toVSub.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_line_map AffineMap.coe_lineMapₓ'. -/
@@ -846,7 +846,7 @@ theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c =>
 
 /- warning: affine_map.line_map_apply -> AffineMap.lineMap_apply is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 but is expected to have type
   forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply AffineMap.lineMap_applyₓ'. -/
@@ -856,7 +856,7 @@ theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p
 
 /- warning: affine_map.line_map_apply_module' -> AffineMap.lineMap_apply_module' is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toHasSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toHasSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'ₓ'. -/
@@ -866,7 +866,7 @@ theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c
 
 /- warning: affine_map.line_map_apply_module -> AffineMap.lineMap_apply_module is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c p₁))
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) p₀) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module AffineMap.lineMap_apply_moduleₓ'. -/
@@ -878,7 +878,7 @@ omit V1
 
 /- warning: affine_map.line_map_apply_ring' -> AffineMap.lineMap_apply_ring' is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) b a)) a)
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) b a)) a)
 but is expected to have type
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) b a)) a)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'ₓ'. -/
@@ -888,7 +888,7 @@ theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
 
 /- warning: affine_map.line_map_apply_ring -> AffineMap.lineMap_apply_ring is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c b))
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c b))
 but is expected to have type
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Distrib.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocSemiring.toDistrib.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toNonUnitalRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))))) (HMul.hMul.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocRing.toMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toNonUnitalRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))) (HSub.hSub.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)) (OfNat.ofNat.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) 1 (One.toOfNat1.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Semiring.toOne.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c b))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ringₓ'. -/
@@ -900,7 +900,7 @@ include V1
 
 /- warning: affine_map.line_map_vadd_apply -> AffineMap.lineMap_vadd_apply is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c v) p)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c v) p)
 but is expected to have type
   forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) v p)) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c v) p)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_applyₓ'. -/
@@ -910,7 +910,7 @@ theorem lineMap_vadd_apply (p : P1) (v : V1) (c : k) : lineMap p (v +ᵥ p) c =
 
 /- warning: affine_map.line_map_linear -> AffineMap.lineMap_linear is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2)} (LinearMap.{u1, u1, u1, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u1} k (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3) (AffineMap.linear.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u1, u1, u2, u1} k k V1 k (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) _inst_3 (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (Ring.toSemiring.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3 (IsScalarTower.left.{u1, u2} k V1 (Ring.toMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u1, u1} k k (Ring.toSemiring.{u1} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2)} (LinearMap.{u1, u1, u1, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u1} k (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3) (AffineMap.linear.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u1, u1, u2, u1} k k V1 k (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) _inst_3 (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (Ring.toSemiring.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3 (IsScalarTower.left.{u1, u2} k V1 (Ring.toMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u1, u1} k k (Ring.toSemiring.{u1} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (LinearMap.{u3, u3, u3, u2} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u3} k (Ring.toAddCommGroup.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) _inst_3) (AffineMap.linear.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u3, u3, u2, u3} k k V1 k (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) _inst_3 (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) _inst_3 (IsScalarTower.left.{u3, u2} k V1 (MonoidWithZero.toMonoid.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u3, u3} k k (Ring.toSemiring.{u3} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1)) (VSub.vsub.{u2, u1} V1 P1 (AddTorsor.toVSub.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_linear AffineMap.lineMap_linearₓ'. -/
@@ -922,7 +922,7 @@ theorem lineMap_linear (p₀ p₁ : P1) :
 
 /- warning: affine_map.line_map_same_apply -> AffineMap.lineMap_same_apply is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
 but is expected to have type
   forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same_apply AffineMap.lineMap_same_applyₓ'. -/
@@ -931,7 +931,7 @@ theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by simp [line
 
 /- warning: affine_map.line_map_same -> AffineMap.lineMap_same is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 p)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 p)
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 p)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same AffineMap.lineMap_sameₓ'. -/
@@ -942,7 +942,7 @@ theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
 
 /- warning: affine_map.line_map_apply_zero -> AffineMap.lineMap_apply_zero is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))) p₀
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))) p₀
 but is expected to have type
   forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) p₀
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zeroₓ'. -/
@@ -952,7 +952,7 @@ theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ :
 
 /- warning: affine_map.line_map_apply_one -> AffineMap.lineMap_apply_one is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))))) p₁
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))))) p₁
 but is expected to have type
   forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) p₁
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one AffineMap.lineMap_apply_oneₓ'. -/
@@ -962,7 +962,7 @@ theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ :=
 
 /- warning: affine_map.line_map_eq_line_map_iff -> AffineMap.lineMap_eq_lineMap_iff is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c₁ c₂))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c₁ c₂))
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c₁ c₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iffₓ'. -/
@@ -975,7 +975,7 @@ theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁
 
 /- warning: affine_map.line_map_eq_left_iff -> AffineMap.lineMap_eq_left_iff is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iffₓ'. -/
@@ -987,7 +987,7 @@ theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
 
 /- warning: affine_map.line_map_eq_right_iff -> AffineMap.lineMap_eq_right_iff is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))))))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))))))
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_right_iff AffineMap.lineMap_eq_right_iffₓ'. -/
@@ -1001,7 +1001,7 @@ variable (k)
 
 /- warning: affine_map.line_map_injective -> AffineMap.lineMap_injective is a dubious translation:
 lean 3 declaration is
-  forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u3} P1 p₀ p₁) -> (Function.Injective.{succ u1, succ u3} k P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
+  forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u3} P1 p₀ p₁) -> (Function.Injective.{succ u1, succ u3} k P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
 but is expected to have type
   forall (k : Type.{u3}) {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u1} P1 p₀ p₁) -> (Function.Injective.{succ u3, succ u1} k P1 (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_injective AffineMap.lineMap_injectiveₓ'. -/
@@ -1016,7 +1016,7 @@ include V2
 
 /- warning: affine_map.apply_line_map -> AffineMap.apply_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
 but is expected to have type
   forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (a : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) a) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (succ u5) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _x) (AffineMap.funLike.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.apply_line_map AffineMap.apply_lineMapₓ'. -/
@@ -1027,7 +1027,7 @@ theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
 
 /- warning: affine_map.comp_line_map -> AffineMap.comp_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u4) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u1, u1, u2, u3, u4, u5} k k k V1 P1 V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u4) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u1, u1, u2, u3, u4, u5} k k k V1 P1 V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
 but is expected to have type
   forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u5) (succ u2)) (succ u1)} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u5, u5, u4, u3, u2, u1} k k k V1 P1 V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_line_map AffineMap.comp_lineMapₓ'. -/
@@ -1039,7 +1039,7 @@ theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
 
 /- warning: affine_map.fst_line_map -> AffineMap.fst_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u3} P1 (Prod.fst.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u3, u5} P1 P2 p₀) (Prod.fst.{u3, u5} P1 P2 p₁)) c)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u3} P1 (Prod.fst.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u3, u5} P1 P2 p₀) (Prod.fst.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u5), succ u3, succ u5} (AffineMap.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.fst_line_map AffineMap.fst_lineMapₓ'. -/
@@ -1050,7 +1050,7 @@ theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = l
 
 /- warning: affine_map.snd_line_map -> AffineMap.snd_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u5} P2 (Prod.snd.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u3, u5} P1 P2 p₀) (Prod.snd.{u3, u5} P1 P2 p₁)) c)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u5} P2 (Prod.snd.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u3, u5} P1 P2 p₀) (Prod.snd.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P2) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.snd_line_map AffineMap.snd_lineMapₓ'. -/
@@ -1063,7 +1063,7 @@ omit V2
 
 /- warning: affine_map.line_map_symm -> AffineMap.lineMap_symm is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u1, u1, u1, u1, u1, u2, u3} k k k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u1, u1, u1, u1, u1, u2, u3} k k k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u3, u3, u3, u3, u3, u2, u1} k k k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u3, u3, u3} k k k _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_symm AffineMap.lineMap_symmₓ'. -/
@@ -1076,7 +1076,7 @@ theorem lineMap_symm (p₀ p₁ : P1) :
 
 /- warning: affine_map.line_map_apply_one_sub -> AffineMap.lineMap_apply_one_sub is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
 but is expected to have type
   forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_subₓ'. -/
@@ -1089,7 +1089,7 @@ theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 -
 
 /- warning: affine_map.line_map_vsub_left -> AffineMap.lineMap_vsub_left is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_leftₓ'. -/
@@ -1100,7 +1100,7 @@ theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 
 /- warning: affine_map.left_vsub_line_map -> AffineMap.left_vsub_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMapₓ'. -/
@@ -1111,7 +1111,7 @@ theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁
 
 /- warning: affine_map.line_map_vsub_right -> AffineMap.lineMap_vsub_right is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_rightₓ'. -/
@@ -1122,7 +1122,7 @@ theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 
 /- warning: affine_map.right_vsub_line_map -> AffineMap.right_vsub_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMapₓ'. -/
@@ -1140,7 +1140,7 @@ theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
 
 /- warning: affine_map.line_map_vsub_line_map -> AffineMap.lineMap_vsub_lineMap is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₂ p₄)) c)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₂ p₄)) c)
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (FunLike.coe.{max (succ u1) (succ u3), succ u1, succ u3} (AffineMap.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.lineMap.{u1, u3, u3} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₂ p₄)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMapₓ'. -/
@@ -1184,7 +1184,7 @@ omit V1
 
 /- warning: affine_map.image_uIcc -> AffineMap.image_uIcc is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) a b)) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f a) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f b))
+  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) a b)) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f a) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f b))
 but is expected to have type
   forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f) (Set.uIcc.{u1} k (DistribLattice.toLattice.{u1} k (instDistribLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14))))) a b)) (Set.uIcc.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (DistribLattice.toLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (instDistribLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedRing.toLinearOrder.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedCommRing.toLinearOrderedRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedField.toLinearOrderedCommRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) _inst_14))))) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f a) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f b))
 Case conversion may be inaccurate. Consider using '#align affine_map.image_uIcc AffineMap.image_uIccₓ'. -/
@@ -1246,7 +1246,7 @@ theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.pr
 
 /- warning: affine_map.pi_line_map_apply -> AffineMap.pi_lineMap_apply is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (coeFn.{max (succ u1) (succ (max u2 u3)) (succ (max u2 u4)), max (succ u1) (succ (max u2 u4))} (AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (fun (_x : AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) => k -> (forall (i : ι), P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u1, max u2 u3, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (coeFn.{max (succ u1) (succ u3) (succ u4), max (succ u1) (succ u4)} (AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (fun (_x : AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) => k -> (P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u1, u3, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (coeFn.{max (succ u1) (succ (max u2 u3)) (succ (max u2 u4)), max (succ u1) (succ (max u2 u4))} (AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (fun (_x : AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) => k -> (forall (i : ι), P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u1, max u2 u3, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (coeFn.{max (succ u1) (succ u3) (succ u4), max (succ u1) (succ u4)} (AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (fun (_x : AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) => k -> (P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u1, u3, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
 but is expected to have type
   forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u2 u4)), succ u3, succ (max u2 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => forall (i : ι), P i) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u3, max u2 u1, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) f g) c i) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P i) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u3, u1, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.pi_line_map_apply AffineMap.pi_lineMap_applyₓ'. -/
@@ -1367,7 +1367,7 @@ theorem homothety_eq_lineMap (c : P1) (r : k) (p : P1) : homothety c r p = lineM
 
 /- warning: affine_map.homothety_one -> AffineMap.homothety_one is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))))))) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))))))) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_one AffineMap.homothety_oneₓ'. -/
@@ -1456,7 +1456,7 @@ theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c
 
 /- warning: affine_map.homothety_affine -> AffineMap.homothetyAffine is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
 but is expected to have type
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u2 u3, max u3 u2} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (Ring.toAddCommGroup.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (CommRing.toRing.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_affine AffineMap.homothetyAffineₓ'. -/
@@ -1468,7 +1468,7 @@ def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
 
 /- warning: affine_map.coe_homothety_affine -> AffineMap.coe_homothetyAffine is a dubious translation:
 lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ u1) (succ (max u3 u2)) (succ (max u2 u3)), max (succ u1) (succ (max u2 u3))} (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (fun (_x : AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ u1) (succ (max u3 u2)) (succ (max u2 u3)), max (succ u1) (succ (max u2 u3))} (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (fun (_x : AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (AddCommGroupWithOne.toAddGroupWithOne.{u1} k (Ring.toAddCommGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
   forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (succ u3) (succ (max u2 u1)), succ u3, succ (max u2 u1)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffineₓ'. -/
@@ -1487,7 +1487,7 @@ variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Modu
 
 /- warning: convex.combo_affine_apply -> Convex.combo_affine_apply is a dubious translation:
 lean 3 declaration is
-  forall {𝕜 : Type.{u1}} {E : Type.{u2}} {F : Type.{u3}} [_inst_1 : Ring.{u1} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u3} F] [_inst_4 : Module.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))}, (Eq.{succ u1} 𝕜 (HAdd.hAdd.{u1, u1, u1} 𝕜 𝕜 𝕜 (instHAdd.{u1} 𝕜 (Distrib.toHasAdd.{u1} 𝕜 (Ring.toDistrib.{u1} 𝕜 _inst_1))) a b) (OfNat.ofNat.{u1} 𝕜 1 (OfNat.mk.{u1} 𝕜 1 (One.one.{u1} 𝕜 (AddMonoidWithOne.toOne.{u1} 𝕜 (AddGroupWithOne.toAddMonoidWithOne.{u1} 𝕜 (NonAssocRing.toAddGroupWithOne.{u1} 𝕜 (Ring.toNonAssocRing.{u1} 𝕜 _inst_1)))))))) -> (Eq.{succ u3} F (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toHasAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) a x) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) b y))) (HAdd.hAdd.{u3, u3, u3} F F F (instHAdd.{u3} F (AddZeroClass.toHasAdd.{u3} F (AddMonoid.toAddZeroClass.{u3} F (SubNegMonoid.toAddMonoid.{u3} F (AddGroup.toSubNegMonoid.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3)))))) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) a (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f x)) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) b (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f y))))
+  forall {𝕜 : Type.{u1}} {E : Type.{u2}} {F : Type.{u3}} [_inst_1 : Ring.{u1} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u3} F] [_inst_4 : Module.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))}, (Eq.{succ u1} 𝕜 (HAdd.hAdd.{u1, u1, u1} 𝕜 𝕜 𝕜 (instHAdd.{u1} 𝕜 (Distrib.toHasAdd.{u1} 𝕜 (Ring.toDistrib.{u1} 𝕜 _inst_1))) a b) (OfNat.ofNat.{u1} 𝕜 1 (OfNat.mk.{u1} 𝕜 1 (One.one.{u1} 𝕜 (AddMonoidWithOne.toOne.{u1} 𝕜 (AddGroupWithOne.toAddMonoidWithOne.{u1} 𝕜 (AddCommGroupWithOne.toAddGroupWithOne.{u1} 𝕜 (Ring.toAddCommGroupWithOne.{u1} 𝕜 _inst_1)))))))) -> (Eq.{succ u3} F (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toHasAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) a x) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) b y))) (HAdd.hAdd.{u3, u3, u3} F F F (instHAdd.{u3} F (AddZeroClass.toHasAdd.{u3} F (AddMonoid.toAddZeroClass.{u3} F (SubNegMonoid.toAddMonoid.{u3} F (AddGroup.toSubNegMonoid.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3)))))) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) a (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f x)) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) b (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f y))))
 but is expected to have type
   forall {𝕜 : Type.{u3}} {E : Type.{u2}} {F : Type.{u1}} [_inst_1 : Ring.{u3} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u1} F] [_inst_4 : Module.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))}, (Eq.{succ u3} 𝕜 (HAdd.hAdd.{u3, u3, u3} 𝕜 𝕜 𝕜 (instHAdd.{u3} 𝕜 (Distrib.toAdd.{u3} 𝕜 (NonUnitalNonAssocSemiring.toDistrib.{u3} 𝕜 (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u3} 𝕜 (NonUnitalRing.toNonUnitalNonAssocRing.{u3} 𝕜 (Ring.toNonUnitalRing.{u3} 𝕜 _inst_1)))))) a b) (OfNat.ofNat.{u3} 𝕜 1 (One.toOfNat1.{u3} 𝕜 (Semiring.toOne.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))))) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3)))))) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3) _inst_5))))) a (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f x)) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3) _inst_5))))) b (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f y))))
 Case conversion may be inaccurate. Consider using '#align convex.combo_affine_apply Convex.combo_affine_applyₓ'. -/
Diff
@@ -823,12 +823,16 @@ omit V2
 /-! ### Definition of `affine_map.line_map` and lemmas about it -/
 
 
-#print AffineMap.lineMap /-
+/- warning: affine_map.line_map -> AffineMap.lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4)
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], P1 -> P1 -> (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map AffineMap.lineMapₓ'. -/
 /-- The affine map from `k` to `P1` sending `0` to `p₀` and `1` to `p₁`. -/
 def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
   ((LinearMap.id : k →ₗ[k] k).smul_right (p₁ -ᵥ p₀)).toAffineMap +ᵥ const k k p₀
 #align affine_map.line_map AffineMap.lineMap
--/
 
 /- warning: affine_map.coe_line_map -> AffineMap.coe_lineMap is a dubious translation:
 lean 3 declaration is
@@ -1178,7 +1182,12 @@ theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f
 
 omit V1
 
-#print AffineMap.image_uIcc /-
+/- warning: affine_map.image_uIcc -> AffineMap.image_uIcc is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) a b)) (Set.uIcc.{u1} k (LinearOrder.toLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14)))) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f a) (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))))) f b))
+but is expected to have type
+  forall {k : Type.{u1}} [_inst_14 : LinearOrderedField.{u1} k] (f : AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) (a : k) (b : k), Eq.{succ u1} (Set.{u1} k) (Set.image.{u1, u1} k k (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f) (Set.uIcc.{u1} k (DistribLattice.toLattice.{u1} k (instDistribLattice.{u1} k (LinearOrderedRing.toLinearOrder.{u1} k (LinearOrderedCommRing.toLinearOrderedRing.{u1} k (LinearOrderedField.toLinearOrderedCommRing.{u1} k _inst_14))))) a b)) (Set.uIcc.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (DistribLattice.toLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (instDistribLattice.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedRing.toLinearOrder.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedCommRing.toLinearOrderedRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) (LinearOrderedField.toLinearOrderedCommRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) a) _inst_14))))) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f a) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))))) (Ring.toAddCommGroup.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14)))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (DivisionRing.toRing.{u1} k (Field.toDivisionRing.{u1} k (LinearOrderedField.toField.{u1} k _inst_14))))))) f b))
+Case conversion may be inaccurate. Consider using '#align affine_map.image_uIcc AffineMap.image_uIccₓ'. -/
 theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) :=
   by
@@ -1191,7 +1200,6 @@ theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b
   rw [this, Set.image_comp]
   simp only [Set.image_add_const_uIcc, Set.image_mul_const_uIcc]
 #align affine_map.image_uIcc AffineMap.image_uIcc
--/
 
 section
 
Diff
@@ -68,6 +68,7 @@ structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 :
 -- mathport name: «expr →ᵃ[ ] »
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
+#print AffineMap.funLike /-
 instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
     [Ring k] [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
     [affine_space V2 P2] : FunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
@@ -80,12 +81,15 @@ instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _
     apply vadd_right_cancel (f p)
     erw [← f_add, h, ← g_add]
 #align affine_map.fun_like AffineMap.funLike
+-/
 
+#print AffineMap.hasCoeToFun /-
 instance AffineMap.hasCoeToFun (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
     [Ring k] [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
     [affine_space V2 P2] : CoeFun (P1 →ᵃ[k] P2) fun _ => P1 → P2 :=
   FunLike.hasCoeToFun
 #align affine_map.has_coe_to_fun AffineMap.hasCoeToFun
+-/
 
 namespace LinearMap
 
@@ -105,7 +109,7 @@ def toAffineMap : V₁ →ᵃ[k] V₂ where
 lean 3 declaration is
   forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (V₁ -> V₂) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) => V₁ -> V₂) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) => V₁ -> V₂) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 but is expected to have type
-  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (V₁ -> V₂) (AffineMap.toFun.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
+  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : V₁), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V₁) => V₂) ᾰ) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (AffineMap.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) V₁ (fun (_x : V₁) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V₁) => V₂) _x) (AffineMap.funLike.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 Case conversion may be inaccurate. Consider using '#align linear_map.coe_to_affine_map LinearMap.coe_toAffineMapₓ'. -/
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
@@ -138,7 +142,7 @@ include V1 V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u5} P2 (f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) linear v) (f p))), Eq.{max (succ u3) (succ u5)} ((fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) a) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
@@ -147,6 +151,12 @@ theorem coe_mk (f : P1 → P2) (linear add) : ((mk f linear add : P1 →ᵃ[k] P
   rfl
 #align affine_map.coe_mk AffineMap.coe_mk
 
+/- warning: affine_map.to_fun_eq_coe -> AffineMap.toFun_eq_coe is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (AffineMap.toFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f)
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u1)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (f : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) f) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f)
+Case conversion may be inaccurate. Consider using '#align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coeₓ'. -/
 /-- `to_fun` is the same as the result of coercing to a function. -/
 @[simp]
 theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
@@ -157,7 +167,7 @@ theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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
@@ -171,7 +181,7 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p1) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p2))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p1) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p1) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- The linear map on the result of subtracting two points is the
 result of subtracting the result of the affine map on those two
@@ -185,7 +195,7 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p)) -> (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
 Case conversion may be inaccurate. Consider using '#align affine_map.ext AffineMap.extₓ'. -/
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
@@ -197,7 +207,7 @@ theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.ext_iff AffineMap.ext_iffₓ'. -/
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
   ⟨fun h p => h ▸ rfl, ext⟩
@@ -213,7 +223,7 @@ theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeF
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f x) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f y))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
 Case conversion may be inaccurate. Consider using '#align affine_map.congr_arg AffineMap.congr_argₓ'. -/
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
   congr_arg _ h
@@ -223,7 +233,7 @@ protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f x) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g x))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
 Case conversion may be inaccurate. Consider using '#align affine_map.congr_fun AffineMap.congr_funₓ'. -/
 protected theorem congr_fun {f g : P1 →ᵃ[k] P2} (h : f = g) (x : P1) : f x = g x :=
   h ▸ rfl
@@ -245,7 +255,7 @@ def const (p : P2) : P1 →ᵃ[k] P2
 lean 3 declaration is
   forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u5, succ u3} P2 P1 p)
 but is expected to have type
-  forall (k : Type.{u3}) {V1 : Type.{u2}} (P1 : Type.{u5}) {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (P1 -> P2) (AffineMap.toFun.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.const.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u4, succ u5} P2 P1 p)
+  forall (k : Type.{u1}) {V1 : Type.{u3}} (P1 : Type.{u5}) {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u4), succ u5, succ u4} (AffineMap.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u4, succ u5} P2 P1 p)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_const AffineMap.coe_constₓ'. -/
 @[simp]
 theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
@@ -308,7 +318,7 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) ᾰ) (FunLike.coe.{max (max (max (succ u4) (succ u1)) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
@@ -341,7 +351,7 @@ instance : MulAction R (P1 →ᵃ[k] V2)
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] {R : Type.{u5}} [_inst_14 : Monoid.{u5} R] [_inst_15 : DistribMulAction.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u1, u5, u4} k R V2 (SMulZeroClass.toHasSmul.{u1, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (SMulWithZero.toSmulZeroClass.{u1, u4} k V2 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (MulActionWithZero.toSMulWithZero.{u1, u4} k V2 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (Module.toMulActionWithZero.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_6)))) (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (SMul.smul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (MulAction.toHasSmul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u1, u2, u3, u4, u5} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16)) c f)) (SMul.smul.{u5, max u3 u4} R (P1 -> V2) (Function.hasSMul.{u3, u5, u4} P1 R V2 (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))) c (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u3) (succ u2)} (P1 -> V2) (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) c f)) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} R (P1 -> V2) (P1 -> V2) (instHSMul.{u1, max u3 u2} R (P1 -> V2) (Pi.instSMul.{u3, u2, u1} P1 R (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.93 : P1) => V2) (fun (i : P1) => SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15))))) c (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u3) (succ u2)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) c f)) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (instHSMul.{u1, max u3 u2} R (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (Pi.instSMul.{u3, u2, u1} P1 R (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (fun (i : P1) => SMulZeroClass.toSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (NegZeroClass.toZero.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_14 (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))) _inst_15))))) c (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_smul AffineMap.coe_smulₓ'. -/
 @[simp, norm_cast]
 theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • f :=
@@ -378,7 +388,7 @@ instance : Neg (P1 →ᵃ[k] V2) where neg f := ⟨-f, -f.linear, fun p v => by
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)], Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{max (succ u2) (succ u3) (succ u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (OfNat.ofNat.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (OfNat.mk.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (Zero.zero.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasZero.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6))))) (OfNat.ofNat.{max u3 u4} (P1 -> V2) 0 (OfNat.mk.{max u3 u4} (P1 -> V2) 0 (Zero.zero.{max u3 u4} (P1 -> V2) (Pi.instZero.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))))))))
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u4}} {V2 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u4} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u2, u3} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (P1 -> V2) (AffineMap.toFun.{u2, u1, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) (OfNat.ofNat.{max (max u1 u4) u3} (AffineMap.{u2, u1, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u1 u4) u3} (AffineMap.{u2, u1, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u1, u4, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (P1 -> V2) 0 (Zero.toOfNat0.{max u4 u3} (P1 -> V2) (Pi.instZero.{u4, u3} P1 (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.93 : P1) => V2) (fun (i : P1) => NegZeroClass.toZero.{u3} V2 (SubNegZeroMonoid.toNegZeroClass.{u3} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V2 (AddCommGroup.toDivisionAddCommMonoid.{u3} V2 _inst_5))))))))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u4}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u4} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u2) (succ u4)) (succ u3), succ u4, succ u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (OfNat.ofNat.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u2 u4) u3} (AffineMap.{u1, u2, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u4, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) 0 (Zero.toOfNat0.{max u4 u3} (forall (a : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (Pi.instZero.{u4, u3} P1 (fun (a : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) a) (fun (i : P1) => NegZeroClass.toZero.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_zero AffineMap.coe_zeroₓ'. -/
 @[simp, norm_cast]
 theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
@@ -389,7 +399,7 @@ theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HAdd.hAdd.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHAdd.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasAdd.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHAdd.{max u3 u4} (P1 -> V2) (Pi.instAdd.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasAdd.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (P1 -> V2) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHAdd.{max u2 u1} (P1 -> V2) (Pi.instAdd.{u2, u1} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toAdd.{u1} V2 (AddMonoid.toAddZeroClass.{u1} V2 (SubNegMonoid.toAddMonoid.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))))) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (instHAdd.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (Pi.instAdd.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (fun (i : P1) => AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_add AffineMap.coe_addₓ'. -/
 @[simp, norm_cast]
 theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
@@ -400,7 +410,7 @@ theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (Neg.neg.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasNeg.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u3 u4} (P1 -> V2) (Pi.instNeg.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasNeg.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (P1 -> V2) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u1} (P1 -> V2) (Pi.instNeg.{u2, u1} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => NegZeroClass.toNeg.{u1} V2 (SubNegZeroMonoid.toNegZeroClass.{u1} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V2 (AddCommGroup.toDivisionAddCommMonoid.{u1} V2 _inst_5)))))) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (Pi.instNeg.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (fun (i : P1) => NegZeroClass.toNeg.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5)))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_neg AffineMap.coe_negₓ'. -/
 @[simp, norm_cast]
 theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
@@ -411,7 +421,7 @@ theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HSub.hSub.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHSub.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasSub.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHSub.{max u3 u4} (P1 -> V2) (Pi.instSub.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasSub.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (P1 -> V2) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHSub.{max u2 u1} (P1 -> V2) (Pi.instSub.{u2, u1} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toSub.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (instHSub.{max u2 u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (Pi.instSub.{u2, u1} P1 (fun (ᾰ : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) ᾰ) (fun (i : P1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) i) _inst_5))))) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u2, succ u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_sub AffineMap.coe_subₓ'. -/
 @[simp, norm_cast]
 theorem coe_sub (f g : P1 →ᵃ[k] V2) : ⇑(f - g) = f - g :=
@@ -485,7 +495,7 @@ instance : affine_space (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (VAdd.vadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toHasVadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7))) f g) p) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (HVAdd.hVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (instHVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)))) f g) p) (HVAdd.hVAdd.{u2, u1, u1} V2 P2 P2 (instHVAdd.{u2, u1} V2 P2 (AddAction.toVAdd.{u2, u1} V2 P2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddTorsor.toAddAction.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7))) (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (HVAdd.hVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (instHVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)))) f g) p) (HVAdd.hVAdd.{u2, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (instHVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddAction.toVAdd.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (SubNegMonoid.toAddMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) (AddGroup.toSubNegMonoid.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) _inst_5) _inst_7))) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.vadd_apply AffineMap.vadd_applyₓ'. -/
 @[simp]
 theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +ᵥ g) p = f p +ᵥ g p :=
@@ -496,7 +506,7 @@ theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (VSub.vsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toHasVsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u2} V2 (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) (VSub.vsub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toVSub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) p) (FunLike.coe.{max (max (succ u4) (succ u3)) (succ u2), succ u3, succ u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => V2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (VSub.vsub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toVSub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddTorsor.toVSub.{u2, u1} V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.vsub_apply AffineMap.vsub_applyₓ'. -/
 @[simp]
 theorem vsub_apply (f g : P1 →ᵃ[k] P2) (p : P1) : (f -ᵥ g : P1 →ᵃ[k] V2) p = f p -ᵥ g p :=
@@ -520,7 +530,7 @@ def fst : P1 × P2 →ᵃ[k] P1 where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u3)} ((Prod.{u3, u5} P1 P2) -> P1) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u2) (succ u3), max (succ (max u3 u5)) (succ u3)} (AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) => (Prod.{u3, u5} P1 P2) -> P1) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u3, u5} P1 P2)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} ((Prod.{u5, u4} P1 P2) -> P1) (AffineMap.toFun.{u3, max u2 u1, max u5 u4, u2, u5} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u3)) (succ u5), succ (max u5 u4), succ u5} (AffineMap.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P1) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u3, u5} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_fst AffineMap.coe_fstₓ'. -/
 @[simp]
 theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
@@ -555,7 +565,7 @@ def snd : P1 × P2 →ᵃ[k] P2 where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u5)} ((Prod.{u3, u5} P1 P2) -> P2) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u4) (succ u5), max (succ (max u3 u5)) (succ u5)} (AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) => (Prod.{u3, u5} P1 P2) -> P2) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u3, u5} P1 P2)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} ((Prod.{u5, u4} P1 P2) -> P2) (AffineMap.toFun.{u3, max u2 u1, max u5 u4, u1, u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u1, u2} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u4} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (forall (ᾰ : Prod.{u5, u4} P1 P2), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) ᾰ) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u5 u4))) (succ u2)) (succ u4), succ (max u5 u4), succ u4} (AffineMap.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (Prod.{u5, u4} P1 P2) (fun (_x : Prod.{u5, u4} P1 P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : Prod.{u5, u4} P1 P2) => P2) _x) (AffineMap.funLike.{u1, max u3 u2, max u5 u4, u2, u4} k (Prod.{u3, u2} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u3, u2} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u3, u2} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u3, u5, u2, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u3, u5, u2, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_snd AffineMap.coe_sndₓ'. -/
 @[simp]
 theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
@@ -586,17 +596,13 @@ def id : P1 →ᵃ[k] P1 where
 #align affine_map.id AffineMap.id
 -/
 
-/- warning: affine_map.coe_id -> AffineMap.coe_id is a dubious translation:
-lean 3 declaration is
-  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (id.{succ u3} P1)
-but is expected to have type
-  forall (k : Type.{u2}) {V1 : Type.{u1}} (P1 : Type.{u3}) [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (id.{succ u3} P1)
-Case conversion may be inaccurate. Consider using '#align affine_map.coe_id AffineMap.coe_idₓ'. -/
+#print AffineMap.coe_id /-
 /-- The identity affine map acts as the identity. -/
 @[simp]
 theorem coe_id : ⇑(id k P1) = id :=
   rfl
 #align affine_map.coe_id AffineMap.coe_id
+-/
 
 /- warning: affine_map.id_linear -> AffineMap.id_linear is a dubious translation:
 lean 3 declaration is
@@ -611,16 +617,12 @@ theorem id_linear : (id k P1).linear = LinearMap.id :=
 
 variable {P1}
 
-/- warning: affine_map.id_apply -> AffineMap.id_apply is a dubious translation:
-lean 3 declaration is
-  forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4) p) p
-but is expected to have type
-  forall (k : Type.{u2}) {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4) p) p
-Case conversion may be inaccurate. Consider using '#align affine_map.id_apply AffineMap.id_applyₓ'. -/
+#print AffineMap.id_apply /-
 /-- The identity affine map acts as the identity. -/
 theorem id_apply (p : P1) : id k P1 p = p :=
   rfl
 #align affine_map.id_apply AffineMap.id_apply
+-/
 
 variable {k P1}
 
@@ -646,7 +648,7 @@ def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u7)} (P1 -> P3) (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u3, succ u5, succ u7} P1 P2 P3 (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
 but is expected to have type
-  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u1) (succ u3)} (P1 -> P3) (AffineMap.toFun.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u1, succ u5, succ u3} P1 P2 P3 (AffineMap.toFun.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f) (AffineMap.toFun.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g))
+  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u1) (succ u3)} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) ᾰ) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u1, succ u5, succ u3} P1 P2 P3 (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_comp AffineMap.coe_compₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 @[simp]
@@ -658,7 +660,7 @@ theorem coe_comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : ⇑(f.comp g) = f
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u7} P3 (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 but is expected to have type
-  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u3} P3 (AffineMap.toFun.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (AffineMap.toFun.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f (AffineMap.toFun.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) p) (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u4)) (succ u3), succ u1, succ u3} (AffineMap.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P3) _x) (AffineMap.funLike.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (FunLike.coe.{max (max (max (succ u6) (succ u5)) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) P2 (fun (_x : P2) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P2) => P3) _x) (AffineMap.funLike.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (FunLike.coe.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5), succ u1, succ u5} (AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_apply AffineMap.comp_applyₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp g p = f (g p) :=
@@ -715,7 +717,7 @@ instance : Monoid (P1 →ᵃ[k] P1) where
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u3} (P1 -> P1) (coeFn.{succ (max u2 u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u3, max u2 u3, max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u3, succ u3, succ u3} P1 P1 P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u1} (P1 -> P1) (AffineMap.toFun.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (HMul.hMul.{max u2 u1, max u2 u1, max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u1, succ u1, succ u1} P1 P1 P1 (AffineMap.toFun.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 f) (AffineMap.toFun.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 g))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u1} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u1, max u2 u1, max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u1, succ u1, succ u1} P1 P1 P1 (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (FunLike.coe.{max (succ u2) (succ u1), succ u1, succ u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mul AffineMap.coe_mulₓ'. -/
 @[simp]
 theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
@@ -726,7 +728,7 @@ theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (OfNat.mk.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.one.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))))) (id.{succ u3} P1)
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (OfNat.ofNat.{max u1 u3} (AffineMap.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.toOfNat1.{max u1 u3} (AffineMap.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toOne.{max u1 u3} (AffineMap.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (forall (ᾰ : P1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) ᾰ) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.toOfNat1.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))) (id.{succ u3} P1)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_one AffineMap.coe_oneₓ'. -/
 @[simp]
 theorem coe_one : ⇑(1 : P1 →ᵃ[k] P1) = id :=
@@ -754,7 +756,7 @@ include V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
@@ -772,7 +774,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
@@ -790,7 +792,7 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
@@ -802,7 +804,7 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {s : Set.{u3} P1} {t : Set.{u3} P1} (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u4} (Set.{u4} V2) (VSub.vsub.{u4, u5} (Set.{u4} V2) (Set.{u5} P2) (Set.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u2, u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u2, u3} (Set.{u2} V1) (Set.{u3} P1) (Set.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) s t))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) s) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u5, u1} P1 P2 (FunLike.coe.{max (max (max (succ u3) (succ u5)) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
 Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
@@ -832,7 +834,7 @@ def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u3)} ((fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u1}} {P1 : Type.{u2}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (k -> P1) (AffineMap.toFun.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u1, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => HVAdd.hVAdd.{u1, u2, u2} V1 P1 P1 (instHVAdd.{u1, u2} V1 P1 (AddAction.toVAdd.{u1, u2} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u3, u1, u1} k V1 V1 (instHSMul.{u3, u1} k V1 (SMulZeroClass.toSMul.{u3, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u1} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u1} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u2} V1 P1 (AddTorsor.toVSub.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+  forall {k : Type.{u3}} {V1 : Type.{u1}} {P1 : Type.{u2}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (forall (a : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) a) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u2), succ u3, succ u2} (AffineMap.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u1, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => HVAdd.hVAdd.{u1, u2, u2} V1 P1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (instHVAdd.{u1, u2} V1 P1 (AddAction.toVAdd.{u1, u2} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u3, u1, u1} k V1 V1 (instHSMul.{u3, u1} k V1 (SMulZeroClass.toSMul.{u3, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u1} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u1} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u2} V1 P1 (AddTorsor.toVSub.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_line_map AffineMap.coe_lineMapₓ'. -/
 theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c => c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
@@ -842,7 +844,7 @@ theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c =>
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply AffineMap.lineMap_applyₓ'. -/
 theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
@@ -852,7 +854,7 @@ theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toHasSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (AffineMap.toFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'ₓ'. -/
 theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c • (p₁ - p₀) + p₀ :=
   rfl
@@ -862,7 +864,7 @@ theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c p₁))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (AffineMap.toFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) p₀) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) c) (FunLike.coe.{max (succ u1) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) p₀) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module AffineMap.lineMap_apply_moduleₓ'. -/
 theorem lineMap_apply_module (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = (1 - c) • p₀ + c • p₁ := by
   simp [line_map_apply_module', smul_sub, sub_smul] <;> abel
@@ -874,7 +876,7 @@ omit V1
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) b a)) a)
 but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (AffineMap.toFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) b a)) a)
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) b a)) a)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'ₓ'. -/
 theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
   rfl
@@ -884,7 +886,7 @@ theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c b))
 but is expected to have type
-  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (AffineMap.toFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c b))
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (FunLike.coe.{succ u1, succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) _x) (AffineMap.funLike.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1)))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Distrib.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocSemiring.toDistrib.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toNonUnitalRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))))) (HMul.hMul.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalNonAssocRing.toMul.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (NonUnitalRing.toNonUnitalNonAssocRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toNonUnitalRing.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))) (HSub.hSub.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) k ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (instHSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)) (OfNat.ofNat.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) 1 (One.toOfNat1.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Semiring.toOne.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) (Ring.toSemiring.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => k) c) _inst_1)))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c b))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ringₓ'. -/
 theorem lineMap_apply_ring (a b c : k) : lineMap a b c = (1 - c) * a + c * b :=
   lineMap_apply_module a b c
@@ -896,7 +898,7 @@ include V1
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c v) p)
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) v p)) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c v) p)
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) v p)) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c v) p)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_applyₓ'. -/
 theorem lineMap_vadd_apply (p : P1) (v : V1) (c : k) : lineMap p (v +ᵥ p) c = c • v +ᵥ p := by
   rw [line_map_apply, vadd_vsub]
@@ -918,7 +920,7 @@ theorem lineMap_linear (p₀ p₁ : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same_apply AffineMap.lineMap_same_applyₓ'. -/
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by simp [line_map_apply]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
@@ -938,7 +940,7 @@ theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))) p₀
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) p₀
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) p₀
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zeroₓ'. -/
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by simp [line_map_apply]
@@ -948,7 +950,7 @@ theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))))) p₁
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) p₁
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) p₁
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one AffineMap.lineMap_apply_oneₓ'. -/
 @[simp]
 theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ := by simp [line_map_apply]
@@ -958,7 +960,7 @@ theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c₁ c₂))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u1} P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c₁ c₂))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c₁ c₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁ c₂ : k} :
@@ -971,7 +973,7 @@ theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
@@ -983,7 +985,7 @@ theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_right_iff AffineMap.lineMap_eq_right_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
@@ -997,7 +999,7 @@ variable (k)
 lean 3 declaration is
   forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u3} P1 p₀ p₁) -> (Function.Injective.{succ u1, succ u3} k P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
 but is expected to have type
-  forall (k : Type.{u3}) {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u1} P1 p₀ p₁) -> (Function.Injective.{succ u3, succ u1} k P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
+  forall (k : Type.{u3}) {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u1} P1 p₀ p₁) -> (Function.Injective.{succ u3, succ u1} k P1 (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_injective AffineMap.lineMap_injectiveₓ'. -/
 theorem lineMap_injective [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} (h : p₀ ≠ p₁) :
     Function.Injective (lineMap p₀ p₁ : k → P1) := fun c₁ c₂ hc =>
@@ -1012,7 +1014,7 @@ include V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.toFun.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (AffineMap.toFun.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7 (AffineMap.lineMap.{u5, u2, u1} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₀) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₁)) c)
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (a : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) a) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (FunLike.coe.{max (max (succ u5) (succ u4)) (succ u3), succ u5, succ u3} (AffineMap.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (FunLike.coe.{max (max (succ u5) (succ u2)) (succ u1), succ u5, succ u1} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _x) (AffineMap.funLike.{u5, u5, u5, u2, u1} k k k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.apply_line_map AffineMap.apply_lineMapₓ'. -/
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
@@ -1023,7 +1025,7 @@ theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u4) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u1, u1, u2, u3, u4, u5} k k k V1 P1 V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u5) (succ u2)) (succ u1)} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u5, u5, u4, u3, u2, u1} k k k V1 P1 V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u5, u2, u1} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₀) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₁))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u5) (succ u2)) (succ u1)} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u5, u5, u4, u3, u2, u1} k k k V1 P1 V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u5, u2, u1} k V2 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) p₀) _inst_1 _inst_5 _inst_6 _inst_7 (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (FunLike.coe.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1), succ u3, succ u1} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P2) _x) (AffineMap.funLike.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.comp_line_map AffineMap.comp_lineMapₓ'. -/
 @[simp]
 theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
@@ -1035,7 +1037,7 @@ theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u3} P1 (Prod.fst.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u3, u5} P1 P2 p₀) (Prod.fst.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (AffineMap.toFun.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u5), succ u3, succ u5} (AffineMap.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.fst_line_map AffineMap.fst_lineMapₓ'. -/
 @[simp]
 theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = lineMap p₀.1 p₁.1 c :=
@@ -1046,7 +1048,7 @@ theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = l
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u5} P2 (Prod.snd.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u3, u5} P1 P2 p₀) (Prod.snd.{u3, u5} P1 P2 p₁)) c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (AffineMap.toFun.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7 (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u5 u4)), succ u3, succ (max u5 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => Prod.{u5, u4} P1 P2) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P2) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.snd_line_map AffineMap.snd_lineMapₓ'. -/
 @[simp]
 theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = lineMap p₀.2 p₁.2 c :=
@@ -1072,7 +1074,7 @@ theorem lineMap_symm (p₀ p₁ : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (FunLike.coe.{max (max (succ u2) (succ u1)) (succ u3), succ u2, succ u3} (AffineMap.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_subₓ'. -/
 theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c :=
   by
@@ -1085,7 +1087,7 @@ theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 -
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_leftₓ'. -/
 @[simp]
 theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₀ = c • (p₁ -ᵥ p₀) :=
@@ -1096,7 +1098,7 @@ theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMapₓ'. -/
 @[simp]
 theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁ c = c • (p₀ -ᵥ p₁) := by
@@ -1107,7 +1109,7 @@ theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_rightₓ'. -/
 @[simp]
 theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₁ = (1 - c) • (p₀ -ᵥ p₁) := by
@@ -1118,7 +1120,7 @@ theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
 Case conversion may be inaccurate. Consider using '#align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMapₓ'. -/
 @[simp]
 theorem right_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₁ -ᵥ lineMap p₀ p₁ c = (1 - c) • (p₁ -ᵥ p₀) := by
@@ -1136,7 +1138,7 @@ theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₂ p₄)) c)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (AffineMap.toFun.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (AffineMap.lineMap.{u1, u3, u3} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₂ p₄)) c)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddTorsor.toVSub.{u3, u2} V1 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) c) (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (FunLike.coe.{max (max (succ u1) (succ u3)) (succ u2), succ u1, succ u2} (AffineMap.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (FunLike.coe.{max (succ u1) (succ u3), succ u1, succ u3} (AffineMap.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => V1) _x) (AffineMap.funLike.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.lineMap.{u1, u3, u3} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₂ p₄)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMapₓ'. -/
 theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
     lineMap p₁ p₂ c -ᵥ lineMap p₃ p₄ c = lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄) c :=
@@ -1149,7 +1151,7 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (instHAdd.{max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (Pi.instAdd.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => AddZeroClass.toHasAdd.{u3} V2 (AddMonoid.toAddZeroClass.{u3} V2 (SubNegMonoid.toAddMonoid.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (V1 -> V2) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (V1 -> V2) (V1 -> V2) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1166,7 +1168,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (HSub.hSub.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (instHSub.{max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (Pi.instSub.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toHasSub.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (V1 -> V2) (V1 -> V2) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (instHSub.{max u2 u1} (V1 -> V2) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toSub.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (V1 -> ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))))))) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (instHSub.{max u2 u1} (forall (a : V1), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) a) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) ᾰ) (fun (i : V1) => SubNegMonoid.toSub.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) i) _inst_5))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f) (fun (z : V1) => FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) V1 (fun (_x : V1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : V1) => V2) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1216,7 +1218,7 @@ def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} (P i) (coeFn.{max (succ (max u2 u3)) (succ (max u2 u4)) (succ u3) (succ u4), max (succ (max u2 u4)) (succ u4)} (AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (fun (_x : AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) => (forall (i : ι), P i) -> (P i)) (AffineMap.hasCoeToFun.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (AffineMap.proj.{u1, u2, u3, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
 but is expected to have type
-  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} (P i) (AffineMap.toFun.{u3, max u2 u1, max u2 u4, u1, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.proj.{u3, u2, u1, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u3}} {V : ι -> Type.{u2}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u2} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u2} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u2, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u2} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : forall (i : ι), P i) => P i) f) (FunLike.coe.{max (max (max (succ (max u3 u2)) (succ (max u3 u4))) (succ u2)) (succ u4), succ (max u3 u4), succ u4} (AffineMap.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (forall (i : ι), P i) (fun (_x : forall (i : ι), P i) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : forall (i : ι), P i) => P i) _x) (AffineMap.funLike.{u1, max u3 u2, max u3 u4, u2, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u3, u2} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u3, u2, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u2} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u3, u2, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.proj.{u1, u3, u2, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
 Case conversion may be inaccurate. Consider using '#align affine_map.proj_apply AffineMap.proj_applyₓ'. -/
 @[simp]
 theorem proj_apply (i : ι) (f : ∀ i, P i) : @proj k _ ι V P _ _ _ i f = f i :=
@@ -1238,7 +1240,7 @@ theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.pr
 lean 3 declaration is
   forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (coeFn.{max (succ u1) (succ (max u2 u3)) (succ (max u2 u4)), max (succ u1) (succ (max u2 u4))} (AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (fun (_x : AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) => k -> (forall (i : ι), P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u1, max u2 u3, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (coeFn.{max (succ u1) (succ u3) (succ u4), max (succ u1) (succ u4)} (AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (fun (_x : AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) => k -> (P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u1, u3, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
 but is expected to have type
-  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (AffineMap.lineMap.{u3, max u2 u1, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) f g) c i) (AffineMap.toFun.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.lineMap.{u3, u1, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
+  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (FunLike.coe.{max (max (succ u3) (succ (max u2 u1))) (succ (max u2 u4)), succ u3, succ (max u2 u4)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i))) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => forall (i : ι), P i) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u3, max u2 u1, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) f g) c i) (FunLike.coe.{max (max (succ u3) (succ u1)) (succ u4), succ u3, succ u4} (AffineMap.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => P i) _x) (AffineMap.funLike.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u3, u1, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
 Case conversion may be inaccurate. Consider using '#align affine_map.pi_line_map_apply AffineMap.pi_lineMap_applyₓ'. -/
 theorem pi_lineMap_apply (f g : ∀ i, P i) (c : k) (i : ι) :
     lineMap f g c i = lineMap (f i) (g i) c :=
@@ -1290,7 +1292,7 @@ variable (R)
 lean 3 declaration is
   forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toHasSmul.{u2, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u2, u4} k V2 (MulZeroClass.toHasZero.{u2} k (MulZeroOneClass.toMulZeroClass.{u2} k (MonoidWithZero.toMulZeroOneClass.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toHasSmul.{u1, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u1, u4} R V2 (MulZeroClass.toHasZero.{u1} R (MulZeroOneClass.toMulZeroClass.{u1} R (MonoidWithZero.toMulZeroOneClass.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u3 u4, max u3 u4} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.addCommGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.addCommMonoid.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.module.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.module.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
 but is expected to have type
-  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toSMul.{u2, u4} k V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u2, u4} k V2 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toSMul.{u1, u4} R V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u1, u4} R V2 (MonoidWithZero.toZero.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u4 u3, max u4 u3} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u4 u3} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.instAddCommMonoidSum.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.instModuleLinearMapAddCommMonoid.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
+  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toSMul.{u2, u4} k V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u2, u4} k V2 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toSMul.{u1, u4} R V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u1, u4} R V2 (MonoidWithZero.toZero.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u4 u3, max u4 u3} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u4 u3} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (AffineMap.instAddCommMonoidProdLinearMapToSemiringIdToNonAssocSemiringToAddCommMonoidToAddCommMonoid.{u2, u3, u4} k V1 V2 _inst_1 _inst_2 _inst_4 _inst_5 _inst_6) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (AffineMap.instModuleProdLinearMapToSemiringIdToNonAssocSemiringToAddCommMonoidToAddCommMonoidInstAddCommMonoidProdLinearMapToSemiringIdToNonAssocSemiringToAddCommMonoidToAddCommMonoid.{u1, u2, u3, u4} R k V1 V2 _inst_1 _inst_2 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9)
 Case conversion may be inaccurate. Consider using '#align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMapₓ'. -/
 /-- 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
@@ -1343,31 +1345,23 @@ theorem homothety_def (c : P1) (r : k) :
   rfl
 #align affine_map.homothety_def AffineMap.homothety_def
 
-/- warning: affine_map.homothety_apply -> AffineMap.homothety_apply is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_3)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) r (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_3) p c)) c)
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_3))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (CommMonoidWithZero.toZero.{u2} k (CommSemiring.toCommMonoidWithZero.{u2} k (CommRing.toCommSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_5))))) r (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_3) p c)) c)
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_apply AffineMap.homothety_applyₓ'. -/
+#print AffineMap.homothety_apply /-
 theorem homothety_apply (c : P1) (r : k) (p : P1) : homothety c r p = r • (p -ᵥ c : V1) +ᵥ c :=
   rfl
 #align affine_map.homothety_apply AffineMap.homothety_apply
+-/
 
-/- warning: affine_map.homothety_eq_line_map -> AffineMap.homothety_eq_lineMap is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) _inst_2 _inst_5 _inst_3) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) _inst_2 _inst_5 _inst_3) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 c p) r)
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 (CommRing.toRing.{u2} k _inst_1) (Ring.toAddCommGroup.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k (CommRing.toRing.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k (CommRing.toRing.{u2} k _inst_1)))) _inst_2 _inst_5 _inst_3 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 c p) r)
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_eq_line_map AffineMap.homothety_eq_lineMapₓ'. -/
+#print AffineMap.homothety_eq_lineMap /-
 theorem homothety_eq_lineMap (c : P1) (r : k) (p : P1) : homothety c r p = lineMap c p r :=
   rfl
 #align affine_map.homothety_eq_line_map AffineMap.homothety_eq_lineMap
+-/
 
 /- warning: affine_map.homothety_one -> AffineMap.homothety_one is a dubious translation:
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))))))) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (NonAssocRing.toOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_one AffineMap.homothety_oneₓ'. -/
 @[simp]
 theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 :=
@@ -1376,22 +1370,18 @@ theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 :=
   simp [homothety_apply]
 #align affine_map.homothety_one AffineMap.homothety_one
 
-/- warning: affine_map.homothety_apply_same -> AffineMap.homothety_apply_same is a dubious translation:
-lean 3 declaration is
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) c) c
-but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) c) c
-Case conversion may be inaccurate. Consider using '#align affine_map.homothety_apply_same AffineMap.homothety_apply_sameₓ'. -/
+#print AffineMap.homothety_apply_same /-
 @[simp]
 theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
   lineMap_same_apply c r
 #align affine_map.homothety_apply_same AffineMap.homothety_apply_same
+-/
 
 /- warning: affine_map.homothety_mul_apply -> AffineMap.homothety_mul_apply is a dubious translation:
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) p) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
 but is expected to have type
-  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u2, u2, u2} k k k (instHMul.{u2} k (NonUnitalNonAssocRing.toMul.{u2} k (NonAssocRing.toNonUnitalNonAssocRing.{u2} k (Ring.toNonAssocRing.{u2} k (CommRing.toRing.{u2} k _inst_1))))) r₁ r₂)) p) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) p) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (FunLike.coe.{max (succ u2) (succ u3), succ u3, succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) P1 (fun (_x : P1) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : P1) => P1) _x) (AffineMap.funLike.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul_apply AffineMap.homothety_mul_applyₓ'. -/
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
@@ -1402,7 +1392,7 @@ theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (AffineMap.comp.{u1, u2, u3, u2, u3, u2, u3} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul AffineMap.homothety_mulₓ'. -/
 theorem homothety_mul (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ * r₂) = (homothety c r₁).comp (homothety c r₂) :=
@@ -1426,7 +1416,7 @@ theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r₁ (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (NonUnitalCommRing.toNonUnitalRing.{u1} k (CommRing.toNonUnitalCommRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_add AffineMap.homothety_addₓ'. -/
 @[simp]
 theorem homothety_add (c : P1) (r₁ r₂ : k) :
@@ -1438,7 +1428,7 @@ theorem homothety_add (c : P1) (r₁ r₂ : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
 Case conversion may be inaccurate. Consider using '#align affine_map.homothety_hom AffineMap.homothetyHomₓ'. -/
 /-- `homothety` as a multiplicative monoid homomorphism. -/
 def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
@@ -1449,7 +1439,7 @@ def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ (max u2 u3)) (succ u1), max (succ u1) (succ (max u2 u3))} (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (fun (_x : MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (MonoidHom.hasCoeToFun.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (AffineMap.homothetyHom.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
@@ -1472,7 +1462,7 @@ def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ u1) (succ (max u3 u2)) (succ (max u2 u3)), max (succ u1) (succ (max u2 u3))} (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (fun (_x : AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (k -> (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (succ u3) (succ (max u2 u1)), succ u3, succ (max u2 u1)} (AffineMap.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) k (fun (_x : k) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (AffineMap.funLike.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffineₓ'. -/
 @[simp]
 theorem coe_homothetyAffine (c : P1) : ⇑(homothetyAffine c : k →ᵃ[k] _) = homothety c :=
@@ -1491,7 +1481,7 @@ variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Modu
 lean 3 declaration is
   forall {𝕜 : Type.{u1}} {E : Type.{u2}} {F : Type.{u3}} [_inst_1 : Ring.{u1} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u3} F] [_inst_4 : Module.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))}, (Eq.{succ u1} 𝕜 (HAdd.hAdd.{u1, u1, u1} 𝕜 𝕜 𝕜 (instHAdd.{u1} 𝕜 (Distrib.toHasAdd.{u1} 𝕜 (Ring.toDistrib.{u1} 𝕜 _inst_1))) a b) (OfNat.ofNat.{u1} 𝕜 1 (OfNat.mk.{u1} 𝕜 1 (One.one.{u1} 𝕜 (AddMonoidWithOne.toOne.{u1} 𝕜 (AddGroupWithOne.toAddMonoidWithOne.{u1} 𝕜 (NonAssocRing.toAddGroupWithOne.{u1} 𝕜 (Ring.toNonAssocRing.{u1} 𝕜 _inst_1)))))))) -> (Eq.{succ u3} F (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toHasAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) a x) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) b y))) (HAdd.hAdd.{u3, u3, u3} F F F (instHAdd.{u3} F (AddZeroClass.toHasAdd.{u3} F (AddMonoid.toAddZeroClass.{u3} F (SubNegMonoid.toAddMonoid.{u3} F (AddGroup.toSubNegMonoid.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3)))))) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) a (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f x)) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) b (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f y))))
 but is expected to have type
-  forall {𝕜 : Type.{u3}} {E : Type.{u2}} {F : Type.{u1}} [_inst_1 : Ring.{u3} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u1} F] [_inst_4 : Module.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))}, (Eq.{succ u3} 𝕜 (HAdd.hAdd.{u3, u3, u3} 𝕜 𝕜 𝕜 (instHAdd.{u3} 𝕜 (Distrib.toAdd.{u3} 𝕜 (NonUnitalNonAssocSemiring.toDistrib.{u3} 𝕜 (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u3} 𝕜 (NonAssocRing.toNonUnitalNonAssocRing.{u3} 𝕜 (Ring.toNonAssocRing.{u3} 𝕜 _inst_1)))))) a b) (OfNat.ofNat.{u3} 𝕜 1 (One.toOfNat1.{u3} 𝕜 (NonAssocRing.toOne.{u3} 𝕜 (Ring.toNonAssocRing.{u3} 𝕜 _inst_1))))) -> (Eq.{succ u1} F (AffineMap.toFun.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (HAdd.hAdd.{u1, u1, u1} F F F (instHAdd.{u1} F (AddZeroClass.toAdd.{u1} F (AddMonoid.toAddZeroClass.{u1} F (SubNegMonoid.toAddMonoid.{u1} F (AddGroup.toSubNegMonoid.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)))))) (HSMul.hSMul.{u3, u1, u1} 𝕜 F F (instHSMul.{u3, u1} 𝕜 F (SMulZeroClass.toSMul.{u3, u1} 𝕜 F (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 F (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 F (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3) _inst_5))))) a (AffineMap.toFun.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)) f x)) (HSMul.hSMul.{u3, u1, u1} 𝕜 F F (instHSMul.{u3, u1} 𝕜 F (SMulZeroClass.toSMul.{u3, u1} 𝕜 F (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 F (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 F (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3) _inst_5))))) b (AffineMap.toFun.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)) f y))))
+  forall {𝕜 : Type.{u3}} {E : Type.{u2}} {F : Type.{u1}} [_inst_1 : Ring.{u3} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u1} F] [_inst_4 : Module.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))}, (Eq.{succ u3} 𝕜 (HAdd.hAdd.{u3, u3, u3} 𝕜 𝕜 𝕜 (instHAdd.{u3} 𝕜 (Distrib.toAdd.{u3} 𝕜 (NonUnitalNonAssocSemiring.toDistrib.{u3} 𝕜 (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u3} 𝕜 (NonUnitalRing.toNonUnitalNonAssocRing.{u3} 𝕜 (Ring.toNonUnitalRing.{u3} 𝕜 _inst_1)))))) a b) (OfNat.ofNat.{u3} 𝕜 1 (One.toOfNat1.{u3} 𝕜 (Semiring.toOne.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))))) -> (Eq.{succ u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (HAdd.hAdd.{u1, u1, u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (instHAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddZeroClass.toAdd.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddMonoid.toAddZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegMonoid.toAddMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddGroup.toSubNegMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toAddGroup.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3)))))) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) x) _inst_3) _inst_5))))) a (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f x)) (HSMul.hSMul.{u3, u1, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (instHSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SMulZeroClass.toSMul.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubNegZeroMonoid.toNegZeroClass.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionMonoid.toSubNegZeroMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (SubtractionCommMonoid.toSubtractionMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (AddCommGroup.toDivisionAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} ((fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) y) _inst_3) _inst_5))))) b (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) E (fun (_x : E) => (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.1004 : E) => F) _x) (AffineMap.funLike.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))) f y))))
 Case conversion may be inaccurate. Consider using '#align convex.combo_affine_apply Convex.combo_affine_applyₓ'. -/
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
Diff
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Joseph Myers
 
 ! This file was ported from Lean 3 source module linear_algebra.affine_space.affine_map
-! leanprover-community/mathlib commit f47581155c818e6361af4e4fda60d27d020c226b
+! leanprover-community/mathlib commit bd1fc183335ea95a9519a1630bcf901fe9326d83
 ! Please do not edit these lines, except to modify the commit id
 ! if you have ported upstream changes.
 -/
@@ -68,10 +68,24 @@ structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 :
 -- mathport name: «expr →ᵃ[ ] »
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
-instance (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _) [Ring k]
-    [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
+instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+    [Ring k] [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
+    [affine_space V2 P2] : FunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
+    where
+  coe := AffineMap.toFun
+  coe_injective' := fun ⟨f, f_linear, f_add⟩ ⟨g, g_linear, g_add⟩ (h : f = g) =>
+    by
+    cases' (AddTorsor.nonempty : Nonempty P1) with p
+    congr with v
+    apply vadd_right_cancel (f p)
+    erw [← f_add, h, ← g_add]
+#align affine_map.fun_like AffineMap.funLike
+
+instance AffineMap.hasCoeToFun (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+    [Ring k] [AddCommGroup V1] [Module k V1] [affine_space V1 P1] [AddCommGroup V2] [Module k V2]
     [affine_space V2 P2] : CoeFun (P1 →ᵃ[k] P2) fun _ => P1 → P2 :=
-  ⟨AffineMap.toFun⟩
+  FunLike.hasCoeToFun
+#align affine_map.has_coe_to_fun AffineMap.hasCoeToFun
 
 namespace LinearMap
 
@@ -176,14 +190,7 @@ Case conversion may be inaccurate. Consider using '#align affine_map.ext AffineM
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
 theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
-  by
-  rcases f with ⟨f, f_linear, f_add⟩
-  rcases g with ⟨g, g_linear, g_add⟩
-  obtain rfl : f = g := funext h
-  congr with v
-  cases' (AddTorsor.nonempty : Nonempty P1) with p
-  apply vadd_right_cancel (f p)
-  erw [← f_add, ← g_add]
+  FunLike.ext _ _ h
 #align affine_map.ext AffineMap.ext
 
 /- warning: affine_map.ext_iff -> AffineMap.ext_iff is a dubious translation:
@@ -197,8 +204,8 @@ theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
 #align affine_map.ext_iff AffineMap.ext_iff
 
 #print AffineMap.coeFn_injective /-
-theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeFn := fun f g H =>
-  ext <| congr_fun H
+theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeFn :=
+  FunLike.coe_injective
 #align affine_map.coe_fn_injective AffineMap.coeFn_injective
 -/
 
Diff
@@ -91,7 +91,7 @@ def toAffineMap : V₁ →ᵃ[k] V₂ where
 lean 3 declaration is
   forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (V₁ -> V₂) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) => V₁ -> V₂) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) => V₁ -> V₂) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 but is expected to have type
-  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (V₁ -> V₂) (AffineMap.toFun.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
+  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (V₁ -> V₂) (AffineMap.toFun.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
 Case conversion may be inaccurate. Consider using '#align linear_map.coe_to_affine_map LinearMap.coe_toAffineMapₓ'. -/
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
@@ -124,7 +124,7 @@ include V1 V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u5} P2 (f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) linear v) (f p))), Eq.{max (succ u3) (succ u5)} ((fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
@@ -143,7 +143,7 @@ theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 P2 (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 P2 (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p))
 Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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
@@ -157,7 +157,7 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p1) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p2))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p1) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p2))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- The linear map on the result of subtracting two points is the
 result of subtracting the result of the affine map on those two
@@ -285,7 +285,7 @@ instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
 but is expected to have type
-  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
 Case conversion may be inaccurate. Consider using '#align affine_map.mk' AffineMap.mk'ₓ'. -/
 /-- 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
@@ -301,7 +301,7 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
@@ -312,7 +312,7 @@ theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h)
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
 Case conversion may be inaccurate. Consider using '#align affine_map.mk'_linear AffineMap.mk'_linearₓ'. -/
 @[simp]
 theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h).linear = f' :=
@@ -747,7 +747,7 @@ include V2
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
@@ -765,7 +765,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
@@ -783,7 +783,7 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
 but is expected to have type
-  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
 Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
@@ -795,7 +795,7 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {s : Set.{u3} P1} {t : Set.{u3} P1} (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u4} (Set.{u4} V2) (VSub.vsub.{u4, u5} (Set.{u4} V2) (Set.{u5} P2) (Set.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u2, u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u2, u3} (Set.{u2} V1) (Set.{u3} P1) (Set.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) s t))
 but is expected to have type
-  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) s) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) s) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
 Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
@@ -1142,7 +1142,7 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (instHAdd.{max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (Pi.instAdd.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => AddZeroClass.toHasAdd.{u3} V2 (AddMonoid.toAddZeroClass.{u3} V2 (SubNegMonoid.toAddMonoid.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (V1 -> V2) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (V1 -> V2) (V1 -> V2) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (V1 -> V2) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (V1 -> V2) (V1 -> V2) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1159,7 +1159,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (HSub.hSub.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (instHSub.{max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (Pi.instSub.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toHasSub.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (V1 -> V2) (V1 -> V2) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (instHSub.{max u2 u1} (V1 -> V2) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toSub.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (V1 -> V2) (V1 -> V2) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6190 : V1) => V2) a) (instHSub.{max u2 u1} (V1 -> V2) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toSub.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
 Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
@@ -1442,7 +1442,7 @@ def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ (max u2 u3)) (succ u1), max (succ u1) (succ (max u2 u3))} (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (fun (_x : MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (MonoidHom.hasCoeToFun.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (AffineMap.homothetyHom.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2372 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2372 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2391 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
Diff
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Joseph Myers
 
 ! This file was ported from Lean 3 source module linear_algebra.affine_space.affine_map
-! leanprover-community/mathlib commit 9003f28797c0664a49e4179487267c494477d853
+! leanprover-community/mathlib commit f47581155c818e6361af4e4fda60d27d020c226b
 ! Please do not edit these lines, except to modify the commit id
 ! if you have ported upstream changes.
 -/
@@ -17,6 +17,9 @@ import Mathbin.LinearAlgebra.Prod
 /-!
 # Affine maps
 
+> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
+> Any changes to this file require a corresponding PR to mathlib4.
+
 This file defines affine maps.
 
 ## Main definitions
Diff
@@ -1439,7 +1439,7 @@ def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
 lean 3 declaration is
   forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ (max u2 u3)) (succ u1), max (succ u1) (succ (max u2 u3))} (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (fun (_x : MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (MonoidHom.hasCoeToFun.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (AffineMap.homothetyHom.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 but is expected to have type
-  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2398 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2398 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2372 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2372 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
 Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
Diff
@@ -50,6 +50,7 @@ topology are defined elsewhere; see `analysis.normed_space.add_torsor` and
 
 open Affine
 
+#print AffineMap /-
 /-- An `affine_map k P1 P2` (notation: `P1 →ᵃ[k] P2`) is a map from `P1` to `P2` that
 induces a corresponding linear map from `V1` to `V2`. -/
 structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _) [Ring k]
@@ -59,6 +60,7 @@ structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 :
   linear : V1 →ₗ[k] V2
   map_vadd' : ∀ (p : P1) (v : V1), to_fun (v +ᵥ p) = linear v +ᵥ to_fun p
 #align affine_map AffineMap
+-/
 
 -- mathport name: «expr →ᵃ[ ] »
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
@@ -73,18 +75,32 @@ namespace LinearMap
 variable {k : Type _} {V₁ : Type _} {V₂ : Type _} [Ring k] [AddCommGroup V₁] [Module k V₁]
   [AddCommGroup V₂] [Module k V₂] (f : V₁ →ₗ[k] V₂)
 
+#print LinearMap.toAffineMap /-
 /-- Reinterpret a linear map as an affine map. -/
 def toAffineMap : V₁ →ᵃ[k] V₂ where
   toFun := f
   linear := f
   map_vadd' p v := f.map_add v p
 #align linear_map.to_affine_map LinearMap.toAffineMap
+-/
 
+/- warning: linear_map.coe_to_affine_map -> LinearMap.coe_toAffineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (V₁ -> V₂) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) => V₁ -> V₂) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4))) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) => V₁ -> V₂) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
+but is expected to have type
+  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (V₁ -> V₂) (AffineMap.toFun.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) V₁ (fun (_x : V₁) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V₁) => V₂) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u3, u2} k k V₁ V₂ (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f)
+Case conversion may be inaccurate. Consider using '#align linear_map.coe_to_affine_map LinearMap.coe_toAffineMapₓ'. -/
 @[simp]
 theorem coe_toAffineMap : ⇑f.toAffineMap = f :=
   rfl
 #align linear_map.coe_to_affine_map LinearMap.coe_toAffineMap
 
+/- warning: linear_map.to_affine_map_linear -> LinearMap.toAffineMap_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V₁ : Type.{u2}} {V₂ : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V₁] [_inst_3 : Module.{u1, u2} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u3} V₂] [_inst_5 : Module.{u1, u3} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4)] (f : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u2} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V₂ _inst_4) _inst_3 _inst_5) (AffineMap.linear.{u1, u2, u2, u3, u3} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V₁ (AddCommGroup.toAddGroup.{u2} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u3} V₂ (AddCommGroup.toAddGroup.{u3} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u2, u3} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) f
+but is expected to have type
+  forall {k : Type.{u1}} {V₁ : Type.{u3}} {V₂ : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V₁] [_inst_3 : Module.{u1, u3} k V₁ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2)] [_inst_4 : AddCommGroup.{u2} V₂] [_inst_5 : Module.{u1, u2} k V₂ (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4)] (f : LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5), Eq.{max (succ u3) (succ u2)} (LinearMap.{u1, u1, u3, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V₁ V₂ (AddCommGroup.toAddCommMonoid.{u3} V₁ _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V₂ _inst_4) _inst_3 _inst_5) (AffineMap.linear.{u1, u3, u3, u2, u2} k V₁ V₁ V₂ V₂ _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V₁ (AddCommGroup.toAddGroup.{u3} V₁ _inst_2)) _inst_4 _inst_5 (addGroupIsAddTorsor.{u2} V₂ (AddCommGroup.toAddGroup.{u2} V₂ _inst_4)) (LinearMap.toAffineMap.{u1, u3, u2} k V₁ V₂ _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 f)) f
+Case conversion may be inaccurate. Consider using '#align linear_map.to_affine_map_linear LinearMap.toAffineMap_linearₓ'. -/
 @[simp]
 theorem toAffineMap_linear : f.toAffineMap.linear = f :=
   rfl
@@ -101,6 +117,12 @@ variable {k : Type _} {V1 : Type _} {P1 : Type _} {V2 : Type _} {P2 : Type _} {V
 
 include V1 V2
 
+/- warning: affine_map.coe_mk -> AffineMap.coe_mk is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u5} P2 (f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) linear v) (f p))), Eq.{max (succ u3) (succ u5)} ((fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (linear : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (add : forall (p : P1) (v : V1), Eq.{succ u2} P2 (f (HVAdd.hVAdd.{u4, u1, u1} V1 P1 P1 (instHVAdd.{u4, u1} V1 P1 (AddAction.toVAdd.{u4, u1} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) linear v) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f linear add)) f
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk AffineMap.coe_mkₓ'. -/
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
 @[simp]
@@ -114,6 +136,12 @@ theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
   rfl
 #align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coe
 
+/- warning: affine_map.map_vadd -> AffineMap.map_vadd is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1) (v : V1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (HVAdd.hVAdd.{u4, u3, u3} V1 P1 P1 (instHVAdd.{u4, u3} V1 P1 (AddAction.toVAdd.{u4, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u4} V1 (AddGroup.toSubNegMonoid.{u4} V1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2))) (AddTorsor.toAddAction.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4))) v p)) (HVAdd.hVAdd.{u2, u1, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 P2 (instHVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddAction.toVAdd.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (SubNegMonoid.toAddMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddGroup.toSubNegMonoid.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5))) (AddTorsor.toAddAction.{u2, u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) P2 (AddCommGroup.toAddGroup.{u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) v) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) v) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p))
+Case conversion may be inaccurate. Consider using '#align affine_map.map_vadd AffineMap.map_vaddₓ'. -/
 /-- 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. -/
@@ -122,6 +150,12 @@ theorem map_vadd (f : P1 →ᵃ[k] P2) (p : P1) (v : V1) : f (v +ᵥ p) = f.line
   f.map_vadd' p v
 #align affine_map.map_vadd AffineMap.map_vadd
 
+/- warning: affine_map.linear_map_vsub -> AffineMap.linearMap_vsub is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p1) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p2))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p1 : P1) (p2 : P1), Eq.{succ u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (VSub.vsub.{u4, u3} V1 P1 (AddTorsor.toVSub.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p1 p2)) (VSub.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p1) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p2))
+Case conversion may be inaccurate. Consider using '#align affine_map.linear_map_vsub AffineMap.linearMap_vsubₓ'. -/
 /-- 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. -/
@@ -130,6 +164,12 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
   conv_rhs => rw [← vsub_vadd p1 p2, map_vadd, vadd_vsub]
 #align affine_map.linear_map_vsub AffineMap.linearMap_vsub
 
+/- warning: affine_map.ext -> AffineMap.ext is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p)) -> (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (forall (p : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p)) -> (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g)
+Case conversion may be inaccurate. Consider using '#align affine_map.ext AffineMap.extₓ'. -/
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
 theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
@@ -143,24 +183,45 @@ theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
   erw [← f_add, ← g_add]
 #align affine_map.ext AffineMap.ext
 
+/- warning: affine_map.ext_iff -> AffineMap.ext_iff is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, Iff (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) (forall (p : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+Case conversion may be inaccurate. Consider using '#align affine_map.ext_iff AffineMap.ext_iffₓ'. -/
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
   ⟨fun h p => h ▸ rfl, ext⟩
 #align affine_map.ext_iff AffineMap.ext_iff
 
+#print AffineMap.coeFn_injective /-
 theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) coeFn := fun f g H =>
   ext <| congr_fun H
 #align affine_map.coe_fn_injective AffineMap.coeFn_injective
+-/
 
+/- warning: affine_map.congr_arg -> AffineMap.congr_arg is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f y))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) {x : P1} {y : P1}, (Eq.{succ u3} P1 x y) -> (Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f x) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f y))
+Case conversion may be inaccurate. Consider using '#align affine_map.congr_arg AffineMap.congr_argₓ'. -/
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
   congr_arg _ h
 #align affine_map.congr_arg AffineMap.congr_arg
 
+/- warning: affine_map.congr_fun -> AffineMap.congr_fun is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f x) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g x))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7} {g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7}, (Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f g) -> (forall (x : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f x) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g x))
+Case conversion may be inaccurate. Consider using '#align affine_map.congr_fun AffineMap.congr_funₓ'. -/
 protected theorem congr_fun {f g : P1 →ᵃ[k] P2} (h : f = g) (x : P1) : f x = g x :=
   h ▸ rfl
 #align affine_map.congr_fun AffineMap.congr_fun
 
 variable (k P1)
 
+#print AffineMap.const /-
 /-- Constant function as an `affine_map`. -/
 def const (p : P2) : P1 →ᵃ[k] P2
     where
@@ -168,12 +229,25 @@ def const (p : P2) : P1 →ᵃ[k] P2
   linear := 0
   map_vadd' p v := by simp
 #align affine_map.const AffineMap.const
+-/
 
+/- warning: affine_map.coe_const -> AffineMap.coe_const is a dubious translation:
+lean 3 declaration is
+  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u5, succ u3} P2 P1 p)
+but is expected to have type
+  forall (k : Type.{u3}) {V1 : Type.{u2}} (P1 : Type.{u5}) {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (P1 -> P2) (AffineMap.toFun.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.const.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (Function.const.{succ u4, succ u5} P2 P1 p)
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_const AffineMap.coe_constₓ'. -/
 @[simp]
 theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
   rfl
 #align affine_map.coe_const AffineMap.coe_const
 
+/- warning: affine_map.const_linear -> AffineMap.const_linear is a dubious translation:
+lean 3 declaration is
+  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (OfNat.ofNat.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (OfNat.mk.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.zero.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasZero.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))))))
+but is expected to have type
+  forall (k : Type.{u3}) {V1 : Type.{u5}} (P1 : Type.{u2}) {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p : P2), Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, u5, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.const.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 p)) (OfNat.ofNat.{max u5 u4} (LinearMap.{u3, u3, u5, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.toOfNat0.{max u5 u4} (LinearMap.{u3, u3, u5, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instZeroLinearMap.{u3, u3, u5, u4} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.const_linear AffineMap.const_linearₓ'. -/
 @[simp]
 theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
   rfl
@@ -181,6 +255,12 @@ theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
 
 variable {k P1}
 
+/- warning: affine_map.linear_eq_zero_iff_exists_const -> AffineMap.linear_eq_zero_iff_exists_const is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (OfNat.ofNat.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (OfNat.mk.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.zero.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasZero.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))))))) (Exists.{succ u5} P2 (fun (q : P2) => Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (AffineMap.const.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 q)))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Eq.{max (succ u4) (succ u2)} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) (OfNat.ofNat.{max u4 u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.toOfNat0.{max u4 u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instZeroLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))))))) (Exists.{succ u1} P2 (fun (q : P2) => Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (AffineMap.const.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 q)))
+Case conversion may be inaccurate. Consider using '#align affine_map.linear_eq_zero_iff_exists_const AffineMap.linear_eq_zero_iff_exists_constₓ'. -/
 theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) : f.linear = 0 ↔ ∃ q, f = const k P1 q :=
   by
   refine' ⟨fun h => _, fun h => _⟩
@@ -192,10 +272,18 @@ theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) : f.linear = 0 ↔
     exact const_linear k P1 q
 #align affine_map.linear_eq_zero_iff_exists_const AffineMap.linear_eq_zero_iff_exists_const
 
+#print AffineMap.nonempty /-
 instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
   (AddTorsor.nonempty : Nonempty P2).elim fun p => ⟨const k P1 p⟩
 #align affine_map.nonempty AffineMap.nonempty
+-/
 
+/- warning: affine_map.mk' -> AffineMap.mk' is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1), (forall (p' : P1), Eq.{succ u5} P2 (f p') (HVAdd.hVAdd.{u4, u5, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u4, u5} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u4} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u2) (succ u4), succ u2, succ u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toVSub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))) -> (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)
+Case conversion may be inaccurate. Consider using '#align affine_map.mk' AffineMap.mk'ₓ'. -/
 /-- 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`. -/
@@ -206,11 +294,23 @@ def mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p : P1) (h : ∀ p' : P1, f p' =
   map_vadd' p' v := by rw [h, h p', vadd_vsub_assoc, f'.map_add, vadd_vadd]
 #align affine_map.mk' AffineMap.mk'
 
+/- warning: affine_map.coe_mk' -> AffineMap.coe_mk' is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u3) (succ u5)} (P1 -> P2) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u1) (succ u2)} (P1 -> P2) (AffineMap.toFun.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_mk' AffineMap.coe_mk'ₓ'. -/
 @[simp]
 theorem coe_mk' (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : ⇑(mk' f f' p h) = f :=
   rfl
 #align affine_map.coe_mk' AffineMap.coe_mk'
 
+/- warning: affine_map.mk'_linear -> AffineMap.mk'_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u5} P2 (f p') (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) f' (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} {P2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u5, u3} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] [_inst_7 : AddTorsor.{u3, u2} V2 P2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)] (f : P1 -> P2) (f' : LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (p : P1) (h : forall (p' : P1), Eq.{succ u2} P2 (f p') (HVAdd.hVAdd.{u3, u2, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 P2 (instHVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddAction.toVAdd.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (SubNegMonoid.toAddMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddGroup.toSubNegMonoid.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5))) (AddTorsor.toAddAction.{u3, u2} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) P2 (AddCommGroup.toAddGroup.{u3} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) _inst_5) _inst_7))) (FunLike.coe.{max (succ u4) (succ u3), succ u4, succ u3} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u3} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) f' (VSub.vsub.{u4, u1} V1 P1 (AddTorsor.toVSub.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2) _inst_4) p' p)) (f p))), Eq.{max (succ u4) (succ u3)} (LinearMap.{u5, u5, u4, u3} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (AffineMap.mk'.{u5, u4, u1, u3, u2} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f f' p h)) f'
+Case conversion may be inaccurate. Consider using '#align affine_map.mk'_linear AffineMap.mk'_linearₓ'. -/
 @[simp]
 theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h).linear = f' :=
   rfl
@@ -227,11 +327,23 @@ instance : MulAction R (P1 →ᵃ[k] V2)
   one_smul f := ext fun p => one_smul _ _
   mul_smul c₁ c₂ f := ext fun p => mul_smul _ _ _
 
+/- warning: affine_map.coe_smul -> AffineMap.coe_smul is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] {R : Type.{u5}} [_inst_14 : Monoid.{u5} R] [_inst_15 : DistribMulAction.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u1, u5, u4} k R V2 (SMulZeroClass.toHasSmul.{u1, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (SMulWithZero.toSmulZeroClass.{u1, u4} k V2 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (MulActionWithZero.toSMulWithZero.{u1, u4} k V2 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (Module.toMulActionWithZero.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_6)))) (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (SMul.smul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (MulAction.toHasSmul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u1, u2, u3, u4, u5} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16)) c f)) (SMul.smul.{u5, max u3 u4} R (P1 -> V2) (Function.hasSMul.{u3, u5, u4} P1 R V2 (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))) c (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (c : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u3) (succ u2)} (P1 -> V2) (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) c f)) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} R (P1 -> V2) (P1 -> V2) (instHSMul.{u1, max u3 u2} R (P1 -> V2) (Pi.instSMul.{u3, u2, u1} P1 R (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.93 : P1) => V2) (fun (i : P1) => SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15))))) c (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) f))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_smul AffineMap.coe_smulₓ'. -/
 @[simp, norm_cast]
 theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • f :=
   rfl
 #align affine_map.coe_smul AffineMap.coe_smul
 
+/- warning: affine_map.smul_linear -> AffineMap.smul_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] {R : Type.{u5}} [_inst_14 : Monoid.{u5} R] [_inst_15 : DistribMulAction.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u1, u5, u4} k R V2 (SMulZeroClass.toHasSmul.{u1, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (SMulWithZero.toSmulZeroClass.{u1, u4} k V2 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (MulActionWithZero.toSMulWithZero.{u1, u4} k V2 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)))) (Module.toMulActionWithZero.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_6)))) (SMulZeroClass.toHasSmul.{u5, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (DistribSMul.toSmulZeroClass.{u5, u4} R V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u5, u4} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_15)))] (t : R) (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (SMul.smul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (MulAction.toHasSmul.{u5, max u2 u3 u4} R (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u1, u2, u3, u4, u5} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16)) t f)) (SMul.smul.{u5, max u2 u4} R (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasSmul.{u1, u1, u5, u2, u4} k k R V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) _inst_14 _inst_15 _inst_16) t (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] {R : Type.{u1}} [_inst_14 : Monoid.{u1} R] [_inst_15 : DistribMulAction.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))] [_inst_16 : SMulCommClass.{u5, u1, u2} k R V2 (SMulZeroClass.toSMul.{u5, u2} k V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (SMulWithZero.toSMulZeroClass.{u5, u2} k V2 (MonoidWithZero.toZero.{u5} k (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1))) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u5, u2} k V2 (Semiring.toMonoidWithZero.{u5} k (Ring.toSemiring.{u5} k _inst_1)) (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (Module.toMulActionWithZero.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_6)))) (SMulZeroClass.toSMul.{u1, u2} R V2 (NegZeroClass.toZero.{u2} V2 (SubNegZeroMonoid.toNegZeroClass.{u2} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V2 (AddCommGroup.toDivisionAddCommMonoid.{u2} V2 _inst_5))))) (DistribSMul.toSMulZeroClass.{u1, u2} R V2 (AddMonoid.toAddZeroClass.{u2} V2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)))) (DistribMulAction.toDistribSMul.{u1, u2} R V2 _inst_14 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_15)))] (t : R) (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))), Eq.{max (succ u4) (succ u2)} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) (HSMul.hSMul.{u1, max (max u4 u3) u2, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (instHSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (MulAction.toSMul.{u1, max (max u4 u3) u2} R (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) _inst_14 (AffineMap.mulAction.{u5, u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 R _inst_14 _inst_15 _inst_16))) t f)) (HSMul.hSMul.{u1, max u4 u2, max u4 u2} R (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (instHSMul.{u1, max u4 u2} R (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instSMulLinearMap.{u5, u5, u1, u4, u2} k k R V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) _inst_14 _inst_15 _inst_16)) t (AffineMap.linear.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) f))
+Case conversion may be inaccurate. Consider using '#align affine_map.smul_linear AffineMap.smul_linearₓ'. -/
 @[simp]
 theorem smul_linear (t : R) (f : P1 →ᵃ[k] V2) : (t • f).linear = t • f.linear :=
   rfl
@@ -252,41 +364,89 @@ instance : Sub (P1 →ᵃ[k] V2)
 
 instance : Neg (P1 →ᵃ[k] V2) where neg f := ⟨-f, -f.linear, fun p v => by simp [add_comm]⟩
 
+/- warning: affine_map.coe_zero -> AffineMap.coe_zero is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)], Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{max (succ u2) (succ u3) (succ u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (OfNat.ofNat.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (OfNat.mk.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (Zero.zero.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasZero.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6))))) (OfNat.ofNat.{max u3 u4} (P1 -> V2) 0 (OfNat.mk.{max u3 u4} (P1 -> V2) 0 (Zero.zero.{max u3 u4} (P1 -> V2) (Pi.instZero.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))))))))
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u4}} {V2 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u4} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u2, u3} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (P1 -> V2) (AffineMap.toFun.{u2, u1, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) (OfNat.ofNat.{max (max u1 u4) u3} (AffineMap.{u2, u1, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u1 u4) u3} (AffineMap.{u2, u1, u4, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u1, u4, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (P1 -> V2) 0 (Zero.toOfNat0.{max u4 u3} (P1 -> V2) (Pi.instZero.{u4, u3} P1 (fun (a._@.Mathlib.LinearAlgebra.AffineSpace.AffineMap._hyg.93 : P1) => V2) (fun (i : P1) => NegZeroClass.toZero.{u3} V2 (SubNegZeroMonoid.toNegZeroClass.{u3} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V2 (AddCommGroup.toDivisionAddCommMonoid.{u3} V2 _inst_5))))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_zero AffineMap.coe_zeroₓ'. -/
 @[simp, norm_cast]
 theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
   rfl
 #align affine_map.coe_zero AffineMap.coe_zero
 
+/- warning: affine_map.coe_add -> AffineMap.coe_add is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HAdd.hAdd.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHAdd.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasAdd.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHAdd.{max u3 u4} (P1 -> V2) (Pi.instAdd.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toHasAdd.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
+but is expected to have type
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (P1 -> V2) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHAdd.{max u2 u1} (P1 -> V2) (Pi.instAdd.{u2, u1} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => AddZeroClass.toAdd.{u1} V2 (AddMonoid.toAddZeroClass.{u1} V2 (SubNegMonoid.toAddMonoid.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))))) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_add AffineMap.coe_addₓ'. -/
 @[simp, norm_cast]
 theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
   rfl
 #align affine_map.coe_add AffineMap.coe_add
 
+/- warning: affine_map.coe_neg -> AffineMap.coe_neg is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (Neg.neg.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasNeg.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u3 u4} (P1 -> V2) (Pi.instNeg.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasNeg.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f))
+but is expected to have type
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (P1 -> V2) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u1} (P1 -> V2) (Pi.instNeg.{u2, u1} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => NegZeroClass.toNeg.{u1} V2 (SubNegZeroMonoid.toNegZeroClass.{u1} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V2 (AddCommGroup.toDivisionAddCommMonoid.{u1} V2 _inst_5)))))) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_neg AffineMap.coe_negₓ'. -/
 @[simp, norm_cast]
 theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
   rfl
 #align affine_map.coe_neg AffineMap.coe_neg
 
+/- warning: affine_map.coe_sub -> AffineMap.coe_sub is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{succ (max u3 u4)} (P1 -> V2) (coeFn.{succ (max u2 u3 u4), succ (max u3 u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (HSub.hSub.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHSub.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasSub.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u3 u4, max u3 u4, max u3 u4} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHSub.{max u3 u4} (P1 -> V2) (Pi.instSub.{u3, u4} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toHasSub.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) g))
+but is expected to have type
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (P1 -> V2) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (P1 -> V2) (P1 -> V2) (P1 -> V2) (instHSub.{max u2 u1} (P1 -> V2) (Pi.instSub.{u2, u1} P1 (fun (ᾰ : P1) => V2) (fun (i : P1) => SubNegMonoid.toSub.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.toFun.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_sub AffineMap.coe_subₓ'. -/
 @[simp, norm_cast]
 theorem coe_sub (f g : P1 →ᵃ[k] V2) : ⇑(f - g) = f - g :=
   rfl
 #align affine_map.coe_sub AffineMap.coe_sub
 
+/- warning: affine_map.zero_linear -> AffineMap.zero_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)], Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (OfNat.ofNat.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (OfNat.mk.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) 0 (Zero.zero.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasZero.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6))))) (OfNat.ofNat.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (OfNat.mk.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.zero.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasZero.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))))))
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u4}} {P1 : Type.{u1}} {V2 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u2, u4} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u1} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u2, u3} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)], Eq.{max (succ u4) (succ u3)} (LinearMap.{u2, u2, u4, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u2, u4, u1, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) (OfNat.ofNat.{max (max u4 u1) u3} (AffineMap.{u2, u4, u1, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) 0 (Zero.toOfNat0.{max (max u4 u1) u3} (AffineMap.{u2, u4, u1, u3, u3} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u4, u1, u3} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (OfNat.ofNat.{max u4 u3} (LinearMap.{u2, u2, u4, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) 0 (Zero.toOfNat0.{max u4 u3} (LinearMap.{u2, u2, u4, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instZeroLinearMap.{u2, u2, u4, u3} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.zero_linear AffineMap.zero_linearₓ'. -/
 @[simp]
 theorem zero_linear : (0 : P1 →ᵃ[k] V2).linear = 0 :=
   rfl
 #align affine_map.zero_linear AffineMap.zero_linear
 
+/- warning: affine_map.add_linear -> AffineMap.add_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (HAdd.hAdd.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHAdd.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasAdd.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u2 u4, max u2 u4, max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (instHAdd.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasAdd.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) g))
+but is expected to have type
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u3) (succ u1)} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HAdd.hAdd.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHAdd.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instAddAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HAdd.hAdd.{max u3 u1, max u3 u1, max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (instHAdd.{max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instAddLinearMap.{u4, u4, u3, u1} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))))) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+Case conversion may be inaccurate. Consider using '#align affine_map.add_linear AffineMap.add_linearₓ'. -/
 @[simp]
 theorem add_linear (f g : P1 →ᵃ[k] V2) : (f + g).linear = f.linear + g.linear :=
   rfl
 #align affine_map.add_linear AffineMap.add_linear
 
+/- warning: affine_map.sub_linear -> AffineMap.sub_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (HSub.hSub.{max u2 u3 u4, max u2 u3 u4, max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (instHSub.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasSub.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u2 u4, max u2 u4, max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (instHSub.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasSub.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) g))
+but is expected to have type
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (g : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u3) (succ u1)} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (HSub.hSub.{max (max u3 u2) u1, max (max u3 u2) u1, max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (instHSub.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instSubAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) f g)) (HSub.hSub.{max u3 u1, max u3 u1, max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (instHSub.{max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instSubLinearMapToAddCommMonoid.{u4, u4, u3, u1} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))))) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) g))
+Case conversion may be inaccurate. Consider using '#align affine_map.sub_linear AffineMap.sub_linearₓ'. -/
 @[simp]
 theorem sub_linear (f g : P1 →ᵃ[k] V2) : (f - g).linear = f.linear - g.linear :=
   rfl
 #align affine_map.sub_linear AffineMap.sub_linear
 
+/- warning: affine_map.neg_linear -> AffineMap.neg_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))), Eq.{max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) (Neg.neg.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.hasNeg.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u2 u4} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (LinearMap.hasNeg.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)) f))
+but is expected to have type
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u4, u1} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u3) (succ u1)} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) (Neg.neg.{max (max u3 u2) u1} (AffineMap.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))) (AffineMap.instNegAffineMapAddGroupIsAddTorsorToAddGroup.{u4, u3, u2, u1} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6) f)) (Neg.neg.{max u3 u1} (LinearMap.{u4, u4, u3, u1} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (LinearMap.instNegLinearMapToAddCommMonoid.{u4, u4, u3, u1} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5 _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u2, u1, u1} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f))
+Case conversion may be inaccurate. Consider using '#align affine_map.neg_linear AffineMap.neg_linearₓ'. -/
 @[simp]
 theorem neg_linear (f : P1 →ᵃ[k] V2) : (-f).linear = -f.linear :=
   rfl
@@ -311,16 +471,34 @@ instance : affine_space (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)
   vsub_vadd' f g := ext fun p => vsub_vadd (f p) (g p)
   vadd_vsub' f g := ext fun p => vadd_vsub (f p) (g p)
 
+/- warning: affine_map.vadd_apply -> AffineMap.vadd_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (VAdd.vadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toHasVadd.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7))) f g) p) (VAdd.vadd.{u4, u5} V2 P2 (AddAction.toHasVadd.{u4, u5} V2 P2 (SubNegMonoid.toAddMonoid.{u4} V2 (AddGroup.toSubNegMonoid.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AddTorsor.toAddAction.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 (HVAdd.hVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (instHVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddAction.toVAdd.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (SubNegMonoid.toAddMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddGroup.toSubNegMonoid.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)))) (AddTorsor.toAddAction.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)))) f g) p) (HVAdd.hVAdd.{u2, u1, u1} V2 P2 P2 (instHVAdd.{u2, u1} V2 P2 (AddAction.toVAdd.{u2, u1} V2 P2 (SubNegMonoid.toAddMonoid.{u2} V2 (AddGroup.toSubNegMonoid.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AddTorsor.toAddAction.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7))) (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+Case conversion may be inaccurate. Consider using '#align affine_map.vadd_apply AffineMap.vadd_applyₓ'. -/
 @[simp]
 theorem vadd_apply (f : P1 →ᵃ[k] V2) (g : P1 →ᵃ[k] P2) (p : P1) : (f +ᵥ g) p = f p +ᵥ g p :=
   rfl
 #align affine_map.vadd_apply AffineMap.vadd_apply
 
+/- warning: affine_map.vsub_apply -> AffineMap.vsub_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u4} V2 (coeFn.{max (succ u2) (succ u3) (succ u4), max (succ u3) (succ u4)} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) => P1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (VSub.vsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toHasVsub.{max u2 u3 u4, max u2 u3 u4 u5} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max u2 u3 u4} (AffineMap.{u1, u2, u3, u4, u4} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5))) (AffineMap.addCommGroup.{u1, u2, u3, u4} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.addTorsor.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (g : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u2} V2 (AffineMap.toFun.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)) (VSub.vsub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddTorsor.toVSub.{max (max u4 u3) u2, max (max (max u4 u3) u2) u1} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AddCommGroup.toAddGroup.{max (max u4 u3) u2} (AffineMap.{u5, u4, u3, u2, u2} k V1 P1 V2 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 (addGroupIsAddTorsor.{u2} V2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2} k V1 P1 V2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) f g) p) (VSub.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+Case conversion may be inaccurate. Consider using '#align affine_map.vsub_apply AffineMap.vsub_applyₓ'. -/
 @[simp]
 theorem vsub_apply (f g : P1 →ᵃ[k] P2) (p : P1) : (f -ᵥ g : P1 →ᵃ[k] V2) p = f p -ᵥ g p :=
   rfl
 #align affine_map.vsub_apply AffineMap.vsub_apply
 
+/- warning: affine_map.fst -> AffineMap.fst is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4
+Case conversion may be inaccurate. Consider using '#align affine_map.fst AffineMap.fstₓ'. -/
 /-- `prod.fst` as an `affine_map`. -/
 def fst : P1 × P2 →ᵃ[k] P1 where
   toFun := Prod.fst
@@ -328,16 +506,34 @@ def fst : P1 × P2 →ᵃ[k] P1 where
   map_vadd' _ _ := rfl
 #align affine_map.fst AffineMap.fst
 
+/- warning: affine_map.coe_fst -> AffineMap.coe_fst is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u3)} ((Prod.{u3, u5} P1 P2) -> P1) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u2) (succ u3), max (succ (max u3 u5)) (succ u3)} (AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) => (Prod.{u3, u5} P1 P2) -> P1) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4) (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u3, u5} P1 P2)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} ((Prod.{u5, u4} P1 P2) -> P1) (AffineMap.toFun.{u3, max u2 u1, max u5 u4, u2, u5} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.fst.{u5, u4} P1 P2)
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_fst AffineMap.coe_fstₓ'. -/
 @[simp]
 theorem coe_fst : ⇑(fst : P1 × P2 →ᵃ[k] P1) = Prod.fst :=
   rfl
 #align affine_map.coe_fst AffineMap.coe_fst
 
+/- warning: affine_map.fst_linear -> AffineMap.fst_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u2 u4)) (succ u2)} (LinearMap.{u1, u1, max u2 u4, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (Prod.{u2, u4} V1 V2) V1 (AddCommGroup.toAddCommMonoid.{max u2 u4} (Prod.{u2, u4} V1 V2) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_3) (AffineMap.linear.{u1, max u2 u4, max u3 u5, u2, u3} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V1 P1 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.fst.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u5} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V1 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_3) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u5, u2} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V1 P1 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u5, u2, u4, u1} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_2 _inst_3 _inst_4 (AffineMap.fst.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.fst.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
+Case conversion may be inaccurate. Consider using '#align affine_map.fst_linear AffineMap.fst_linearₓ'. -/
 @[simp]
 theorem fst_linear : (fst : P1 × P2 →ᵃ[k] P1).linear = LinearMap.fst k V1 V2 :=
   rfl
 #align affine_map.fst_linear AffineMap.fst_linear
 
+/- warning: affine_map.snd -> AffineMap.snd is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], AffineMap.{u1, max u2 u4, max u5 u3, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7
+Case conversion may be inaccurate. Consider using '#align affine_map.snd AffineMap.sndₓ'. -/
 /-- `prod.snd` as an `affine_map`. -/
 def snd : P1 × P2 →ᵃ[k] P2 where
   toFun := Prod.snd
@@ -345,11 +541,23 @@ def snd : P1 × P2 →ᵃ[k] P2 where
   map_vadd' _ _ := rfl
 #align affine_map.snd AffineMap.snd
 
+/- warning: affine_map.coe_snd -> AffineMap.coe_snd is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u3 u5)) (succ u5)} ((Prod.{u3, u5} P1 P2) -> P2) (coeFn.{max (succ (max u2 u4)) (succ (max u3 u5)) (succ u4) (succ u5), max (succ (max u3 u5)) (succ u5)} (AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) => (Prod.{u3, u5} P1 P2) -> P2) (AffineMap.hasCoeToFun.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7) (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u3, u5} P1 P2)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} ((Prod.{u5, u4} P1 P2) -> P2) (AffineMap.toFun.{u3, max u2 u1, max u5 u4, u1, u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u3, u2, u5, u1, u4} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (Prod.snd.{u5, u4} P1 P2)
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_snd AffineMap.coe_sndₓ'. -/
 @[simp]
 theorem coe_snd : ⇑(snd : P1 × P2 →ᵃ[k] P2) = Prod.snd :=
   rfl
 #align affine_map.coe_snd AffineMap.coe_snd
 
+/- warning: affine_map.snd_linear -> AffineMap.snd_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ (max u2 u4)) (succ u4)} (LinearMap.{u1, u1, max u2 u4, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (Prod.{u2, u4} V1 V2) V2 (AddCommGroup.toAddCommMonoid.{max u2 u4} (Prod.{u2, u4} V1 V2) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_6) (AffineMap.linear.{u1, max u2 u4, max u3 u5, u4, u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) V2 P2 _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.snd.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u5}} {P1 : Type.{u2}} {V2 : Type.{u4}} {P2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u5} V1] [_inst_3 : Module.{u3, u5} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2)] [_inst_4 : AddTorsor.{u5, u2} V1 P1 (AddCommGroup.toAddGroup.{u5} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u3, u4} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u1} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)], Eq.{max (succ u5) (succ u4)} (LinearMap.{u3, u3, max u5 u4, u4} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (Prod.{u5, u4} V1 V2) V2 (AddCommGroup.toAddCommMonoid.{max u5 u4} (Prod.{u5, u4} V1 V2) (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5)) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) _inst_6) (AffineMap.linear.{u3, max u5 u4, max u2 u1, u4, u1} k (Prod.{u5, u4} V1 V2) (Prod.{u2, u1} P1 P2) V2 P2 _inst_1 (Prod.instAddCommGroupSum.{u5, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u5, u2, u4, u1} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u5} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) _inst_5 _inst_6 _inst_7 (AffineMap.snd.{u3, u5, u2, u4, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7)) (LinearMap.snd.{u3, u5, u4} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u5} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6)
+Case conversion may be inaccurate. Consider using '#align affine_map.snd_linear AffineMap.snd_linearₓ'. -/
 @[simp]
 theorem snd_linear : (snd : P1 × P2 →ᵃ[k] P2).linear = LinearMap.snd k V1 V2 :=
   rfl
@@ -359,19 +567,33 @@ variable (k P1)
 
 omit V2
 
+#print AffineMap.id /-
 /-- Identity map as an affine map. -/
 def id : P1 →ᵃ[k] P1 where
   toFun := id
   linear := LinearMap.id
   map_vadd' p v := rfl
 #align affine_map.id AffineMap.id
+-/
 
+/- warning: affine_map.coe_id -> AffineMap.coe_id is a dubious translation:
+lean 3 declaration is
+  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (id.{succ u3} P1)
+but is expected to have type
+  forall (k : Type.{u2}) {V1 : Type.{u1}} (P1 : Type.{u3}) [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (id.{succ u3} P1)
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_id AffineMap.coe_idₓ'. -/
 /-- The identity affine map acts as the identity. -/
 @[simp]
 theorem coe_id : ⇑(id k P1) = id :=
   rfl
 #align affine_map.coe_id AffineMap.coe_id
 
+/- warning: affine_map.id_linear -> AffineMap.id_linear is a dubious translation:
+lean 3 declaration is
+  forall (k : Type.{u1}) {V1 : Type.{u2}} (P1 : Type.{u3}) [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (AffineMap.linear.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (LinearMap.id.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)
+but is expected to have type
+  forall (k : Type.{u2}) {V1 : Type.{u3}} (P1 : Type.{u1}) [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u1} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)], Eq.{succ u3} (LinearMap.{u2, u2, u3, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3 _inst_3) (AffineMap.linear.{u2, u3, u1, u3, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u3, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (LinearMap.id.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3)
+Case conversion may be inaccurate. Consider using '#align affine_map.id_linear AffineMap.id_linearₓ'. -/
 @[simp]
 theorem id_linear : (id k P1).linear = LinearMap.id :=
   rfl
@@ -379,6 +601,12 @@ theorem id_linear : (id k P1).linear = LinearMap.id :=
 
 variable {P1}
 
+/- warning: affine_map.id_apply -> AffineMap.id_apply is a dubious translation:
+lean 3 declaration is
+  forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4) p) p
+but is expected to have type
+  forall (k : Type.{u2}) {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4) p) p
+Case conversion may be inaccurate. Consider using '#align affine_map.id_apply AffineMap.id_applyₓ'. -/
 /-- The identity affine map acts as the identity. -/
 theorem id_apply (p : P1) : id k P1 p = p :=
   rfl
@@ -391,6 +619,7 @@ instance : Inhabited (P1 →ᵃ[k] P1) :=
 
 include V2 V3
 
+#print AffineMap.comp /-
 /-- Composition of affine maps. -/
 def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
     where
@@ -401,13 +630,26 @@ def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
     rw [Function.comp_apply, g.map_vadd, f.map_vadd]
     rfl
 #align affine_map.comp AffineMap.comp
+-/
 
+/- warning: affine_map.coe_comp -> AffineMap.coe_comp is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u3) (succ u7)} (P1 -> P3) (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u3, succ u5, succ u7} P1 P2 P3 (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g))
+but is expected to have type
+  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u1) (succ u3)} (P1 -> P3) (AffineMap.toFun.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g)) (Function.comp.{succ u1, succ u5, succ u3} P1 P2 P3 (AffineMap.toFun.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f) (AffineMap.toFun.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_comp AffineMap.coe_compₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 @[simp]
 theorem coe_comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : ⇑(f.comp g) = f ∘ g :=
   rfl
 #align affine_map.coe_comp AffineMap.coe_comp
 
+/- warning: affine_map.comp_apply -> AffineMap.comp_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] (f : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u7} P3 (coeFn.{max (succ u2) (succ u3) (succ u6) (succ u7), max (succ u3) (succ u7)} (AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) => P1 -> P3) (AffineMap.hasCoeToFun.{u1, u2, u3, u6, u7} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10) (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (coeFn.{max (succ u4) (succ u5) (succ u6) (succ u7), max (succ u5) (succ u7)} (AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (fun (_x : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) => P2 -> P3) (AffineMap.hasCoeToFun.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) f (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) g p))
+but is expected to have type
+  forall {k : Type.{u7}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u6}} {P2 : Type.{u5}} {V3 : Type.{u4}} {P3 : Type.{u3}} [_inst_1 : Ring.{u7} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u7, u2} k V1 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u6} V2] [_inst_6 : Module.{u7, u6} k V2 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V2 _inst_5)] [_inst_7 : AddTorsor.{u6, u5} V2 P2 (AddCommGroup.toAddGroup.{u6} V2 _inst_5)] [_inst_8 : AddCommGroup.{u4} V3] [_inst_9 : Module.{u7, u4} k V3 (Ring.toSemiring.{u7} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V3 _inst_8)] [_inst_10 : AddTorsor.{u4, u3} V3 P3 (AddCommGroup.toAddGroup.{u4} V3 _inst_8)] (f : AffineMap.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (g : AffineMap.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p : P1), Eq.{succ u3} P3 (AffineMap.toFun.{u7, u2, u1, u4, u3} k V1 P1 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 (AffineMap.comp.{u7, u2, u1, u6, u5, u4, u3} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f g) p) (AffineMap.toFun.{u7, u6, u5, u4, u3} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f (AffineMap.toFun.{u7, u2, u1, u6, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 g p))
+Case conversion may be inaccurate. Consider using '#align affine_map.comp_apply AffineMap.comp_applyₓ'. -/
 /-- Composition of affine maps acts as applying the two functions. -/
 theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp g p = f (g p) :=
   rfl
@@ -415,11 +657,23 @@ theorem comp_apply (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) (p : P1) : f.comp
 
 omit V3
 
+/- warning: affine_map.comp_id -> AffineMap.comp_id is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u2, u3, u2, u3, u4, u5} k V1 P1 V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.id.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) f
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u4, u3, u4, u3, u2, u1} k V1 P1 V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.id.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) f
+Case conversion may be inaccurate. Consider using '#align affine_map.comp_id AffineMap.comp_idₓ'. -/
 @[simp]
 theorem comp_id (f : P1 →ᵃ[k] P2) : f.comp (id k P1) = f :=
   ext fun p => rfl
 #align affine_map.comp_id AffineMap.comp_id
 
+/- warning: affine_map.id_comp -> AffineMap.id_comp is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u2) (succ u3) (succ u4) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u2, u3, u4, u5, u4, u5} k V1 P1 V2 P2 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_5 _inst_6 _inst_7 (AffineMap.id.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7) f) f
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (max (max (succ u4) (succ u3)) (succ u2)) (succ u1)} (AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u4, u3, u2, u1, u2, u1} k V1 P1 V2 P2 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_5 _inst_6 _inst_7 (AffineMap.id.{u5, u2, u1} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7) f) f
+Case conversion may be inaccurate. Consider using '#align affine_map.id_comp AffineMap.id_compₓ'. -/
 @[simp]
 theorem id_comp (f : P1 →ᵃ[k] P2) : (id k P2).comp f = f :=
   ext fun p => rfl
@@ -427,6 +681,12 @@ theorem id_comp (f : P1 →ᵃ[k] P2) : (id k P2).comp f = f :=
 
 include V3 V4
 
+/- warning: affine_map.comp_assoc -> AffineMap.comp_assoc is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} {V3 : Type.{u6}} {P3 : Type.{u7}} {V4 : Type.{u8}} {P4 : Type.{u9}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u6} V3] [_inst_9 : Module.{u1, u6} k V3 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V3 _inst_8)] [_inst_10 : AddTorsor.{u6, u7} V3 P3 (AddCommGroup.toAddGroup.{u6} V3 _inst_8)] [_inst_11 : AddCommGroup.{u8} V4] [_inst_12 : Module.{u1, u8} k V4 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u8} V4 _inst_11)] [_inst_13 : AddTorsor.{u8, u9} V4 P4 (AddCommGroup.toAddGroup.{u8} V4 _inst_11)] (f₃₄ : AffineMap.{u1, u6, u7, u8, u9} k V3 P3 V4 P4 _inst_1 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13) (f₂₃ : AffineMap.{u1, u4, u5, u6, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (f₁₂ : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (succ u2) (succ u3) (succ u8) (succ u9)} (AffineMap.{u1, u2, u3, u8, u9} k V1 P1 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_11 _inst_12 _inst_13) (AffineMap.comp.{u1, u2, u3, u4, u5, u8, u9} k V1 P1 V2 P2 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_11 _inst_12 _inst_13 (AffineMap.comp.{u1, u4, u5, u6, u7, u8, u9} k V2 P2 V3 P3 V4 P4 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ f₂₃) f₁₂) (AffineMap.comp.{u1, u2, u3, u6, u7, u8, u9} k V1 P1 V3 P3 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ (AffineMap.comp.{u1, u2, u3, u4, u5, u6, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f₂₃ f₁₂))
+but is expected to have type
+  forall {k : Type.{u9}} {V1 : Type.{u2}} {P1 : Type.{u1}} {V2 : Type.{u4}} {P2 : Type.{u3}} {V3 : Type.{u8}} {P3 : Type.{u7}} {V4 : Type.{u6}} {P4 : Type.{u5}} [_inst_1 : Ring.{u9} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u9, u2} k V1 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u9, u4} k V2 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u3} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] [_inst_8 : AddCommGroup.{u8} V3] [_inst_9 : Module.{u9, u8} k V3 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u8} V3 _inst_8)] [_inst_10 : AddTorsor.{u8, u7} V3 P3 (AddCommGroup.toAddGroup.{u8} V3 _inst_8)] [_inst_11 : AddCommGroup.{u6} V4] [_inst_12 : Module.{u9, u6} k V4 (Ring.toSemiring.{u9} k _inst_1) (AddCommGroup.toAddCommMonoid.{u6} V4 _inst_11)] [_inst_13 : AddTorsor.{u6, u5} V4 P4 (AddCommGroup.toAddGroup.{u6} V4 _inst_11)] (f₃₄ : AffineMap.{u9, u8, u7, u6, u5} k V3 P3 V4 P4 _inst_1 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13) (f₂₃ : AffineMap.{u9, u4, u3, u8, u7} k V2 P2 V3 P3 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10) (f₁₂ : AffineMap.{u9, u2, u1, u4, u3} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{max (max (max (succ u2) (succ u1)) (succ u6)) (succ u5)} (AffineMap.{u9, u2, u1, u6, u5} k V1 P1 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_11 _inst_12 _inst_13) (AffineMap.comp.{u9, u2, u1, u4, u3, u6, u5} k V1 P1 V2 P2 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_11 _inst_12 _inst_13 (AffineMap.comp.{u9, u4, u3, u8, u7, u6, u5} k V2 P2 V3 P3 V4 P4 _inst_1 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ f₂₃) f₁₂) (AffineMap.comp.{u9, u2, u1, u8, u7, u6, u5} k V1 P1 V3 P3 V4 P4 _inst_1 _inst_2 _inst_3 _inst_4 _inst_8 _inst_9 _inst_10 _inst_11 _inst_12 _inst_13 f₃₄ (AffineMap.comp.{u9, u2, u1, u4, u3, u8, u7} k V1 P1 V2 P2 V3 P3 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9 _inst_10 f₂₃ f₁₂))
+Case conversion may be inaccurate. Consider using '#align affine_map.comp_assoc AffineMap.comp_assocₓ'. -/
 theorem comp_assoc (f₃₄ : P3 →ᵃ[k] P4) (f₂₃ : P2 →ᵃ[k] P3) (f₁₂ : P1 →ᵃ[k] P2) :
     (f₃₄.comp f₂₃).comp f₁₂ = f₃₄.comp (f₂₃.comp f₁₂) :=
   rfl
@@ -441,16 +701,34 @@ instance : Monoid (P1 →ᵃ[k] P1) where
   mul_one := comp_id
   mul_assoc := comp_assoc
 
+/- warning: affine_map.coe_mul -> AffineMap.coe_mul is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u3} (P1 -> P1) (coeFn.{succ (max u2 u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (HMul.hMul.{max u2 u3, max u2 u3, max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasMul.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u3, succ u3, succ u3} P1 P1 P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) f) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) g))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (f : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (g : AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4), Eq.{succ u1} (P1 -> P1) (AffineMap.toFun.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (HMul.hMul.{max u2 u1, max u2 u1, max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (instHMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)))) f g)) (Function.comp.{succ u1, succ u1, succ u1} P1 P1 P1 (AffineMap.toFun.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 f) (AffineMap.toFun.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 g))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_mul AffineMap.coe_mulₓ'. -/
 @[simp]
 theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
   rfl
 #align affine_map.coe_mul AffineMap.coe_mul
 
+/- warning: affine_map.coe_one -> AffineMap.coe_one is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (OfNat.ofNat.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (OfNat.mk.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.one.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (MulOneClass.toHasOne.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))))) (id.{succ u3} P1)
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)], Eq.{succ u3} (P1 -> P1) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (OfNat.ofNat.{max u1 u3} (AffineMap.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) 1 (One.toOfNat1.{max u1 u3} (AffineMap.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (Monoid.toOne.{max u1 u3} (AffineMap.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))))) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4 (AffineMap.id.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4))
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_one AffineMap.coe_oneₓ'. -/
 @[simp]
 theorem coe_one : ⇑(1 : P1 →ᵃ[k] P1) = id :=
   rfl
 #align affine_map.coe_one AffineMap.coe_one
 
+/- warning: affine_map.linear_hom -> AffineMap.linearHom is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], MonoidHom.{max u2 u3, u2} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.monoid.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (MulZeroOneClass.toMulOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (NonAssocSemiring.toMulZeroOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (NonAssocRing.toNonAssocSemiring.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Ring.toNonAssocRing.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Module.End.ring.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) _inst_2 _inst_3)))))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)], MonoidHom.{max u3 u2, u2} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 _inst_2 _inst_3 _inst_4) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4)) (MulZeroOneClass.toMulOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (NonAssocSemiring.toMulZeroOneClass.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Semiring.toNonAssocSemiring.{u2} (LinearMap.{u1, u1, u2, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3 _inst_3) (Module.End.semiring.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))
+Case conversion may be inaccurate. Consider using '#align affine_map.linear_hom AffineMap.linearHomₓ'. -/
 /-- `affine_map.linear` on endomorphisms is a `monoid_hom`. -/
 @[simps]
 def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
@@ -462,6 +740,12 @@ def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
 
 include V2
 
+/- warning: affine_map.linear_injective_iff -> AffineMap.linear_injective_iff is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Injective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Injective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+Case conversion may be inaccurate. Consider using '#align affine_map.linear_injective_iff AffineMap.linear_injective_iffₓ'. -/
 @[simp]
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
     Function.Injective f.linear ↔ Function.Injective f :=
@@ -474,6 +758,12 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
   rw [h, Equiv.comp_injective, Equiv.injective_comp]
 #align affine_map.linear_injective_iff AffineMap.linear_injective_iff
 
+/- warning: affine_map.linear_surjective_iff -> AffineMap.linear_surjective_iff is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Surjective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Surjective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+Case conversion may be inaccurate. Consider using '#align affine_map.linear_surjective_iff AffineMap.linear_surjective_iffₓ'. -/
 @[simp]
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
     Function.Surjective f.linear ↔ Function.Surjective f :=
@@ -486,12 +776,24 @@ theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
   rw [h, Equiv.comp_surjective, Equiv.surjective_comp]
 #align affine_map.linear_surjective_iff AffineMap.linear_surjective_iff
 
+/- warning: affine_map.linear_bijective_iff -> AffineMap.linear_bijective_iff is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u2, succ u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Iff (Function.Bijective.{succ u4, succ u2} V1 V2 (FunLike.coe.{max (succ u4) (succ u2), succ u4, succ u2} (LinearMap.{u5, u5, u4, u2} k k (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u5, u5, u4, u2} k k V1 V2 (Ring.toSemiring.{u5} k _inst_1) (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u5} k (Semiring.toNonAssocSemiring.{u5} k (Ring.toSemiring.{u5} k _inst_1)))) (AffineMap.linear.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))) (Function.Bijective.{succ u3, succ u1} P1 P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f))
+Case conversion may be inaccurate. Consider using '#align affine_map.linear_bijective_iff AffineMap.linear_bijective_iffₓ'. -/
 @[simp]
 theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
     Function.Bijective f.linear ↔ Function.Bijective f :=
   and_congr f.linear_injective_iff f.linear_surjective_iff
 #align affine_map.linear_bijective_iff AffineMap.linear_bijective_iff
 
+/- warning: affine_map.image_vsub_image -> AffineMap.image_vsub_image is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] {s : Set.{u3} P1} {t : Set.{u3} P1} (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u4} (Set.{u4} V2) (VSub.vsub.{u4, u5} (Set.{u4} V2) (Set.{u5} P2) (Set.vsub.{u4, u5} V2 P2 (AddTorsor.toHasVsub.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_7)) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) s) (Set.image.{u3, u5} P1 P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f) t)) (Set.image.{u2, u4} V1 V2 (coeFn.{max (succ u2) (succ u4), max (succ u2) (succ u4)} (LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u4} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u4} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u2, u3} (Set.{u2} V1) (Set.{u3} P1) (Set.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) s t))
+but is expected to have type
+  forall {k : Type.{u4}} {V1 : Type.{u3}} {P1 : Type.{u5}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u4} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u4, u3} k V1 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u4, u2} k V2 (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] {s : Set.{u5} P1} {t : Set.{u5} P1} (f : AffineMap.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7), Eq.{succ u2} (Set.{u2} V2) (VSub.vsub.{u2, u1} (Set.{u2} V2) (Set.{u1} P2) (Set.vsub.{u2, u1} V2 P2 (AddTorsor.toVSub.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5) _inst_7)) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) s) (Set.image.{u5, u1} P1 P2 (AffineMap.toFun.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f) t)) (Set.image.{u3, u2} V1 V2 (FunLike.coe.{max (succ u3) (succ u2), succ u3, succ u2} (LinearMap.{u4, u4, u3, u2} k k (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u4, u4, u3, u2} k k V1 V2 (Ring.toSemiring.{u4} k _inst_1) (Ring.toSemiring.{u4} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u4} k (Semiring.toNonAssocSemiring.{u4} k (Ring.toSemiring.{u4} k _inst_1)))) (AffineMap.linear.{u4, u3, u5, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f)) (VSub.vsub.{u3, u5} (Set.{u3} V1) (Set.{u5} P1) (Set.vsub.{u3, u5} V1 P1 (AddTorsor.toVSub.{u3, u5} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4)) s t))
+Case conversion may be inaccurate. Consider using '#align affine_map.image_vsub_image AffineMap.image_vsub_imageₓ'. -/
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
   ext v
@@ -509,65 +811,145 @@ omit V2
 /-! ### Definition of `affine_map.line_map` and lemmas about it -/
 
 
+#print AffineMap.lineMap /-
 /-- The affine map from `k` to `P1` sending `0` to `p₀` and `1` to `p₁`. -/
 def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
   ((LinearMap.id : k →ₗ[k] k).smul_right (p₁ -ᵥ p₀)).toAffineMap +ᵥ const k k p₀
 #align affine_map.line_map AffineMap.lineMap
+-/
 
+/- warning: affine_map.coe_line_map -> AffineMap.coe_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u3)} ((fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u1}} {P1 : Type.{u2}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (k -> P1) (AffineMap.toFun.{u3, u3, u3, u1, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u1, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (fun (c : k) => HVAdd.hVAdd.{u1, u2, u2} V1 P1 P1 (instHVAdd.{u1, u2} V1 P1 (AddAction.toVAdd.{u1, u2} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u3, u1, u1} k V1 V1 (instHSMul.{u3, u1} k V1 (SMulZeroClass.toSMul.{u3, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u1} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u1} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u1} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u2} V1 P1 (AddTorsor.toVSub.{u1, u2} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_line_map AffineMap.coe_lineMapₓ'. -/
 theorem coe_lineMap (p₀ p₁ : P1) : (lineMap p₀ p₁ : k → P1) = fun c => c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
 #align affine_map.coe_line_map AffineMap.coe_lineMap
 
+/- warning: affine_map.line_map_apply -> AffineMap.lineMap_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4) p₁ p₀)) p₀)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply AffineMap.lineMap_applyₓ'. -/
 theorem lineMap_apply (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c = c • (p₁ -ᵥ p₀) +ᵥ p₀ :=
   rfl
 #align affine_map.line_map_apply AffineMap.lineMap_apply
 
+/- warning: affine_map.line_map_apply_module' -> AffineMap.lineMap_apply_module' is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toHasSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (AffineMap.toFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c (HSub.hSub.{u2, u2, u2} V1 V1 V1 (instHSub.{u2} V1 (SubNegMonoid.toSub.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))) p₁ p₀)) p₀)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'ₓ'. -/
 theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c • (p₁ - p₀) + p₀ :=
   rfl
 #align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'
 
+/- warning: affine_map.line_map_apply_module -> AffineMap.lineMap_apply_module is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toHasAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c p₁))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (p₀ : V1) (p₁ : V1) (c : k), Eq.{succ u2} V1 (AffineMap.toFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) p₀ p₁) c) (HAdd.hAdd.{u2, u2, u2} V1 V1 V1 (instHAdd.{u2} V1 (AddZeroClass.toAdd.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)))))) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) p₀) (HSMul.hSMul.{u1, u2, u2} k V1 V1 (instHSMul.{u1, u2} k V1 (SMulZeroClass.toSMul.{u1, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u2} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))) c p₁))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_module AffineMap.lineMap_apply_moduleₓ'. -/
 theorem lineMap_apply_module (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = (1 - c) • p₀ + c • p₁ := by
   simp [line_map_apply_module', smul_sub, sub_smul] <;> abel
 #align affine_map.line_map_apply_module AffineMap.lineMap_apply_module
 
 omit V1
 
+/- warning: affine_map.line_map_apply_ring' -> AffineMap.lineMap_apply_ring' is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) b a)) a)
+but is expected to have type
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (AffineMap.toFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) b a)) a)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'ₓ'. -/
 theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
   rfl
 #align affine_map.line_map_apply_ring' AffineMap.lineMap_apply_ring'
 
+/- warning: affine_map.line_map_apply_ring -> AffineMap.lineMap_apply_ring is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (coeFn.{succ u1, succ u1} (AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (fun (_x : AffineMap.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) => k -> k) (AffineMap.hasCoeToFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k _inst_1))) c b))
+but is expected to have type
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] (a : k) (b : k) (c : k), Eq.{succ u1} k (AffineMap.toFun.{u1, u1, u1, u1, u1} k k k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) a b) c) (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))))) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) a) (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonUnitalRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonUnitalRing.{u1} k _inst_1)))) c b))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ringₓ'. -/
 theorem lineMap_apply_ring (a b c : k) : lineMap a b c = (1 - c) * a + c * b :=
   lineMap_apply_module a b c
 #align affine_map.line_map_apply_ring AffineMap.lineMap_apply_ring
 
 include V1
 
+/- warning: affine_map.line_map_vadd_apply -> AffineMap.lineMap_vadd_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) v p)) c) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c v) p)
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (v : V1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) v p)) c) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_4))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_3))))) c v) p)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_applyₓ'. -/
 theorem lineMap_vadd_apply (p : P1) (v : V1) (c : k) : lineMap p (v +ᵥ p) c = c • v +ᵥ p := by
   rw [line_map_apply, vadd_vsub]
 #align affine_map.line_map_vadd_apply AffineMap.lineMap_vadd_apply
 
+/- warning: affine_map.line_map_linear -> AffineMap.lineMap_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2)} (LinearMap.{u1, u1, u1, u2} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u1} k (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3) (AffineMap.linear.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u1, u1, u2, u1} k k V1 k (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) _inst_3 (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (Ring.toSemiring.{u1} k _inst_1) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) _inst_3 (IsScalarTower.left.{u1, u2} k V1 (Ring.toMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u1, u1} k k (Ring.toSemiring.{u1} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u1} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u3) (succ u2)} (LinearMap.{u3, u3, u3, u2} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) k V1 (AddCommGroup.toAddCommMonoid.{u3} k (Ring.toAddCommGroup.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) _inst_3) (AffineMap.linear.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (LinearMap.smulRight.{u3, u3, u2, u3} k k V1 k (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) _inst_3 (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) _inst_3 (IsScalarTower.left.{u3, u2} k V1 (MonoidWithZero.toMonoid.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))) (LinearMap.id.{u3, u3} k k (Ring.toSemiring.{u3} k _inst_1) (NonUnitalNonAssocSemiring.toAddCommMonoid.{u3} k (NonAssocSemiring.toNonUnitalNonAssocSemiring.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1)) (VSub.vsub.{u2, u1} V1 P1 (AddTorsor.toVSub.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_linear AffineMap.lineMap_linearₓ'. -/
 @[simp]
 theorem lineMap_linear (p₀ p₁ : P1) :
     (lineMap p₀ p₁ : k →ᵃ[k] P1).linear = LinearMap.id.smul_right (p₁ -ᵥ p₀) :=
   add_zero _
 #align affine_map.line_map_linear AffineMap.lineMap_linear
 
+/- warning: affine_map.line_map_same_apply -> AffineMap.lineMap_same_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p : P1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) c) p
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same_apply AffineMap.lineMap_same_applyₓ'. -/
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by simp [line_map_apply]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
 
+/- warning: affine_map.line_map_same -> AffineMap.lineMap_same is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 p)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p p) (AffineMap.const.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 p)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_same AffineMap.lineMap_sameₓ'. -/
 @[simp]
 theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
   ext <| lineMap_same_apply p
 #align affine_map.line_map_same AffineMap.lineMap_same
 
+/- warning: affine_map.line_map_apply_zero -> AffineMap.lineMap_apply_zero is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))) p₀
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 0 (Zero.toOfNat0.{u2} k (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)))))) p₀
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zeroₓ'. -/
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by simp [line_map_apply]
 #align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zero
 
+/- warning: affine_map.line_map_apply_one -> AffineMap.lineMap_apply_one is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))))) p₁
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) p₁
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one AffineMap.lineMap_apply_oneₓ'. -/
 @[simp]
 theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ := by simp [line_map_apply]
 #align affine_map.line_map_apply_one AffineMap.lineMap_apply_one
 
+/- warning: affine_map.line_map_eq_line_map_iff -> AffineMap.lineMap_eq_lineMap_iff is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c₁ c₂))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c₁ : k} {c₂ : k}, Iff (Eq.{succ u1} P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₁) (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c₂)) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c₁ c₂))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁ c₂ : k} :
     lineMap p₀ p₁ c₁ = lineMap p₀ p₁ c₂ ↔ p₀ = p₁ ∨ c₁ = c₂ := by
@@ -575,12 +957,24 @@ theorem lineMap_eq_lineMap_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c₁
     sub_smul, smul_eq_zero, sub_eq_zero, vsub_eq_zero_iff_eq, or_comm', eq_comm]
 #align affine_map.line_map_eq_line_map_iff AffineMap.lineMap_eq_lineMap_iff
 
+/- warning: affine_map.line_map_eq_left_iff -> AffineMap.lineMap_eq_left_iff is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_left_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
     lineMap p₀ p₁ c = p₀ ↔ p₀ = p₁ ∨ c = 0 := by
   rw [← @line_map_eq_line_map_iff k V1, line_map_apply_zero]
 #align affine_map.line_map_eq_left_iff AffineMap.lineMap_eq_left_iff
 
+/- warning: affine_map.line_map_eq_right_iff -> AffineMap.lineMap_eq_right_iff is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u3} P1 p₀ p₁) (Eq.{succ u1} k c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))))))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1} {c : k}, Iff (Eq.{succ u1} P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (Or (Eq.{succ u1} P1 p₀ p₁) (Eq.{succ u3} k c (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_eq_right_iff AffineMap.lineMap_eq_right_iffₓ'. -/
 @[simp]
 theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k} :
     lineMap p₀ p₁ c = p₁ ↔ p₀ = p₁ ∨ c = 1 := by
@@ -589,6 +983,12 @@ theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k}
 
 variable (k)
 
+/- warning: affine_map.line_map_injective -> AffineMap.lineMap_injective is a dubious translation:
+lean 3 declaration is
+  forall (k : Type.{u1}) {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))) (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u3} P1 p₀ p₁) -> (Function.Injective.{succ u1, succ u3} k P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
+but is expected to have type
+  forall (k : Type.{u3}) {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_14 : NoZeroSMulDivisors.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulZeroClass.toSMul.{u3, u2} k V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} k V1 (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3))))] {p₀ : P1} {p₁ : P1}, (Ne.{succ u1} P1 p₀ p₁) -> (Function.Injective.{succ u3, succ u1} k P1 (AffineMap.toFun.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_injective AffineMap.lineMap_injectiveₓ'. -/
 theorem lineMap_injective [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} (h : p₀ ≠ p₁) :
     Function.Injective (lineMap p₀ p₁ : k → P1) := fun c₁ c₂ hc =>
   (lineMap_eq_lineMap_iff.mp hc).resolve_left h
@@ -598,22 +998,46 @@ variable {k}
 
 include V2
 
+/- warning: affine_map.apply_line_map -> AffineMap.apply_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u5} P2 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁)) c)
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u1} P2 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.toFun.{u5, u5, u5, u4, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (AffineMap.toFun.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7 (AffineMap.lineMap.{u5, u2, u1} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₀) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₁)) c)
+Case conversion may be inaccurate. Consider using '#align affine_map.apply_line_map AffineMap.apply_lineMapₓ'. -/
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
     f (lineMap p₀ p₁ c) = lineMap (f p₀) (f p₁) c := by simp [line_map_apply]
 #align affine_map.apply_line_map AffineMap.apply_lineMap
 
+/- warning: affine_map.comp_line_map -> AffineMap.comp_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (f : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u4) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u1, u1, u1, u2, u3, u4, u5} k k k V1 P1 V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₀) (coeFn.{max (succ u2) (succ u3) (succ u4) (succ u5), max (succ u3) (succ u5)} (AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) => P1 -> P2) (AffineMap.hasCoeToFun.{u1, u2, u3, u4, u5} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) f p₁))
+but is expected to have type
+  forall {k : Type.{u5}} {V1 : Type.{u4}} {P1 : Type.{u3}} {V2 : Type.{u2}} {P2 : Type.{u1}} [_inst_1 : Ring.{u5} k] [_inst_2 : AddCommGroup.{u4} V1] [_inst_3 : Module.{u5, u4} k V1 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V1 _inst_2)] [_inst_4 : AddTorsor.{u4, u3} V1 P1 (AddCommGroup.toAddGroup.{u4} V1 _inst_2)] [_inst_5 : AddCommGroup.{u2} V2] [_inst_6 : Module.{u5, u2} k V2 (Ring.toSemiring.{u5} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V2 _inst_5)] [_inst_7 : AddTorsor.{u2, u1} V2 P2 (AddCommGroup.toAddGroup.{u2} V2 _inst_5)] (f : AffineMap.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7) (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u5) (succ u2)) (succ u1)} (AffineMap.{u5, u5, u5, u2, u1} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_5 _inst_6 _inst_7) (AffineMap.comp.{u5, u5, u5, u4, u3, u2, u1} k k k V1 P1 V2 P2 _inst_1 (Ring.toAddCommGroup.{u5} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u5} k _inst_1) (addGroupIsAddTorsor.{u5} k (AddGroupWithOne.toAddGroup.{u5} k (Ring.toAddGroupWithOne.{u5} k _inst_1))) _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f (AffineMap.lineMap.{u5, u4, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁)) (AffineMap.lineMap.{u5, u2, u1} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₀) (AffineMap.toFun.{u5, u4, u3, u2, u1} k V1 P1 V2 P2 _inst_1 _inst_2 _inst_3 _inst_4 _inst_5 _inst_6 _inst_7 f p₁))
+Case conversion may be inaccurate. Consider using '#align affine_map.comp_line_map AffineMap.comp_lineMapₓ'. -/
 @[simp]
 theorem comp_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) :
     f.comp (lineMap p₀ p₁) = lineMap (f p₀) (f p₁) :=
   ext <| f.apply_lineMap p₀ p₁
 #align affine_map.comp_line_map AffineMap.comp_lineMap
 
+/- warning: affine_map.fst_line_map -> AffineMap.fst_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u3} P1 (Prod.fst.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u3, u5} P1 P2 p₀) (Prod.fst.{u3, u5} P1 P2 p₁)) c)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u5} P1 (Prod.fst.{u5, u4} P1 P2 (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (AffineMap.toFun.{u3, u3, u3, u2, u5} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u5} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 (Prod.fst.{u5, u4} P1 P2 p₀) (Prod.fst.{u5, u4} P1 P2 p₁)) c)
+Case conversion may be inaccurate. Consider using '#align affine_map.fst_line_map AffineMap.fst_lineMapₓ'. -/
 @[simp]
 theorem fst_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).1 = lineMap p₀.1 p₁.1 c :=
   fst.apply_lineMap p₀ p₁ c
 #align affine_map.fst_line_map AffineMap.fst_lineMap
 
+/- warning: affine_map.snd_line_map -> AffineMap.snd_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} {V2 : Type.{u4}} {P2 : Type.{u5}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u4} V2] [_inst_6 : Module.{u1, u4} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5)] [_inst_7 : AddTorsor.{u4, u5} V2 P2 (AddCommGroup.toAddGroup.{u4} V2 _inst_5)] (p₀ : Prod.{u3, u5} P1 P2) (p₁ : Prod.{u3, u5} P1 P2) (c : k), Eq.{succ u5} P2 (Prod.snd.{u3, u5} P1 P2 (coeFn.{max (succ u1) (succ (max u2 u4)) (succ (max u3 u5)), max (succ u1) (succ (max u3 u5))} (AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (fun (_x : AffineMap.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) => k -> (Prod.{u3, u5} P1 P2)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u4, max u3 u5} k k k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7)) (AffineMap.lineMap.{u1, max u2 u4, max u3 u5} k (Prod.{u2, u4} V1 V2) (Prod.{u3, u5} P1 P2) _inst_1 (Prod.addCommGroup.{u2, u4} V1 V2 _inst_2 _inst_5) (Prod.module.{u1, u2, u4} k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_5) _inst_3 _inst_6) (Prod.addTorsor.{u2, u3, u4, u5} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u4} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (coeFn.{max (succ u1) (succ u4) (succ u5), max (succ u1) (succ u5)} (AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (fun (_x : AffineMap.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) => k -> P2) (AffineMap.hasCoeToFun.{u1, u1, u1, u4, u5} k k k V2 P2 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_5 _inst_6 _inst_7) (AffineMap.lineMap.{u1, u4, u5} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u3, u5} P1 P2 p₀) (Prod.snd.{u3, u5} P1 P2 p₁)) c)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u5}} {V2 : Type.{u1}} {P2 : Type.{u4}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u5} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] [_inst_7 : AddTorsor.{u1, u4} V2 P2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)] (p₀ : Prod.{u5, u4} P1 P2) (p₁ : Prod.{u5, u4} P1 P2) (c : k), Eq.{succ u4} P2 (Prod.snd.{u5, u4} P1 P2 (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u5 u4} k k k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) (AffineMap.lineMap.{u3, max u2 u1, max u5 u4} k (Prod.{u2, u1} V1 V2) (Prod.{u5, u4} P1 P2) _inst_1 (Prod.instAddCommGroupSum.{u2, u1} V1 V2 _inst_2 _inst_5) (Prod.module.{u3, u2, u1} k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) (Prod.instAddTorsorProdProdInstAddGroupSum.{u2, u5, u1, u4} V1 P1 V2 P2 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) (AddCommGroup.toAddGroup.{u1} V2 _inst_5) _inst_4 _inst_7) p₀ p₁) c)) (AffineMap.toFun.{u3, u3, u3, u1, u4} k k k V2 P2 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_5 _inst_6 _inst_7 (AffineMap.lineMap.{u3, u1, u4} k V2 P2 _inst_1 _inst_5 _inst_6 _inst_7 (Prod.snd.{u5, u4} P1 P2 p₀) (Prod.snd.{u5, u4} P1 P2 p₁)) c)
+Case conversion may be inaccurate. Consider using '#align affine_map.snd_line_map AffineMap.snd_lineMapₓ'. -/
 @[simp]
 theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = lineMap p₀.2 p₁.2 c :=
   snd.apply_lineMap p₀ p₁ c
@@ -621,6 +1045,12 @@ theorem snd_lineMap (p₀ p₁ : P1 × P2) (c : k) : (lineMap p₀ p₁ c).2 = l
 
 omit V2
 
+/- warning: affine_map.line_map_symm -> AffineMap.lineMap_symm is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (succ u1) (succ u2) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u1, u1, u1, u1, u1, u2, u3} k k k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u1, u1, u1} k k k _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))))))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (AffineMap.{u3, u3, u3, u2, u1} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (AffineMap.comp.{u3, u3, u3, u3, u3, u2, u1} k k k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) (AffineMap.lineMap.{u3, u3, u3} k k k _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (OfNat.ofNat.{u3} k 1 (One.toOfNat1.{u3} k (Semiring.toOne.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (OfNat.ofNat.{u3} k 0 (Zero.toOfNat0.{u3} k (MonoidWithZero.toZero.{u3} k (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k _inst_1)))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_symm AffineMap.lineMap_symmₓ'. -/
 theorem lineMap_symm (p₀ p₁ : P1) :
     lineMap p₀ p₁ = (lineMap p₁ p₀).comp (lineMap (1 : k) (0 : k)) :=
   by
@@ -628,6 +1058,12 @@ theorem lineMap_symm (p₀ p₁ : P1) :
   simp
 #align affine_map.line_map_symm AffineMap.lineMap_symm
 
+/- warning: affine_map.line_map_apply_one_sub -> AffineMap.lineMap_apply_one_sub is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c)) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] [_inst_4 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) (HSub.hSub.{u2, u2, u2} k k k (instHSub.{u2} k (Ring.toSub.{u2} k _inst_1)) (OfNat.ofNat.{u2} k 1 (One.toOfNat1.{u2} k (Semiring.toOne.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) c)) (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u2} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k _inst_1) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₀) c)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_subₓ'. -/
 theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 - c) = lineMap p₁ p₀ c :=
   by
   rw [line_map_symm p₀, comp_apply]
@@ -635,31 +1071,63 @@ theorem lineMap_apply_one_sub (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ (1 -
   simp [line_map_apply]
 #align affine_map.line_map_apply_one_sub AffineMap.lineMap_apply_one_sub
 
+/- warning: affine_map.line_map_vsub_left -> AffineMap.lineMap_vsub_left is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₀) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_leftₓ'. -/
 @[simp]
 theorem lineMap_vsub_left (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₀ = c • (p₁ -ᵥ p₀) :=
   vadd_vsub _ _
 #align affine_map.line_map_vsub_left AffineMap.lineMap_vsub_left
 
+/- warning: affine_map.left_vsub_line_map -> AffineMap.left_vsub_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) c (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) c (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+Case conversion may be inaccurate. Consider using '#align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMapₓ'. -/
 @[simp]
 theorem left_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₀ -ᵥ lineMap p₀ p₁ c = c • (p₀ -ᵥ p₁) := by
   rw [← neg_vsub_eq_vsub_rev, line_map_vsub_left, ← smul_neg, neg_vsub_eq_vsub_rev]
 #align affine_map.left_vsub_line_map AffineMap.left_vsub_lineMap
 
+/- warning: affine_map.line_map_vsub_right -> AffineMap.lineMap_vsub_right is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₀ p₁))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c) p₁) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₀ p₁))
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_rightₓ'. -/
 @[simp]
 theorem lineMap_vsub_right (p₀ p₁ : P1) (c : k) : lineMap p₀ p₁ c -ᵥ p₁ = (1 - c) • (p₀ -ᵥ p₁) := by
   rw [← line_map_apply_one_sub, line_map_vsub_left]
 #align affine_map.line_map_vsub_right AffineMap.lineMap_vsub_right
 
+/- warning: affine_map.right_vsub_line_map -> AffineMap.right_vsub_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_3)))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (SubNegMonoid.toHasSub.{u1} k (AddGroup.toSubNegMonoid.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))))) (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))))))) c) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₀))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₀ : P1) (p₁ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₀ p₁) c)) (HSMul.hSMul.{u1, u3, u3} k V1 V1 (instHSMul.{u1, u3} k V1 (SMulZeroClass.toSMul.{u1, u3} k V1 (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u1, u3} k V1 (MonoidWithZero.toZero.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_3))))) (HSub.hSub.{u1, u1, u1} k k k (instHSub.{u1} k (Ring.toSub.{u1} k _inst_1)) (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (Semiring.toOne.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) c) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₀))
+Case conversion may be inaccurate. Consider using '#align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMapₓ'. -/
 @[simp]
 theorem right_vsub_lineMap (p₀ p₁ : P1) (c : k) : p₁ -ᵥ lineMap p₀ p₁ c = (1 - c) • (p₁ -ᵥ p₀) := by
   rw [← line_map_apply_one_sub, left_vsub_line_map]
 #align affine_map.right_vsub_line_map AffineMap.right_vsub_lineMap
 
+#print AffineMap.lineMap_vadd_lineMap /-
 theorem lineMap_vadd_lineMap (v₁ v₂ : V1) (p₁ p₂ : P1) (c : k) :
     lineMap v₁ v₂ c +ᵥ lineMap p₁ p₂ c = lineMap (v₁ +ᵥ p₁) (v₂ +ᵥ p₂) c :=
   ((fst : V1 × P1 →ᵃ[k] V1) +ᵥ snd).apply_lineMap (v₁, p₁) (v₂, p₂) c
 #align affine_map.line_map_vadd_line_map AffineMap.lineMap_vadd_lineMap
+-/
 
+/- warning: affine_map.line_map_vsub_line_map -> AffineMap.lineMap_vsub_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_4 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u2} V1 (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 _inst_4) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (coeFn.{max (succ u1) (succ u2), max (succ u1) (succ u2)} (AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (fun (_x : AffineMap.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) => k -> V1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u2} k k k V1 V1 _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.lineMap.{u1, u2, u2} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_4) p₂ p₄)) c)
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_4 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] (p₁ : P1) (p₂ : P1) (p₃ : P1) (p₄ : P1) (c : k), Eq.{succ u3} V1 (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₁ p₂) c) (AffineMap.toFun.{u1, u1, u1, u3, u2} k k k V1 P1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 _inst_4 (AffineMap.lineMap.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_4 p₃ p₄) c)) (AffineMap.toFun.{u1, u1, u1, u3, u3} k k k V1 V1 _inst_1 (Ring.toAddCommGroup.{u1} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k _inst_1) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k _inst_1))) _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (AffineMap.lineMap.{u1, u3, u3} k V1 V1 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₁ p₃) (VSub.vsub.{u3, u2} V1 P1 (AddTorsor.toVSub.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2) _inst_4) p₂ p₄)) c)
+Case conversion may be inaccurate. Consider using '#align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMapₓ'. -/
 theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
     lineMap p₁ p₂ c -ᵥ lineMap p₃ p₄ c = lineMap (p₁ -ᵥ p₃) (p₂ -ᵥ p₄) c :=
   letI-- Why Lean fails to find this instance without a hint?
@@ -667,6 +1135,12 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
   ((fst : P1 × P1 →ᵃ[k] P1) -ᵥ (snd : P1 × P1 →ᵃ[k] P1)).apply_lineMap (_, _) (_, _) c
 #align affine_map.line_map_vsub_line_map AffineMap.lineMap_vsub_lineMap
 
+/- warning: affine_map.decomp -> AffineMap.decomp is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (HAdd.hAdd.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (instHAdd.{max u2 u3} ((fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) f) (Pi.instAdd.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => AddZeroClass.toHasAdd.{u3} V2 (AddMonoid.toAddZeroClass.{u3} V2 (SubNegMonoid.toAddMonoid.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (V1 -> V2) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (HAdd.hAdd.{max u2 u1, max u2 u1, max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (V1 -> V2) (V1 -> V2) (instHAdd.{max u2 u1} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (Pi.instAdd.{u2, u1} V1 (fun (ᾰ : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) ᾰ) (fun (i : V1) => AddZeroClass.toAdd.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (AddMonoid.toAddZeroClass.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (SubNegMonoid.toAddMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (AddGroup.toSubNegMonoid.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) (AddCommGroup.toAddGroup.{u1} ((fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) i) _inst_5))))))) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.decomp AffineMap.decompₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
 theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0 :=
@@ -678,6 +1152,12 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = f.linear + fun z => f 0
     
 #align affine_map.decomp AffineMap.decomp
 
+/- warning: affine_map.decomp' -> AffineMap.decomp' is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {V2 : Type.{u3}} [_inst_1 : Ring.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u3} V2] [_inst_6 : Module.{u1, u3} k V2 (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5)] (f : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))), Eq.{max (succ u2) (succ u3)} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) (fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (LinearMap.hasCoeToFun.{u1, u1, u2, u3} k k V1 V2 (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1)))) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (HSub.hSub.{max u2 u3, max u2 u3, max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (instHSub.{max u2 u3} ((fun (_x : LinearMap.{u1, u1, u2, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u3} V2 _inst_5) _inst_3 _inst_6) => V1 -> V2) (AffineMap.linear.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5)) f)) (Pi.instSub.{u2, u3} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toHasSub.{u3} V2 (AddGroup.toSubNegMonoid.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))))) (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f) (fun (z : V1) => coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) => V1 -> V2) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u3} V2 (AddCommGroup.toAddGroup.{u3} V2 _inst_5))) f (OfNat.ofNat.{u2} V1 0 (OfNat.mk.{u2} V1 0 (Zero.zero.{u2} V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))))))))))
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {V2 : Type.{u1}} [_inst_1 : Ring.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] [_inst_5 : AddCommGroup.{u1} V2] [_inst_6 : Module.{u3, u1} k V2 (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5)] (f : AffineMap.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))), Eq.{max (succ u2) (succ u1)} (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (FunLike.coe.{max (succ u2) (succ u1), succ u2, succ u1} (LinearMap.{u3, u3, u2, u1} k k (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6) V1 (fun (_x : V1) => (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) _x) (LinearMap.instFunLikeLinearMap.{u3, u3, u2, u1} k k V1 V2 (Ring.toSemiring.{u3} k _inst_1) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u1} V2 _inst_5) _inst_3 _inst_6 (RingHom.id.{u3} k (Semiring.toNonAssocSemiring.{u3} k (Ring.toSemiring.{u3} k _inst_1)))) (AffineMap.linear.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f)) (HSub.hSub.{max u2 u1, max u2 u1, max u2 u1} (V1 -> V2) (V1 -> V2) (forall (a : V1), (fun (x._@.Mathlib.Algebra.Module.LinearMap._hyg.6178 : V1) => V2) a) (instHSub.{max u2 u1} (V1 -> V2) (Pi.instSub.{u2, u1} V1 (fun (ᾰ : V1) => V2) (fun (i : V1) => SubNegMonoid.toSub.{u1} V2 (AddGroup.toSubNegMonoid.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5))))) (AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f) (fun (z : V1) => AffineMap.toFun.{u3, u2, u2, u1, u1} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_3 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)) _inst_5 _inst_6 (addGroupIsAddTorsor.{u1} V2 (AddCommGroup.toAddGroup.{u1} V2 _inst_5)) f (OfNat.ofNat.{u2} V1 0 (Zero.toOfNat0.{u2} V1 (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2)))))))))
+Case conversion may be inaccurate. Consider using '#align affine_map.decomp' AffineMap.decomp'ₓ'. -/
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
 theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f 0 := by
@@ -686,6 +1166,7 @@ theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = f - fun z => f
 
 omit V1
 
+#print AffineMap.image_uIcc /-
 theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) :=
   by
@@ -698,6 +1179,7 @@ theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b
   rw [this, Set.image_comp]
   simp only [Set.image_add_const_uIcc, Set.image_mul_const_uIcc]
 #align affine_map.image_uIcc AffineMap.image_uIcc
+-/
 
 section
 
@@ -706,6 +1188,12 @@ variable {ι : Type _} {V : ∀ i : ι, Type _} {P : ∀ i : ι, Type _} [∀ i,
 
 include V
 
+/- warning: affine_map.proj -> AffineMap.proj is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)
+but is expected to have type
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i)
+Case conversion may be inaccurate. Consider using '#align affine_map.proj AffineMap.projₓ'. -/
 /-- Evaluation at a point as an affine map. -/
 def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
     where
@@ -714,16 +1202,34 @@ def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
   map_vadd' p v := rfl
 #align affine_map.proj AffineMap.proj
 
+/- warning: affine_map.proj_apply -> AffineMap.proj_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} (P i) (coeFn.{max (succ (max u2 u3)) (succ (max u2 u4)) (succ u3) (succ u4), max (succ (max u2 u4)) (succ u4)} (AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (fun (_x : AffineMap.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) => (forall (i : ι), P i) -> (P i)) (AffineMap.hasCoeToFun.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i)) (AffineMap.proj.{u1, u2, u3, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
+but is expected to have type
+  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (i : ι) (f : forall (i : ι), P i), Eq.{succ u4} (P i) (AffineMap.toFun.{u3, max u2 u1, max u2 u4, u1, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.proj.{u3, u2, u1, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i) f) (f i)
+Case conversion may be inaccurate. Consider using '#align affine_map.proj_apply AffineMap.proj_applyₓ'. -/
 @[simp]
 theorem proj_apply (i : ι) (f : ∀ i, P i) : @proj k _ ι V P _ _ _ i f = f i :=
   rfl
 #align affine_map.proj_apply AffineMap.proj_apply
 
+/- warning: affine_map.proj_linear -> AffineMap.proj_linear is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), Eq.{max (succ (max u2 u3)) (succ u3)} (LinearMap.{u1, u1, max u2 u3, u3} k k (Ring.toSemiring.{u1} k _inst_1) (Ring.toSemiring.{u1} k _inst_1) (RingHom.id.{u1} k (Semiring.toNonAssocSemiring.{u1} k (Ring.toSemiring.{u1} k _inst_1))) (forall (i : ι), V i) (V i) (AddCommGroup.toAddCommMonoid.{max u2 u3} (forall (i : ι), V i) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i))) (AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) ((fun (i : ι) => _inst_15 i) i)) (AffineMap.linear.{u1, max u2 u3, max u2 u4, u3, u4} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => (fun (i : ι) => _inst_14 i) i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => (fun (i : ι) => _inst_15 i) i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) ((fun (i : ι) => _inst_14 i) i)) (fun (i : ι) => P i) (fun (i : ι) => (fun (i : ι) => _inst_16 i) i)) ((fun (i : ι) => _inst_14 i) i) ((fun (i : ι) => _inst_15 i) i) ((fun (i : ι) => _inst_16 i) i) (AffineMap.proj.{u1, u2, u3, u4} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i)) (LinearMap.proj.{u1, u2, u3} k ι (Ring.toSemiring.{u1} k _inst_1) V (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i) i)
+but is expected to have type
+  forall {k : Type.{u2}} [_inst_1 : Ring.{u2} k] {ι : Type.{u4}} {V : ι -> Type.{u3}} {P : ι -> Type.{u1}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u2, u3} k (V i) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u1} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (i : ι), Eq.{max (succ u4) (succ u3)} (LinearMap.{u2, u2, max u4 u3, u3} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (forall (i : ι), V i) (V i) (AddCommGroup.toAddCommMonoid.{max u4 u3} (forall (i : ι), V i) (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i))) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (_inst_15 i)) (AffineMap.linear.{u2, max u4 u3, max u4 u1, u3, u1} k (forall (i : ι), V i) (forall (i : ι), P i) (V i) (P i) _inst_1 (Pi.addCommGroup.{u4, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u4, u3, u2} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u2} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u4, u3, u1} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.proj.{u2, u4, u3, u1} k _inst_1 ι V P (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_15 i) (fun (i : ι) => _inst_16 i) i)) (LinearMap.proj.{u2, u4, u3} k ι (Ring.toSemiring.{u2} k _inst_1) V (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i) i)
+Case conversion may be inaccurate. Consider using '#align affine_map.proj_linear AffineMap.proj_linearₓ'. -/
 @[simp]
 theorem proj_linear (i : ι) : (@proj k _ ι V P _ _ _ i).linear = @LinearMap.proj k ι _ V _ _ i :=
   rfl
 #align affine_map.proj_linear AffineMap.proj_linear
 
+/- warning: affine_map.pi_line_map_apply -> AffineMap.pi_lineMap_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} [_inst_1 : Ring.{u1} k] {ι : Type.{u2}} {V : ι -> Type.{u3}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u3} (V i)] [_inst_15 : forall (i : ι), Module.{u1, u3} k (V i) (Ring.toSemiring.{u1} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u3, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (coeFn.{max (succ u1) (succ (max u2 u3)) (succ (max u2 u4)), max (succ u1) (succ (max u2 u4))} (AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (fun (_x : AffineMap.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) => k -> (forall (i : ι), P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u2 u3, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i))) (AffineMap.lineMap.{u1, max u2 u3, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u3} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u3, u1} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u1} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u3} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (Pi.addTorsor.{u2, u3, u4} ι (fun (i : ι) => V i) (fun (i : ι) => AddCommGroup.toAddGroup.{u3} (V i) (_inst_14 i)) (fun (i : ι) => P i) (fun (i : ι) => _inst_16 i)) f g) c i) (coeFn.{max (succ u1) (succ u3) (succ u4), max (succ u1) (succ u4)} (AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (fun (_x : AffineMap.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) => k -> (P i)) (AffineMap.hasCoeToFun.{u1, u1, u1, u3, u4} k k k (V i) (P i) _inst_1 (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k _inst_1)))) (_inst_14 i) (_inst_15 i) (_inst_16 i)) (AffineMap.lineMap.{u1, u3, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
+but is expected to have type
+  forall {k : Type.{u3}} [_inst_1 : Ring.{u3} k] {ι : Type.{u2}} {V : ι -> Type.{u1}} {P : ι -> Type.{u4}} [_inst_14 : forall (i : ι), AddCommGroup.{u1} (V i)] [_inst_15 : forall (i : ι), Module.{u3, u1} k (V i) (Ring.toSemiring.{u3} k _inst_1) (AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i))] [_inst_16 : forall (i : ι), AddTorsor.{u1, u4} (V i) (P i) (AddCommGroup.toAddGroup.{u1} (V i) (_inst_14 i))] (f : forall (i : ι), P i) (g : forall (i : ι), P i) (c : k) (i : ι), Eq.{succ u4} (P i) (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u2 u4} k k k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) (AffineMap.lineMap.{u3, max u2 u1, max u2 u4} k (forall (i : ι), V i) (forall (i : ι), P i) _inst_1 (Pi.addCommGroup.{u2, u1} ι (fun (i : ι) => V i) (fun (i : ι) => _inst_14 i)) (Pi.module.{u2, u1, u3} ι (fun (i : ι) => V i) k (Ring.toSemiring.{u3} k _inst_1) (fun (i : ι) => AddCommGroup.toAddCommMonoid.{u1} (V i) (_inst_14 i)) (fun (i : ι) => _inst_15 i)) (AffineMap.instAddTorsorForAllForAllAddGroupToAddGroup.{u2, u1, u4} ι (fun (i : ι) => V i) (fun (i : ι) => P i) (fun (i : ι) => _inst_14 i) (fun (i : ι) => _inst_16 i)) f g) c i) (AffineMap.toFun.{u3, u3, u3, u1, u4} k k k (V i) (P i) _inst_1 (Ring.toAddCommGroup.{u3} k _inst_1) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k _inst_1) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k _inst_1))) (_inst_14 i) (_inst_15 i) (_inst_16 i) (AffineMap.lineMap.{u3, u1, u4} k (V i) (P i) _inst_1 (_inst_14 i) (_inst_15 i) (_inst_16 i) (f i) (g i)) c)
+Case conversion may be inaccurate. Consider using '#align affine_map.pi_line_map_apply AffineMap.pi_lineMap_applyₓ'. -/
 theorem pi_lineMap_apply (f g : ∀ i, P i) (c : k) (i : ι) :
     lineMap f g c i = lineMap (f i) (g i) c :=
   (proj i : (∀ i, P i) →ᵃ[k] P i).apply_lineMap f g c
@@ -770,6 +1276,12 @@ instance : Module R (P1 →ᵃ[k] V2) :=
 
 variable (R)
 
+/- warning: affine_map.to_const_prod_linear_map -> AffineMap.toConstProdLinearMap is a dubious translation:
+lean 3 declaration is
+  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toHasSmul.{u2, u4} k V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u2, u4} k V2 (MulZeroClass.toHasZero.{u2} k (MulZeroOneClass.toMulZeroClass.{u2} k (MonoidWithZero.toMulZeroOneClass.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toHasSmul.{u1, u4} R V2 (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (SMulWithZero.toSmulZeroClass.{u1, u4} R V2 (MulZeroClass.toHasZero.{u1} R (MulZeroOneClass.toMulZeroClass.{u1} R (MonoidWithZero.toMulZeroOneClass.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)))) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (AddZeroClass.toHasZero.{u4} V2 (AddMonoid.toAddZeroClass.{u4} V2 (AddCommMonoid.toAddMonoid.{u4} V2 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u3 u4, max u3 u4} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.addCommGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.addCommMonoid.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.module.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.module.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
+but is expected to have type
+  forall (R : Type.{u1}) {k : Type.{u2}} {V1 : Type.{u3}} {V2 : Type.{u4}} [_inst_1 : Ring.{u2} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_4 : AddCommGroup.{u4} V2] [_inst_5 : Module.{u2, u3} k V1 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] [_inst_6 : Module.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_7 : Semiring.{u1} R] [_inst_8 : Module.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4)] [_inst_9 : SMulCommClass.{u2, u1, u4} k R V2 (SMulZeroClass.toSMul.{u2, u4} k V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u2, u4} k V2 (MonoidWithZero.toZero.{u2} k (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u2, u4} k V2 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k _inst_1)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u2, u4} k V2 (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_6)))) (SMulZeroClass.toSMul.{u1, u4} R V2 (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (SMulWithZero.toSMulZeroClass.{u1, u4} R V2 (MonoidWithZero.toZero.{u1} R (Semiring.toMonoidWithZero.{u1} R _inst_7)) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (MulActionWithZero.toSMulWithZero.{u1, u4} R V2 (Semiring.toMonoidWithZero.{u1} R _inst_7) (NegZeroClass.toZero.{u4} V2 (SubNegZeroMonoid.toNegZeroClass.{u4} V2 (SubtractionMonoid.toSubNegZeroMonoid.{u4} V2 (SubtractionCommMonoid.toSubtractionMonoid.{u4} V2 (AddCommGroup.toDivisionAddCommMonoid.{u4} V2 _inst_4))))) (Module.toMulActionWithZero.{u1, u4} R V2 _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_8))))], LinearEquiv.{u1, u1, max u4 u3, max u4 u3} R R _inst_7 _inst_7 (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHom.id.{u1} R (Semiring.toNonAssocSemiring.{u1} R _inst_7)) (RingHomInvPair.ids.{u1} R _inst_7) (RingHomInvPair.ids.{u1} R _inst_7) (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (Prod.{u4, max u4 u3} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6)) (AddCommGroup.toAddCommMonoid.{max u3 u4} (AffineMap.{u2, u3, u3, u4, u4} k V1 V1 V2 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6 (addGroupIsAddTorsor.{u4} V2 (AddCommGroup.toAddGroup.{u4} V2 _inst_4))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u2, u3, u3, u4} k V1 V1 V2 _inst_1 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_6)) (Prod.instAddCommMonoidSum.{u4, max u3 u4} V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))))) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u3, u4} R k V1 V1 V2 _inst_1 _inst_2 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)) _inst_4 _inst_5 _inst_6 _inst_7 _inst_8 _inst_9) (Prod.module.{u1, u4, max u3 u4} R V2 (LinearMap.{u2, u2, u3, u4} k k (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) V1 V2 (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6) _inst_7 (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) (LinearMap.addCommMonoid.{u2, u2, u3, u4} k k V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1)))) _inst_8 (LinearMap.instModuleLinearMapAddCommMonoid.{u2, u2, u1, u3, u4} k k R V1 V2 (Ring.toSemiring.{u2} k _inst_1) (Ring.toSemiring.{u2} k _inst_1) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) (AddCommGroup.toAddCommMonoid.{u4} V2 _inst_4) _inst_5 _inst_6 (RingHom.id.{u2} k (Semiring.toNonAssocSemiring.{u2} k (Ring.toSemiring.{u2} k _inst_1))) _inst_7 _inst_8 _inst_9))
+Case conversion may be inaccurate. Consider using '#align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMapₓ'. -/
 /-- 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.
@@ -803,24 +1315,50 @@ variable [Module k V1] [Module k V2]
 
 include V1
 
+#print AffineMap.homothety /-
 /-- `homothety c r` is the homothety (also known as dilation) about `c` with scale factor `r`. -/
 def homothety (c : P1) (r : k) : P1 →ᵃ[k] P1 :=
   r • (id k P1 -ᵥ const k P1 c) +ᵥ const k P1 c
 #align affine_map.homothety AffineMap.homothety
+-/
 
+/- warning: affine_map.homothety_def -> AffineMap.homothety_def is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) (HVAdd.hVAdd.{max u3 u2, max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_def AffineMap.homothety_defₓ'. -/
 theorem homothety_def (c : P1) (r : k) :
     homothety c r = r • (id k P1 -ᵥ const k P1 c) +ᵥ const k P1 c :=
   rfl
 #align affine_map.homothety_def AffineMap.homothety_def
 
+/- warning: affine_map.homothety_apply -> AffineMap.homothety_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (VAdd.vadd.{u2, u3} V1 P1 (AddAction.toHasVadd.{u2, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u2} V1 (AddGroup.toSubNegMonoid.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddTorsor.toAddAction.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_3)) (SMul.smul.{u1, u2} k V1 (SMulZeroClass.toHasSmul.{u1, u2} k V1 (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} k V1 (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) r (VSub.vsub.{u2, u3} V1 P1 (AddTorsor.toHasVsub.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2) _inst_3) p c)) c)
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (HVAdd.hVAdd.{u1, u3, u3} V1 P1 P1 (instHVAdd.{u1, u3} V1 P1 (AddAction.toVAdd.{u1, u3} V1 P1 (SubNegMonoid.toAddMonoid.{u1} V1 (AddGroup.toSubNegMonoid.{u1} V1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2))) (AddTorsor.toAddAction.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_3))) (HSMul.hSMul.{u2, u1, u1} k V1 V1 (instHSMul.{u2, u1} k V1 (SMulZeroClass.toSMul.{u2, u1} k V1 (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (SMulWithZero.toSMulZeroClass.{u2, u1} k V1 (CommMonoidWithZero.toZero.{u2} k (CommSemiring.toCommMonoidWithZero.{u2} k (CommRing.toCommSemiring.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (MulActionWithZero.toSMulWithZero.{u2, u1} k V1 (Semiring.toMonoidWithZero.{u2} k (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1))) (NegZeroClass.toZero.{u1} V1 (SubNegZeroMonoid.toNegZeroClass.{u1} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u1} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u1} V1 (AddCommGroup.toDivisionAddCommMonoid.{u1} V1 _inst_2))))) (Module.toMulActionWithZero.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2) _inst_5))))) r (VSub.vsub.{u1, u3} V1 P1 (AddTorsor.toVSub.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2) _inst_3) p c)) c)
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_apply AffineMap.homothety_applyₓ'. -/
 theorem homothety_apply (c : P1) (r : k) (p : P1) : homothety c r p = r • (p -ᵥ c : V1) +ᵥ c :=
   rfl
 #align affine_map.homothety_apply AffineMap.homothety_apply
 
+/- warning: affine_map.homothety_eq_line_map -> AffineMap.homothety_eq_lineMap is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (coeFn.{max (succ u1) (succ u2) (succ u3), max (succ u1) (succ u3)} (AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u1, u1, u2, u3} k k k V1 P1 (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) _inst_2 _inst_5 _inst_3) => k -> P1) (AffineMap.hasCoeToFun.{u1, u1, u1, u2, u3} k k k V1 P1 (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) _inst_2 _inst_5 _inst_3) (AffineMap.lineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 c p) r)
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r : k) (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) p) (AffineMap.toFun.{u2, u2, u2, u1, u3} k k k V1 P1 (CommRing.toRing.{u2} k _inst_1) (Ring.toAddCommGroup.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u2} k (CommRing.toRing.{u2} k _inst_1)) (addGroupIsAddTorsor.{u2} k (AddGroupWithOne.toAddGroup.{u2} k (Ring.toAddGroupWithOne.{u2} k (CommRing.toRing.{u2} k _inst_1)))) _inst_2 _inst_5 _inst_3 (AffineMap.lineMap.{u2, u1, u3} k V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 c p) r)
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_eq_line_map AffineMap.homothety_eq_lineMapₓ'. -/
 theorem homothety_eq_lineMap (c : P1) (r : k) (p : P1) : homothety c r p = lineMap c p r :=
   rfl
 #align affine_map.homothety_eq_line_map AffineMap.homothety_eq_lineMap
 
+/- warning: affine_map.homothety_one -> AffineMap.homothety_one is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (OfNat.mk.{u1} k 1 (One.one.{u1} k (AddMonoidWithOne.toOne.{u1} k (AddGroupWithOne.toAddMonoidWithOne.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))))))) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 1 (One.toOfNat1.{u1} k (NonAssocRing.toOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_one AffineMap.homothety_oneₓ'. -/
 @[simp]
 theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 :=
   by
@@ -828,21 +1366,45 @@ theorem homothety_one (c : P1) : homothety c (1 : k) = id k P1 :=
   simp [homothety_apply]
 #align affine_map.homothety_one AffineMap.homothety_one
 
+/- warning: affine_map.homothety_apply_same -> AffineMap.homothety_apply_same is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r : k), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) c) c
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r : k), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r) c) c
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_apply_same AffineMap.homothety_apply_sameₓ'. -/
 @[simp]
 theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
   lineMap_same_apply c r
 #align affine_map.homothety_apply_same AffineMap.homothety_apply_same
 
+/- warning: affine_map.homothety_mul_apply -> AffineMap.homothety_mul_apply is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} P1 (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) p) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (coeFn.{max (succ u2) (succ u3), succ u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (fun (_x : AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) => P1 -> P1) (AffineMap.hasCoeToFun.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
+but is expected to have type
+  forall {k : Type.{u2}} {V1 : Type.{u1}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u2} k] [_inst_2 : AddCommGroup.{u1} V1] [_inst_3 : AddTorsor.{u1, u3} V1 P1 (AddCommGroup.toAddGroup.{u1} V1 _inst_2)] [_inst_5 : Module.{u2, u1} k V1 (Ring.toSemiring.{u2} k (CommRing.toRing.{u2} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u1} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k) (p : P1), Eq.{succ u3} P1 (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u2, u2, u2} k k k (instHMul.{u2} k (NonUnitalNonAssocRing.toMul.{u2} k (NonAssocRing.toNonUnitalNonAssocRing.{u2} k (Ring.toNonAssocRing.{u2} k (CommRing.toRing.{u2} k _inst_1))))) r₁ r₂)) p) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.toFun.{u2, u1, u3, u1, u3} k V1 P1 V1 P1 (CommRing.toRing.{u2} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u2, u1, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂) p))
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul_apply AffineMap.homothety_mul_applyₓ'. -/
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
   simp [homothety_apply, mul_smul]
 #align affine_map.homothety_mul_apply AffineMap.homothety_mul_apply
 
+/- warning: affine_map.homothety_mul -> AffineMap.homothety_mul is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (Distrib.toHasMul.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (AffineMap.comp.{u1, u2, u3, u2, u3, u2, u3} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HMul.hMul.{u1, u1, u1} k k k (instHMul.{u1} k (NonUnitalNonAssocRing.toMul.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) r₁ r₂)) (AffineMap.comp.{u1, u3, u2, u3, u2, u3, u2} k V1 P1 V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₁) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_mul AffineMap.homothety_mulₓ'. -/
 theorem homothety_mul (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ * r₂) = (homothety c r₁).comp (homothety c r₂) :=
   ext <| homothety_mul_apply c r₁ r₂
 #align affine_map.homothety_mul AffineMap.homothety_mul
 
+/- warning: affine_map.homothety_zero -> AffineMap.homothety_zero is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (OfNat.mk.{u1} k 0 (Zero.zero.{u1} k (MulZeroClass.toHasZero.{u1} k (NonUnitalNonAssocSemiring.toMulZeroClass.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))))))))) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (OfNat.ofNat.{u1} k 0 (Zero.toOfNat0.{u1} k (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1)))))) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c)
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_zero AffineMap.homothety_zeroₓ'. -/
 @[simp]
 theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
   by
@@ -850,28 +1412,58 @@ theorem homothety_zero (c : P1) : homothety c (0 : k) = const k P1 c :=
   simp [homothety_apply]
 #align affine_map.homothety_zero AffineMap.homothety_zero
 
+/- warning: affine_map.homothety_add -> AffineMap.homothety_add is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u2) (succ u3)} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toHasAdd.{u1} k (Ring.toDistrib.{u1} k (CommRing.toRing.{u1} k _inst_1)))) r₁ r₂)) (VAdd.vadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toHasVadd.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))) (SMul.smul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (SMulZeroClass.toHasSmul.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (SMulWithZero.toSmulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (MulZeroClass.toHasZero.{u1} k (MulZeroOneClass.toMulZeroClass.{u1} k (MonoidWithZero.toMulZeroOneClass.{u1} k (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)))))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddMonoid.toAddZeroClass.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5))))) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AddZeroClass.toHasZero.{u2} V1 (AddMonoid.toAddZeroClass.{u2} V1 (AddCommMonoid.toAddMonoid.{u2} V1 (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))))))) r₁ (VSub.vsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toHasVsub.{max u3 u2, max u2 u3} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u3}} {P1 : Type.{u2}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u3} V1] [_inst_3 : AddTorsor.{u3, u2} V1 P1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2)] [_inst_5 : Module.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2)] (c : P1) (r₁ : k) (r₂ : k), Eq.{max (succ u3) (succ u2)} (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c (HAdd.hAdd.{u1, u1, u1} k k k (instHAdd.{u1} k (Distrib.toAdd.{u1} k (NonUnitalNonAssocSemiring.toDistrib.{u1} k (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))))) r₁ r₂)) (HVAdd.hVAdd.{max u3 u2, max u2 u3, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (instHVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddAction.toVAdd.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (SubNegMonoid.toAddMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddGroup.toSubNegMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)))) (AddTorsor.toAddAction.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)))) (HSMul.hSMul.{u1, max u3 u2, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (instHSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (SMulZeroClass.toSMul.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (SMulWithZero.toSMulZeroClass.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (CommMonoidWithZero.toZero.{u1} k (CommSemiring.toCommMonoidWithZero.{u1} k (CommRing.toCommSemiring.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (MulActionWithZero.toSMulWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (AffineMap.instZeroAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (Module.toMulActionWithZero.{u1, max u3 u2} k (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u3, u2, u3} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u3} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u3} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u3} V1 (SubNegZeroMonoid.toNegZeroClass.{u3} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u3} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u3} V1 (AddCommGroup.toDivisionAddCommMonoid.{u3} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u3} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u3} V1 _inst_2) _inst_5))))))))) r₁ (VSub.vsub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddTorsor.toVSub.{max u3 u2, max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AddCommGroup.toAddGroup.{max u3 u2} (AffineMap.{u1, u3, u2, u3, u3} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u3} V1 (AddCommGroup.toAddGroup.{u3} V1 _inst_2))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5)) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.id.{u1, u3, u2} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3) (AffineMap.const.{u1, u3, u2, u3, u2} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3 c))) (AffineMap.homothety.{u1, u3, u2} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c r₂))
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_add AffineMap.homothety_addₓ'. -/
 @[simp]
 theorem homothety_add (c : P1) (r₁ r₂ : k) :
     homothety c (r₁ + r₂) = r₁ • (id k P1 -ᵥ const k P1 c) +ᵥ homothety c r₂ := by
   simp only [homothety_def, add_smul, vadd_vadd]
 #align affine_map.homothety_add AffineMap.homothety_add
 
+/- warning: affine_map.homothety_hom -> AffineMap.homothetyHom is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (MonoidHom.{u1, max u3 u2} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3)))
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_hom AffineMap.homothetyHomₓ'. -/
 /-- `homothety` as a multiplicative monoid homomorphism. -/
 def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
   ⟨homothety c, homothety_one c, homothety_mul c⟩
 #align affine_map.homothety_hom AffineMap.homothetyHom
 
+/- warning: affine_map.coe_homothety_hom -> AffineMap.coe_homothetyHom is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ (max u2 u3)) (succ u1), max (succ u1) (succ (max u2 u3))} (MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (fun (_x : MonoidHom.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (MonoidHom.hasCoeToFun.{u1, max u2 u3} k (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u1} k (NonAssocSemiring.toMulZeroOneClass.{u1} k (NonAssocRing.toNonAssocSemiring.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u3} (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.monoid.{u1, u2, u3} k V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3))) (AffineMap.homothetyHom.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (forall (ᾰ : k), (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2398 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) ᾰ) (FunLike.coe.{max (max (succ u3) (succ u2)) (succ u1), succ u3, max (succ u2) (succ u1)} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (fun (_x : k) => (fun (x._@.Mathlib.Algebra.Hom.Group._hyg.2398 : k) => AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) _x) (MulHomClass.toFunLike.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulOneClass.toMul.{u3} k (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1)))))) (MulOneClass.toMul.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) (MonoidHomClass.toMulHomClass.{max (max u3 u2) u1, u3, max u2 u1} (MonoidHom.{u3, max u1 u2} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))) k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3)) (MonoidHom.monoidHomClass.{u3, max u2 u1} k (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (MulZeroOneClass.toMulOneClass.{u3} k (NonAssocSemiring.toMulZeroOneClass.{u3} k (NonAssocRing.toNonAssocSemiring.{u3} k (Ring.toNonAssocRing.{u3} k (CommRing.toRing.{u3} k _inst_1))))) (Monoid.toMulOneClass.{max u2 u1} (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.instMonoidAffineMap.{u3, u2, u1} k V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3))))) (AffineMap.homothetyHom.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_hom AffineMap.coe_homothetyHomₓ'. -/
 @[simp]
 theorem coe_homothetyHom (c : P1) : ⇑(homothetyHom c : k →* _) = homothety c :=
   rfl
 #align affine_map.coe_homothety_hom AffineMap.coe_homothetyHom
 
+/- warning: affine_map.homothety_affine -> AffineMap.homothetyAffine is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
+but is expected to have type
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)], P1 -> (AffineMap.{u1, u1, u1, max u2 u3, max u3 u2} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (Ring.toAddCommGroup.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u1} k (CommRing.toRing.{u1} k _inst_1)) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (Ring.toAddGroupWithOne.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (smulCommClass_self.{u1, u2} k V1 (CommRing.toCommMonoid.{u1} k _inst_1) (MulActionWithZero.toMulAction.{u1, u2} k V1 (Semiring.toMonoidWithZero.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3))
+Case conversion may be inaccurate. Consider using '#align affine_map.homothety_affine AffineMap.homothetyAffineₓ'. -/
 /-- `homothety` as an affine map. -/
 def homothetyAffine (c : P1) : k →ᵃ[k] P1 →ᵃ[k] P1 :=
   ⟨homothety c, (LinearMap.lsmul k _).flip (id k P1 -ᵥ const k P1 c),
     Function.swap (homothety_add c)⟩
 #align affine_map.homothety_affine AffineMap.homothetyAffine
 
+/- warning: affine_map.coe_homothety_affine -> AffineMap.coe_homothetyAffine is a dubious translation:
+lean 3 declaration is
+  forall {k : Type.{u1}} {V1 : Type.{u2}} {P1 : Type.{u3}} [_inst_1 : CommRing.{u1} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u3} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u1, u2} k V1 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (succ u1) (succ (max u2 u3))} (k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (coeFn.{max (succ u1) (succ (max u3 u2)) (succ (max u2 u3)), max (succ u1) (succ (max u2 u3))} (AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (fun (_x : AffineMap.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) => k -> (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.hasCoeToFun.{u1, u1, u1, max u3 u2, max u2 u3} k k k (AffineMap.{u1, u2, u3, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u1} k _inst_1) (NonUnitalNonAssocRing.toAddCommGroup.{u1} k (NonAssocRing.toNonUnitalNonAssocRing.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1)))) (Semiring.toModule.{u1} k (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1))) (addGroupIsAddTorsor.{u1} k (AddGroupWithOne.toAddGroup.{u1} k (NonAssocRing.toAddGroupWithOne.{u1} k (Ring.toNonAssocRing.{u1} k (CommRing.toRing.{u1} k _inst_1))))) (AffineMap.addCommGroup.{u1, u2, u3, u2} k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.module.{u1, u1, u2, u3, u2} k k V1 P1 V1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u1} k (CommRing.toRing.{u1} k _inst_1)) _inst_5 (AffineMap.homothetyAffine._proof_1.{u1, u2} k V1 _inst_1 _inst_2 _inst_5)) (AffineMap.addTorsor.{u1, u2, u3, u2, u3} k V1 P1 V1 P1 (CommRing.toRing.{u1} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.homothetyAffine.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u1, u2, u3} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+but is expected to have type
+  forall {k : Type.{u3}} {V1 : Type.{u2}} {P1 : Type.{u1}} [_inst_1 : CommRing.{u3} k] [_inst_2 : AddCommGroup.{u2} V1] [_inst_3 : AddTorsor.{u2, u1} V1 P1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2)] [_inst_5 : Module.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2)] (c : P1), Eq.{max (max (succ u3) (succ u2)) (succ u1)} (k -> (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3)) (AffineMap.toFun.{u3, u3, u3, max u2 u1, max u2 u1} k k k (AffineMap.{u3, u2, u1, u2, u2} k V1 P1 V1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 (addGroupIsAddTorsor.{u2} V1 (AddCommGroup.toAddGroup.{u2} V1 _inst_2))) (AffineMap.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (CommRing.toRing.{u3} k _inst_1) (Ring.toAddCommGroup.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AffineMap.instModuleToSemiringToAddCommMonoidToNonUnitalNonAssocSemiringToNonUnitalNonAssocRingToNonUnitalRing.{u3} k (CommRing.toRing.{u3} k _inst_1)) (addGroupIsAddTorsor.{u3} k (AddGroupWithOne.toAddGroup.{u3} k (Ring.toAddGroupWithOne.{u3} k (CommRing.toRing.{u3} k _inst_1)))) (AffineMap.instAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2} k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5) (AffineMap.instModuleAffineMapAddGroupIsAddTorsorToAddGroupToAddCommMonoidInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u3, u2, u1, u2} k k V1 P1 V1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_3 _inst_2 _inst_5 _inst_5 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) _inst_5 (smulCommClass_self.{u3, u2} k V1 (CommRing.toCommMonoid.{u3} k _inst_1) (MulActionWithZero.toMulAction.{u3, u2} k V1 (Semiring.toMonoidWithZero.{u3} k (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1))) (NegZeroClass.toZero.{u2} V1 (SubNegZeroMonoid.toNegZeroClass.{u2} V1 (SubtractionMonoid.toSubNegZeroMonoid.{u2} V1 (SubtractionCommMonoid.toSubtractionMonoid.{u2} V1 (AddCommGroup.toDivisionAddCommMonoid.{u2} V1 _inst_2))))) (Module.toMulActionWithZero.{u3, u2} k V1 (Ring.toSemiring.{u3} k (CommRing.toRing.{u3} k _inst_1)) (AddCommGroup.toAddCommMonoid.{u2} V1 _inst_2) _inst_5)))) (AffineMap.instAddTorsorAffineMapAddGroupIsAddTorsorToAddGroupAffineMapToAddGroupInstAddCommGroupAffineMapAddGroupIsAddTorsorToAddGroup.{u3, u2, u1, u2, u1} k V1 P1 V1 P1 (CommRing.toRing.{u3} k _inst_1) _inst_2 _inst_5 _inst_3 _inst_2 _inst_5 _inst_3) (AffineMap.homothetyAffine.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)) (AffineMap.homothety.{u3, u2, u1} k V1 P1 _inst_1 _inst_2 _inst_3 _inst_5 c)
+Case conversion may be inaccurate. Consider using '#align affine_map.coe_homothety_affine AffineMap.coe_homothetyAffineₓ'. -/
 @[simp]
 theorem coe_homothetyAffine (c : P1) : ⇑(homothetyAffine c : k →ᵃ[k] _) = homothety c :=
   rfl
@@ -885,6 +1477,12 @@ section
 
 variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Module 𝕜 E] [Module 𝕜 F]
 
+/- warning: convex.combo_affine_apply -> Convex.combo_affine_apply is a dubious translation:
+lean 3 declaration is
+  forall {𝕜 : Type.{u1}} {E : Type.{u2}} {F : Type.{u3}} [_inst_1 : Ring.{u1} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u3} F] [_inst_4 : Module.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))}, (Eq.{succ u1} 𝕜 (HAdd.hAdd.{u1, u1, u1} 𝕜 𝕜 𝕜 (instHAdd.{u1} 𝕜 (Distrib.toHasAdd.{u1} 𝕜 (Ring.toDistrib.{u1} 𝕜 _inst_1))) a b) (OfNat.ofNat.{u1} 𝕜 1 (OfNat.mk.{u1} 𝕜 1 (One.one.{u1} 𝕜 (AddMonoidWithOne.toOne.{u1} 𝕜 (AddGroupWithOne.toAddMonoidWithOne.{u1} 𝕜 (NonAssocRing.toAddGroupWithOne.{u1} 𝕜 (Ring.toNonAssocRing.{u1} 𝕜 _inst_1)))))))) -> (Eq.{succ u3} F (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toHasAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) a x) (SMul.smul.{u1, u2} 𝕜 E (SMulZeroClass.toHasSmul.{u1, u2} 𝕜 E (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (SMulWithZero.toSmulZeroClass.{u1, u2} 𝕜 E (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (MulActionWithZero.toSMulWithZero.{u1, u2} 𝕜 E (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u2} E (AddMonoid.toAddZeroClass.{u2} E (AddCommMonoid.toAddMonoid.{u2} E (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)))) (Module.toMulActionWithZero.{u1, u2} 𝕜 E (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4)))) b y))) (HAdd.hAdd.{u3, u3, u3} F F F (instHAdd.{u3} F (AddZeroClass.toHasAdd.{u3} F (AddMonoid.toAddZeroClass.{u3} F (SubNegMonoid.toAddMonoid.{u3} F (AddGroup.toSubNegMonoid.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3)))))) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) a (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f x)) (SMul.smul.{u1, u3} 𝕜 F (SMulZeroClass.toHasSmul.{u1, u3} 𝕜 F (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (SMulWithZero.toSmulZeroClass.{u1, u3} 𝕜 F (MulZeroClass.toHasZero.{u1} 𝕜 (MulZeroOneClass.toMulZeroClass.{u1} 𝕜 (MonoidWithZero.toMulZeroOneClass.{u1} 𝕜 (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1))))) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (MulActionWithZero.toSMulWithZero.{u1, u3} 𝕜 F (Semiring.toMonoidWithZero.{u1} 𝕜 (Ring.toSemiring.{u1} 𝕜 _inst_1)) (AddZeroClass.toHasZero.{u3} F (AddMonoid.toAddZeroClass.{u3} F (AddCommMonoid.toAddMonoid.{u3} F (AddCommGroup.toAddCommMonoid.{u3} F _inst_3)))) (Module.toMulActionWithZero.{u1, u3} 𝕜 F (Ring.toSemiring.{u1} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u3} F _inst_3) _inst_5)))) b (coeFn.{max (succ u2) (succ u3), max (succ u2) (succ u3)} (AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) (fun (_x : AffineMap.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) => E -> F) (AffineMap.hasCoeToFun.{u1, u2, u2, u3, u3} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u3} F (AddCommGroup.toAddGroup.{u3} F _inst_3))) f y))))
+but is expected to have type
+  forall {𝕜 : Type.{u3}} {E : Type.{u2}} {F : Type.{u1}} [_inst_1 : Ring.{u3} 𝕜] [_inst_2 : AddCommGroup.{u2} E] [_inst_3 : AddCommGroup.{u1} F] [_inst_4 : Module.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2)] [_inst_5 : Module.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3)] {x : E} {y : E} {a : 𝕜} {b : 𝕜} {f : AffineMap.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3))}, (Eq.{succ u3} 𝕜 (HAdd.hAdd.{u3, u3, u3} 𝕜 𝕜 𝕜 (instHAdd.{u3} 𝕜 (Distrib.toAdd.{u3} 𝕜 (NonUnitalNonAssocSemiring.toDistrib.{u3} 𝕜 (NonUnitalNonAssocRing.toNonUnitalNonAssocSemiring.{u3} 𝕜 (NonAssocRing.toNonUnitalNonAssocRing.{u3} 𝕜 (Ring.toNonAssocRing.{u3} 𝕜 _inst_1)))))) a b) (OfNat.ofNat.{u3} 𝕜 1 (One.toOfNat1.{u3} 𝕜 (NonAssocRing.toOne.{u3} 𝕜 (Ring.toNonAssocRing.{u3} 𝕜 _inst_1))))) -> (Eq.{succ u1} F (AffineMap.toFun.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)) f (HAdd.hAdd.{u2, u2, u2} E E E (instHAdd.{u2} E (AddZeroClass.toAdd.{u2} E (AddMonoid.toAddZeroClass.{u2} E (SubNegMonoid.toAddMonoid.{u2} E (AddGroup.toSubNegMonoid.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)))))) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) a x) (HSMul.hSMul.{u3, u2, u2} 𝕜 E E (instHSMul.{u3, u2} 𝕜 E (SMulZeroClass.toSMul.{u3, u2} 𝕜 E (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (SMulWithZero.toSMulZeroClass.{u3, u2} 𝕜 E (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (MulActionWithZero.toSMulWithZero.{u3, u2} 𝕜 E (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u2} E (SubNegZeroMonoid.toNegZeroClass.{u2} E (SubtractionMonoid.toSubNegZeroMonoid.{u2} E (SubtractionCommMonoid.toSubtractionMonoid.{u2} E (AddCommGroup.toDivisionAddCommMonoid.{u2} E _inst_2))))) (Module.toMulActionWithZero.{u3, u2} 𝕜 E (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u2} E _inst_2) _inst_4))))) b y))) (HAdd.hAdd.{u1, u1, u1} F F F (instHAdd.{u1} F (AddZeroClass.toAdd.{u1} F (AddMonoid.toAddZeroClass.{u1} F (SubNegMonoid.toAddMonoid.{u1} F (AddGroup.toSubNegMonoid.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)))))) (HSMul.hSMul.{u3, u1, u1} 𝕜 F F (instHSMul.{u3, u1} 𝕜 F (SMulZeroClass.toSMul.{u3, u1} 𝕜 F (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 F (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 F (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3) _inst_5))))) a (AffineMap.toFun.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)) f x)) (HSMul.hSMul.{u3, u1, u1} 𝕜 F F (instHSMul.{u3, u1} 𝕜 F (SMulZeroClass.toSMul.{u3, u1} 𝕜 F (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (SMulWithZero.toSMulZeroClass.{u3, u1} 𝕜 F (MonoidWithZero.toZero.{u3} 𝕜 (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1))) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (MulActionWithZero.toSMulWithZero.{u3, u1} 𝕜 F (Semiring.toMonoidWithZero.{u3} 𝕜 (Ring.toSemiring.{u3} 𝕜 _inst_1)) (NegZeroClass.toZero.{u1} F (SubNegZeroMonoid.toNegZeroClass.{u1} F (SubtractionMonoid.toSubNegZeroMonoid.{u1} F (SubtractionCommMonoid.toSubtractionMonoid.{u1} F (AddCommGroup.toDivisionAddCommMonoid.{u1} F _inst_3))))) (Module.toMulActionWithZero.{u3, u1} 𝕜 F (Ring.toSemiring.{u3} 𝕜 _inst_1) (AddCommGroup.toAddCommMonoid.{u1} F _inst_3) _inst_5))))) b (AffineMap.toFun.{u3, u2, u2, u1, u1} 𝕜 E E F F _inst_1 _inst_2 _inst_4 (addGroupIsAddTorsor.{u2} E (AddCommGroup.toAddGroup.{u2} E _inst_2)) _inst_3 _inst_5 (addGroupIsAddTorsor.{u1} F (AddCommGroup.toAddGroup.{u1} F _inst_3)) f y))))
+Case conversion may be inaccurate. Consider using '#align convex.combo_affine_apply Convex.combo_affine_applyₓ'. -/
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
 theorem Convex.combo_affine_apply {x y : E} {a b : 𝕜} {f : E →ᵃ[𝕜] F} (h : a + b = 1) :

Changes in mathlib4

mathlib3
mathlib4
chore: Rename mul-div cancellation lemmas (#11530)

Lemma names around cancellation of multiplication and division are a mess.

This PR renames a handful of them according to the following table (each big row contains the multiplicative statement, then the three rows contain the GroupWithZero lemma name, the Group lemma, the AddGroup lemma name).

| Statement | New name | Old name | |

Diff
@@ -657,7 +657,7 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = ⇑f.linear + fun _ =>
 are the same. -/
 theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = ⇑f - fun _ => f 0 := by
   rw [decomp]
-  simp only [LinearMap.map_zero, Pi.add_apply, add_sub_cancel, zero_add]
+  simp only [LinearMap.map_zero, Pi.add_apply, add_sub_cancel_right, zero_add]
 #align affine_map.decomp' AffineMap.decomp'
 
 theorem image_uIcc {k : Type*} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
chore(*): remove empty lines between variable statements (#11418)

Empty lines were removed by executing the following Python script twice

import os
import re


# Loop through each file in the repository
for dir_path, dirs, files in os.walk('.'):
  for filename in files:
    if filename.endswith('.lean'):
      file_path = os.path.join(dir_path, filename)

      # Open the file and read its contents
      with open(file_path, 'r') as file:
        content = file.read()

      # Use a regular expression to replace sequences of "variable" lines separated by empty lines
      # with sequences without empty lines
      modified_content = re.sub(r'(variable.*\n)\n(variable(?! .* in))', r'\1\2', content)

      # Write the modified content back to the file
      with open(file_path, 'w') as file:
        file.write(modified_content)
Diff
@@ -709,7 +709,6 @@ variable {R k V1 P1 V2 : Type*}
 section Ring
 
 variable [Ring k] [AddCommGroup V1] [AffineSpace V1 P1] [AddCommGroup V2]
-
 variable [Module k V1] [Module k V2]
 
 section DistribMulAction
@@ -762,7 +761,6 @@ end Ring
 section CommRing
 
 variable [CommRing k] [AddCommGroup V1] [AffineSpace V1 P1] [AddCommGroup V2]
-
 variable [Module k V1] [Module k V2]
 
 /-- `homothety c r` is the homothety (also known as dilation) about `c` with scale factor `r`. -/
chore: classify new theorem / theorem porting notes (#11432)

Classifies by adding issue number #10756 to porting notes claiming anything equivalent to:

  • "added theorem"
  • "added theorems"
  • "new theorem"
  • "new theorems"
  • "added lemma"
  • "new lemma"
  • "new lemmas"
Diff
@@ -175,7 +175,7 @@ theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
   rfl
 #align affine_map.coe_const AffineMap.coe_const
 
--- Porting note: new theorem
+-- Porting note (#10756): new theorem
 @[simp]
 theorem const_apply (p : P2) (q : P1) : (const k P1 p) q = p := rfl
 
style: homogenise porting notes (#11145)

Homogenises porting notes via capitalisation and addition of whitespace.

It makes the following changes:

  • converts "--porting note" into "-- Porting note";
  • converts "porting note" into "Porting note".
Diff
@@ -226,7 +226,7 @@ section SMul
 variable {R : Type*} [Monoid R] [DistribMulAction R V2] [SMulCommClass k R V2]
 /-- The space of affine maps to a module inherits an `R`-action from the action on its codomain. -/
 instance mulAction : MulAction R (P1 →ᵃ[k] V2) where
-  -- porting note: `map_vadd` is `simp`, but we still have to pass it explicitly
+  -- Porting note: `map_vadd` is `simp`, but we still have to pass it explicitly
   smul c f := ⟨c • ⇑f, c • f.linear, fun p v => by simp [smul_add, map_vadd f]⟩
   one_smul f := ext fun p => one_smul _ _
   mul_smul c₁ c₂ f := ext fun p => mul_smul _ _ _
@@ -482,7 +482,7 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
   ext v
-  -- porting note: `simp` needs `Set.mem_vsub` to be an expression
+  -- Porting note: `simp` needs `Set.mem_vsub` to be an expression
   simp only [(Set.mem_vsub), Set.mem_image,
     exists_exists_and_eq_and, exists_and_left, ← f.linearMap_vsub]
   constructor
@@ -747,10 +747,10 @@ def toConstProdLinearMap : (V1 →ᵃ[k] V2) ≃ₗ[R] V2 × (V1 →ₗ[k] V2) w
   left_inv f := by
     ext
     rw [f.decomp]
-    simp [const_apply _ _]  -- porting note: `simp` needs `_`s to use this lemma
+    simp [const_apply _ _]  -- Porting note: `simp` needs `_`s to use this lemma
   right_inv := by
     rintro ⟨v, f⟩
-    ext <;> simp [const_apply _ _, const_linear _ _]  -- porting note: `simp` needs `_`s
+    ext <;> simp [const_apply _ _, const_linear _ _]  -- Porting note: `simp` needs `_`s
   map_add' := by simp
   map_smul' := by simp
 #align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMap
refactor(*): abbreviation for non-dependent FunLike (#9833)

This follows up from #9785, which renamed FunLike to DFunLike, by introducing a new abbreviation FunLike F α β := DFunLike F α (fun _ => β), to make the non-dependent use of FunLike easier.

I searched for the pattern DFunLike.*fun and DFunLike.*λ in all files to replace expressions of the form DFunLike F α (fun _ => β) with FunLike F α β. I did this everywhere except for extends clauses for two reasons: it would conflict with #8386, and more importantly extends must directly refer to a structure with no unfolding of defs or abbrevs.

Diff
@@ -59,9 +59,9 @@ structure AffineMap (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Typ
 induces a corresponding linear map from `V1` to `V2`. -/
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
-instance AffineMap.instDFunLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
+instance AffineMap.instFunLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
     [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
-    [AffineSpace V2 P2] : DFunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
+    [AffineSpace V2 P2] : FunLike (P1 →ᵃ[k] P2) P1 P2
     where
   coe := AffineMap.toFun
   coe_injective' := fun ⟨f, f_linear, f_add⟩ ⟨g, g_linear, g_add⟩ => fun (h : f = g) => by
@@ -69,7 +69,7 @@ instance AffineMap.instDFunLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type
     congr with v
     apply vadd_right_cancel (f p)
     erw [← f_add, h, ← g_add]
-#align affine_map.fun_like AffineMap.instDFunLike
+#align affine_map.fun_like AffineMap.instFunLike
 
 instance AffineMap.hasCoeToFun (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
     [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
chore(*): rename FunLike to DFunLike (#9785)

This prepares for the introduction of a non-dependent synonym of FunLike, which helps a lot with keeping #8386 readable.

This is entirely search-and-replace in 680197f combined with manual fixes in 4145626, e900597 and b8428f8. The commands that generated this change:

sed -i 's/\bFunLike\b/DFunLike/g' {Archive,Counterexamples,Mathlib,test}/**/*.lean
sed -i 's/\btoFunLike\b/toDFunLike/g' {Archive,Counterexamples,Mathlib,test}/**/*.lean
sed -i 's/import Mathlib.Data.DFunLike/import Mathlib.Data.FunLike/g' {Archive,Counterexamples,Mathlib,test}/**/*.lean
sed -i 's/\bHom_FunLike\b/Hom_DFunLike/g' {Archive,Counterexamples,Mathlib,test}/**/*.lean     
sed -i 's/\binstFunLike\b/instDFunLike/g' {Archive,Counterexamples,Mathlib,test}/**/*.lean
sed -i 's/\bfunLike\b/instDFunLike/g' {Archive,Counterexamples,Mathlib,test}/**/*.lean
sed -i 's/\btoo many metavariables to apply `fun_like.has_coe_to_fun`/too many metavariables to apply `DFunLike.hasCoeToFun`/g' {Archive,Counterexamples,Mathlib,test}/**/*.lean

Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>

Diff
@@ -59,9 +59,9 @@ structure AffineMap (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Typ
 induces a corresponding linear map from `V1` to `V2`. -/
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
-instance AffineMap.funLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
+instance AffineMap.instDFunLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
     [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
-    [AffineSpace V2 P2] : FunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
+    [AffineSpace V2 P2] : DFunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
     where
   coe := AffineMap.toFun
   coe_injective' := fun ⟨f, f_linear, f_add⟩ ⟨g, g_linear, g_add⟩ => fun (h : f = g) => by
@@ -69,12 +69,12 @@ instance AffineMap.funLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P
     congr with v
     apply vadd_right_cancel (f p)
     erw [← f_add, h, ← g_add]
-#align affine_map.fun_like AffineMap.funLike
+#align affine_map.fun_like AffineMap.instDFunLike
 
 instance AffineMap.hasCoeToFun (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
     [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
     [AffineSpace V2 P2] : CoeFun (P1 →ᵃ[k] P2) fun _ => P1 → P2 :=
-  FunLike.hasCoeToFun
+  DFunLike.hasCoeToFun
 #align affine_map.has_coe_to_fun AffineMap.hasCoeToFun
 
 namespace LinearMap
@@ -140,7 +140,7 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
 theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
-  FunLike.ext _ _ h
+  DFunLike.ext _ _ h
 #align affine_map.ext AffineMap.ext
 
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
@@ -148,7 +148,7 @@ theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
 #align affine_map.ext_iff AffineMap.ext_iff
 
 theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) (⇑) :=
-  FunLike.coe_injective
+  DFunLike.coe_injective
 #align affine_map.coe_fn_injective AffineMap.coeFn_injective
 
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
chore(*): use α → β instead of ∀ _ : α, β (#9529)
Diff
@@ -673,7 +673,7 @@ theorem image_uIcc {k : Type*} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b :
 
 section
 
-variable {ι : Type*} {V : ∀ _ : ι, Type*} {P : ∀ _ : ι, Type*} [∀ i, AddCommGroup (V i)]
+variable {ι : Type*} {V : ι → Type*} {P : ι → Type*} [∀ i, AddCommGroup (V i)]
   [∀ i, Module k (V i)] [∀ i, AddTorsor (V i) (P i)]
 
 /-- Evaluation at a point as an affine map. -/
fix: decapitalize names of proof-valued fields (#8509)

Only Prop-values fields should be capitalized, not P-valued fields where P is Prop-valued.

Rather than fixing Nonempty := in constructors, I just deleted the line as the instance can almost always be found automatically.

Diff
@@ -65,7 +65,7 @@ instance AffineMap.funLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P
     where
   coe := AffineMap.toFun
   coe_injective' := fun ⟨f, f_linear, f_add⟩ ⟨g, g_linear, g_add⟩ => fun (h : f = g) => by
-    cases' (AddTorsor.Nonempty : Nonempty P1) with p
+    cases' (AddTorsor.nonempty : Nonempty P1) with p
     congr with v
     apply vadd_right_cancel (f p)
     erw [← f_add, h, ← g_add]
@@ -198,7 +198,7 @@ theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) :
 #align affine_map.linear_eq_zero_iff_exists_const AffineMap.linear_eq_zero_iff_exists_const
 
 instance nonempty : Nonempty (P1 →ᵃ[k] P2) :=
-  (AddTorsor.Nonempty : Nonempty P2).elim fun p => ⟨const k P1 p⟩
+  (AddTorsor.nonempty : Nonempty P2).map <| const k P1
 #align affine_map.nonempty AffineMap.nonempty
 
 /-- Construct an affine map by verifying the relation between the map and its linear part at one
chore: remove porting notes about simp [(lemma)] (#8227)

Most (but not all) of these are now fixed, presumably due to the latest lean release.

There is still one porting note that remains, about a (Submonoid.smul_def) that cannot be un-parenthesized.

Diff
@@ -250,14 +250,10 @@ end SMul
 instance : Zero (P1 →ᵃ[k] V2) where zero := ⟨0, 0, fun _ _ => (zero_vadd _ _).symm⟩
 
 instance : Add (P1 →ᵃ[k] V2) where
-  add f g := ⟨f + g, f.linear + g.linear,
-      -- porting note: `simp` needs lemmas to be expressions
-      fun p v => by simp [add_add_add_comm, (map_vadd)]⟩
+  add f g := ⟨f + g, f.linear + g.linear, fun p v => by simp [add_add_add_comm]⟩
 
 instance : Sub (P1 →ᵃ[k] V2) where
-  sub f g := ⟨f - g, f.linear - g.linear,
-      -- porting note: `simp` needs lemmas to be expressions
-      fun p v => by simp [sub_add_sub_comm, (map_vadd)]⟩
+  sub f g := ⟨f - g, f.linear - g.linear, fun p v => by simp [sub_add_sub_comm]⟩
 
 instance : Neg (P1 →ᵃ[k] V2) where
   neg f := ⟨-f, -f.linear, fun p v => by simp [add_comm, map_vadd f]⟩
@@ -312,16 +308,12 @@ from `P1` to the vector space `V2` corresponding to `P2`. -/
 instance : AffineSpace (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2) where
   vadd f g :=
     ⟨fun p => f p +ᵥ g p, f.linear + g.linear,
-      -- porting note: `simp` needs lemmas to be expressions
-      letI : AddAction V2 P2 := inferInstance
-      fun p v => by simp [vadd_vadd, add_right_comm, (map_vadd)]⟩
+      fun p v => by simp [vadd_vadd, add_right_comm]⟩
   zero_vadd f := ext fun p => zero_vadd _ (f p)
   add_vadd f₁ f₂ f₃ := ext fun p => add_vadd (f₁ p) (f₂ p) (f₃ p)
   vsub f g :=
     ⟨fun p => f p -ᵥ g p, f.linear - g.linear, fun p v => by
-      -- porting note: `simp` needs lemmas to be expressions
-      simp [(map_vadd), (vsub_vadd_eq_vsub_sub), (vadd_vsub_assoc),
-        add_sub, sub_add_eq_add_sub]⟩
+      simp [vsub_vadd_eq_vsub_sub, vadd_vsub_assoc, add_sub, sub_add_eq_add_sub]⟩
   vsub_vadd' f g := ext fun p => vsub_vadd (f p) (g p)
   vadd_vsub' f g := ext fun p => vadd_vsub (f p) (g p)
 
@@ -542,9 +534,7 @@ theorem lineMap_linear (p₀ p₁ : P1) :
 #align affine_map.line_map_linear AffineMap.lineMap_linear
 
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by
-  letI : AddAction V1 P1 := inferInstance
-  -- porting note: `simp` needs lemmas to be expressions
-  simp [(lineMap_apply), (vsub_self)]
+  simp [lineMap_apply]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
 
 @[simp]
@@ -554,15 +544,12 @@ theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
 
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by
-  letI : AddAction V1 P1 := inferInstance
-  -- porting note: `simp` needs lemmas to be expressions
-  simp [(lineMap_apply)]
+  simp [lineMap_apply]
 #align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zero
 
 @[simp]
 theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ := by
-  -- porting note: `simp` needs lemmas to be expressions
-  simp [(lineMap_apply), (vsub_vadd)]
+  simp [lineMap_apply]
 #align affine_map.line_map_apply_one AffineMap.lineMap_apply_one
 
 @[simp]
@@ -596,8 +583,7 @@ variable {k}
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
     f (lineMap p₀ p₁ c) = lineMap (f p₀) (f p₁) c := by
-  -- porting note: `simp` needs lemmas to be expressions
-  simp [(lineMap_apply), (map_vadd), (linearMap_vsub)]
+  simp [lineMap_apply]
 #align affine_map.apply_line_map AffineMap.apply_lineMap
 
 @[simp]
perf: remove overspecified fields (#6965)

This removes redundant field values of the form add := add for smaller terms and less unfolding during unification.

A list of all files containing a structure instance of the form { a1, ... with x1 := val, ... } where some xi is a field of some aj was generated by modifying the structure instance elaboration algorithm to print such overlaps to stdout in a custom toolchain.

Using that toolchain, I went through each file on the list and attempted to remove algebraic fields that overlapped and were redundant, eg add := add and not toFun (though some other ones did creep in). If things broke (which was the case in a couple of cases), I did not push further and reverted.

It is possible that pushing harder and trying to remove all redundant overlaps will yield further improvements.

Diff
@@ -744,7 +744,6 @@ variable [Semiring R] [Module R V2] [SMulCommClass k R V2]
 /-- The space of affine maps taking values in an `R`-module is an `R`-module. -/
 instance : Module R (P1 →ᵃ[k] V2) :=
   { AffineMap.distribMulAction with
-    smul := (· • ·)
     add_smul := fun _ _ _ => ext fun _ => add_smul _ _ _
     zero_smul := fun _ => ext fun _ => zero_smul _ _ }
 
style: fix wrapping of where (#7149)
Diff
@@ -249,18 +249,18 @@ end SMul
 
 instance : Zero (P1 →ᵃ[k] V2) where zero := ⟨0, 0, fun _ _ => (zero_vadd _ _).symm⟩
 
-instance : Add (P1 →ᵃ[k] V2)
-    where add f g := ⟨f + g, f.linear + g.linear,
+instance : Add (P1 →ᵃ[k] V2) where
+  add f g := ⟨f + g, f.linear + g.linear,
       -- porting note: `simp` needs lemmas to be expressions
       fun p v => by simp [add_add_add_comm, (map_vadd)]⟩
 
-instance : Sub (P1 →ᵃ[k] V2)
-    where sub f g := ⟨f - g, f.linear - g.linear,
+instance : Sub (P1 →ᵃ[k] V2) where
+  sub f g := ⟨f - g, f.linear - g.linear,
       -- porting note: `simp` needs lemmas to be expressions
       fun p v => by simp [sub_add_sub_comm, (map_vadd)]⟩
 
-instance : Neg (P1 →ᵃ[k] V2)
-    where neg f := ⟨-f, -f.linear, fun p v => by simp [add_comm, map_vadd f]⟩
+instance : Neg (P1 →ᵃ[k] V2) where
+  neg f := ⟨-f, -f.linear, fun p v => by simp [add_comm, map_vadd f]⟩
 
 @[simp, norm_cast]
 theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
chore: remove autoImplicit in LinearAlgebra (#6634)

In Mathlib/LinearAlgebra/Dual.lean we also overhaul the universe argument names, as the file switched between two conventions and making up undeclared universe variables.

Mathlib/LinearAlgebra/Prod.lean invented some new variables even though it already had plenty available.

Diff
@@ -43,8 +43,6 @@ topology are defined elsewhere; see `Analysis.NormedSpace.AddTorsor` and
 * https://en.wikipedia.org/wiki/Principal_homogeneous_space
 -/
 
-set_option autoImplicit true
-
 open Affine
 
 /-- An `AffineMap k P1 P2` (notation: `P1 →ᵃ[k] P2`) is a map from `P1` to `P2` that
@@ -179,7 +177,7 @@ theorem coe_const (p : P2) : ⇑(const k P1 p) = Function.const P1 p :=
 
 -- Porting note: new theorem
 @[simp]
-theorem const_apply (p : P2) : (const k P1 p) q = p := rfl
+theorem const_apply (p : P2) (q : P1) : (const k P1 p) q = p := rfl
 
 @[simp]
 theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
fix: disable autoImplicit globally (#6528)

Autoimplicits are highly controversial and also defeat the performance-improving work in #6474.

The intent of this PR is to make autoImplicit opt-in on a per-file basis, by disabling it in the lakefile and enabling it again with set_option autoImplicit true in the few files that rely on it.

That also keeps this PR small, as opposed to attempting to "fix" files to not need it any more.

I claim that many of the uses of autoImplicit in these files are accidental; situations such as:

  • Assuming variables are in scope, but pasting the lemma in the wrong section
  • Pasting in a lemma from a scratch file without checking to see if the variable names are consistent with the rest of the file
  • Making a copy-paste error between lemmas and forgetting to add an explicit arguments.

Having set_option autoImplicit false as the default prevents these types of mistake being made in the 90% of files where autoImplicits are not used at all, and causes them to be caught by CI during review.

I think there were various points during the port where we encouraged porters to delete the universes u v lines; I think having autoparams for universe variables only would cover a lot of the cases we actually use them, while avoiding any real shortcomings.

A Zulip poll (after combining overlapping votes accordingly) was in favor of this change with 5:5:18 as the no:dontcare:yes vote ratio.

While this PR was being reviewed, a handful of files gained some more likely-accidental autoImplicits. In these places, set_option autoImplicit true has been placed locally within a section, rather than at the top of the file.

Diff
@@ -43,6 +43,8 @@ topology are defined elsewhere; see `Analysis.NormedSpace.AddTorsor` and
 * https://en.wikipedia.org/wiki/Principal_homogeneous_space
 -/
 
+set_option autoImplicit true
+
 open Affine
 
 /-- An `AffineMap k P1 P2` (notation: `P1 →ᵃ[k] P2`) is a map from `P1` to `P2` that
chore: banish Type _ and Sort _ (#6499)

We remove all possible occurences of Type _ and Sort _ in favor of Type* and Sort*.

This has nice performance benefits.

Diff
@@ -47,7 +47,7 @@ open Affine
 
 /-- 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`. -/
-structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _) [Ring k]
+structure AffineMap (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*) [Ring k]
   [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
   [AffineSpace V2 P2] where
   toFun : P1 → P2
@@ -59,7 +59,7 @@ structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 :
 induces a corresponding linear map from `V1` to `V2`. -/
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
-instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+instance AffineMap.funLike (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
     [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
     [AffineSpace V2 P2] : FunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
     where
@@ -71,7 +71,7 @@ instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _
     erw [← f_add, h, ← g_add]
 #align affine_map.fun_like AffineMap.funLike
 
-instance AffineMap.hasCoeToFun (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+instance AffineMap.hasCoeToFun (k : Type*) {V1 : Type*} (P1 : Type*) {V2 : Type*} (P2 : Type*)
     [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
     [AffineSpace V2 P2] : CoeFun (P1 →ᵃ[k] P2) fun _ => P1 → P2 :=
   FunLike.hasCoeToFun
@@ -79,7 +79,7 @@ instance AffineMap.hasCoeToFun (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Ty
 
 namespace LinearMap
 
-variable {k : Type _} {V₁ : Type _} {V₂ : Type _} [Ring k] [AddCommGroup V₁] [Module k V₁]
+variable {k : Type*} {V₁ : Type*} {V₂ : Type*} [Ring k] [AddCommGroup V₁] [Module k V₁]
   [AddCommGroup V₂] [Module k V₂] (f : V₁ →ₗ[k] V₂)
 
 /-- Reinterpret a linear map as an affine map. -/
@@ -103,8 +103,8 @@ end LinearMap
 
 namespace AffineMap
 
-variable {k : Type _} {V1 : Type _} {P1 : Type _} {V2 : Type _} {P2 : Type _} {V3 : Type _}
-  {P3 : Type _} {V4 : Type _} {P4 : Type _} [Ring k] [AddCommGroup V1] [Module k V1]
+variable {k : Type*} {V1 : Type*} {P1 : Type*} {V2 : Type*} {P2 : Type*} {V3 : Type*}
+  {P3 : Type*} {V4 : Type*} {P4 : Type*} [Ring k] [AddCommGroup V1] [Module k V1]
   [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2] [AffineSpace V2 P2] [AddCommGroup V3]
   [Module k V3] [AffineSpace V3 P3] [AddCommGroup V4] [Module k V4] [AffineSpace V4 P4]
 
@@ -223,7 +223,7 @@ theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h)
 
 section SMul
 
-variable {R : Type _} [Monoid R] [DistribMulAction R V2] [SMulCommClass k R V2]
+variable {R : Type*} [Monoid R] [DistribMulAction R V2] [SMulCommClass k R V2]
 /-- The space of affine maps to a module inherits an `R`-action from the action on its codomain. -/
 instance mulAction : MulAction R (P1 →ᵃ[k] V2) where
   -- porting note: `map_vadd` is `simp`, but we still have to pass it explicitly
@@ -674,7 +674,7 @@ theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = ⇑f - fun _ =>
   simp only [LinearMap.map_zero, Pi.add_apply, add_sub_cancel, zero_add]
 #align affine_map.decomp' AffineMap.decomp'
 
-theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
+theorem image_uIcc {k : Type*} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) := by
   have : ⇑f = (fun x => x + f 0) ∘ fun x => x * (f 1 - f 0) := by
     ext x
@@ -687,7 +687,7 @@ theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b
 
 section
 
-variable {ι : Type _} {V : ∀ _ : ι, Type _} {P : ∀ _ : ι, Type _} [∀ i, AddCommGroup (V i)]
+variable {ι : Type*} {V : ∀ _ : ι, Type*} {P : ∀ _ : ι, Type*} [∀ i, AddCommGroup (V i)]
   [∀ i, Module k (V i)] [∀ i, AddTorsor (V i) (P i)]
 
 /-- Evaluation at a point as an affine map. -/
@@ -718,7 +718,7 @@ end AffineMap
 
 namespace AffineMap
 
-variable {R k V1 P1 V2 : Type _}
+variable {R k V1 P1 V2 : Type*}
 
 section Ring
 
@@ -860,7 +860,7 @@ end AffineMap
 
 section
 
-variable {𝕜 E F : Type _} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Module 𝕜 E] [Module 𝕜 F]
+variable {𝕜 E F : Type*} [Ring 𝕜] [AddCommGroup E] [AddCommGroup F] [Module 𝕜 E] [Module 𝕜 F]
 
 /-- Applying an affine map to an affine combination of two points yields an affine combination of
 the images. -/
chore: script to replace headers with #align_import statements (#5979)

Open in Gitpod

Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Scott Morrison <scott.morrison@gmail.com>

Diff
@@ -2,11 +2,6 @@
 Copyright (c) 2020 Joseph Myers. All rights reserved.
 Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Joseph Myers
-
-! This file was ported from Lean 3 source module linear_algebra.affine_space.affine_map
-! leanprover-community/mathlib commit bd1fc183335ea95a9519a1630bcf901fe9326d83
-! Please do not edit these lines, except to modify the commit id
-! if you have ported upstream changes.
 -/
 import Mathlib.Data.Set.Pointwise.Interval
 import Mathlib.LinearAlgebra.AffineSpace.Basic
@@ -14,6 +9,8 @@ import Mathlib.LinearAlgebra.BilinearMap
 import Mathlib.LinearAlgebra.Pi
 import Mathlib.LinearAlgebra.Prod
 
+#align_import linear_algebra.affine_space.affine_map from "leanprover-community/mathlib"@"bd1fc183335ea95a9519a1630bcf901fe9326d83"
+
 /-!
 # Affine maps
 
chore: fix upper/lowercase in comments (#4360)
  • Run a non-interactive version of fix-comments.py on all files.
  • Go through the diff and manually add/discard/edit chunks.
Diff
@@ -32,7 +32,7 @@ This file defines affine maps.
 
 ## Implementation notes
 
-`out_param` is used in the definition of `[AddTorsor V P]` to make `V` an implicit argument
+`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`.
 
chore: whitespace changes remaining after merging lean#2074 workarounds (#4032)

Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Mauricio Collares <mauricio@collares.org>

Diff
@@ -46,7 +46,6 @@ topology are defined elsewhere; see `Analysis.NormedSpace.AddTorsor` and
 * https://en.wikipedia.org/wiki/Principal_homogeneous_space
 -/
 
-
 open Affine
 
 /-- An `AffineMap k P1 P2` (notation: `P1 →ᵃ[k] P2`) is a map from `P1` to `P2` that
@@ -506,7 +505,6 @@ theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
 
 /-! ### Definition of `AffineMap.lineMap` and lemmas about it -/
 
-
 /-- The affine map from `k` to `P1` sending `0` to `p₀` and `1` to `p₁`. -/
 def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
   ((LinearMap.id : k →ₗ[k] k).smulRight (p₁ -ᵥ p₀)).toAffineMap +ᵥ const k k p₀
chore: delete 2074 references (#4030)
Diff
@@ -46,8 +46,6 @@ topology are defined elsewhere; see `Analysis.NormedSpace.AddTorsor` and
 * https://en.wikipedia.org/wiki/Principal_homogeneous_space
 -/
 
--- Porting note: Workaround for lean4#2074
-attribute [-instance] Ring.toNonAssocRing
 
 open Affine
 
@@ -247,10 +245,6 @@ theorem smul_linear (t : R) (f : P1 →ᵃ[k] V2) : (t • f).linear = t • f.l
   rfl
 #align affine_map.smul_linear AffineMap.smul_linear
 
--- Porting note: Workaround for lean4#2074
-instance [DistribMulAction Rᵐᵒᵖ V2] [IsCentralScalar R V2] : SMulCommClass k Rᵐᵒᵖ V2 :=
-SMulCommClass.op_right
-
 instance isCentralScalar [DistribMulAction Rᵐᵒᵖ V2] [IsCentralScalar R V2] :
   IsCentralScalar R (P1 →ᵃ[k] V2) where
     op_smul_eq_smul _r _x := ext fun _ => op_smul_eq_smul _ _
@@ -512,8 +506,6 @@ theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
 
 /-! ### Definition of `AffineMap.lineMap` and lemmas about it -/
 
--- Porting note: Workaround for lean4#2074
-instance : Module k k := Semiring.toModule
 
 /-- The affine map from `k` to `P1` sending `0` to `p₀` and `1` to `p₁`. -/
 def lineMap (p₀ p₁ : P1) : k →ᵃ[k] P1 :=
@@ -703,9 +695,6 @@ section
 variable {ι : Type _} {V : ∀ _ : ι, Type _} {P : ∀ _ : ι, Type _} [∀ i, AddCommGroup (V i)]
   [∀ i, Module k (V i)] [∀ i, AddTorsor (V i) (P i)]
 
--- Workaround for lean4#2074
-instance : AffineSpace (∀ i : ι, (V i)) (∀ i : ι, P i) := Pi.instAddTorsorForAllForAllAddGroup
-
 /-- Evaluation at a point as an affine map. -/
 def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i where
   toFun f := f i
@@ -766,12 +755,6 @@ instance : Module R (P1 →ᵃ[k] V2) :=
 
 variable (R)
 
--- Porting note: Workarounds for lean4#2074
-instance : AddCommMonoid (V1 →ₗ[k] V2) := LinearMap.addCommMonoid
-instance : AddCommMonoid (V2 × (V1 →ₗ[k] V2)) := Prod.instAddCommMonoidSum
-instance : Module R (V1 →ₗ[k] V2) := LinearMap.instModuleLinearMapAddCommMonoid
-instance : Module R (V2 × (V1 →ₗ[k] V2)) := Prod.module
-
 /-- 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.
chore: bye-bye, solo bys! (#3825)

This PR puts, with one exception, every single remaining by that lies all by itself on its own line to the previous line, thus matching the current behaviour of start-port.sh. The exception is when the by begins the second or later argument to a tuple or anonymous constructor; see https://github.com/leanprover-community/mathlib4/pull/3825#discussion_r1186702599.

Essentially this is s/\n *by$/ by/g, but with manual editing to satisfy the linter's max-100-char-line requirement. The Python style linter is also modified to catch these "isolated bys".

Diff
@@ -192,8 +192,8 @@ theorem const_linear (p : P2) : (const k P1 p).linear = 0 :=
 
 variable {k P1}
 
-theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) : f.linear = 0 ↔ ∃ q, f = const k P1 q :=
-  by
+theorem linear_eq_zero_iff_exists_const (f : P1 →ᵃ[k] P2) :
+    f.linear = 0 ↔ ∃ q, f = const k P1 q := by
   refine' ⟨fun h => _, fun h => _⟩
   · use f (Classical.arbitrary P1)
     ext
@@ -475,8 +475,7 @@ def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1 where
 theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
     Function.Injective f.linear ↔ Function.Injective f := by
   obtain ⟨p⟩ := (inferInstance : Nonempty P1)
-  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p :=
-    by
+  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p := by
     ext v
     simp [f.map_vadd, vadd_vsub_assoc]
   rw [h, Equiv.comp_injective, Equiv.injective_comp]
@@ -486,8 +485,7 @@ theorem linear_injective_iff (f : P1 →ᵃ[k] P2) :
 theorem linear_surjective_iff (f : P1 →ᵃ[k] P2) :
     Function.Surjective f.linear ↔ Function.Surjective f := by
   obtain ⟨p⟩ := (inferInstance : Nonempty P1)
-  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p :=
-    by
+  have h : ⇑f.linear = (Equiv.vaddConst (f p)).symm ∘ f ∘ Equiv.vaddConst p := by
     ext v
     simp [f.map_vadd, vadd_vsub_assoc]
   rw [h, Equiv.comp_surjective, Equiv.surjective_comp]
chore: fix #align lines (#3640)

This PR fixes two things:

  • Most align statements for definitions and theorems and instances that are separated by two newlines from the relevant declaration (s/\n\n#align/\n#align). This is often seen in the mathport output after ending calc blocks.
  • All remaining more-than-one-line #align statements. (This was needed for a script I wrote for #3630.)
Diff
@@ -680,7 +680,6 @@ theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = ⇑f.linear + fun _ =>
   calc
     f x = f.linear x +ᵥ f 0 := by rw [← f.map_vadd, vadd_eq_add, add_zero]
     _ = (f.linear + fun _ : V1 => f 0) x := rfl
-
 #align affine_map.decomp AffineMap.decomp
 
 /-- Decomposition of an affine map in the special case when the point space and vector space
chore: tidy various files (#3474)
Diff
@@ -121,7 +121,7 @@ theorem coe_mk (f : P1 → P2) (linear add) : ((mk f linear add : P1 →ᵃ[k] P
   rfl
 #align affine_map.coe_mk AffineMap.coe_mk
 
-/-- `to_fun` is the same as the result of coercing to a function. -/
+/-- `toFun` is the same as the result of coercing to a function. -/
 @[simp]
 theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
   rfl
chore: bump to nightly-2023-04-11 (#3139)
Diff
@@ -171,7 +171,9 @@ variable (k P1)
 def const (p : P2) : P1 →ᵃ[k] P2 where
   toFun := Function.const P1 p
   linear := 0
-  map_vadd' _ _ := by simp
+  map_vadd' _ _ :=
+    letI : AddAction V2 P2 := inferInstance
+    by simp
 #align affine_map.const AffineMap.const
 
 @[simp]
@@ -321,6 +323,7 @@ instance : AffineSpace (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2) where
   vadd f g :=
     ⟨fun p => f p +ᵥ g p, f.linear + g.linear,
       -- porting note: `simp` needs lemmas to be expressions
+      letI : AddAction V2 P2 := inferInstance
       fun p v => by simp [vadd_vadd, add_right_comm, (map_vadd)]⟩
   zero_vadd f := ext fun p => zero_vadd _ (f p)
   add_vadd f₁ f₂ f₃ := ext fun p => add_vadd (f₁ p) (f₂ p) (f₃ p)
@@ -554,6 +557,7 @@ theorem lineMap_linear (p₀ p₁ : P1) :
 #align affine_map.line_map_linear AffineMap.lineMap_linear
 
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by
+  letI : AddAction V1 P1 := inferInstance
   -- porting note: `simp` needs lemmas to be expressions
   simp [(lineMap_apply), (vsub_self)]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
@@ -565,6 +569,7 @@ theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
 
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by
+  letI : AddAction V1 P1 := inferInstance
   -- porting note: `simp` needs lemmas to be expressions
   simp [(lineMap_apply)]
 #align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zero
chore: forward port leanprover-community/mathlib#18575 (#2899)

This somewhat re-ports the file from scratch (by manually cleaning up the mathport output to remove all the meta comments), as lots of workarounds were added in #2570 to deal with coercion issues.

All proof changes are restoring the mathport proofs, except for small modifications to use simp [(foo)] instead of simp [foo] or simp (where foo was already a simp lemma).

leanprover-community/mathlib#18575

Diff
@@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
 Authors: Joseph Myers
 
 ! This file was ported from Lean 3 source module linear_algebra.affine_space.affine_map
-! leanprover-community/mathlib commit 9003f28797c0664a49e4179487267c494477d853
+! leanprover-community/mathlib commit bd1fc183335ea95a9519a1630bcf901fe9326d83
 ! Please do not edit these lines, except to modify the commit id
 ! if you have ported upstream changes.
 -/
@@ -46,43 +46,48 @@ topology are defined elsewhere; see `Analysis.NormedSpace.AddTorsor` and
 * https://en.wikipedia.org/wiki/Principal_homogeneous_space
 -/
 
-open Affine
-
-section defn
-
-variable (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _) [Ring k]
-  [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
-  [AffineSpace V2 P2]
 -- Porting note: Workaround for lean4#2074
 attribute [-instance] Ring.toNonAssocRing
 
+open Affine
+
 /-- 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`. -/
-structure AffineMap where
+structure AffineMap (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _) [Ring k]
+  [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
+  [AffineSpace V2 P2] where
   toFun : P1 → P2
   linear : V1 →ₗ[k] V2
   map_vadd' : ∀ (p : P1) (v : V1), toFun (v +ᵥ p) = linear v +ᵥ toFun p
 #align affine_map AffineMap
 
-end defn
-
 /-- 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`. -/
 notation:25 P1 " →ᵃ[" k:25 "] " P2:0 => AffineMap k P1 P2
 
-instance (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _) [Ring k]
-    [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
+instance AffineMap.funLike (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+    [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
+    [AffineSpace V2 P2] : FunLike (P1 →ᵃ[k] P2) P1 fun _ => P2
+    where
+  coe := AffineMap.toFun
+  coe_injective' := fun ⟨f, f_linear, f_add⟩ ⟨g, g_linear, g_add⟩ => fun (h : f = g) => by
+    cases' (AddTorsor.Nonempty : Nonempty P1) with p
+    congr with v
+    apply vadd_right_cancel (f p)
+    erw [← f_add, h, ← g_add]
+#align affine_map.fun_like AffineMap.funLike
+
+instance AffineMap.hasCoeToFun (k : Type _) {V1 : Type _} (P1 : Type _) {V2 : Type _} (P2 : Type _)
+    [Ring k] [AddCommGroup V1] [Module k V1] [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2]
     [AffineSpace V2 P2] : CoeFun (P1 →ᵃ[k] P2) fun _ => P1 → P2 :=
-  ⟨AffineMap.toFun⟩
+  FunLike.hasCoeToFun
+#align affine_map.has_coe_to_fun AffineMap.hasCoeToFun
 
 namespace LinearMap
 
 variable {k : Type _} {V₁ : Type _} {V₂ : Type _} [Ring k] [AddCommGroup V₁] [Module k V₁]
   [AddCommGroup V₂] [Module k V₂] (f : V₁ →ₗ[k] V₂)
 
--- Porting note: Workaround for lean4#2074
-attribute [-instance] Ring.toNonAssocRing
-
 /-- Reinterpret a linear map as an affine map. -/
 def toAffineMap : V₁ →ᵃ[k] V₂ where
   toFun := f
@@ -109,22 +114,18 @@ variable {k : Type _} {V1 : Type _} {P1 : Type _} {V2 : Type _} {P2 : Type _} {V
   [AffineSpace V1 P1] [AddCommGroup V2] [Module k V2] [AffineSpace V2 P2] [AddCommGroup V3]
   [Module k V3] [AffineSpace V3 P3] [AddCommGroup V4] [Module k V4] [AffineSpace V4 P4]
 
--- Porting note: Workaround for lean4#2074
-attribute [-instance] Ring.toNonAssocRing
-
 /-- Constructing an affine map and coercing back to a function
 produces the same map. -/
---@[simp] -- Porting note: can be proved `by simp only`
+@[simp]
 theorem coe_mk (f : P1 → P2) (linear add) : ((mk f linear add : P1 →ᵃ[k] P2) : P1 → P2) = f :=
-  by simp only []
+  rfl
 #align affine_map.coe_mk AffineMap.coe_mk
 
-/- Porting note: syntactic tautology
-/-- `toFun` is the same as the result of coercing to a function. -/
+/-- `to_fun` is the same as the result of coercing to a function. -/
 @[simp]
 theorem toFun_eq_coe (f : P1 →ᵃ[k] P2) : f.toFun = ⇑f :=
   rfl
-#align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coe-/
+#align affine_map.to_fun_eq_coe AffineMap.toFun_eq_coe
 
 /-- 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
@@ -144,22 +145,16 @@ theorem linearMap_vsub (f : P1 →ᵃ[k] P2) (p1 p2 : P1) : f.linear (p1 -ᵥ p2
 
 /-- Two affine maps are equal if they coerce to the same function. -/
 @[ext]
-theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g := by
-  rcases f with ⟨f, f_linear, f_add⟩
-  rcases g with ⟨g, g_linear, g_add⟩
-  obtain rfl : f = g := funext h
-  congr with v
-  cases' (AddTorsor.Nonempty : Nonempty P1) with p
-  apply vadd_right_cancel (f p)
-  erw [← f_add, ← g_add]
+theorem ext {f g : P1 →ᵃ[k] P2} (h : ∀ p, f p = g p) : f = g :=
+  FunLike.ext _ _ h
 #align affine_map.ext AffineMap.ext
 
 theorem ext_iff {f g : P1 →ᵃ[k] P2} : f = g ↔ ∀ p, f p = g p :=
   ⟨fun h _ => h ▸ rfl, ext⟩
 #align affine_map.ext_iff AffineMap.ext_iff
 
-theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) (⇑) := fun _ _ H =>
-  ext <| congr_fun H
+theorem coeFn_injective : @Function.Injective (P1 →ᵃ[k] P2) (P1 → P2) (⇑) :=
+  FunLike.coe_injective
 #align affine_map.coe_fn_injective AffineMap.coeFn_injective
 
 protected theorem congr_arg (f : P1 →ᵃ[k] P2) {x y : P1} (h : x = y) : f x = f y :=
@@ -173,8 +168,7 @@ protected theorem congr_fun {f g : P1 →ᵃ[k] P2} (h : f = g) (x : P1) : f x =
 variable (k P1)
 
 /-- The constant function as an `AffineMap`. -/
-def const (p : P2) : P1 →ᵃ[k] P2
-    where
+def const (p : P2) : P1 →ᵃ[k] P2 where
   toFun := Function.const P1 p
   linear := 0
   map_vadd' _ _ := by simp
@@ -234,19 +228,15 @@ theorem mk'_linear (f : P1 → P2) (f' : V1 →ₗ[k] V2) (p h) : (mk' f f' p h)
 section SMul
 
 variable {R : Type _} [Monoid R] [DistribMulAction R V2] [SMulCommClass k R V2]
-
 /-- The space of affine maps to a module inherits an `R`-action from the action on its codomain. -/
-instance mulAction : MulAction R (P1 →ᵃ[k] V2)
-    where
-  smul c f := ⟨c • f.toFun, c • f.linear, fun p v => by
-    rw [Pi.smul_apply, Pi.smul_apply, LinearMap.smul_apply, vadd_eq_add, map_vadd, vadd_eq_add,
-      smul_add]⟩
+instance mulAction : MulAction R (P1 →ᵃ[k] V2) where
+  -- porting note: `map_vadd` is `simp`, but we still have to pass it explicitly
+  smul c f := ⟨c • ⇑f, c • f.linear, fun p v => by simp [smul_add, map_vadd f]⟩
   one_smul f := ext fun p => one_smul _ _
   mul_smul c₁ c₂ f := ext fun p => mul_smul _ _ _
 
--- Porting note: no `norm_cast` due to eagerly elaborated coercions
-@[simp]
-theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ((c • f) : P1 → V2) = c • (f : P1 → V2) :=
+@[simp, norm_cast]
+theorem coe_smul (c : R) (f : P1 →ᵃ[k] V2) : ⇑(c • f) = c • ⇑f :=
   rfl
 #align affine_map.coe_smul AffineMap.coe_smul
 
@@ -255,13 +245,13 @@ theorem smul_linear (t : R) (f : P1 →ᵃ[k] V2) : (t • f).linear = t • f.l
   rfl
 #align affine_map.smul_linear AffineMap.smul_linear
 
-variable [DistribMulAction Rᵐᵒᵖ V2] [IsCentralScalar R V2]
-
 -- Porting note: Workaround for lean4#2074
-instance : SMulCommClass k Rᵐᵒᵖ V2 := SMulCommClass.op_right
+instance [DistribMulAction Rᵐᵒᵖ V2] [IsCentralScalar R V2] : SMulCommClass k Rᵐᵒᵖ V2 :=
+SMulCommClass.op_right
 
-instance isCentralScalar : IsCentralScalar R (P1 →ᵃ[k] V2)
-    where op_smul_eq_smul _ _ := ext fun _ => op_smul_eq_smul _ _
+instance isCentralScalar [DistribMulAction Rᵐᵒᵖ V2] [IsCentralScalar R V2] :
+  IsCentralScalar R (P1 →ᵃ[k] V2) where
+    op_smul_eq_smul _r _x := ext fun _ => op_smul_eq_smul _ _
 
 end SMul
 
@@ -269,35 +259,33 @@ instance : Zero (P1 →ᵃ[k] V2) where zero := ⟨0, 0, fun _ _ => (zero_vadd _
 
 instance : Add (P1 →ᵃ[k] V2)
     where add f g := ⟨f + g, f.linear + g.linear,
-      fun p v => by simp [add_add_add_comm, map_vadd f, map_vadd g]⟩
+      -- porting note: `simp` needs lemmas to be expressions
+      fun p v => by simp [add_add_add_comm, (map_vadd)]⟩
 
 instance : Sub (P1 →ᵃ[k] V2)
     where sub f g := ⟨f - g, f.linear - g.linear,
-      fun p v => by simp [sub_add_sub_comm, map_vadd f, map_vadd g]⟩
+      -- porting note: `simp` needs lemmas to be expressions
+      fun p v => by simp [sub_add_sub_comm, (map_vadd)]⟩
 
 instance : Neg (P1 →ᵃ[k] V2)
     where neg f := ⟨-f, -f.linear, fun p v => by simp [add_comm, map_vadd f]⟩
 
--- Porting note: no `norm_cast` due to eagerly elaborated coercions
-@[simp]
+@[simp, norm_cast]
 theorem coe_zero : ⇑(0 : P1 →ᵃ[k] V2) = 0 :=
   rfl
 #align affine_map.coe_zero AffineMap.coe_zero
 
--- Porting note: no `norm_cast` due to eagerly elaborated coercions
-@[simp]
+@[simp, norm_cast]
 theorem coe_add (f g : P1 →ᵃ[k] V2) : ⇑(f + g) = f + g :=
   rfl
 #align affine_map.coe_add AffineMap.coe_add
 
--- Porting note: no `norm_cast` due to eagerly elaborated coercions
-@[simp]
+@[simp, norm_cast]
 theorem coe_neg (f : P1 →ᵃ[k] V2) : ⇑(-f) = -f :=
   rfl
 #align affine_map.coe_neg AffineMap.coe_neg
 
--- Porting note: no `norm_cast` due to eagerly elaborated coercions
-@[simp]
+@[simp, norm_cast]
 theorem coe_sub (f g : P1 →ᵃ[k] V2) : ⇑(f - g) = f - g :=
   rfl
 #align affine_map.coe_sub AffineMap.coe_sub
@@ -329,17 +317,18 @@ instance : AddCommGroup (P1 →ᵃ[k] V2) :=
 
 /-- 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`. -/
-instance : AffineSpace (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2)
-    where
+instance : AffineSpace (P1 →ᵃ[k] V2) (P1 →ᵃ[k] P2) where
   vadd f g :=
     ⟨fun p => f p +ᵥ g p, f.linear + g.linear,
-      fun p v => by simp [vadd_vadd, add_right_comm, map_vadd f, map_vadd g]⟩
+      -- porting note: `simp` needs lemmas to be expressions
+      fun p v => by simp [vadd_vadd, add_right_comm, (map_vadd)]⟩
   zero_vadd f := ext fun p => zero_vadd _ (f p)
   add_vadd f₁ f₂ f₃ := ext fun p => add_vadd (f₁ p) (f₂ p) (f₃ p)
   vsub f g :=
     ⟨fun p => f p -ᵥ g p, f.linear - g.linear, fun p v => by
-      simp only [LinearMap.sub_apply, vadd_eq_add]
-      rw [map_vadd, map_vadd, vsub_vadd_eq_vsub_sub, vadd_vsub_assoc, sub_add_eq_add_sub]⟩
+      -- porting note: `simp` needs lemmas to be expressions
+      simp [(map_vadd), (vsub_vadd_eq_vsub_sub), (vadd_vsub_assoc),
+        add_sub, sub_add_eq_add_sub]⟩
   vsub_vadd' f g := ext fun p => vsub_vadd (f p) (g p)
   vadd_vsub' f g := ext fun p => vadd_vsub (f p) (g p)
 
@@ -388,10 +377,9 @@ theorem snd_linear : (snd : P1 × P2 →ᵃ[k] P2).linear = LinearMap.snd k V1 V
 #align affine_map.snd_linear AffineMap.snd_linear
 
 variable (k P1)
-
 /-- Identity map as an affine map. -/
-def id : P1 →ᵃ[k] P1 where
-  toFun := _root_.id
+nonrec def id : P1 →ᵃ[k] P1 where
+  toFun := id
   linear := LinearMap.id
   map_vadd' _ _ := rfl
 #align affine_map.id AffineMap.id
@@ -420,8 +408,7 @@ instance : Inhabited (P1 →ᵃ[k] P1) :=
   ⟨id k P1⟩
 
 /-- Composition of affine maps. -/
-def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3
-    where
+def comp (f : P2 →ᵃ[k] P3) (g : P1 →ᵃ[k] P2) : P1 →ᵃ[k] P3 where
   toFun := f ∘ g
   linear := f.linear.comp g.linear
   map_vadd' := by
@@ -469,14 +456,13 @@ theorem coe_mul (f g : P1 →ᵃ[k] P1) : ⇑(f * g) = f ∘ g :=
 #align affine_map.coe_mul AffineMap.coe_mul
 
 @[simp]
-theorem coe_one : ⇑(1 : P1 →ᵃ[k] P1) = id k P1 :=
+theorem coe_one : ⇑(1 : P1 →ᵃ[k] P1) = _root_.id :=
   rfl
 #align affine_map.coe_one AffineMap.coe_one
 
 /-- `AffineMap.linear` on endomorphisms is a `MonoidHom`. -/
 @[simps]
-def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1
-    where
+def linearHom : (P1 →ᵃ[k] P1) →* V1 →ₗ[k] V1 where
   toFun := linear
   map_one' := rfl
   map_mul' _ _ := rfl
@@ -513,17 +499,17 @@ theorem linear_bijective_iff (f : P1 →ᵃ[k] P2) :
 theorem image_vsub_image {s t : Set P1} (f : P1 →ᵃ[k] P2) :
     f '' s -ᵥ f '' t = f.linear '' (s -ᵥ t) := by
   ext v
-  rw [Set.mem_vsub] -- Porting note: `simp only` did not use this lemma
-  simp only [Set.mem_image, exists_exists_and_eq_and, exists_and_left, ←
-    f.linearMap_vsub]
+  -- porting note: `simp` needs `Set.mem_vsub` to be an expression
+  simp only [(Set.mem_vsub), Set.mem_image,
+    exists_exists_and_eq_and, exists_and_left, ← f.linearMap_vsub]
   constructor
   · rintro ⟨x, hx, y, hy, hv⟩
-    refine ⟨x -ᵥ y, ⟨x, y, hx, hy, rfl⟩, hv⟩
+    exact ⟨x -ᵥ y, ⟨x, hx, y, hy, rfl⟩, hv⟩
   · rintro ⟨-, ⟨x, hx, y, hy, rfl⟩, rfl⟩
-    exact ⟨x, y, hx, hy, rfl⟩
+    exact ⟨x, hx, y, hy, rfl⟩
 #align affine_map.image_vsub_image AffineMap.image_vsub_image
 
-/-! ### Definition of `affine_map.line_map` and lemmas about it -/
+/-! ### Definition of `AffineMap.lineMap` and lemmas about it -/
 
 -- Porting note: Workaround for lean4#2074
 instance : Module k k := Semiring.toModule
@@ -546,7 +532,7 @@ theorem lineMap_apply_module' (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = c
 #align affine_map.line_map_apply_module' AffineMap.lineMap_apply_module'
 
 theorem lineMap_apply_module (p₀ p₁ : V1) (c : k) : lineMap p₀ p₁ c = (1 - c) • p₀ + c • p₁ := by
-  simp only [lineMap_apply_module', smul_sub, sub_smul, one_smul]; abel
+  simp [lineMap_apply_module', smul_sub, sub_smul]; abel
 #align affine_map.line_map_apply_module AffineMap.lineMap_apply_module
 
 theorem lineMap_apply_ring' (a b c : k) : lineMap a b c = c * (b - a) + a :=
@@ -568,7 +554,8 @@ theorem lineMap_linear (p₀ p₁ : P1) :
 #align affine_map.line_map_linear AffineMap.lineMap_linear
 
 theorem lineMap_same_apply (p : P1) (c : k) : lineMap p p c = p := by
-  rw [lineMap_apply, vsub_self, smul_zero, zero_vadd]
+  -- porting note: `simp` needs lemmas to be expressions
+  simp [(lineMap_apply), (vsub_self)]
 #align affine_map.line_map_same_apply AffineMap.lineMap_same_apply
 
 @[simp]
@@ -578,12 +565,14 @@ theorem lineMap_same (p : P1) : lineMap p p = const k k p :=
 
 @[simp]
 theorem lineMap_apply_zero (p₀ p₁ : P1) : lineMap p₀ p₁ (0 : k) = p₀ := by
-  rw [lineMap_apply, zero_smul, zero_vadd]
+  -- porting note: `simp` needs lemmas to be expressions
+  simp [(lineMap_apply)]
 #align affine_map.line_map_apply_zero AffineMap.lineMap_apply_zero
 
 @[simp]
 theorem lineMap_apply_one (p₀ p₁ : P1) : lineMap p₀ p₁ (1 : k) = p₁ := by
-  rw [lineMap_apply, one_smul, vsub_vadd]
+  -- porting note: `simp` needs lemmas to be expressions
+  simp [(lineMap_apply), (vsub_vadd)]
 #align affine_map.line_map_apply_one AffineMap.lineMap_apply_one
 
 @[simp]
@@ -608,7 +597,7 @@ theorem lineMap_eq_right_iff [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} {c : k}
 variable (k)
 
 theorem lineMap_injective [NoZeroSMulDivisors k V1] {p₀ p₁ : P1} (h : p₀ ≠ p₁) :
-    Function.Injective (lineMap p₀ p₁ : k → P1) := fun _ _ hc =>
+    Function.Injective (lineMap p₀ p₁ : k → P1) := fun _c₁ _c₂ hc =>
   (lineMap_eq_lineMap_iff.mp hc).resolve_left h
 #align affine_map.line_map_injective AffineMap.lineMap_injective
 
@@ -617,7 +606,8 @@ variable {k}
 @[simp]
 theorem apply_lineMap (f : P1 →ᵃ[k] P2) (p₀ p₁ : P1) (c : k) :
     f (lineMap p₀ p₁ c) = lineMap (f p₀) (f p₁) c := by
-  rw [lineMap_apply, lineMap_apply, map_vadd, map_smul, linearMap_vsub]
+  -- porting note: `simp` needs lemmas to be expressions
+  simp [(lineMap_apply), (map_vadd), (linearMap_vsub)]
 #align affine_map.apply_line_map AffineMap.apply_lineMap
 
 @[simp]
@@ -680,32 +670,30 @@ theorem lineMap_vsub_lineMap (p₁ p₂ p₃ p₄ : P1) (c : k) :
 
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
-theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = (f.linear : V1 → V2) + fun _ => f 0 := by
+theorem decomp (f : V1 →ᵃ[k] V2) : (f : V1 → V2) = ⇑f.linear + fun _ => f 0 := by
   ext x
   calc
     f x = f.linear x +ᵥ f 0 := by rw [← f.map_vadd, vadd_eq_add, add_zero]
-    _ = (f.linear.toFun + fun _ : V1 => f 0) x := by simp
+    _ = (f.linear + fun _ : V1 => f 0) x := rfl
 
 #align affine_map.decomp AffineMap.decomp
 
 /-- Decomposition of an affine map in the special case when the point space and vector space
 are the same. -/
-theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = (f : V1 → V2) - fun _ => f 0 := by
+theorem decomp' (f : V1 →ᵃ[k] V2) : (f.linear : V1 → V2) = ⇑f - fun _ => f 0 := by
   rw [decomp]
   simp only [LinearMap.map_zero, Pi.add_apply, add_sub_cancel, zero_add]
 #align affine_map.decomp' AffineMap.decomp'
 
 theorem image_uIcc {k : Type _} [LinearOrderedField k] (f : k →ᵃ[k] k) (a b : k) :
     f '' Set.uIcc a b = Set.uIcc (f a) (f b) := by
-  have : ⇑f = (fun x => x + f 0) ∘ fun x => x * (f 1 - f 0) :=
-    by
+  have : ⇑f = (fun x => x + f 0) ∘ fun x => x * (f 1 - f 0) := by
     ext x
     change f x = x • (f 1 -ᵥ f 0) +ᵥ f 0
     rw [← f.linearMap_vsub, ← f.linear.map_smul, ← f.map_vadd]
     simp only [vsub_eq_sub, add_zero, mul_one, vadd_eq_add, sub_zero, smul_eq_mul]
   rw [this, Set.image_comp]
-  simp only [Set.image_add_const_uIcc, Set.image_mul_const_uIcc, ge_iff_le, add_le_add_iff_right,
-    gt_iff_lt, sub_pos, sub_neg, Function.comp_apply]
+  simp only [Set.image_add_const_uIcc, Set.image_mul_const_uIcc, Function.comp_apply]
 #align affine_map.image_uIcc AffineMap.image_uIcc
 
 section
@@ -717,8 +705,7 @@ variable {ι : Type _} {V : ∀ _ : ι, Type _} {P : ∀ _ : ι, Type _} [∀ i,
 instance : AffineSpace (∀ i : ι, (V i)) (∀ i : ι, P i) := Pi.instAddTorsorForAllForAllAddGroup
 
 /-- Evaluation at a point as an affine map. -/
-def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i
-    where
+def proj (i : ι) : (∀ i : ι, P i) →ᵃ[k] P i where
   toFun f := f i
   linear := @LinearMap.proj k ι _ V _ _ i
   map_vadd' _ _ := rfl
@@ -758,10 +745,9 @@ section DistribMulAction
 variable [Monoid R] [DistribMulAction R V2] [SMulCommClass k R V2]
 
 /-- The space of affine maps to a module inherits an `R`-action from the action on its codomain. -/
-instance distribMulAction : DistribMulAction R (P1 →ᵃ[k] V2)
-    where
-  smul_add _ _ _ := ext fun _ => smul_add _ _ _
-  smul_zero _ := ext fun _ => smul_zero _
+instance distribMulAction : DistribMulAction R (P1 →ᵃ[k] V2) where
+  smul_add _c _f _g := ext fun _p => smul_add _ _ _
+  smul_zero _c := ext fun _p => smul_zero _
 
 end DistribMulAction
 
@@ -783,8 +769,6 @@ instance : AddCommMonoid (V1 →ₗ[k] V2) := LinearMap.addCommMonoid
 instance : AddCommMonoid (V2 × (V1 →ₗ[k] V2)) := Prod.instAddCommMonoidSum
 instance : Module R (V1 →ₗ[k] V2) := LinearMap.instModuleLinearMapAddCommMonoid
 instance : Module R (V2 × (V1 →ₗ[k] V2)) := Prod.module
--- Porting note: Workaround for lean4#2074
-attribute [-instance] Ring.toNonAssocRing
 
 /-- 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
@@ -792,22 +776,16 @@ linear part.
 
 See note [bundled maps over different rings]-/
 @[simps]
-def toConstProdLinearMap : (V1 →ᵃ[k] V2) ≃ₗ[R] V2 × (V1 →ₗ[k] V2)
-    where
+def toConstProdLinearMap : (V1 →ᵃ[k] V2) ≃ₗ[R] V2 × (V1 →ₗ[k] V2) where
   toFun f := ⟨f 0, f.linear⟩
   invFun p := p.2.toAffineMap + const k V1 p.1
   left_inv f := by
     ext
     rw [f.decomp]
-    simp only [coe_add, LinearMap.coe_toAffineMap, Pi.add_apply, add_right_inj]
-    rw [const_apply]
+    simp [const_apply _ _]  -- porting note: `simp` needs `_`s to use this lemma
   right_inv := by
     rintro ⟨v, f⟩
-    ext
-    · simp only [coe_add, LinearMap.coe_toAffineMap, Pi.add_apply, map_zero, zero_add]
-      rw [const_apply]
-    · simp only [add_linear, LinearMap.toAffineMap_linear, LinearMap.add_apply, add_right_eq_self]
-      rw [const_linear, LinearMap.zero_apply]
+    ext <;> simp [const_apply _ _, const_linear _ _]  -- porting note: `simp` needs `_`s
   map_add' := by simp
   map_smul' := by simp
 #align affine_map.to_const_prod_linear_map AffineMap.toConstProdLinearMap
@@ -853,7 +831,7 @@ theorem homothety_apply_same (c : P1) (r : k) : homothety c r c = c :=
 
 theorem homothety_mul_apply (c : P1) (r₁ r₂ : k) (p : P1) :
     homothety c (r₁ * r₂) p = homothety c r₁ (homothety c r₂ p) := by
-  simp [homothety_apply, mul_smul]
+  simp only [homothety_apply, mul_smul, vadd_vsub]
 #align affine_map.homothety_mul_apply AffineMap.homothety_mul_apply
 
 theorem homothety_mul (c : P1) (r₁ r₂ : k) :
@@ -874,10 +852,10 @@ theorem homothety_add (c : P1) (r₁ r₂ : k) :
 #align affine_map.homothety_add AffineMap.homothety_add
 
 /-- `homothety` as a multiplicative monoid homomorphism. -/
-def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 :=
-  { toFun := homothety c,
-    map_one' := homothety_one c,
-    map_mul' := homothety_mul c }
+def homothetyHom (c : P1) : k →* P1 →ᵃ[k] P1 where
+  toFun := homothety c
+  map_one' := homothety_one c
+  map_mul' := homothety_mul c
 #align affine_map.homothety_hom AffineMap.homothetyHom
 
 @[simp]
feat: port LinearAlgebra.AffineSpace.AffineMap (#2570)

Dependencies 8 + 379

380 files ported (97.9%)
157420 lines ported (98.1%)
Show graph

The unported dependencies are