Skip to content

Commit aafc9e6

Browse files
chore: remove unnecessary set_option lines (leanprover-community#39159)
I removed 24 unnecessary `set_option` line(s) across 10 file(s).
1 parent 50f0559 commit aafc9e6

10 files changed

Lines changed: 0 additions & 24 deletions

File tree

Mathlib/Algebra/Homology/DerivedCategory/ShortExact.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ section map
9898
variable {S₁ S₂ : ShortComplex (CochainComplex C ℤ)} (h₁ : S₁.ShortExact) (h₂ : S₂.ShortExact)
9999
(f : S₁ ⟶ S₂)
100100

101-
set_option backward.isDefEq.respectTransparency false in
102101
/--
103102
The morphism `triangleOfSES h₁ ⟶ triangleOfSES h₂` that is induced by a morphism of short
104103
exact sequences of cochain complexes.

Mathlib/AlgebraicGeometry/Morphisms/FlatRank.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def Scheme.Hom.finrank {X S : Scheme.{u}} (f : X ⟶ S) (s : S) : ℕ :=
9090
IsAffine.finrank (pullback.snd f (S.affineOpenCover.f <| S.affineOpenCover.idx s))
9191
(S.affineOpenCover.covers s).choose
9292

93-
set_option backward.isDefEq.respectTransparency false in
9493
private lemma Scheme.Hom.finrank_eq_finrank_snd_of_isAffine (g : T ⟶ S) [IsAffine T] (t : T)
9594
[Flat f] [IsFinite f] :
9695
f.finrank (g t) = IsAffine.finrank (pullback.snd f g) t := by

Mathlib/Analysis/Convex/Cone/Basic.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ lemma mem_bot : x ∈ (⊥ : ProperCone R E) ↔ x = 0 := .rfl
104104

105105
end T1Space
106106

107-
set_option backward.isDefEq.respectTransparency false in
108107
/-- The closure of image of a proper cone under an `R`-linear map is a proper cone. We
109108
use continuous maps here so that the comap of f is also a map between proper cones. -/
110109
abbrev comap (f : E →L[R] F) (C : ProperCone R F) : ProperCone R E :=
@@ -121,14 +120,12 @@ lemma mem_comap {C : ProperCone R F} {f : E →L[R] F} : x ∈ C.comap f ↔ f x
121120

122121
variable [ContinuousAdd F] [ContinuousConstSMul R F]
123122

124-
set_option backward.isDefEq.respectTransparency false in
125123
/-- The closure of image of a proper cone under a linear map is a proper cone.
126124
127125
We use continuous maps here to match `ProperCone.comap`. -/
128126
abbrev map (f : E →L[R] F) (C : ProperCone R E) : ProperCone R F :=
129127
ClosedSubmodule.map (f.restrictScalars R≥0) C
130128

131-
set_option backward.isDefEq.respectTransparency false in
132129
@[simp] lemma map_id (C : ProperCone R F) : C.map (.id _ _) = C := ClosedSubmodule.map_id _
133130

134131
@[simp, norm_cast]

Mathlib/Analysis/Fourier/FourierTransformDeriv.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ lemma pow_mul_norm_iteratedFDeriv_fourier_le
784784
@[deprecated (since := "2025-11-16")]
785785
alias pow_mul_norm_iteratedFDeriv_fourierIntegral_le := pow_mul_norm_iteratedFDeriv_fourier_le
786786

787-
set_option backward.isDefEq.respectTransparency false in
788787
lemma hasDerivAt_fourier
789788
{f : ℝ → E} (hf : Integrable f) (hf' : Integrable (fun x : ℝ ↦ x • f x)) (w : ℝ) :
790789
HasDerivAt (𝓕 f) (𝓕 (fun x : ℝ ↦ (-2 * π * I * x) • f x) w) w := by

Mathlib/CategoryTheory/Triangulated/Functor.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ variable {X₁ X₂ X₃ Z₁₂ Z₂₃ Z₁₃ : C}
310310
(h : Octahedron comm h₁₂ h₂₃ h₁₃)
311311
(F : C ⥤ D) [F.CommShift ℤ] [F.IsTriangulated]
312312

313-
set_option backward.isDefEq.respectTransparency false in
314313
/-- The image of an octahedron by a triangulated functor. -/
315314
@[simps]
316315
def map : Octahedron (by dsimp; rw [← F.map_comp, comm])

Mathlib/Geometry/Convex/Cone/Dual.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ variable {p : M →ₗ[R] N →ₗ[R] R} {s t : Set M} {y : N}
4444

4545
local notation3 "R≥0" => {c : R // 0 ≤ c}
4646

47-
set_option backward.isDefEq.respectTransparency false in
4847
variable (p) in
4948
/-- The dual cone of a set `s` with respect to a bilinear pairing `p` is the cone consisting of all
5049
points `y` such that for all points `x ∈ s` we have `0 ≤ p x y`. -/
@@ -100,7 +99,6 @@ variable (s) in
10099
@[simp] lemma dual_flip_dual_dual_flip (s : Set N) :
101100
dual p.flip (dual p (dual p.flip s)) = dual p.flip s := dual_dual_flip_dual _
102101

103-
set_option backward.isDefEq.respectTransparency false in
104102
@[simp]
105103
lemma dual_hull (s : Set M) : dual p (hull R s) = dual p s := by
106104
refine le_antisymm (dual_anti Submodule.subset_span) (fun x hx y hy => ?_)

Mathlib/Geometry/Convex/Cone/Pointed.lean

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ section Submodule
4444
variable [Semiring R] [PartialOrder R] [IsOrderedRing R] [AddCommMonoid E] [Module R E]
4545
variable {C : PointedCone R E}
4646

47-
set_option backward.isDefEq.respectTransparency false in
4847
/-- A submodule is a pointed cone. -/
4948
@[coe] abbrev ofSubmodule (S : Submodule R E) : PointedCone R E := S.restrictScalars _
5049

@@ -54,25 +53,20 @@ instance : Coe (Submodule R E) (PointedCone R E) := ⟨ofSubmodule⟩
5453

5554
lemma mem_ofSubmodule_iff {S : Submodule R E} {x : E} : x ∈ (S : PointedCone R E) ↔ x ∈ S := by rfl
5655

57-
set_option backward.isDefEq.respectTransparency false in
5856
lemma ofSubmodule_inj {S T : Submodule R E} : ofSubmodule S = ofSubmodule T ↔ S = T :=
5957
restrictScalars_inj ..
6058

61-
set_option backward.isDefEq.respectTransparency false in
6259
/-- Coercion from submodules to pointed cones as an order embedding. -/
6360
abbrev ofSubmoduleEmbedding : Submodule R E ↪o PointedCone R E :=
6461
restrictScalarsEmbedding ..
6562

66-
set_option backward.isDefEq.respectTransparency false in
6763
/-- Coercion from submodules to pointed cones as a lattice homomorphism. -/
6864
abbrev ofSubmoduleLatticeHom : CompleteLatticeHom (Submodule R E) (PointedCone R E) :=
6965
restrictScalarsLatticeHom ..
7066

71-
set_option backward.isDefEq.respectTransparency false in
7267
lemma ofSubmodule_inf (S T : Submodule R E) : S ⊓ T = (S ⊓ T : PointedCone R E) :=
7368
restrictScalars_inf _ _ _
7469

75-
set_option backward.isDefEq.respectTransparency false in
7670
lemma ofSubmodule_sup (S T : Submodule R E) : S ⊔ T = (S ⊔ T : PointedCone R E) :=
7771
restrictScalars_sup _ _ _
7872

@@ -91,7 +85,6 @@ lemma ofSubmodule_iSup (s : Set (Submodule R E)) : ⨆ S ∈ s, S = ⨆ S ∈ s,
9185
variable {R E : Type*}
9286
variable [Semiring R] [PartialOrder R] [IsOrderedRing R] [AddCommGroup E] [Module R E]
9387

94-
set_option backward.isDefEq.respectTransparency false in
9588
lemma neg_ofSubmodule (S : Submodule R E) : -(ofSubmodule S) = ofSubmodule (-S) :=
9689
neg_restrictScalars S
9790

@@ -129,7 +122,6 @@ lemma convex (C : PointedCone R E) : Convex R (C : Set E) := C.toConvexCone.conv
129122
nonrec lemma smul_mem (C : PointedCone R E) (hr : 0 ≤ r) (hx : x ∈ C) : r • x ∈ C :=
130123
C.smul_mem ⟨r, hr⟩ hx
131124

132-
set_option backward.isDefEq.respectTransparency false in
133125
/-- The `PointedCone` constructed from a pointed `ConvexCone`. -/
134126
def _root_.ConvexCone.toPointedCone (C : ConvexCone R E) (hC : C.Pointed) : PointedCone R E where
135127
carrier := C
@@ -222,7 +214,6 @@ between pointed cones induced from linear maps between the ambient modules that
222214
223215
-/
224216

225-
set_option backward.isDefEq.respectTransparency false in
226217
/-- The image of a pointed cone under an `R`-linear map is a pointed cone. -/
227218
def map (f : E →ₗ[R] F) (C : PointedCone R E) : PointedCone R F :=
228219
Submodule.map (f : E →ₗ[R≥0] F) C
@@ -248,7 +239,6 @@ theorem map_map (g : F →ₗ[R] G) (f : E →ₗ[R] F) (C : PointedCone R E) :
248239
theorem map_id (C : PointedCone R E) : C.map LinearMap.id = C :=
249240
SetLike.coe_injective <| Set.image_id _
250241

251-
set_option backward.isDefEq.respectTransparency false in
252242
/-- The preimage of a pointed cone under an `R`-linear map is a pointed cone. -/
253243
def comap (f : E →ₗ[R] F) (C : PointedCone R F) : PointedCone R E :=
254244
Submodule.comap (f : E →ₗ[R≥0] F) C

Mathlib/RingTheory/Finiteness/Basic.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ variable {R E : Type*} [Ring R] [LinearOrder R] [IsOrderedRing R] [AddCommMonoid
510510

511511
local notation3 "R≥0" => {c : R // 0 ≤ c}
512512

513-
set_option backward.isDefEq.respectTransparency false in
514513
private instance instModuleFiniteAux : Module.Finite R≥0 R := by
515514
simp_rw [Module.finite_def, Submodule.fg_def, Submodule.eq_top_iff']
516515
refine ⟨{1, -1}, by simp, fun x ↦ ?_⟩
@@ -520,7 +519,6 @@ private instance instModuleFiniteAux : Module.Finite R≥0 R := by
520519
· simpa using Submodule.smul_mem (M := R) (.span R≥0 {1, -1}) ⟨-x, neg_nonneg.mpr hx⟩ (x := -1)
521520
(Submodule.subset_span <| by simp)
522521

523-
set_option backward.isDefEq.respectTransparency false in
524522
/-- If a module is finite over a linearly ordered ring, then it is also finite over the non-negative
525523
scalars. -/
526524
instance instModuleFinite [Module.Finite R E] : Module.Finite R≥0 E := .trans R E

Mathlib/RingTheory/Ideal/Norm/AbsNorm.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ theorem Int.ideal_span_absNorm_eq_self (J : Ideal ℤ) :
477477
obtain ⟨g, rfl⟩ := IsPrincipalIdealRing.principal J
478478
simp
479479

480-
set_option backward.isDefEq.respectTransparency false in
481480
@[simp]
482481
theorem Int.prime_absNorm (J : Ideal ℤ) :
483482
(absNorm J).Prime ↔ Prime J := by

Mathlib/Topology/ContinuousMap/CompactlySupported.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ instance [NonUnitalCommRing β] [IsTopologicalRing β] :
354354
DFunLike.coe_injective.nonUnitalCommRing _ coe_zero coe_add coe_mul coe_neg coe_sub
355355
(fun _ _ => rfl) fun _ _ => rfl
356356

357-
set_option backward.isDefEq.respectTransparency false in
358357
instance {R : Type*} [Semiring R] [NonUnitalNonAssocSemiring β]
359358
[IsTopologicalSemiring β] [Module R β] [ContinuousConstSMul R β] [IsScalarTower R β β] :
360359
IsScalarTower R C_c(α, β) C_c(α, β) where
@@ -363,7 +362,6 @@ instance {R : Type*} [Semiring R] [NonUnitalNonAssocSemiring β]
363362
simp only [smul_eq_mul, coe_mul, coe_smul, Pi.mul_apply, Pi.smul_apply]
364363
rw [← smul_eq_mul, ← smul_eq_mul, smul_assoc]
365364

366-
set_option backward.isDefEq.respectTransparency false in
367365
instance {R : Type*} [Semiring R] [NonUnitalNonAssocSemiring β]
368366
[IsTopologicalSemiring β] [Module R β] [ContinuousConstSMul R β] [SMulCommClass R β β] :
369367
SMulCommClass R C_c(α, β) C_c(α, β) where

0 commit comments

Comments
 (0)