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.AlgebraicGeometry.Crystalline.Cohomology.PrincipalCoefficient |
| 2 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 3 | |
| 4 | /-! # Diagram -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Diagram |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Principal localizations of an affine open give their actual affine |
| 11 | subopens in the ambient scheme, with the original restriction maps. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | universe u |
| 16 | variable (X : Scheme.{u}) (U : X.Opens) (hU : IsAffineOpen U) |
| 17 | |
| 18 | def object (r : OAI.AlgebraicGeometry.Crystalline.Cohomology.PrincipalCoefficient.PrincipalCoefficientCategory.Object Γ(X, U)) : X.affineOpens := |
| 19 | ⟨X.basicOpen r.val, hU.basicOpen r.val⟩ |
| 20 | |
| 21 | theorem monotone : Monotone (object X U hU) := by |
| 22 | intro r s hrs |
| 23 | change X.basicOpen r.val ≤ X.basicOpen s.val |
| 24 | rw [← hU.fromSpec_image_basicOpen, ← hU.fromSpec_image_basicOpen] |
| 25 | exact hU.fromSpec.image_mono hrs |
| 26 | |
| 27 | def functor : OAI.AlgebraicGeometry.Crystalline.Cohomology.PrincipalCoefficient.PrincipalCoefficientCategory.Object Γ(X, U) ⥤ X.affineOpens := |
| 28 | (monotone X U hU).functor |
| 29 | |
| 30 | def projection (r : OAI.AlgebraicGeometry.Crystalline.Cohomology.PrincipalCoefficient.PrincipalCoefficientCategory.Object Γ(X, U)) : |
| 31 | (Diagram.functor X U hU).obj r ⟶ ⟨U, hU⟩ := |
| 32 | homOfLE (X.basicOpen_le r.val) |
| 33 | |
| 34 | theorem projection_natural {r s : OAI.AlgebraicGeometry.Crystalline.Cohomology.PrincipalCoefficient.PrincipalCoefficientCategory.Object Γ(X, U)} (a : r ⟶ s) : |
| 35 | (Diagram.functor X U hU).map a ≫ projection X U hU s = projection X U hU r := |
| 36 | Subsingleton.elim _ _ |
| 37 | |
| 38 | include hU in |
| 39 | theorem restricted_function_isUnit (r : OAI.AlgebraicGeometry.Crystalline.Cohomology.PrincipalCoefficient.PrincipalCoefficientCategory.Object Γ(X, U)) : |
| 40 | IsUnit ((X.presheaf.map (homOfLE (X.basicOpen_le r.val)).op).hom r.val) := by |
| 41 | let : IsLocalization.Away r.val Γ(X, X.basicOpen r.val) := |
| 42 | IsAffineOpen.isLocalization_basicOpen hU r.val |
| 43 | exact IsLocalization.Away.algebraMap_isUnit r.val |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Diagram |