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.RelativeSectionCoefficients |
| 2 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 3 | |
| 4 | /-! # Over Spec -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.OverSpec.AffineOverSpec |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every actual affine scheme over the base is canonically its native relative spectrum of global sections. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | variable (R : Type) [CommRing R] (X : Over (Spec (CommRingCat.of R))) |
| 15 | |
| 16 | local instance : Algebra R Γ(X.left, ⊤) := OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X ⊤ |
| 17 | |
| 18 | theorem appLE_top : X.hom.appLE ⊤ ⊤ le_top = X.hom.appTop := by |
| 19 | change X.hom.appTop ≫ X.left.presheaf.map (𝟙 _) = X.hom.appTop |
| 20 | rw [X.left.presheaf.map_id, Category.comp_id] |
| 21 | |
| 22 | theorem coefficient_map : CommRingCat.ofHom (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap R X ⊤) = |
| 23 | (Scheme.ΓSpecIso (CommRingCat.of R)).inv ≫ X.hom.appTop := by |
| 24 | change (Scheme.ΓSpecIso (CommRingCat.of R)).inv ≫ X.hom.appLE ⊤ ⊤ le_top = _ |
| 25 | rw [appLE_top] |
| 26 | |
| 27 | theorem structure_square : X.left.toSpecΓ ≫ |
| 28 | Spec.map (CommRingCat.ofHom (OAI.AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap R X ⊤)) = X.hom := by |
| 29 | rw [coefficient_map, Spec.map_comp, ← Category.assoc, ← Scheme.toSpecΓ_naturality, |
| 30 | Category.assoc, toSpecΓ_SpecMap_ΓSpecIso_inv, Category.comp_id] |
| 31 | |
| 32 | def model : Over (Spec (CommRingCat.of R)) := |
| 33 | RelativeSectionCoefficients.AffineCoordinates.relativeSpecModel R Γ(X.left, ⊤) |
| 34 | |
| 35 | def iso [IsAffine X.left] : X ≅ model R X := |
| 36 | Over.isoMk X.left.isoSpec (by |
| 37 | change X.left.toSpecΓ ≫ (RelativeSectionCoefficients.AffineCoordinates.relativeSpecModel R Γ(X.left, ⊤)).hom = X.hom |
| 38 | rw [RelativeSectionCoefficients.RelativeSpecMaps.structure_eq] |
| 39 | exact structure_square R X) |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.OverSpec.AffineOverSpec |