import OAI.AlgebraicGeometry.ComplexPoints.Analytic.OpenImmersion import OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineSchemePointTopology import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport import Mathlib.AlgebraicGeometry.Cover.Open import Mathlib.AlgebraicGeometry.AffineScheme import Mathlib.Topology.Maps.OpenQuotient /-! # Scheme Affine Cover -/ namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic noncomputable section /-! # Native scheme open covers on ordinary complex points Every native scheme open cover induces an actual open cover of its complex points. Its disjoint-union map is an open quotient map, so the ordinary point topology is exactly the topology obtained by gluing the chosen cover. In particular this applies to mathlib's canonical affine cover without any extra point-coverage hypothesis. -/ open _root_.CategoryTheory _root_.AlgebraicGeometry universe v /-- A member of a native scheme open cover, with the inherited complex structure map. -/ def SchemePointHomeomorphs.schemeComplexPoints.openCoverObject (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) (i : ๐’ฐ.Iโ‚€) : Over Foundations.Scheme.ProjectiveSpace.complexBase := Over.mk (๐’ฐ.f i โ‰ซ X.hom) /-- The actual relative open immersion of a cover member into the original scheme. -/ def SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) (i : ๐’ฐ.Iโ‚€) : SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X ๐’ฐ i โŸถ X := Over.homMk (๐’ฐ.f i) rfl instance SchemePointHomeomorphs.schemeComplexPoints.isOpenImmersion_openCoverInclusion (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) (i : ๐’ฐ.Iโ‚€) : IsOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X ๐’ฐ i).left := by change IsOpenImmersion (๐’ฐ.f i) infer_instance /-- The induced map from the native complex points of one cover member. -/ def SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) (i : ๐’ฐ.Iโ‚€) : SchemePointHomeomorphs.schemeComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X ๐’ฐ i) โ†’ SchemePointHomeomorphs.schemeComplexPoints X := SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X ๐’ฐ i) /-- Native scheme coverage implies coverage of complex-valued points, by the proved lifting property of open immersions. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.exists_openCoverPoint_lift (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) (p : SchemePointHomeomorphs.schemeComplexPoints X) : โˆƒ i, โˆƒ q : SchemePointHomeomorphs.schemeComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X ๐’ฐ i), SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ i q = p := by let i := ๐’ฐ.idx (SchemePointHomeomorphs.schemeComplexPoints.underlying p) have hp : p โˆˆ Set.range (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X ๐’ฐ i)) := by rw [SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isOpenImmersion] exact ๐’ฐ.covers (SchemePointHomeomorphs.schemeComplexPoints.underlying p) obtain โŸจq, hqโŸฉ := hp exact โŸจi, q, hqโŸฉ /-- Each map in the induced cover is an open embedding for the ordinary topology. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_openCoverPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) (i : ๐’ฐ.Iโ‚€) : Topology.IsOpenEmbedding (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ i) := SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X ๐’ฐ i) /-- The induced cover really covers every complex-valued point. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.iUnion_range_openCoverPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) : (โ‹ƒ i, Set.range (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ i)) = Set.univ := by apply Set.eq_univ_of_forall intro p obtain โŸจi, q, hqโŸฉ := SchemePointHomeomorphs.schemeComplexPoints.exists_openCoverPoint_lift X ๐’ฐ p exact Set.mem_iUnion.mpr โŸจi, q, hqโŸฉ /-- The disjoint union of the native complex point spaces of a native open cover. -/ def SchemePointHomeomorphs.schemeComplexPoints.openCoverSigmaPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) : (ฮฃ i, SchemePointHomeomorphs.schemeComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X ๐’ฐ i)) โ†’ SchemePointHomeomorphs.schemeComplexPoints X := fun p => SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ p.1 p.2 /-- The map from the disjoint union of cover members is an open quotient map. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.isOpenQuotientMap_openCoverSigmaPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) : IsOpenQuotientMap (SchemePointHomeomorphs.schemeComplexPoints.openCoverSigmaPointMap X ๐’ฐ) where surjective p := by obtain โŸจi, q, hqโŸฉ := SchemePointHomeomorphs.schemeComplexPoints.exists_openCoverPoint_lift X ๐’ฐ p exact โŸจโŸจi, qโŸฉ, hqโŸฉ continuous := continuous_sigma fun i => (SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_openCoverPointMap X ๐’ฐ i).continuous isOpenMap := isOpenMap_sigma.mpr fun i => (SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_openCoverPointMap X ๐’ฐ i).isOpenMap /-- Openness is detected on any native scheme open cover. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.isOpen_iff_openCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) (S : Set (SchemePointHomeomorphs.schemeComplexPoints X)) : IsOpen S โ†” โˆ€ i, IsOpen (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ i โปยน' S) := (SchemePointHomeomorphs.schemeComplexPoints.isOpenQuotientMap_openCoverSigmaPointMap X ๐’ฐ).isQuotientMap.isCoinducing.isOpen_preimage.symm.trans isOpen_sigma_iff /-- Continuity is detected on any chosen native scheme open cover. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_openCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) {T : Type*} [TopologicalSpace T] (F : SchemePointHomeomorphs.schemeComplexPoints X โ†’ T) : Continuous F โ†” โˆ€ i, Continuous (F โˆ˜ SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ i) := (SchemePointHomeomorphs.schemeComplexPoints.isOpenQuotientMap_openCoverSigmaPointMap X ๐’ฐ).isQuotientMap.continuous_iff.trans continuous_sigma_iff /-- The final affine-test topology is exactly the topology obtained by gluing any native open cover, including the canonical affine cover. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.analyticTopology_eq_openCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (๐’ฐ : Scheme.OpenCover.{v} X.left) : SchemePointHomeomorphs.schemeComplexPoints.analyticTopology X = โจ† i, TopologicalSpace.coinduced (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ i) inferInstance := by apply TopologicalSpace.ext_iff.mpr intro S change IsOpen S โ†” _ exact (SchemePointHomeomorphs.schemeComplexPoints.isOpen_iff_openCover X ๐’ฐ S).trans (isOpen_iSup_iff (t := fun i => TopologicalSpace.coinduced (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X ๐’ฐ i) inferInstance)).symm /-- Members of the canonical cover retain their genuine affine scheme structure. -/ instance SchemePointHomeomorphs.schemeComplexPoints.isAffine_openCoverObject_affineCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (i : X.left.affineCover.Iโ‚€) : IsAffine (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X X.left.affineCover i).left := by change IsAffine (X.left.affineCover.X i) infer_instance /-- The canonical affine cover detects continuity on ordinary complex points. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_affineCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) {T : Type*} [TopologicalSpace T] (F : SchemePointHomeomorphs.schemeComplexPoints X โ†’ T) : Continuous F โ†” โˆ€ i, Continuous (F โˆ˜ SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X X.left.affineCover i) := SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_openCover X X.left.affineCover F /-- The actual algebra of sections on an open set, with scalars induced by the given structure morphism to the complex base. -/ def SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) : CommAlgCat โ„‚ := by letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra X.hom U exact CommAlgCat.of โ„‚ ฮ“(X.left, U) /-- The canonical spectrum-of-sections map of an affine open, as a morphism over the complex base. -/ def SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) (hU : IsAffineOpen U) : Foundations.Scheme.AffineComplexPoints.affineSchemeOver โ„‚ (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) โŸถ X := by refine Over.homMk hU.fromSpec ?_ change hU.fromSpec โ‰ซ X.hom = Spec.map (CommRingCat.ofHom (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap X.hom U)) exact (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec X.hom U hU).symm instance SchemePointHomeomorphs.schemeComplexPoints.isOpenImmersion_affineOpenSchemeMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) (hU : IsAffineOpen U) : IsOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU).left := by change IsOpenImmersion hU.fromSpec infer_instance /-- The canonical map from characters of an affine open's actual section algebra to global complex-valued scheme points. -/ def SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) (hU : IsAffineOpen U) : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) โ†’ SchemePointHomeomorphs.schemeComplexPoints X := SchemePointHomeomorphs.schemeComplexPoints.affinePointMap (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU) /-- The spectrum-of-sections chart is an open embedding in the ordinary topology. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_affineOpenPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) (hU : IsAffineOpen U) : Topology.IsOpenEmbedding (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) := (SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU)).comp (SchemePointHomeomorphs.affineSchemePointHomeomorph (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U)).isOpenEmbedding /-- The actual section-algebra chart has exactly the expected affine-open point image. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) (hU : IsAffineOpen U) : Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) = SchemePointHomeomorphs.schemeComplexPoints.underlying โปยน' (U : Set X.left) := by have hr : Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) = Set.range (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU)) := by change Set.range (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU) โˆ˜ SchemePointHomeomorphs.affineSchemePointEquiv (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U)) = _ rw [Set.range_comp, (SchemePointHomeomorphs.affineSchemePointEquiv (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U)).surjective.range_eq, Set.image_univ] rw [hr, SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isOpenImmersion] change SchemePointHomeomorphs.schemeComplexPoints.underlying โปยน' Set.range hU.fromSpec = _ rw [hU.range_fromSpec] /-- Every native complex point has coordinates in the actual section algebra of an affine open from the canonical scheme cover. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.exists_affineOpenPoint_lift (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (p : SchemePointHomeomorphs.schemeComplexPoints X) : โˆƒ U : X.left.Opens, โˆƒ hU : IsAffineOpen U, โˆƒ x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U), SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU x = p := by let i := X.left.affineCover.idx (SchemePointHomeomorphs.schemeComplexPoints.underlying p) let U : X.left.Opens := (X.left.affineCover.f i).opensRange have hU : IsAffineOpen U := isAffineOpen_opensRange (X.left.affineCover.f i) have hp : p โˆˆ Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) := by rw [SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap] exact X.left.affineCover.covers (SchemePointHomeomorphs.schemeComplexPoints.underlying p) obtain โŸจx, hxโŸฉ := hp exact โŸจU, hU, x, hxโŸฉ /-- The chosen canonical affine cover tests continuity directly on the ordinary character spaces of its actual global-section algebras. -/ theorem SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_affineCoverGamma (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) {T : Type*} [TopologicalSpace T] (F : SchemePointHomeomorphs.schemeComplexPoints X โ†’ T) : Continuous F โ†” โˆ€ i, Continuous (F โˆ˜ SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X X.left.affineCover i โˆ˜ (AffineSchemePointTopology.affineNativePointHomeomorph (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X X.left.affineCover i)).symm) := by rw [SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_affineCover X F] apply forall_congr' intro i exact (AffineSchemePointTopology.affineNativePointHomeomorph (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X X.left.affineCover i)).symm.comp_continuous_iff'.symm end end OAI.AlgebraicGeometry.ComplexPoints.Analytic