Skip to content

Commit d1fddb3

Browse files
committed
chore(AlgebraicGeometry/Stalk): remove erws (#38726)
- rewrites both branches of `IsAffineOpen.fromSpecStalk_eq` using `Spec.map_comp_assoc` and `TopCat.Presheaf.germ_res`, replacing the longer `Scheme.Spec_map`/`Functor.map_comp_assoc` chain Extracted from #38415 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent 24972cd commit d1fddb3

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

Mathlib/AlgebraicGeometry/Stalk.lean

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ noncomputable def IsAffineOpen.fromSpecStalk
4242
Spec (X.presheaf.stalk x) ⟶ X :=
4343
Spec.map (X.presheaf.germ _ x hxU) ≫ hU.fromSpec
4444

45-
set_option backward.isDefEq.respectTransparency false in
4645
/--
4746
The morphism from `Spec(O_x)` to `X` given by `IsAffineOpen.fromSpec` does not depend on the affine
4847
open neighborhood of `x` we choose.
@@ -53,15 +52,11 @@ theorem IsAffineOpen.fromSpecStalk_eq (x : X) (hxU : x ∈ U) (hxV : x ∈ V) :
5352
Opens.isBasis_iff_nbhd.mp X.isBasis_affineOpens (show x ∈ U ⊓ V from ⟨hxU, hxV⟩)
5453
transitivity fromSpecStalk h₁ h₂
5554
· delta fromSpecStalk
56-
rw [← hU.map_fromSpec h₁ (homOfLE <| h₃.trans inf_le_left).op]
57-
erw [← Scheme.Spec_map (X.presheaf.map _).op, ← Scheme.Spec_map (X.presheaf.germ _ x h₂).op]
58-
rw [← Functor.map_comp_assoc, ← op_comp, TopCat.Presheaf.germ_res, Scheme.Spec_map,
59-
Quiver.Hom.unop_op]
55+
rw [← hU.map_fromSpec h₁ (homOfLE <| h₃.trans inf_le_left).op, ← Spec.map_comp_assoc,
56+
TopCat.Presheaf.germ_res]
6057
· delta fromSpecStalk
61-
rw [← hV.map_fromSpec h₁ (homOfLE <| h₃.trans inf_le_right).op]
62-
erw [← Scheme.Spec_map (X.presheaf.map _).op, ← Scheme.Spec_map (X.presheaf.germ _ x h₂).op]
63-
rw [← Functor.map_comp_assoc, ← op_comp, TopCat.Presheaf.germ_res, Scheme.Spec_map,
64-
Quiver.Hom.unop_op]
58+
rw [← hV.map_fromSpec h₁ (homOfLE <| h₃.trans inf_le_right).op, ← Spec.map_comp_assoc,
59+
TopCat.Presheaf.germ_res]
6560

6661
/--
6762
If `x` is a point of `X`, this is the canonical morphism from `Spec(O_x)` to `X`.

0 commit comments

Comments
 (0)