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.Field.ScalarEulerComparison |
| 2 | |
| 3 | /-! # Cohomology Euler Comparison -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.CohomologyEulerComparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The alternating rank function is the cohomological Euler sum after an arbitrary field-valued scalar extension. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits TensorProduct |
| 11 | universe u |
| 12 | |
| 13 | theorem finiteProjectiveEulerAt_fieldHomology_sum {R K : Type u} [CommRing R] [Field K] |
| 14 | (f : R →+* K) (D : CochainComplex (ModuleCat.{u} R) ℕ) (N : ℕ) |
| 15 | (hfinite : ∀ q, Module.Finite R (D.X q)) (hprojective : ∀ q, Module.Projective R (D.X q)) |
| 16 | (hfinal : IsZero (D.X (N + 1))) : |
| 17 | HilbertConstruction.Finite.ProjectiveEulerFunction.finiteProjectiveEulerAt D (N + 1) ((⟨⊥, inferInstance⟩ : PrimeSpectrum K).comap f) = |
| 18 | ∑ q ∈ Finset.range (N + 1), (-1 : ℤ) ^ q * |
| 19 | (Module.finrank K ((((ModuleCat.extendScalars f).mapHomologicalComplex (.up ℕ)).obj D).homology q) : ℤ) := by |
| 20 | rw [ScalarEulerComparison.finiteProjectiveEulerAt_field_sum f D (N + 1) hfinite hprojective] |
| 21 | apply HilbertConstruction.Finite.ComplexEulerFormula.cochain_euler_sum_of_final_zero |
| 22 | · intro q |
| 23 | let : Algebra R K := f.toAlgebra |
| 24 | have := hfinite q |
| 25 | have : Module.Finite K ((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R K).obj (D.X q)) := |
| 26 | inferInstanceAs (Module.Finite K (K ⊗[R] D.X q)) |
| 27 | exact Module.Finite.equiv ((Scalar.FunctorComparison.ScalarFunctorComparison.isoOfHom R K f).app (D.X q)).toLinearEquiv |
| 28 | · exact (ModuleCat.extendScalars f).map_isZero hfinal |
| 29 | |
| 30 | end |
| 31 | |
| 32 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.CohomologyEulerComparison |