import OAI.AlgebraicGeometry.HodgeConjecture.CMVariety.PeriodCone import OAI.Geometry.ComplexTorus.RiemannProjectivity.ExactProjective import OAI.AlgebraicGeometry.HodgeConjecture.CMVariety.AlgebraicProjectiveIrreducibility /-! # Algebraic Projective Torus Model -/ namespace OAI.AlgebraicGeometry.HodgeConjecture.CMVariety.AlgebraicProjectiveTorusModel.CM.Abelian.Algebraization.ProjectiveTorusModel noncomputable section open Set Filter _root_.CategoryTheory _root_.AlgebraicGeometry open scoped _root_.Topology open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] {n : ℕ} theorem coordinates_differentiableAt {f : V → Projectivization ℂ (Fin (n + 1) → ℂ)} {x : V} (hf : ContinuousAt f x) (i : Fin (n + 1)) (hi : Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f x)) (hd : DifferentiableAt ℂ (fun y => ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f y)) x) : DifferentiableAt ℂ (fun y => Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f y)) x := by have hpair : DifferentiableAt ℂ (fun y => ((1 : ℂ), ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f y))) x := (differentiableAt_const 1).prodMk hd have hG := (Geometry.ComplexTorus.RiemannProjectivity.ConeTangentF.Constructions.ConeTangent.insertCoordinate i).differentiableAt.comp x hpair apply hG.congr_of_eventuallyEq filter_upwards [hf.preimage_mem_nhds ((ComplexPoints.Analytic.ProjectiveCharts.isOpen_projectivePatch i).mem_nhds hi)] with y hy change Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (f y) = i.insertNth 1 (ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f y)) ext j refine Fin.succAboveCases i ?_ (fun k => ?_) j · simpa only [Fin.insertNth_apply_same] using Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates_self i (f y) hy · simp only [Fin.insertNth_apply_succAbove] rfl theorem exists_integral_projective_model (Φ : ProjectiveTorusData.CM.Abelian.ProjectivePeriodData) : ∃ (n : ℕ) (f : Φ.periodTorus → Projectivization ℂ (Fin (n + 1) → ℂ)) (e : Φ.periodTorus ≃ₜ ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure.closureOver (range f))), Topology.IsClosedEmbedding f ∧ IsIntegral (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure.closureScheme (range f)) ∧ (∀ t, e t = Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure.liftedMap f t) ∧ ∀ t, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure.inclusionOver (range f)) (e t) = ComplexPoints.Analytic.ProjectiveScheme.projectivizationSchemePoint n (f t) := by obtain ⟨n, f, Q, hf, hd, hQ, hcone⟩ := PeriodCone.CM.Abelian.Algebraization.AlgebraicPeriodCone.period_cone_homogeneous_equations Φ have hsurj := Geometry.ComplexTorus.RiemannProjectivity.ExactProjective.Constructions.ExactProjectiveClosure.liftedMap_surjective f Q hQ hcone let e := (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure.liftedMap_isClosedEmbedding f hf).isEmbedding.toHomeomorphOfSurjective hsurj have hint : IsIntegral (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure.closureScheme (range f)) := AlgebraicProjectiveIrreducibility.CM.Abelian.Algebraization.ProjectiveIrreducibility.closureScheme_integral_of_torus_embedding _ f hf.continuous (by intro z obtain ⟨i, hi⟩ := ComplexPoints.Analytic.ProjectiveCharts.exists_mem_projectiveFinChart_source (f (QuotientAddGroup.mk z)) exact ⟨i, hi, coordinates_differentiableAt (hf.continuous.comp QuotientAddGroup.continuous_mk).continuousAt i hi (hd z i hi).1⟩) exact ⟨n, f, e, hf, hint, fun _ => rfl, Geometry.ComplexTorus.RiemannProjectivity.ProjectiveClosureIs.Constructions.ProjectiveClosure.liftedMap_inclusion f⟩ end end OAI.AlgebraicGeometry.HodgeConjecture.CMVariety.AlgebraicProjectiveTorusModel.CM.Abelian.Algebraization.ProjectiveTorusModel