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.Finite.ProjectiveFiberEuler |
| 2 | |
| 3 | /-! # Scalar Euler Comparison -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.ScalarEulerComparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The alternating rank function computes term dimensions after every extension to a field. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits TensorProduct |
| 11 | universe u |
| 12 | |
| 13 | theorem finiteProjective_rank_field {R K : Type u} [CommRing R] [Field K] |
| 14 | (f : R →+* K) (M : ModuleCat.{u} R) [Module.Finite R M] [Module.Projective R M] : |
| 15 | Module.rankAtStalk M ((⟨⊥, inferInstance⟩ : PrimeSpectrum K).comap f) = |
| 16 | Module.finrank K ((ModuleCat.extendScalars f).obj M) := by |
| 17 | let : Algebra R K := f.toAlgebra |
| 18 | let p : PrimeSpectrum K := ⟨⊥, inferInstance⟩ |
| 19 | have hr := Module.rankAtStalk_baseChange (R := R) (M := M) p |
| 20 | have hc : Module.rankAtStalk (K ⊗[R] M) p = Module.finrank K (K ⊗[R] M) := |
| 21 | congrFun (Module.rankAtStalk_eq_finrank_of_free (R := K) (M := K ⊗[R] M)) p |
| 22 | let e := ((Scalar.FunctorComparison.ScalarFunctorComparison.isoOfHom R K f).app M).toLinearEquiv |
| 23 | exact hr.symm.trans (hc.trans e.finrank_eq) |
| 24 | |
| 25 | theorem finiteProjectiveEulerAt_field_sum {R K : Type u} [CommRing R] [Field K] |
| 26 | (f : R →+* K) (D : CochainComplex (ModuleCat.{u} R) ℕ) (N : ℕ) |
| 27 | (hfinite : ∀ q, Module.Finite R (D.X q)) (hprojective : ∀ q, Module.Projective R (D.X q)) : |
| 28 | HilbertConstruction.Finite.ProjectiveEulerFunction.finiteProjectiveEulerAt D N ((⟨⊥, inferInstance⟩ : PrimeSpectrum K).comap f) = |
| 29 | ∑ q ∈ Finset.range N, (-1 : ℤ) ^ q * |
| 30 | (Module.finrank K ((((ModuleCat.extendScalars f).mapHomologicalComplex (.up ℕ)).obj D).X q) : ℤ) := by |
| 31 | apply Finset.sum_congr rfl |
| 32 | intro q _ |
| 33 | have := hfinite q |
| 34 | have := hprojective q |
| 35 | exact congrArg (fun n : ℕ => (-1 : ℤ) ^ q * (n : ℤ)) (finiteProjective_rank_field f (D.X q)) |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.ScalarEulerComparison |