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.Intrinsic.FormsScalarMap |
| 2 | |
| 3 | /-! # Presheaf Scalar Complex -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Intrinsic.PresheafScalarComplex.IntrinsicPresheafScalarComplex |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The canonical scalar map commutes with the native de Rham differential before sheafification. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite _root_.TopologicalSpace |
| 12 | open OAI.NumberTheory.PadicHodge.GeometricComparison.OpenSectionBase.OpenSectionScalarAlgebras |
| 13 | |
| 14 | variable (R S : Type) [CommRing R] [CommRing S] [Algebra R S] |
| 15 | (X : Over (Spec (CommRingCat.of R))) (Y : Over (Spec (CommRingCat.of S))) |
| 16 | (f : Y.left ⟶ X.left) |
| 17 | (h : f ≫ X.hom = Y.hom ≫ Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 18 | |
| 19 | def scalar : (X.left.Opensᵒᵖ ⥤ ModuleCat.{0} R) ⥤ (X.left.Opensᵒᵖ ⥤ ModuleCat.{0} S) := |
| 20 | (Functor.whiskeringRight _ _ _).obj (FlatScalar.FlatScalarExtension.moduleFunctor R S) |
| 21 | |
| 22 | def preimage : (Y.left.Opensᵒᵖ ⥤ ModuleCat.{0} S) ⥤ (X.left.Opensᵒᵖ ⥤ ModuleCat.{0} S) := |
| 23 | (Functor.whiskeringLeft _ _ _).obj (Opens.map f.base).op |
| 24 | |
| 25 | instance scalar_additive : (scalar R S X).Additive := by |
| 26 | dsimp [scalar] |
| 27 | infer_instance |
| 28 | |
| 29 | instance preimage_additive : (preimage R S X Y f).Additive := by |
| 30 | dsimp [preimage] |
| 31 | infer_instance |
| 32 | |
| 33 | theorem differential (n : ℕ) : |
| 34 | (scalar R S X).map (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf R X n) ≫ |
| 35 | FormsScalarMap.IntrinsicFormsScalarMap.map R S X Y f h (n + 1) = |
| 36 | FormsScalarMap.IntrinsicFormsScalarMap.map R S X Y f h n ≫ |
| 37 | (preimage R S X Y f).map (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf S Y n) := by |
| 38 | apply NatTrans.ext |
| 39 | funext U |
| 40 | let : Algebra R Γ(X.left, U.unop) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X U.unop |
| 41 | let : Algebra S Γ(Y.left, f ⁻¹ᵁ U.unop) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra S Y (f ⁻¹ᵁ U.unop) |
| 42 | let : Algebra R Γ(Y.left, f ⁻¹ᵁ U.unop) := OpenSectionBase.OpenSectionScalarAlgebras.baseAlgebra R S X Y f U.unop |
| 43 | let : Algebra Γ(X.left, U.unop) Γ(Y.left, f ⁻¹ᵁ U.unop) := OpenSectionBase.OpenSectionScalarAlgebras.sourceAlgebra R S X Y f U.unop |
| 44 | let : IsScalarTower R S Γ(Y.left, f ⁻¹ᵁ U.unop) := IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 45 | let : IsScalarTower R Γ(X.left, U.unop) Γ(Y.left, f ⁻¹ᵁ U.unop) := OpenSectionBase.OpenSectionScalarAlgebras.sourceTower R S X Y f U.unop h |
| 46 | apply ModuleCat.hom_ext |
| 47 | exact LinearMap.ext (Forms.ScalarMap.FormsBaseChange.formScalarMap_differential R S |
| 48 | Γ(X.left, U.unop) Γ(Y.left, f ⁻¹ᵁ U.unop) n) |
| 49 | |
| 50 | def map : ((scalar R S X).mapHomologicalComplex (.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X) ⟶ |
| 51 | ((preimage R S X Y f).mapHomologicalComplex (.up ℕ)).obj (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex S Y) where |
| 52 | f n := FormsScalarMap.IntrinsicFormsScalarMap.map R S X Y f h n |
| 53 | comm' n m hnm := by |
| 54 | change n + 1 = m at hnm |
| 55 | subst m |
| 56 | change FormsScalarMap.IntrinsicFormsScalarMap.map R S X Y f h n ≫ |
| 57 | (preimage R S X Y f).map ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex S Y).d n (n + 1)) = |
| 58 | (scalar R S X).map ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X).d n (n + 1)) ≫ |
| 59 | FormsScalarMap.IntrinsicFormsScalarMap.map R S X Y f h (n + 1) |
| 60 | rw [show (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex S Y).d n (n + 1) = |
| 61 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf S Y n from CochainComplex.of_d _ _ n] |
| 62 | rw [show (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X).d n (n + 1) = |
| 63 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf R X n from CochainComplex.of_d _ _ n] |
| 64 | exact (differential R S X Y f h n).symm |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Intrinsic.PresheafScalarComplex.IntrinsicPresheafScalarComplex |