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.AbelianModuli.HilbertConstruction.Coefficient.GlobalFunctionDimension |
| 2 | |
| 3 | /-! # Coefficient Retraction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.CoefficientRetraction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A section of a scheme over an affine coefficient ring gives an actual coefficient-linear algebra retraction of its global regular functions. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | def sectionCoefficientRetraction {R : Type u} [CommRing R] {X : Scheme.{u}} |
| 16 | (p : X ⟶ Spec (.of R)) (x : Spec (.of R) ⟶ X) (hx : x ≫ p = 𝟙 _) : |
| 17 | Coefficient.AlgebraPresheaf.coefficientAlgebraSections (Affine.ChartCoefficientSections.schemeGlobalCoefficient p) ⊤ →ₐ[R] R := by |
| 18 | let φ : Γ(X, ⊤) →+* R := (Scheme.ΓSpecIso (.of R)).hom.hom.comp x.appTop.hom |
| 19 | refine { __ := φ, commutes' := fun r => ?_ } |
| 20 | have hpx : p.appTop ≫ x.appTop = 𝟙 _ := by |
| 21 | rw [← Scheme.Hom.comp_appTop, hx] |
| 22 | rfl |
| 23 | have H : (Scheme.ΓSpecIso (.of R)).inv ≫ p.appTop ≫ x.appTop ≫ |
| 24 | (Scheme.ΓSpecIso (.of R)).hom = 𝟙 (CommRingCat.of R) := by |
| 25 | rw [← Category.assoc p.appTop x.appTop, hpx, Category.id_comp, Iso.inv_hom_id] |
| 26 | change φ (Coefficient.AlgebraPresheaf.coefficientSectionMap (Affine.ChartCoefficientSections.schemeGlobalCoefficient p) ⊤ r) = r |
| 27 | rw [Coefficient.GlobalFunctionDimension.coefficientSectionMap_top] |
| 28 | exact ConcreteCategory.congr_hom H r |
| 29 | |
| 30 | end |
| 31 | |
| 32 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.CoefficientRetraction |