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.IntegralFirst.ThreeSheafUnit |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.IntrinsicCech.CechBicomplex |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Cech.TermwiseIso |
| 4 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.Cochains |
| 5 | |
| 6 | /-! # Cech Coordinate Unit -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.IntegralAffine.CechCoordinateUnit.IntegralAffineCechCoordinateUnit |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Coordinate Čech cochains through form degree two agree with the actual native integral sheaf Čech complex. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | variable (R : Type) [CommRing R] (X : Over (Spec (CommRingCat.of R))) [IsSeparated X.hom] |
| 17 | {ι : Type} (U : ι → X.left.Opens) |
| 18 | |
| 19 | local notation "P" => OAI.NumberTheory.PadicHodge.GeometricComparison.FirstThree.ThreeComplex.FirstThreeComplex.complex (OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X) |
| 20 | local notation "K" => OAI.NumberTheory.PadicHodge.GeometricComparison.FirstThree.ThreeComplex.FirstThreeComplex.complex (OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.sheafComplex R X) |
| 21 | |
| 22 | local instance : (AlgebraicGeometry.Crystalline.Cohomology.Cech.Descent.CechDescent.cechFunctor R X U).Additive := by |
| 23 | change (FormalCoproduct.cochainComplexFunctor (FormalCoproduct.mk ι U).cech).Additive |
| 24 | infer_instance |
| 25 | |
| 26 | def bicomplex : HomologicalComplex₂ (ModuleCat.{0} R) (.up ℕ) (.up ℕ) := |
| 27 | ((AlgebraicGeometry.Crystalline.Cohomology.Cech.Descent.CechDescent.cechFunctor R X U).mapHomologicalComplex (.up ℕ)).obj P |
| 28 | |
| 29 | def map : bicomplex R X U ⟶ IntrinsicCech.CechBicomplex.IntrinsicCechBicomplex.bicomplex R X U K := |
| 30 | ((AlgebraicGeometry.Crystalline.Cohomology.Cech.Descent.CechDescent.cechFunctor R X U).mapHomologicalComplex (.up ℕ)).map |
| 31 | (IntegralFirst.ThreeSheafUnit.IntegralFirstThreeSheafUnit.map R X) |
| 32 | |
| 33 | theorem ordinary_row_isIso (hU : ∀ i, IsAffineOpen (U i)) (q : ℕ) (hq : q ≤ 2) : |
| 34 | IsIso ((AlgebraicGeometry.Crystalline.Cohomology.Cech.Descent.CechDescent.cechFunctor R X U).map |
| 35 | (toSheafify (Opens.grothendieckTopology X.left) (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X q))) := by |
| 36 | have : X.left.IsSeparated := by |
| 37 | constructor |
| 38 | rw [← terminal.comp_from X.hom] |
| 39 | infer_instance |
| 40 | apply Cech.TermwiseIso.CechTermwiseIso.isIso (FormalCoproduct.mk ι U).cech |
| 41 | (toSheafify (Opens.grothendieckTopology X.left) (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X q)) |
| 42 | intro p t |
| 43 | exact OpenFormsUnit.IntegralAffineOpenFormsUnit.on_open R X (∏ᶜ (U ∘ t)) |
| 44 | (AlgebraicGeometry.SheafCohomology.Cech.Cochains.IsAffineOpen.cechIntersection U hU p t) q hq |
| 45 | |
| 46 | theorem row_isIso (hU : ∀ i, IsAffineOpen (U i)) (q : ℕ) : IsIso ((IntegralAffineCechCoordinateUnit.map R X U).f q) := by |
| 47 | rcases q with _ | (_ | (_ | q)) |
| 48 | · exact ordinary_row_isIso R X U hU 0 (by omega) |
| 49 | · exact ordinary_row_isIso R X U hU 1 (by omega) |
| 50 | · exact ordinary_row_isIso R X U hU 2 (by omega) |
| 51 | · let : IsIso ((IntegralFirst.ThreeSheafUnit.IntegralFirstThreeSheafUnit.map R X).f (q + 3)) := |
| 52 | IntegralFirst.ThreeSheafUnit.IntegralFirstThreeSheafUnit.high_isIso R X q |
| 53 | exact (AlgebraicGeometry.Crystalline.Cohomology.Cech.Descent.CechDescent.cechFunctor R X U).map_isIso ((IntegralFirst.ThreeSheafUnit.IntegralFirstThreeSheafUnit.map R X).f (q + 3)) |
| 54 | |
| 55 | def iso (hU : ∀ i, IsAffineOpen (U i)) : bicomplex R X U ≅ IntrinsicCech.CechBicomplex.IntrinsicCechBicomplex.bicomplex R X U K := by |
| 56 | have (q : ℕ) : IsIso ((IntegralAffineCechCoordinateUnit.map R X U).f q) := row_isIso R X U hU q |
| 57 | have : IsIso (IntegralAffineCechCoordinateUnit.map R X U) := HomologicalComplex.Hom.isIso_of_components _ |
| 58 | exact asIso (IntegralAffineCechCoordinateUnit.map R X U) |
| 59 | |
| 60 | def integerTotal : CochainComplex (ModuleCat.{0} R) ℤ := |
| 61 | ((bicomplex R X U).total (.up ℕ)).extend ComplexShape.embeddingUpNat |
| 62 | |
| 63 | def totalIso (hU : ∀ i, IsAffineOpen (U i)) : |
| 64 | integerTotal R X U ≅ IntrinsicCech.Terms.IntrinsicCechComparison.sections R X.left U K := |
| 65 | (ComplexShape.embeddingUpNat.extendFunctor (ModuleCat.{0} R)).mapIso |
| 66 | (HomologicalComplex₂.total.mapIso (iso R X U hU) (.up ℕ)) ≪≫ |
| 67 | IntrinsicCech.CechBicomplex.IntrinsicCechBicomplex.iso R X U K |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.PadicHodge.GeometricComparison.IntegralAffine.CechCoordinateUnit.IntegralAffineCechCoordinateUnit |