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.Algebra.Category.ModuleCat.ChangeOfRings |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.ScalarRestricted |
| 3 | |
| 4 | /-! # Scalar Square Evaluation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.ScalarSquareEvaluation.ModuleScalarSquareEvaluation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Evaluate a scalar-restricted module square without unfolding the coefficient modules -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {R S : Type u} [Ring R] [Ring S] (φ : R →+* S) |
| 17 | {M N : ModuleCat.{v} S} {P Q : ModuleCat.{v} R} |
| 18 | (f : M ⟶ N) (a : (ModuleCat.restrictScalars φ).obj M ⟶ P) |
| 19 | (b : P ⟶ Q) (c : (ModuleCat.restrictScalars φ).obj N ⟶ Q) |
| 20 | (h : a ≫ b = (ModuleCat.restrictScalars φ).map f ≫ c) |
| 21 | |
| 22 | include h in |
| 23 | theorem apply (x : M) : b.hom (a.hom x) = c.hom (f.hom x) := |
| 24 | LinearMap.congr_fun (congrArg ModuleCat.Hom.hom h) x |
| 25 | |
| 26 | include h in |
| 27 | theorem addHom : b.hom.toAddMonoidHom.comp (ScalarRestricted.ScalarRestrictedAdditiveMap.map φ a) = |
| 28 | (ScalarRestricted.ScalarRestrictedAdditiveMap.map φ c).comp f.hom.toAddMonoidHom := by |
| 29 | apply AddMonoidHom.ext |
| 30 | exact ModuleScalarSquareEvaluation.apply φ f a b c h |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.ScalarSquareEvaluation.ModuleScalarSquareEvaluation |