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.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.SheafTraceDegree |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule |
| 3 | |
| 4 | /-! # Trace Rank -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceRank |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! On a connected target, the coefficient trace of one is the actual |
| 11 | finite-flat rank. Thus the native sheaf de Rham transfer has that rank |
| 12 | as its pullback composite, with no extra degree hypothesis. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | section Affine |
| 22 | |
| 23 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) [IsFinite f] [Flat f] |
| 24 | [LocallyOfFinitePresentation f] [PreconnectedSpace Y] |
| 25 | (U : Y.Opens) (hU : IsAffineOpen U) |
| 26 | |
| 27 | local instance : Algebra Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionAlgebra f U |
| 28 | |
| 29 | variable [Module.Free Γ(Y, U) Γ(X, f ⁻¹ᵁ U)] |
| 30 | |
| 31 | include hU in |
| 32 | theorem trace_one (y : Y) : |
| 33 | Algebra.trace Γ(Y, U) Γ(X, f ⁻¹ᵁ U) 1 = (f.finrank y : Γ(Y, U)) := by |
| 34 | classical |
| 35 | nontriviality Γ(Y, U) |
| 36 | let : Module.Finite Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_finite f U hU |
| 37 | let t : PrimeSpectrum Γ(Y, U) := Classical.choice inferInstance |
| 38 | have hr : Module.finrank Γ(Y, U) Γ(X, f ⁻¹ᵁ U) = f.finrank y := |
| 39 | ((congrFun (Module.rankAtStalk_eq_finrank_of_free |
| 40 | (R := Γ(Y, U)) (M := Γ(X, f ⁻¹ᵁ U))) t).symm.trans |
| 41 | (ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionModule_rank f U hU t)).trans |
| 42 | (f.isLocallyConstant_finrank.apply_eq_of_preconnectedSpace _ _) |
| 43 | simpa only [map_one, hr, nsmul_eq_mul, mul_one] using |
| 44 | (Algebra.trace_algebraMap (R := Γ(Y, U)) (S := Γ(X, f ⁻¹ᵁ U)) (1 : Γ(Y, U))) |
| 45 | |
| 46 | end Affine |
| 47 | |
| 48 | open OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceBasis |
| 49 | |
| 50 | variable (R : Type u) [CommRing R] |
| 51 | (X Y : Over (Spec (CommRingCat.of R))) (f : X ⟶ Y) |
| 52 | [IsFinite f.left] [Etale f.left] [IsProper Y.hom] [Smooth Y.hom] |
| 53 | [PreconnectedSpace Y.left] |
| 54 | |
| 55 | theorem pullback_trace (y : Y.left) : |
| 56 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPullbackTo.DeRhamPullback.sheafDirectImage f ≫ DeRhamSheafTrace.trace R X Y f = |
| 57 | f.left.finrank y • 𝟙 (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y) := by |
| 58 | apply SheafTraceDegree.DeRham.pullback_trace_of_degree |
| 59 | intro i |
| 60 | let : Algebra Γ(Y.left, TraceBasis.opens R X Y f i) Γ(X.left, f.left ⁻¹ᵁ TraceBasis.opens R X Y f i) := |
| 61 | ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatChartModule.Construction.affinePreimageSectionAlgebra f.left (TraceBasis.opens R X Y f i) |
| 62 | let : Module.Free Γ(Y.left, TraceBasis.opens R X Y f i) Γ(X.left, f.left ⁻¹ᵁ TraceBasis.opens R X Y f i) := |
| 63 | TraceBasis.sourceFree R X Y f i |
| 64 | exact trace_one f.left (TraceBasis.opens R X Y f i) (Fact.out : IsAffineOpen (TraceBasis.opens R X Y f i)) y |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceRank |