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.TraceBasis |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.DeRhamTraceOverlap |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Sheaf.ComplexBasisGluing |
| 4 | |
| 5 | /-! # De Rham Sheaf Trace -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.DeRhamSheafTrace |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The native finite étale trace is a morphism of the original sheaf |
| 12 | de Rham complexes. It is glued on a basis supplied by the geometry. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.TraceBasis |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] |
| 21 | (X Y : Over (Spec (CommRingCat.of R))) (f : X ⟶ Y) |
| 22 | [IsFinite f.left] [Etale f.left] |
| 23 | |
| 24 | abbrev sourceComplex := ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamPullbackTo.DeRhamPullback.directImage f).mapHomologicalComplex (.up ℕ)).obj |
| 25 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R X) |
| 26 | |
| 27 | local instance (i : TraceBasis.Index R X Y f) : LinearOrder (TraceBasis.coordinateIndex R X Y f i) := |
| 28 | TraceBasis.coordinateOrder R X Y f i |
| 29 | |
| 30 | def localMap (i : TraceBasis.Index R X Y f) : |
| 31 | IntrinsicDeRham.SectionUnit.Intrinsic.sections R X (f.left ⁻¹ᵁ TraceBasis.opens R X Y f i) ⟶ |
| 32 | IntrinsicDeRham.SectionUnit.Intrinsic.sections R Y (TraceBasis.opens R X Y f i) := |
| 33 | AffineOpen.DeRhamTrace.map R X Y f (TraceBasis.opens R X Y f i) (TraceBasis.coordinateIndex R X Y f i) |
| 34 | (Module.Free.chooseBasis (AffineOpen.DeRhamTrace.targetRing R Y (TraceBasis.opens R X Y f i)) |
| 35 | (AffineOpen.DeRhamTrace.sourceRing R X Y f (TraceBasis.opens R X Y f i))) |
| 36 | |
| 37 | def basisMap : Sheaf.ComplexBasisGluing.BasisMap (TraceBasis.opens R X Y f) |
| 38 | (sourceComplex R X Y f) (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y) where |
| 39 | app := localMap R X Y f |
| 40 | naturality i j h := by |
| 41 | let : Fact (TraceBasis.opens R X Y f i ≤ TraceBasis.opens R X Y f j) := ⟨h⟩ |
| 42 | exact AffineOpen.DeRhamTraceOverlap.map_restriction R X Y f |
| 43 | (TraceBasis.opens R X Y f j) (TraceBasis.opens R X Y f i) |
| 44 | (TraceBasis.coordinateIndex R X Y f j) (TraceBasis.coordinateIndex R X Y f i) _ _ |
| 45 | |
| 46 | variable [IsProper Y.hom] [Smooth Y.hom] |
| 47 | |
| 48 | def trace : sourceComplex R X Y f ⟶ AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y := |
| 49 | (basisMap R X Y f).glue (TraceBasis.isBasis R X Y f) |
| 50 | |
| 51 | theorem trace_app (i : TraceBasis.Index R X Y f) (n : ℕ) : |
| 52 | ((trace R X Y f).f n).hom.app (op (TraceBasis.opens R X Y f i)) = (localMap R X Y f i).f n := |
| 53 | (basisMap R X Y f).glue_app (TraceBasis.isBasis R X Y f) n i |
| 54 | |
| 55 | theorem trace_unique (t : sourceComplex R X Y f ⟶ AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y) |
| 56 | (ht : ∀ i n, (t.f n).hom.app (op (TraceBasis.opens R X Y f i)) = (localMap R X Y f i).f n) : |
| 57 | t = trace R X Y f := |
| 58 | (basisMap R X Y f).glue_unique (TraceBasis.isBasis R X Y f) t (fun n i => ht i n) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.DeRhamSheafTrace |