Download data/lean/OAI/AlgebraicGeometry/ClosedImmersion/SourceOpen.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.05 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ClosedImmersion/SourceOpen.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/ClosedImmersion/SourceOpen.lean
-
curl -L -o SourceOpen.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ClosedImmersion/SourceOpen.lean
4.05 kB
| /- | |
| Copyright 2026 The Formal Conjectures Authors. | |
| Released under Apache 2.0 license as described in the file LICENSE. | |
| This file has been modified. | |
| -/ | |
| import Mathlib.AlgebraicGeometry.Morphisms.Immersion | |
| import OAI.AlgebraicGeometry.Stratification.AnalytificationIs | |
| /-! # Source Open -/ | |
| namespace OAI.AlgebraicGeometry.ClosedImmersion.SourceOpen | |
| noncomputable section | |
| open _root_.AlgebraicGeometry | |
| /-! | |
| # Restricting the source of a closed immersion without losing closedness | |
| For a closed immersion `i: Y ⟶ X` and an open `A ⊆ Y`, delete `i(Y \ A)` | |
| from the target. The map from `A` into this target open is closed, and its | |
| image is exactly the restriction of the original image. This allows a smooth | |
| source of varying local dimensions to be treated on fixed-dimensional opens. | |
| -/ | |
| open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace | |
| variable {X Y : Scheme} (i : Y ⟶ X) [IsClosedImmersion i] (A : Y.Opens) | |
| /-- Let `i: Y → X` be a closed immersion of schemes and `A ⊆ Y` open. This is the open subset `X \ | |
| i(Y \ A)`. Its inverse image in `Y` is `A`, and the image of `A` is closed in this open subset. -/ | |
| def closedImmersionSourceOpenTarget : X.Opens := | |
| ⟨(i '' (A : Set Y)ᶜ)ᶜ, (i.isClosedEmbedding.isClosedMap _ A.isOpen.isClosed_compl).isOpen_compl⟩ | |
| theorem closedImmersionSourceOpenTarget_preimage : | |
| i ⁻¹' (closedImmersionSourceOpenTarget i A : Set X) = (A : Set Y) := by | |
| change i ⁻¹' (i '' (A : Set Y)ᶜ)ᶜ = (A : Set Y) | |
| rw [Set.preimage_compl, Set.preimage_image_eq _ i.isClosedEmbedding.injective, | |
| compl_compl] | |
| /-- Let `i: Y → X` be a closed immersion of schemes and `A ⊆ Y` open. This is the restricted | |
| morphism `A → X \ i(Y \ A)`, obtained by factoring the inclusion of `A` followed by `i` through | |
| that open subscheme of `X`. -/ | |
| def closedImmersionSourceOpenLift : (A : Scheme) ⟶ (closedImmersionSourceOpenTarget i A : Scheme) := | |
| IsOpenImmersion.lift (closedImmersionSourceOpenTarget i A).ι (A.ι ≫ i) (by | |
| rw [Scheme.Opens.range_ι] | |
| rintro _ ⟨a, rfl⟩ | |
| change a.1 ∈ i ⁻¹' (closedImmersionSourceOpenTarget i A : Set X) | |
| rw [closedImmersionSourceOpenTarget_preimage] | |
| exact a.2) | |
| @[reassoc (attr := simp)] | |
| theorem closedImmersionSourceOpenLift_ι : | |
| closedImmersionSourceOpenLift i A ≫ (closedImmersionSourceOpenTarget i A).ι = A.ι ≫ i := | |
| IsOpenImmersion.lift_fac _ _ _ | |
| /-- In the target open, the restricted image is the original closed support. -/ | |
| theorem range_closedImmersionSourceOpenLift : | |
| Set.range (closedImmersionSourceOpenLift i A) = | |
| (closedImmersionSourceOpenTarget i A).ι ⁻¹' Set.range i := by | |
| have hf (a : A) : | |
| (closedImmersionSourceOpenTarget i A).ι (closedImmersionSourceOpenLift i A a) = i a.1 := | |
| congrArg (fun f => f a) (closedImmersionSourceOpenLift_ι i A) | |
| ext y | |
| constructor | |
| · rintro ⟨a, rfl⟩ | |
| exact ⟨a.1, (hf a).symm⟩ | |
| · rintro ⟨a, ha⟩ | |
| have haA : a ∈ A := by | |
| change a ∈ (A : Set Y) | |
| rw [← closedImmersionSourceOpenTarget_preimage i A] | |
| change i a ∈ (closedImmersionSourceOpenTarget i A : Set X) | |
| exact ha ▸ y.2 | |
| refine ⟨⟨a, haA⟩, (closedImmersionSourceOpenTarget i A).ι.isOpenEmbedding.injective ?_⟩ | |
| exact (hf ⟨a, haA⟩).trans ha | |
| /-- Restricting the source in this way produces a closed immersion. -/ | |
| instance closedImmersionSourceOpenLift_isClosedImmersion : | |
| IsClosedImmersion (closedImmersionSourceOpenLift i A) := by | |
| have : IsPreimmersion (closedImmersionSourceOpenLift i A ≫ | |
| (closedImmersionSourceOpenTarget i A).ι) := by | |
| rw [closedImmersionSourceOpenLift_ι] | |
| infer_instance | |
| let : IsPreimmersion (closedImmersionSourceOpenLift i A) := | |
| .of_comp (closedImmersionSourceOpenLift i A) (closedImmersionSourceOpenTarget i A).ι | |
| apply IsClosedImmersion.of_isPreimmersion | |
| rw [range_closedImmersionSourceOpenLift] | |
| exact i.isClosedEmbedding.isClosed_range.preimage | |
| (closedImmersionSourceOpenTarget i A).ι.continuous | |
| end | |
| end OAI.AlgebraicGeometry.ClosedImmersion.SourceOpen | |