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 Mathlib.AlgebraicGeometry.AffineSpace |
| 2 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 3 | |
| 4 | /-! # Affine Line Functions -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Relative.AffineLineFunctions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Relative regular functions are represented by the affine line. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | def relativeAffineLine (S : Scheme.{u}) : Over S := |
| 17 | Over.mk (AffineSpace (PUnit.{u + 1}) S ↘ S) |
| 18 | |
| 19 | def relativeFunctionPresheaf (S : Scheme.{u}) : (Over S)ᵒᵖ ⥤ Type u := |
| 20 | (Over.forget S).op ⋙ Scheme.Γ ⋙ forget CommRingCat |
| 21 | |
| 22 | def relativeAffineLineFunctionEquiv {S : Scheme.{u}} (T : Over S) : |
| 23 | (T ⟶ relativeAffineLine S) ≃ Γ(T.left, ⊤) where |
| 24 | toFun f := f.left.appTop (AffineSpace.coord S PUnit.unit) |
| 25 | invFun r := Over.homMk (AffineSpace.homOfVector T.hom (fun _ : PUnit.{u + 1} => r)) |
| 26 | (AffineSpace.homOfVector_over _ _) |
| 27 | left_inv f := by |
| 28 | apply Over.OverMorphism.ext |
| 29 | apply AffineSpace.hom_ext |
| 30 | · exact (AffineSpace.homOfVector_over _ _).trans f.w.symm |
| 31 | · intro i |
| 32 | cases i |
| 33 | exact AffineSpace.homOfVector_appTop_coord _ _ _ |
| 34 | right_inv r := AffineSpace.homOfVector_appTop_coord _ _ _ |
| 35 | |
| 36 | theorem relativeAffineLineFunctionEquiv_comp {S : Scheme.{u}} {U T : Over S} |
| 37 | (f : U ⟶ T) (g : T ⟶ relativeAffineLine S) : |
| 38 | relativeAffineLineFunctionEquiv U (f ≫ g) = f.left.appTop (relativeAffineLineFunctionEquiv T g) := rfl |
| 39 | |
| 40 | def relativeFunctionPresheafIso (S : Scheme.{u}) : |
| 41 | yoneda.obj (relativeAffineLine S) ≅ relativeFunctionPresheaf S := |
| 42 | NatIso.ofComponents (fun T => (relativeAffineLineFunctionEquiv T.unop).toIso) (by |
| 43 | intro U V f |
| 44 | apply ConcreteCategory.hom_ext |
| 45 | intro g |
| 46 | exact relativeAffineLineFunctionEquiv_comp f.unop g) |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Relative.AffineLineFunctions |