Skip to content

Commit 126412c

Browse files
chore: remove unnecessary set_option lines (#42768)
I removed 171 unnecessary `set_option` line(s) across 79 file(s).
1 parent b5fdb9f commit 126412c

79 files changed

Lines changed: 0 additions & 171 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Mathlib/AlgebraicGeometry/GammaSpecAdjunction.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ theorem isUnit_res_toΓSpecMapBasicOpen : IsUnit (X.toToΓSpecMapBasicOpen r r)
125125
rw [← CommRingCat.comp_apply, ← Functor.map_comp]
126126
congr
127127

128-
set_option backward.isDefEq.respectTransparency.types false in
129128
/-- Define the sheaf hom on individual basic opens for the unit. -/
130129
def toΓSpecCApp :
131130
(structureSheaf <| Γ.obj <| op X).obj.obj (op <| basicOpen r) ⟶

Mathlib/AlgebraicGeometry/Limits.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ noncomputable instance [Small.{u} σ] : CoproductsOfShapeDisjoint Scheme.{u} σ
229229
instance : HasFiniteCoproducts Scheme.{u} where
230230
out := inferInstance
231231

232-
set_option backward.isDefEq.respectTransparency.types false in
233232
instance : MonoCoprod Scheme.{u} :=
234233
.mk' fun X Y ↦ ⟨.mk coprod.inl coprod.inr, coprodIsCoprod X Y, inferInstanceAs <| Mono coprod.inl⟩
235234

Mathlib/AlgebraicGeometry/Modules/Sheaf.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ lemma pseudofunctor_right_unitality :
306306
simp [← this]
307307

308308
set_option backward.defeqAttrib.useBackward true in
309-
set_option backward.isDefEq.respectTransparency false in
310309
attribute [local simp] pseudofunctor_associativity pseudofunctor_left_unitality
311310
pseudofunctor_right_unitality Bicategory.toNatTrans_conjugateEquiv
312311
conjugateEquiv_pullbackId_hom Adjunction.ofCat_comp conjugateEquiv_pullbackComp_inv in

Mathlib/AlgebraicGeometry/Modules/Tilde.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ noncomputable def toStalk (x : PrimeSpectrum.Top R) :
192192
ModuleCat.of R M ⟶ ModuleCat.of R ((tilde M).presheaf.stalk x) :=
193193
ModuleCat.ofHom (StructureSheaf.toStalkₗ ..)
194194

195-
set_option backward.isDefEq.respectTransparency.types false in
196195
instance (x : PrimeSpectrum.Top R) :
197196
IsLocalizedModule x.asIdeal.primeCompl (toStalk M x).hom :=
198197
inferInstanceAs (IsLocalizedModule x.asIdeal.primeCompl (StructureSheaf.toStalkₗ ..))
@@ -209,7 +208,6 @@ protected lemma map_id {M : ModuleCat R} : tilde.map (𝟙 M) = 𝟙 _ := by
209208
ext p x
210209
exact Subtype.ext (funext fun y ↦ DFunLike.congr_fun (LocalizedModule.map_id _) _)
211210

212-
set_option backward.isDefEq.respectTransparency.types false in
213211
@[simp, reassoc]
214212
protected lemma map_comp {M N P : ModuleCat R} (f : M ⟶ N) (g : N ⟶ P) :
215213
tilde.map (f ≫ g) = tilde.map f ≫ tilde.map g := by
@@ -220,7 +218,6 @@ protected lemma map_comp {M N P : ModuleCat R} (f : M ⟶ N) (g : N ⟶ P) :
220218
(LocalizedModule.mkLinearMap y.1.asIdeal.primeCompl N)
221219
(LocalizedModule.mkLinearMap y.1.asIdeal.primeCompl P) _ _) _)
222220

223-
set_option backward.isDefEq.respectTransparency.types false in
224221
@[reassoc (attr := simp)]
225222
lemma toOpen_map_app {M N : ModuleCat R} (f : M ⟶ N)
226223
(U : TopologicalSpace.Opens (PrimeSpectrum R)) :

