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.RepresentationTheory.Theta.Geometric.RegularFunctionDescent |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | |
| 4 | /-! # Structure Coordinates -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.Affine.StructureCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Native affine coordinates over any parameter algebra, including |
| 11 | flatness of those coordinates over the specified structure morphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | @[instance_reducible] def affineStructureAlgebra {A : Type} [CommRing A] {X : Scheme} |
| 17 | [IsAffine X] (h : X ⟶ Spec (.of A)) : Algebra A Γ(X, ⊤) := |
| 18 | (Spec.preimage (X.isoSpec.inv ≫ h)).hom.toAlgebra |
| 19 | |
| 20 | theorem affineStructure_specMap {A : Type} [CommRing A] {X : Scheme} [IsAffine X] |
| 21 | (h : X ⟶ Spec (.of A)) : |
| 22 | let : Algebra A Γ(X, ⊤) := affineStructureAlgebra h |
| 23 | Spec.map (CommRingCat.ofHom (algebraMap A Γ(X, ⊤))) = X.isoSpec.inv ≫ h := by |
| 24 | let : Algebra A Γ(X, ⊤) := affineStructureAlgebra h |
| 25 | change Spec.map (Spec.preimage (X.isoSpec.inv ≫ h)) = _ |
| 26 | exact Spec.map_preimage _ |
| 27 | |
| 28 | theorem affineStructure_flat {A : Type} [CommRing A] {X : Scheme} [IsAffine X] |
| 29 | (h : X ⟶ Spec (.of A)) [Flat h] : |
| 30 | let : Algebra A Γ(X, ⊤) := affineStructureAlgebra h |
| 31 | Module.Flat A Γ(X, ⊤) := by |
| 32 | let : Algebra A Γ(X, ⊤) := affineStructureAlgebra h |
| 33 | have H : Flat (Spec.map (CommRingCat.ofHom (algebraMap A Γ(X, ⊤)))) := by |
| 34 | rw [affineStructure_specMap h] |
| 35 | infer_instance |
| 36 | exact RingHom.flat_algebraMap_iff.mp (Flat.SpecMap_iff.mp H) |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.RepresentationTheory.Theta.Geometric.Affine.StructureCoordinates |