Skip to content

Commit 06a46da

Browse files
chore: remove unnecessary set_option lines (leanprover-community#37326)
I removed 458 unnecessary `set_option` line(s) across 165 file(s).
1 parent 9f0aee2 commit 06a46da

165 files changed

Lines changed: 0 additions & 458 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.

Archive/Examples/Eisenstein.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ namespace Polynomial
2525

2626
open Ideal.Quotient Ideal RingHom
2727

28-
set_option backward.isDefEq.respectTransparency false in
2928
set_option linter.flexible false in
3029
example : Irreducible (X ^ 4 - 10 * X ^ 2 + 1 : ℤ[X]) := by
3130
-- We will apply the generalized Eisenstein criterion with `q = X ^ 2 + 1` and `K = ZMod 3`.

Counterexamples/DimensionPolynomial.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ variable (k : Type*) [Field k]
3434
noncomputable abbrev A : Subring (RatFunc k)⟦X⟧ :=
3535
(RatFunc.C (K := k)).range.comap PowerSeries.constantCoeff
3636

37-
set_option backward.isDefEq.respectTransparency false in
3837
theorem ringKrullDim_A_eq_one : ringKrullDim (A k) = 1 := by
3938
have h_unit : ∀ (x : (RatFunc k)⟦X⟧) (hx : x ∈ A k), IsUnit x → IsUnit (⟨x, hx⟩ : A k) := by
4039
intro x ⟨z, hz⟩ ⟨y, hxy⟩
@@ -69,7 +68,6 @@ theorem ringKrullDim_A_eq_one : ringKrullDim (A k) = 1 := by
6968
· exact ⟨0, by simp [hy_const]⟩
7069
· simp only [Subring.coe_mul, SubmonoidClass.coe_pow, pow_succ, ← ha, mul_assoc, mul_comm x.val _]
7170

72-
set_option backward.isDefEq.respectTransparency false in
7371
theorem ringKrullDim_polynomial_A_eq_three : ringKrullDim (A k)[X] = 3 := by
7472
apply le_antisymm (by simpa [ringKrullDim_A_eq_one k] using Polynomial.ringKrullDim_le (R := A k))
7573
let φ : (A k) →+* k := by

Counterexamples/InvertibleModuleNotIdeal.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ variable (R : Type*) [CommRing R]
1919
R ⊕ ⨁ₘ R⧸m where m ranges over maximal ideals of R. -/
2020
abbrev SqZeroExtQuotMax := TrivSqZeroExt R (Π₀ m : MaximalSpectrum R, R ⧸ m.1)
2121

22-
set_option backward.isDefEq.respectTransparency false in
2322
instance : IsFractionRing (SqZeroExtQuotMax R) (SqZeroExtQuotMax R) :=
2423
IsFractionRing.self_iff_nonZeroDivisors_le_isUnit.mpr fun x hx ↦
2524
TrivSqZeroExt.isUnit_iff_isUnit_fst.mpr <| of_not_not fun hr ↦ by
@@ -31,12 +30,10 @@ instance : IsFractionRing (SqZeroExtQuotMax R) (SqZeroExtQuotMax R) :=
3130
using (Ideal.Quotient.mk_eq_mk_iff_sub_mem ..).mpr (by simpa)
3231
simpa using congr(($this).snd)
3332

34-
set_option backward.isDefEq.respectTransparency false in
3533
/-- R as an algebra over `SqZeroExtQuotMax R`. -/
3634
abbrev SqZeroExtQuotMax.algebraBase : Algebra (SqZeroExtQuotMax R) R := TrivSqZeroExt.algebraBase ..
3735

3836
#adaptation_note /-- After nightly-2026-02-23 we need this to avoid timeouts. -/
39-
set_option backward.isDefEq.respectTransparency false in
4037
open CommRing (Pic) in
4138
/-- If the Picard group of a commutative ring R is nontrivial, then `SqZeroExtQuotMax R`
4239
has an invertible module (which is the base change of an invertible ideal of R)

Mathlib/Algebra/Algebra/Epi.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ section Ring
7676

7777
variable {R A : Type*} [CommRing R] [Ring A] [Algebra R A]
7878

79-
set_option backward.isDefEq.respectTransparency false in
8079
lemma isEpi_iff_surjective_algebraMap_of_finite [Module.Finite R A] :
8180
Algebra.IsEpi R A ↔ Surjective (algebraMap R A) := by
8281
refine ⟨fun h ↦ ?_, isEpi_of_surjective_algebraMap R A⟩

Mathlib/Algebra/Category/Grp/Kernels.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def cokernelCocone : CokernelCofork f :=
4141
CokernelCofork.ofπ (Z := of <| H ⧸ f.hom.range) (ofHom (mk' f.hom.range)) <| ext fun x =>
4242
(eq_zero_iff _).mpr ⟨x, rfl⟩
4343

44-
set_option backward.isDefEq.respectTransparency false in
4544
/-- The projection onto the quotient is a cokernel in the categorical sense. -/
4645
def cokernelIsColimit : IsColimit <| cokernelCocone f :=
4746
Cofork.IsColimit.mk _

Mathlib/Algebra/Category/ModuleCat/Kernels.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ variable {M N P : ModuleCat.{v} R} (f : M ⟶ N)
3333
def kernelCone : KernelFork f :=
3434
KernelFork.ofι (ofHom (LinearMap.ker f.hom).subtype) <| by aesop
3535

36-
set_option backward.isDefEq.respectTransparency false in
3736
/-- The kernel of a linear map is a kernel in the categorical sense. -/
3837
def kernelIsLimit : IsLimit (kernelCone f) :=
3938
Fork.IsLimit.mk _
@@ -72,7 +71,6 @@ def cokernelIsColimit : IsColimit (cokernelCocone f) :=
7271
apply (cancel_epi (ofHom (LinearMap.range f.hom).mkQ)).1
7372
exact h
7473

75-
set_option backward.isDefEq.respectTransparency false in
7674
/-- Construct an `IsColimit` structure of cokernels given `Function.Exact`. -/
7775
noncomputable
7876
def isColimitCokernelCofork (f : M ⟶ N) (g : N ⟶ P) (H : Function.Exact f.hom g.hom)

Mathlib/Algebra/Category/ModuleCat/ProjectiveDimension.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ variable {R' : Type u'} [CommRing R'] [Small.{v'} R'] (e : R ≃+* R')
3232

3333
variable {M : ModuleCat.{v} R} {N : ModuleCat.{v'} R'}
3434

35-
set_option backward.isDefEq.respectTransparency false in
3635
attribute [local instance] RingHomInvPair.of_ringEquiv in
3736
lemma hasProjectiveDimensionLE_of_semiLinearEquiv (e' : M ≃ₛₗ[RingHomClass.toRingHom e] N)
3837
(n : ℕ) [HasProjectiveDimensionLE M n] : HasProjectiveDimensionLE N n := by

Mathlib/Algebra/Category/ModuleCat/Topology/Homology.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ instance : Mono (kerι φ) := ConcreteCategory.mono_of_injective (kerι φ) <| S
4646

4747
@[simp] lemma kerι_apply (x) : kerι φ x = x.1 := rfl
4848

49-
set_option backward.isDefEq.respectTransparency false in
5049
/-- `TopModuleCat.ker` is indeed the kernel in `TopModuleCat R`. -/
5150
def isLimitKer : IsLimit (KernelFork.ofι (kerι φ) (kerι_comp φ)) :=
5251
isLimitAux (KernelFork.ofι (kerι φ) (kerι_comp φ))

Mathlib/Algebra/CharP/MixedCharZero.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ Note: Property `(2)` is denoted as `EqualCharZero` in the statement names below.
158158

159159
namespace EqualCharZero
160160

161-
set_option backward.isDefEq.respectTransparency false in
162161
/-- `ℚ`-algebra implies equal characteristic. -/
163162
private lemma of_algebraRat [Algebra ℚ R] : ∀ I : Ideal R, I ≠ ⊤ → CharZero (R ⧸ I) := by
164163
intro I hI
@@ -178,7 +177,6 @@ section ConstructionAlgebraRat
178177

179178
variable {R}
180179

181-
set_option backward.isDefEq.respectTransparency false in
182180
private lemma PNat.isUnit_natCast [h : Fact (∀ I : Ideal R, I ≠ ⊤ → CharZero (R ⧸ I))]
183181
(n : ℕ+) : IsUnit (n : R) := by
184182
-- `n : R` is a unit iff `(n)` is not a proper ideal in `R`.

Mathlib/Algebra/CharP/Quotient.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ theorem quotient_iff_le_ker_natCast (n : ℕ) [CharP R n] (I : Ideal R) :
6464

6565
end CharP
6666

67-
set_option backward.isDefEq.respectTransparency false in
6867
lemma Ideal.natCast_mem_of_charP_quotient (p : ℕ) (I : Ideal R) [CharP (R ⧸ I) p] :
6968
(p : R) ∈ I :=
7069
Ideal.Quotient.eq_zero_iff_mem.mp <| by simp
7170

72-
set_option backward.isDefEq.respectTransparency false in
7371
theorem Ideal.Quotient.index_eq_zero (I : Ideal R) : (↑I.toAddSubgroup.index : R ⧸ I) = 0 := by
7472
rw [AddSubgroup.index, Nat.card_eq]
7573
split_ifs with hq; swap

0 commit comments

Comments
 (0)