Mathlib/AlgebraicGeometry/Morphisms/Separated.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ protected class IsSeparated (X : Scheme.{u}) : Prop where
336336

337337
attribute [instance] IsSeparated.isSeparated_terminal_from
338338

339-
set_option backward.isDefEq.respectTransparency false in
340339
lemma isSeparated_iff_isClosedImmersion_prod_lift {X : Scheme.{u}} :
341340
X.IsSeparated ↔ IsClosedImmersion (prod.lift (𝟙 X) (𝟙 X)) := by
342341
rw [isSeparated_iff, AlgebraicGeometry.isSeparated_iff, iff_iff_eq,

Mathlib/AlgebraicGeometry/OpenImmersion.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,6 @@ instance : IsOpenImmersion (pullback.fst g f) := by
601601
rw [← pullbackSymmetry_hom_comp_snd]
602602
infer_instance
603603

604-
set_option backward.isDefEq.respectTransparency.types false in
605604
instance [IsOpenImmersion g] :
606605
IsOpenImmersion (limit.π (cospan f g) WalkingCospan.one) := by
607606
rw [← limit.w (cospan f g) WalkingCospan.Hom.inl]

Mathlib/AlgebraicGeometry/Scheme.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,6 @@ set_option backward.isDefEq.respectTransparency.types false in
616616
-- This is not marked simp to respect the abstraction
617617
lemma ΓSpecIso_inv : (ΓSpecIso R).inv = CommRingCat.ofHom (algebraMap _ _) := rfl
618618

619-
set_option backward.isDefEq.respectTransparency.types false in
620619
lemma toOpen_eq (U) :
621620
CommRingCat.ofHom (algebraMap R <| (Spec.structureSheaf R).presheaf.obj (.op U)) =
622621
(ΓSpecIso R).inv ≫ (Spec R).presheaf.map (homOfLE le_top).op := rfl

Mathlib/AlgebraicGeometry/Sites/BigZariski.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ abbrev zariskiTopology : GrothendieckTopology Scheme.{u} :=
5353
lemma zariskiTopology_eq : zariskiTopology.{u} = zariskiPretopology.toGrothendieck :=
5454
Precoverage.toGrothendieck_toPretopology_eq_toGrothendieck.symm
5555

56-
set_option backward.isDefEq.respectTransparency.types false in
5756
set_option backward.defeqAttrib.useBackward true in
5857
instance subcanonical_zariskiTopology : zariskiTopology.Subcanonical := by
5958
apply GrothendieckTopology.Subcanonical.of_isSheaf_yoneda_obj

Mathlib/AlgebraicGeometry/Spec.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ def toSpecΓ (R : CommRingCat.{u}) : R ⟶ Γ.obj (op (Spec.toLocallyRingedSpace
284284
instance isIso_toSpecΓ (R : CommRingCat.{u}) : IsIso (toSpecΓ R) :=
285285
(ConcreteCategory.isIso_iff_bijective _).mpr algebraMap_obj_top_bijective
286286

287-
set_option backward.isDefEq.respectTransparency.types false in
288287
@[reassoc]
289288
theorem Spec_Γ_naturality {R S : CommRingCat.{u}} (f : R ⟶ S) :
290289
f ≫ toSpecΓ S = toSpecΓ R ≫ Γ.map (Spec.toLocallyRingedSpace.map f.op).op := by

Mathlib/AlgebraicGeometry/Stalk.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ def stalkClosedPointIso :
238238
Spec.stalkIso _ _ ≪≫ (IsLocalization.atUnits R
239239
(closedPoint R).asIdeal.primeCompl fun _ ↦ not_not.mp).toRingEquiv.toCommRingCatIso.symm
240240

241-
set_option backward.isDefEq.respectTransparency.types false in
242241
lemma stalkClosedPointIso_inv :
243242
(stalkClosedPointIso R).inv = StructureSheaf.toStalk R _ := by
244243
ext x

0 commit comments

Comments
 (0)