import OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints import Mathlib.Topology.Constructions import Mathlib.Topology.Separation.Hausdorff /-! # Affine -/ namespace OAI.AlgebraicGeometry /-! # Ordinary topology on affine complex points For a complex algebra `A`, a complex point is an algebra homomorphism `A →ₐ[ℂ] ℂ`. We give these points the topology induced by evaluation into the product `A → ℂ`, where each factor has the usual topology on the complex numbers. Thus this is the topology generated by evaluations of regular functions, not a scheme's Zariski topology. The connection with finite-dimensional affine coordinates is proved separately in `PolynomialEvaluation`. -/ universe u v variable {A : Type u} [CommRing A] [Algebra ℂ A] /-- Evaluation of a regular function at an affine complex point. -/ def Foundations.Scheme.AffineComplexPoints.affineComplexPoints.eval (a : A) (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) : ℂ := x a /-- The ordinary topology generated by all complex-valued regular functions. -/ noncomputable instance Foundations.Scheme.AffineComplexPoints.affineComplexPoints.instTopologicalSpace : TopologicalSpace (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) := TopologicalSpace.induced (fun x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A => (x : A → ℂ)) inferInstance /-- The topology on affine points is induced by their evaluations. -/ theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isInducing_coe : Topology.IsInducing (fun x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A => (x : A → ℂ)) := ⟨rfl⟩ /-- Distinct algebra characters are separated by evaluation. -/ theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isEmbedding_coe : Topology.IsEmbedding (fun x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A => (x : A → ℂ)) := ⟨Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isInducing_coe, DFunLike.coe_injective⟩ /-- Evaluation of every regular function is continuous. -/ @[continuity, fun_prop] theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.continuous_eval (a : A) : Continuous (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.eval a) := (continuous_apply a).comp continuous_induced_dom /-- Continuity into affine points is exactly continuity of all evaluations. -/ theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.continuous_iff {X : Type v} [TopologicalSpace X] (f : X → Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) : Continuous f ↔ ∀ a : A, Continuous (fun x => f x a) := by exact continuous_induced_rng.trans continuous_pi_iff /-- Equivalently, the point topology is the infimum of the evaluation topologies. -/ theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.topology_eq_iInf : (inferInstance : TopologicalSpace (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A)) = ⨅ a : A, TopologicalSpace.induced (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.eval a) inferInstance := by change TopologicalSpace.induced (fun x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A => (x : A → ℂ)) (⨅ a : A, TopologicalSpace.induced (fun f : A → ℂ => f a) inferInstance) = _ rw [induced_iInf] apply iInf_congr intro a rw [induced_compose] rfl /-- Open sets of affine points are intersections with open sets of the product. -/ theorem Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isOpen_iff (s : Set (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A)) : IsOpen s ↔ ∃ t : Set (A → ℂ), IsOpen t ∧ (fun x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A => (x : A → ℂ)) ⁻¹' t = s := Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isInducing_coe.isOpen_iff /-- The ordinary topology on affine complex points is Hausdorff. -/ instance Foundations.Scheme.AffineComplexPoints.affineComplexPoints.instT2Space : T2Space (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) := Foundations.Scheme.AffineComplexPoints.affineComplexPoints.isEmbedding_coe.t2Space end OAI.AlgebraicGeometry