|
| 1 | +/- |
| 2 | +Copyright (c) 2024 Andrew Yang. All rights reserved. |
| 3 | +Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | +Authors: Andrew Yang |
| 5 | +-/ |
| 6 | +import Mathlib.AlgebraicGeometry.Morphisms.UnderlyingMap |
| 7 | +import Mathlib.RingTheory.LocalProperties |
| 8 | + |
| 9 | +/-! |
| 10 | +
|
| 11 | +# Preimmersions of schemes |
| 12 | +
|
| 13 | +A morphism of schemes `f : X ⟶ Y` is a preimmersion if the underlying map of topological spaces |
| 14 | +is an embedding and the induced morphisms of stalks are all surjective. This is not a concept seen |
| 15 | +in the literature but it is useful for generalizing results on immersions to other maps including |
| 16 | +`Spec 𝒪_{X, x} ⟶ X` and inclusions of fibers `κ(x) ×ₓ Y ⟶ Y`. |
| 17 | +
|
| 18 | +## TODO |
| 19 | +
|
| 20 | +* Show preimmersions are local at the target. |
| 21 | +* Show preimmersions are stable under pullback. |
| 22 | +* Show that `Spec f` is a preimmersion for `f : R ⟶ S` if every `s : S` is of the form `f a / f b`. |
| 23 | +
|
| 24 | +-/ |
| 25 | + |
| 26 | +universe v u |
| 27 | + |
| 28 | +open CategoryTheory |
| 29 | + |
| 30 | +namespace AlgebraicGeometry |
| 31 | + |
| 32 | +/-- A morphism of schemes `f : X ⟶ Y` is a preimmersion if the underlying map of |
| 33 | +topological spaces is an embedding and the induced morphisms of stalks are all surjective. -/ |
| 34 | +@[mk_iff] |
| 35 | +class IsPreimmersion {X Y : Scheme} (f : X ⟶ Y) : Prop where |
| 36 | + base_embedding : Embedding f.1.base |
| 37 | + surj_on_stalks : ∀ x, Function.Surjective (f.stalkMap x) |
| 38 | + |
| 39 | +lemma Scheme.Hom.embedding {X Y : Scheme} (f : Hom X Y) [IsPreimmersion f] : Embedding f.1.base := |
| 40 | + IsPreimmersion.base_embedding |
| 41 | + |
| 42 | +lemma Scheme.Hom.stalkMap_surjective {X Y : Scheme} (f : Hom X Y) [IsPreimmersion f] (x) : |
| 43 | + Function.Surjective (f.stalkMap x) := |
| 44 | + IsPreimmersion.surj_on_stalks x |
| 45 | + |
| 46 | +lemma isPreimmersion_eq_inf : |
| 47 | + @IsPreimmersion = topologically Embedding ⊓ stalkwise (Function.Surjective ·) := by |
| 48 | + ext |
| 49 | + rw [isPreimmersion_iff] |
| 50 | + rfl |
| 51 | + |
| 52 | +/-- Being surjective on stalks is local at the target. -/ |
| 53 | +instance isSurjectiveOnStalks_isLocalAtTarget : IsLocalAtTarget |
| 54 | + (stalkwise (Function.Surjective ·)) := |
| 55 | + stalkwiseIsLocalAtTarget_of_respectsIso surjective_respectsIso |
| 56 | + |
| 57 | +namespace IsPreimmersion |
| 58 | + |
| 59 | +instance : IsLocalAtTarget @IsPreimmersion := |
| 60 | + isPreimmersion_eq_inf ▸ inferInstance |
| 61 | + |
| 62 | +instance (priority := 900) {X Y : Scheme} (f : X ⟶ Y) [IsOpenImmersion f] : IsPreimmersion f where |
| 63 | + base_embedding := f.openEmbedding.toEmbedding |
| 64 | + surj_on_stalks _ := (ConcreteCategory.bijective_of_isIso _).2 |
| 65 | + |
| 66 | +instance : MorphismProperty.IsMultiplicative @IsPreimmersion where |
| 67 | + id_mem _ := inferInstance |
| 68 | + comp_mem {X Y Z} f g hf hg := by |
| 69 | + refine ⟨hg.base_embedding.comp hf.base_embedding, fun x ↦ ?_⟩ |
| 70 | + rw [Scheme.stalkMap_comp] |
| 71 | + exact (hf.surj_on_stalks x).comp (hg.surj_on_stalks (f.1.1 x)) |
| 72 | + |
| 73 | +instance comp {X Y Z : Scheme} (f : X ⟶ Y) (g : Y ⟶ Z) [IsPreimmersion f] |
| 74 | + [IsPreimmersion g] : IsPreimmersion (f ≫ g) := |
| 75 | + MorphismProperty.IsStableUnderComposition.comp_mem f g inferInstance inferInstance |
| 76 | + |
| 77 | +instance (priority := 900) {X Y} (f : X ⟶ Y) [IsPreimmersion f] : Mono f := by |
| 78 | + refine (Scheme.forgetToLocallyRingedSpace ⋙ |
| 79 | + LocallyRingedSpace.forgetToSheafedSpace).mono_of_mono_map ?_ |
| 80 | + apply SheafedSpace.mono_of_base_injective_of_stalk_epi |
| 81 | + · exact f.embedding.inj |
| 82 | + · exact fun x ↦ ConcreteCategory.epi_of_surjective _ (f.stalkMap_surjective x) |
| 83 | + |
| 84 | +theorem of_comp {X Y Z : Scheme} (f : X ⟶ Y) (g : Y ⟶ Z) [IsPreimmersion g] |
| 85 | + [IsPreimmersion (f ≫ g)] : IsPreimmersion f where |
| 86 | + base_embedding := by |
| 87 | + have h := (f ≫ g).embedding |
| 88 | + rwa [← g.embedding.of_comp_iff] |
| 89 | + surj_on_stalks x := by |
| 90 | + have h := (f ≫ g).stalkMap_surjective x |
| 91 | + rw [Scheme.stalkMap_comp] at h |
| 92 | + exact Function.Surjective.of_comp h |
| 93 | + |
| 94 | +theorem comp_iff {X Y Z : Scheme} (f : X ⟶ Y) (g : Y ⟶ Z) [IsPreimmersion g] : |
| 95 | + IsPreimmersion (f ≫ g) ↔ IsPreimmersion f := |
| 96 | + ⟨fun _ ↦ of_comp f g, fun _ ↦ inferInstance⟩ |
| 97 | + |
| 98 | +end IsPreimmersion |
| 99 | + |
| 100 | +end AlgebraicGeometry |
0 commit comments