@@ -59,9 +59,7 @@ theorem vsub_left_mem_direction_iff_mem {s : AffineSubspace k P} {p : P} (hp : p
5959 rw [mem_direction_iff_eq_vsub_left hp]
6060 simp
6161
62- -- See note [reducible non instances]
63- /-- This is not an instance because it loops with `AddTorsor.nonempty`. -/
64- abbrev toAddTorsor (s : AffineSubspace k P) [Nonempty s] : AddTorsor s.direction s where
62+ instance toAddTorsor (s : AffineSubspace k P) [Nonempty s] : AddTorsor s.direction s where
6563 vadd a b := ⟨(a : V) +ᵥ (b : P), vadd_mem_of_mem_direction a.2 b.2 ⟩
6664 zero_vadd := fun a => by
6765 ext
@@ -77,8 +75,6 @@ abbrev toAddTorsor (s : AffineSubspace k P) [Nonempty s] : AddTorsor s.direction
7775 ext
7876 apply AddTorsor.vadd_vsub'
7977
80- attribute [local instance ] toAddTorsor
81-
8278@ [simp, norm_cast]
8379theorem coe_vsub (s : AffineSubspace k P) [Nonempty s] (a b : s) : ↑(a -ᵥ b) = (a : P) -ᵥ (b : P) :=
8480 rfl
@@ -151,8 +147,6 @@ theorem preimage_coe_affineSpan_singleton (x : P) :
151147
152148variable (P)
153149
154- attribute [local instance ] toAddTorsor
155-
156150/-- The top affine subspace is linearly equivalent to the affine space.
157151This is the affine version of `Submodule.topEquiv`. -/
158152@ [simps! linear apply symm_apply_coe]
@@ -312,10 +306,6 @@ theorem vectorSpan_range_eq_span_range_vsub_right_ne (p : ι → P) (i₀ : ι)
312306
313307variable {k}
314308
315- section WithLocalInstance
316-
317- attribute [local instance ] AffineSubspace.toAddTorsor
318-
319309/-- A set, considered as a subset of its spanned affine subspace, spans the whole subspace. -/
320310@[simp]
321311theorem affineSpan_coe_preimage_eq_top (A : Set P) [Nonempty A] :
@@ -326,8 +316,6 @@ theorem affineSpan_coe_preimage_eq_top (A : Set P) [Nonempty A] :
326316 · exact subset_affineSpan _ _ hy
327317 · exact AffineSubspace.smul_vsub_vadd_mem _ _
328318
329- end WithLocalInstance
330-
331319/-- Suppose a set of vectors spans `V`. Then a point `p`, together with those vectors added to `p`,
332320spans `P`. -/
333321theorem affineSpan_singleton_union_vadd_eq_top_of_span_eq_top {s : Set V} (p : P)
@@ -575,8 +563,6 @@ theorem map_mono {s₁ s₂ : AffineSubspace k P₁} (h : s₁ ≤ s₂) : s₁.
575563section inclusion
576564variable {S₁ S₂ : AffineSubspace k P₁} [Nonempty S₁]
577565
578- attribute [local instance ] AffineSubspace.toAddTorsor
579-
580566/-- Affine map from a smaller to a larger subspace of the same space.
581567
582568This is the affine version of `Submodule.inclusion`. -/
@@ -618,8 +604,6 @@ namespace AffineEquiv
618604section ofEq
619605variable (S₁ S₂ : AffineSubspace k P₁) [Nonempty S₁] [Nonempty S₂]
620606
621- attribute [local instance ] AffineSubspace.toAddTorsor
622-
623607/-- Affine equivalence between two equal affine subspace.
624608
625609This is the affine version of `LinearEquiv.ofEq`. -/
0 commit comments