import OAI.AlgebraicGeometry.FormalGeometry.Completion.TorsionPointAction import OAI.AlgebraicGeometry.FormalGeometry.Completion.RationalPointLift import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.FiniteGeneration import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Functor import Mathlib.LinearAlgebra.FreeModule.PID /-! # Tate Module -/ namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.TateModule noncomputable section /-! Finite free Tate modules of actual geometric points in arbitrary characteristic, at primes invertible in the ground field. -/ open _root_.CategoryTheory _root_.AlgebraicGeometry open MonoidalCategory open scoped _root_.CategoryTheory.MonObj open OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Functor universe u variable {k : Type u} [Field k] [IsAlgClosed k] (A : Over (Spec (.of k))) [GrpObj A] [IsCommMonObj A] [Smooth A.hom] [IsProper A.hom] [GeometricallyIntegral A.hom] abbrev Points := Additive (πŸ™_ (Over (Spec (.of k))) ⟢ A) theorem divisible (n : β„•) (hn : (n : k) β‰  0) (x : Points A) : βˆƒ y : Points A, n β€’ y = x := by let m := ((πŸ™ A : A ⟢ A) ^ n) let : IsFinite m.left := AlgebraicGeometry.FormalGeometry.Completion.Multiplication.Construction.multiplication_isFinite A n hn let : Surjective m.left := AlgebraicGeometry.FormalGeometry.Completion.Multiplication.Construction.multiplication_surjective A n hn obtain ⟨y, hy⟩ := AlgebraicGeometry.FormalGeometry.Completion.RationalPointLift.Construction.exists_rationalPoint_lift m.left x.toMul.left have yw : y ≫ A.hom = πŸ™ _ := by rw [← m.w, ← Category.assoc, hy] exact x.toMul.w let y' : πŸ™_ (Over (Spec (.of k))) ⟢ A := Over.homMk y yw have hy' : y' ≫ m = x.toMul := by apply Over.OverMorphism.ext exact hy refine ⟨Additive.ofMul y', ?_⟩ apply Additive.toMul.injective rw [toMul_nsmul] change y' ^ n = x.toMul simpa only [m, MonObj.comp_pow, Category.comp_id] using hy' variable (β„“ : β„•) [Fact β„“.Prime] (hβ„“ : (β„“ : k) β‰  0) include hβ„“ omit [GeometricallyIntegral A.hom] [Fact (Nat.Prime β„“)] in theorem torsion_finite (n : β„•) : Finite (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.torsion β„“ (Points A) n) := by let : Finite (AlgebraicGeometry.FormalGeometry.Completion.TorsionPointAction.Construction.geometricTorsionPoints A (β„“ ^ n)) := AlgebraicGeometry.FormalGeometry.Completion.TorsionPointAction.Construction.geometricTorsionPoints_finite A (β„“ ^ n) (by rw [Nat.cast_pow] exact pow_ne_zero n hβ„“) let f : AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.torsion β„“ (Points A) n β†’ AlgebraicGeometry.FormalGeometry.Completion.TorsionPointAction.Construction.geometricTorsionPoints A (β„“ ^ n) := fun x => ⟨x.val.toMul, congrArg Additive.toMul x.property⟩ apply Finite.of_injective f intro x y h apply Subtype.ext apply Additive.toMul.injective exact congrArg Subtype.val h theorem finite : Module.Finite β„€_[β„“] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := Points A) β„“) := by let : Finite (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.torsion β„“ (Points A) 1) := torsion_finite A β„“ hβ„“ 1 exact AlgebraicGeometry.AbelianScheme.TateComparison.FiniteGeneration.Tate.finite_of_finite_torsion β„“ (divisible A β„“ hβ„“) theorem free : Module.Free β„€_[β„“] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := Points A) β„“) := by let : Module.Finite β„€_[β„“] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := Points A) β„“) := finite A β„“ hβ„“ infer_instance theorem evaluate_surjective (n : β„•) : Function.Surjective (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate (H := Points A) β„“ n) := AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate_surjective β„“ (divisible A β„“ hβ„“) n end end OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.TateModule