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.Affine.OpenBaseChangePushout |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.ScalarFormsChange |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.DeRham.Int |
| 4 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.DeRhamScalarExtension |
| 5 | |
| 6 | /-! # Open Section Base -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.OpenSectionBase.OpenSectionScalarAlgebras |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Native section algebras and their scalar towers for an actual geometric base-change square. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | variable (R S : Type) [CommRing R] [CommRing S] [Algebra R S] |
| 17 | (X : Over (Spec (CommRingCat.of R))) (Y : Over (Spec (CommRingCat.of S))) |
| 18 | (f : Y.left ⟶ X.left) (U : X.left.Opens) |
| 19 | |
| 20 | @[instance_reducible] def baseAlgebra : Algebra R Γ(Y.left, f ⁻¹ᵁ U) := |
| 21 | ((AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap S Y (f ⁻¹ᵁ U)).comp (algebraMap R S)).toAlgebra |
| 22 | |
| 23 | @[instance_reducible] def sourceAlgebra : Algebra Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := |
| 24 | (f.app U).hom.toAlgebra |
| 25 | |
| 26 | local instance : Algebra R Γ(X.left, U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X U |
| 27 | local instance : Algebra S Γ(Y.left, f ⁻¹ᵁ U) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra S Y (f ⁻¹ᵁ U) |
| 28 | |
| 29 | theorem sourceTower |
| 30 | (h : f ≫ X.hom = Y.hom ≫ Spec.map (CommRingCat.ofHom (algebraMap R S))) : |
| 31 | letI : Algebra R Γ(Y.left, f ⁻¹ᵁ U) := baseAlgebra R S X Y f U |
| 32 | letI : Algebra Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := sourceAlgebra R S X Y f U |
| 33 | IsScalarTower R Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := by |
| 34 | let : Algebra R Γ(Y.left, f ⁻¹ᵁ U) := baseAlgebra R S X Y f U |
| 35 | let : Algebra Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := sourceAlgebra R S X Y f U |
| 36 | let g : ScalarFormsChange.SectionScalarChange.restrictBase (algebraMap R S) Y ⟶ X := Over.homMk f h |
| 37 | apply IsScalarTower.of_algebraMap_eq |
| 38 | intro r |
| 39 | exact (congrArg (fun φ : R →+* Γ(Y.left, f ⁻¹ᵁ U) => φ r) |
| 40 | (ScalarFormsChange.SectionScalarChange.sectionBaseMap_comp (algebraMap R S) Y (f ⁻¹ᵁ U))).symm.trans |
| 41 | ((DeRham.Int.sectionPullback g U).commutes r).symm |
| 42 | |
| 43 | theorem pushout |
| 44 | (h : IsPullback f Y.hom X.hom (Spec.map (CommRingCat.ofHom (algebraMap R S)))) |
| 45 | (hU : IsAffineOpen U) : |
| 46 | letI : Algebra R Γ(Y.left, f ⁻¹ᵁ U) := baseAlgebra R S X Y f U |
| 47 | letI : Algebra Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := sourceAlgebra R S X Y f U |
| 48 | letI : IsScalarTower R S Γ(Y.left, f ⁻¹ᵁ U) := IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 49 | letI : IsScalarTower R Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := sourceTower R S X Y f U h.w |
| 50 | Algebra.IsPushout R S Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := by |
| 51 | let : Algebra R Γ(Y.left, f ⁻¹ᵁ U) := baseAlgebra R S X Y f U |
| 52 | let : Algebra Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := sourceAlgebra R S X Y f U |
| 53 | let : IsScalarTower R S Γ(Y.left, f ⁻¹ᵁ U) := IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 54 | let : IsScalarTower R Γ(X.left, U) Γ(Y.left, f ⁻¹ᵁ U) := sourceTower R S X Y f U h.w |
| 55 | exact CommRingCat.isPushout_iff_isPushout.mp |
| 56 | (Affine.OpenBaseChangePushout.AffineOpenBaseChangePushout.isPushout (algebraMap R S) X Y f h U hU) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.GeometricComparison.OpenSectionBase.OpenSectionScalarAlgebras |