Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FiniteLocalExtension |
| 2 | import Mathlib.RingTheory.DedekindDomain.IntegralClosure |
| 3 | import Mathlib.RingTheory.DedekindDomain.Dvr |
| 4 | import Mathlib.FieldTheory.IsAlgClosed.Basic |
| 5 | |
| 6 | /-! # Evaluation Integers -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.EvaluationIntegers.Lifts |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | The integral closure in a finite separable evaluation field is a finite |
| 14 | local DVR with that field of fractions. When the original residue field |
| 15 | is algebraically closed, the residue extension is canonically trivial. |
| 16 | -/ |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R K L : Type u) [CommRing R] [IsDomain R] |
| 21 | variable [IsDiscreteValuationRing R] [HenselianLocalRing R] |
| 22 | variable [Field K] [Algebra R K] [IsFractionRing R K] |
| 23 | variable [Field L] [Algebra K L] [Module.Finite K L] [Algebra.IsSeparable K L] |
| 24 | variable [Algebra R L] [IsScalarTower R K L] |
| 25 | |
| 26 | abbrev evaluationIntegerRing := integralClosure R L |
| 27 | |
| 28 | include K in |
| 29 | omit [HenselianLocalRing R] in |
| 30 | theorem evaluationIntegerRing_finite : Module.Finite R (evaluationIntegerRing R L) := |
| 31 | IsIntegralClosure.finite R K L (integralClosure R L) |
| 32 | |
| 33 | include K in |
| 34 | theorem evaluationIntegerRing_local : IsLocalRing (evaluationIntegerRing R L) := by |
| 35 | have := evaluationIntegerRing_finite R K L |
| 36 | exact FiniteLocalExtension.Lifts.finite_domain_isLocalRing R (integralClosure R L) |
| 37 | |
| 38 | include K in |
| 39 | omit [IsDiscreteValuationRing R] [HenselianLocalRing R] [Algebra.IsSeparable K L] in |
| 40 | theorem evaluationIntegerRing_fractionField : IsFractionRing (evaluationIntegerRing R L) L := |
| 41 | IsIntegralClosure.isFractionRing_of_finite_extension R K L (integralClosure R L) |
| 42 | |
| 43 | include K in |
| 44 | omit [HenselianLocalRing R] in |
| 45 | theorem evaluationIntegerRing_dedekind : IsDedekindDomain (evaluationIntegerRing R L) := |
| 46 | integralClosure.isDedekindDomain R K L |
| 47 | |
| 48 | include K in |
| 49 | omit [HenselianLocalRing R] in |
| 50 | theorem evaluationIntegerRing_free : Module.Free R (evaluationIntegerRing R L) := by |
| 51 | have : Module.IsTorsionFree R L := Module.IsTorsionFree.trans_faithfulSMul R K L |
| 52 | exact IsIntegralClosure.module_free R K L (integralClosure R L) |
| 53 | |
| 54 | include K in |
| 55 | omit [HenselianLocalRing R] [Module.Finite K L] [Algebra.IsSeparable K L] in |
| 56 | theorem evaluationIntegerRing_not_isField : ¬ IsField (evaluationIntegerRing R L) := by |
| 57 | intro h |
| 58 | apply IsDiscreteValuationRing.not_isField (R := R) |
| 59 | apply isField_of_isIntegral_of_isField (S := integralClosure R L) _ h |
| 60 | intro x y he |
| 61 | have hL : algebraMap R L x = algebraMap R L y := congrArg Subtype.val he |
| 62 | rw [IsScalarTower.algebraMap_eq R K L] at hL |
| 63 | exact (IsFractionRing.injective R K) ((algebraMap K L).injective hL) |
| 64 | |
| 65 | include K in |
| 66 | theorem evaluationIntegerRing_dvr : IsDiscreteValuationRing (evaluationIntegerRing R L) := by |
| 67 | have := evaluationIntegerRing_dedekind R K L |
| 68 | have := evaluationIntegerRing_local R K L |
| 69 | exact ((IsDiscreteValuationRing.TFAE (evaluationIntegerRing R L) |
| 70 | (evaluationIntegerRing_not_isField R K L)).out 1 3).mpr |
| 71 | (evaluationIntegerRing_dedekind R K L) |
| 72 | |
| 73 | include K in |
| 74 | /-- The evaluation extension has a constructed finite DVR of integers, |
| 75 | with no locality or discrete-valuation assumption on that integral closure. -/ |
| 76 | theorem evaluationIntegerRing_geometry : |
| 77 | Module.Finite R (evaluationIntegerRing R L) ∧ |
| 78 | Module.Free R (evaluationIntegerRing R L) ∧ |
| 79 | IsDiscreteValuationRing (evaluationIntegerRing R L) ∧ |
| 80 | IsFractionRing (evaluationIntegerRing R L) L := |
| 81 | ⟨evaluationIntegerRing_finite R K L, evaluationIntegerRing_free R K L, |
| 82 | evaluationIntegerRing_dvr R K L, evaluationIntegerRing_fractionField R K L⟩ |
| 83 | |
| 84 | variable [IsAlgClosed (IsLocalRing.ResidueField R)] |
| 85 | |
| 86 | /-- The residue extension is the actual residue map of the finite local |
| 87 | extension; algebraic closedness proves that it is an isomorphism. -/ |
| 88 | def evaluationIntegerResidueIso : |
| 89 | letI := evaluationIntegerRing_local R K L |
| 90 | IsLocalRing.ResidueField R ≃+* IsLocalRing.ResidueField (evaluationIntegerRing R L) := by |
| 91 | letI := evaluationIntegerRing_local R K L |
| 92 | have := evaluationIntegerRing_finite R K L |
| 93 | exact RingEquiv.ofBijective |
| 94 | (algebraMap (IsLocalRing.ResidueField R) |
| 95 | (IsLocalRing.ResidueField (evaluationIntegerRing R L))) |
| 96 | IsAlgClosed.algebraMap_bijective_of_isIntegral |
| 97 | |
| 98 | theorem evaluationIntegerResidueIso_comp (r : R) : |
| 99 | letI := evaluationIntegerRing_local R K L |
| 100 | evaluationIntegerResidueIso R K L (IsLocalRing.residue R r) = |
| 101 | IsLocalRing.residue (evaluationIntegerRing R L) |
| 102 | (algebraMap R (evaluationIntegerRing R L) r) := rfl |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.EvaluationIntegers.Lifts |