Skip to content

Commit 953f7b0

Browse files
committed
x: scripts/add_set_option.py
1 parent 13d4042 commit 953f7b0

File tree

11 files changed

+26
-0
lines changed

11 files changed

+26
-0
lines changed

Mathlib/AlgebraicGeometry/Fiber.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ lemma Scheme.Hom.fiberToSpecResidueField_apply (f : X ⟶ Y) (y : Y) (x : f.fibe
5757
f.fiberToSpecResidueField y x = IsLocalRing.closedPoint (Y.residueField y) :=
5858
Subsingleton.elim (α := PrimeSpectrum _) _ _
5959

60+
set_option backward.whnf.reducibleClassField false in
61+
set_option backward.isDefEq.respectTransparency false in
6062
lemma isPullback_fiberToSpecResidueField_of_isPullback {P X Y Z : Scheme.{u}} {fst : P ⟶ X}
6163
{snd : P ⟶ Y} {f : X ⟶ Z} {g : Y ⟶ Z} (h : IsPullback fst snd f g) (y : Y) :
6264
IsPullback (pullback.map _ _ _ _ fst (Spec.map (g.residueFieldMap y)) g h.w.symm (by simp))
@@ -68,6 +70,7 @@ lemma isPullback_fiberToSpecResidueField_of_isPullback {P X Y Z : Scheme.{u}} {f
6870
· simpa using (IsPullback.of_hasPullback _ _).paste_horiz h
6971
· simp [Scheme.Hom.fiberToSpecResidueField]
7072

73+
set_option backward.isDefEq.respectTransparency false in
7174
/-- The morphism from the fiber of `Spec S ⟶ Spec R` at some prime `p` to `Spec κ(p)`
7275
is isomorphic to the map induced by `κ(p) ⟶ κ(p) ⊗[R] S`. -/
7376
noncomputable def Spec.fiberToSpecResidueFieldIso (R S : Type u) [CommRing R] [CommRing S]

Mathlib/AlgebraicGeometry/Morphisms/SmoothFiber.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ namespace AlgebraicGeometry
2828

2929
variable {X Y : Scheme.{u}} (f : X ⟶ Y)
3030

31+
set_option backward.isDefEq.respectTransparency false in
3132
/-- If `f : X ⟶ Y` is locally of finite presentation, flat and has smooth fibers, then `f` is
3233
smooth. -/
3334
lemma Smooth.of_smooth_fiberToSpecResidueField [LocallyOfFinitePresentation f] [Flat f]

Mathlib/Analysis/Complex/Poisson.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ private lemma circleAverage_re_smul_on_ball_zero_aux {φ θ : ℝ} {r : ℝ} :
144144
## Integral Formulas
145145
-/
146146

147+
set_option backward.whnf.reducibleClassField false in
148+
set_option backward.isDefEq.respectTransparency false in
147149
-- Version of `DiffContOnCl.circleAverage_re_smul` in case where the center of the ball is zero.
148150
private lemma DiffContOnCl.circleAverage_re_smul_on_ball_zero [CompleteSpace E]
149151
(hf : DiffContOnCl ℂ f (ball 0 R)) (hw : w ∈ ball 0 R) :
@@ -204,6 +206,8 @@ private lemma DiffContOnCl.circleAverage_re_smul_on_ball_zero [CompleteSpace E]
204206
rw [← abs_of_pos hR] at hw hf
205207
simp [← hf.circleAverage_smul_div hw, circleAverage_eq_circleIntegral (ne_of_lt hR).symm, h0]
206208

209+
set_option backward.isDefEq.respectTransparency false in
210+
set_option backward.whnf.reducibleClassField false in
207211
/--
208212
**Poisson integral formula** for ℂ-differentiable functions on arbitrary disks in the complex plane,
209213
formulated with the real part of the Herglotz–Riesz kernel of integration.

Mathlib/Analysis/LocallyConvex/WeakDual.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ theorem mem_span_iff_bound {f : ι → E →ₗ[𝕜] 𝕜} (φ : E →ₗ[𝕜]
180180

181181
variable [AddCommGroup F] [Module 𝕜 F] (B : E →ₗ[𝕜] F →ₗ[𝕜] 𝕜)
182182

183+
set_option backward.isDefEq.respectTransparency false in
183184
/-- The Weak Representation Theorem: Every continuous functional on `E` endowed with
184185
the `σ(E, F; B)`-topology is of the form `x ↦ B(x, y)` for some `y : F`. -/
185186
theorem dualEmbedding_surjective : Function.Surjective (WeakBilin.eval B) := fun f ↦ by

Mathlib/Analysis/Matrix/HermitianFunctionalCalculus.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,13 @@ should prefer the generic API, especially because it will make rewriting easier.
134134
protected noncomputable def cfc (f : ℝ → ℝ) : Matrix n n 𝕜 :=
135135
conjStarAlgAut 𝕜 _ hA.eigenvectorUnitary (diagonal (RCLike.ofReal ∘ f ∘ hA.eigenvalues))
136136

137+
set_option backward.whnf.reducibleClassField false in
138+
set_option backward.isDefEq.respectTransparency false in
137139
lemma cfcHom_eq_cfcAux : cfcHom hA.isSelfAdjoint = hA.cfcAux :=
138140
cfcHom_eq_of_continuous_of_map_id hA hA.cfcAux
139141
hA.isClosedEmbedding_cfcAux.continuous hA.cfcAux_id
140142

143+
set_option backward.isDefEq.respectTransparency false in
141144
instance instContinuousFunctionalCalculusIsClosedEmbedding :
142145
ClosedEmbeddingContinuousFunctionalCalculus ℝ (Matrix n n 𝕜) IsSelfAdjoint where
143146
isClosedEmbedding _ hA := cfcHom_eq_cfcAux hA ▸ hA.isHermitian.isClosedEmbedding_cfcAux

Mathlib/Analysis/ODE/PicardLindelof.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ lemma weaken_lipschitz (hf : IsPicardLindelof f t₀ x₀ a r L K) {K' : ℝ≥0
656656
norm_le := hf.norm_le
657657
mul_max_le := hf.mul_max_le
658658

659+
set_option backward.isDefEq.respectTransparency false in
659660
/-- Given `IsPicardLindelof` on a symmetric interval `[t₀ - ε, t₀ + ε]`, if we shrink the radius
660661
from `a` to `a'` with `a' ≤ a`, and choose any `r' < a'`, then there exists `ε' > 0` such that
661662
`IsPicardLindelof` holds on `[t₀ - ε', t₀ + ε']` with the new parameters. -/

Mathlib/CategoryTheory/Sites/DenseSubsite/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ lemma sheafifyHomEquivOfIsEquivalence_naturality_right
745745

746746
variable (A)
747747

748+
set_option backward.isDefEq.respectTransparency false in
748749
/-- Assuming that `(C, J)` is a dense subsite of `(D, K)` (via a functor `G : C ⥤ D`)
749750
and `sheafPushforwardContinuous G A J K` is an equivalence of categories, and
750751
that `HasWeakSheafify J A` holds, then this adjunction shows the existence

Mathlib/CategoryTheory/Sites/DenseSubsite/OneHypercoverDense.lean

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ namespace presheafObjObjIso
642642

643643
variable (X₀ : C₀)
644644

645+
set_option backward.whnf.reducibleClassField false in
646+
set_option backward.isDefEq.respectTransparency false in
645647
/-- Auxiliary definition for `OneHypercoverDenseData.essSurj.presheafObjObjIso`. -/
646648
noncomputable def hom : (presheaf data G₀).obj (op (F.obj X₀)) ⟶ G₀.val.obj (op X₀) :=
647649
G₀.2.amalgamate ⟨_, cover_lift F J₀ _ (data (F.obj X₀)).mem₀⟩ (fun ⟨W₀, a, ha⟩ ↦
@@ -660,6 +662,7 @@ noncomputable def hom : (presheaf data G₀).obj (op (F.obj X₀)) ⟶ G₀.val.
660662

661663
variable {X₀}
662664

665+
set_option backward.whnf.reducibleClassField false in
663666
@[reassoc]
664667
lemma hom_map {W₀ : C₀} (a : W₀ ⟶ X₀) {i : (data (F.obj X₀)).I₀}
665668
(p : F.obj W₀ ⟶ F.obj ((data (F.obj X₀)).X i))
@@ -701,6 +704,7 @@ lemma inv_π (i : (data (F.obj X₀)).I₀) :
701704
IsDenseSubsite.mapPreimage J F G₀ ((data (F.obj X₀)).f i) :=
702705
Multiequalizer.lift_ι _ _ _ _ _
703706

707+
set_option backward.isDefEq.respectTransparency false in
704708
@[reassoc (attr := simp)]
705709
lemma inv_restriction {Y₀ : C₀} (f : F.obj Y₀ ⟶ F.obj X₀) :
706710
inv data G₀ X₀ ≫ restriction data G₀ f =
@@ -721,6 +725,8 @@ lemma inv_restriction {Y₀ : C₀} (f : F.obj Y₀ ⟶ F.obj X₀) :
721725

722726
end presheafObjObjIso
723727

728+
set_option backward.whnf.reducibleClassField false in
729+
set_option backward.isDefEq.respectTransparency false in
724730
/-- The presheaf `presheaf data G₀` extends `G₀`. -/
725731
noncomputable def presheafObjObjIso (X₀ : C₀) :
726732
(presheaf data G₀).obj (op (F.obj X₀)) ≅ G₀.val.obj (op X₀) where
@@ -737,6 +743,8 @@ noncomputable def presheafObjObjIso (X₀ : C₀) :
737743
dsimp at i b fac ⊢
738744
simp [presheafObjObjIso.hom_map data G₀ _ b fac, ← IsDenseSubsite.mapPreimage_comp, fac]
739745

746+
set_option backward.isDefEq.respectTransparency false in
747+
set_option backward.whnf.reducibleClassField false in
740748
@[reassoc (attr := simp)]
741749
lemma presheafMap_presheafObjObjIso_hom (X : C) (i : (data X).I₀) :
742750
presheafMap data G₀ ((data X).f i) ≫ (presheafObjObjIso data G₀ ((data X).X i)).hom =
@@ -749,6 +757,7 @@ lemma presheafMap_presheafObjObjIso_hom (X : C) (i : (data X).I₀) :
749757
apply restriction_eq_of_fac
750758
simp
751759

760+
set_option backward.isDefEq.respectTransparency false in
752761
@[reassoc]
753762
lemma presheafObjObjIso_inv_naturality {X₀ Y₀ : C₀} (f : X₀ ⟶ Y₀) :
754763
G₀.val.map f.op ≫ (presheafObjObjIso data G₀ X₀).inv =

Mathlib/LinearAlgebra/QuadraticForm/Radical.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ lemma lift_mk {N : Submodule R M} (hN : N ≤ Q.radical) (m : M) :
8686
Q.lift N hN (Submodule.Quotient.mk m) = Q m :=
8787
rfl
8888

89+
set_option backward.isDefEq.respectTransparency false in
8990
/--
9091
Universal property of the radical of a quadratic form:
9192
`Q.radical` is the largest subspace `N` such that

Mathlib/NumberTheory/NumberField/InfinitePlace/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ theorem le_iff_le (x : K) (r : ℝ) : (∀ w : InfinitePlace K, w x ≤ r) ↔
140140

141141
theorem pos_iff {w : InfinitePlace K} {x : K} : 0 < w x ↔ x ≠ 0 := AbsoluteValue.pos_iff w.1
142142

143+
set_option backward.isDefEq.respectTransparency false in
143144
@[simp]
144145
theorem mk_eq_iff {φ ψ : K →+* ℂ} : mk φ = mk ψ ↔ φ = ψ ∨ ComplexEmbedding.conjugate φ = ψ := by
145146
constructor

0 commit comments

Comments
 (0)