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.GeometricComparison.IntrinsicCech.Functor |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange |
| 3 | import Mathlib.CategoryTheory.Limits.FunctorCategory.Basic |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.Lattice |
| 5 | |
| 6 | /-! # Image -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Cech.Image.CechImage |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual direct image of presheaves carries the Čech complex on inverse-image opens to the original Čech complex. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Limits Opposite _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 19 | |
| 20 | def preimage : Y.Opens ⥤ X.Opens := TopologicalSpace.Opens.map f.base |
| 21 | |
| 22 | instance preimage_preservesFiniteLimits : PreservesFiniteLimits (preimage f) := by |
| 23 | change PreservesFiniteLimits (OrderHom.ofClass f.base.frameHom).toFunctor |
| 24 | infer_instance |
| 25 | |
| 26 | def functor : AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X ⥤ AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R Y := |
| 27 | (Functor.whiskeringLeft Y.Opensᵒᵖ X.Opensᵒᵖ (ModuleCat.{u} R)).obj (preimage f).op |
| 28 | |
| 29 | instance additive : (functor R f).Additive := by |
| 30 | dsimp only [functor] |
| 31 | infer_instance |
| 32 | |
| 33 | instance preservesLimits : PreservesLimitsOfSize.{u, u} (functor R f) := by |
| 34 | dsimp only [functor] |
| 35 | infer_instance |
| 36 | |
| 37 | def coefficientsIso (P : AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X) : |
| 38 | AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.intersectionCoefficients R Y ((functor R f).obj P) ≅ |
| 39 | (preimage f).op ⋙ AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.intersectionCoefficients R X P ⋙ functor R f := |
| 40 | NatIso.ofComponents (fun _ => Iso.refl _) (by |
| 41 | intro U V a |
| 42 | apply NatTrans.ext |
| 43 | funext W |
| 44 | rfl) |
| 45 | |
| 46 | def complexIso {ι : Type u} (U : ι → Y.Opens) (P : AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.Presheaves R X) : |
| 47 | AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.complex R Y U ((functor R f).obj P) ≅ |
| 48 | ((functor R f).mapHomologicalComplex (.up ℕ)).obj |
| 49 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.complex R X (fun i => f ⁻¹ᵁ U i) P) := |
| 50 | (cechComplexFunctor U).mapIso (coefficientsIso R f P) ≪≫ |
| 51 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.CoefficientChange.CechCoefficientChange.complexIso (functor R f) (FormalCoproduct.mk ι U).cech |
| 52 | ((preimage f).op ⋙ AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.intersectionCoefficients R X P)).symm ≪≫ |
| 53 | ((functor R f).mapHomologicalComplex (.up ℕ)).mapIso |
| 54 | (AlgebraicGeometry.Crystalline.Cohomology.Cech.BaseChange.CechBaseChange.complexIso (preimage f) U (AlgebraicGeometry.Crystalline.Cohomology.Cech.Presheaf.CechPresheaf.intersectionCoefficients R X P)) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Cech.Image.CechImage |