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.Homology.EulerCharacteristic |
| 2 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 3 | |
| 4 | /-! # Projective Euler Function -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ProjectiveEulerFunction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The alternating rank sum of finitely many finite projective terms is locally constant on the base spectrum. -/ |
| 11 | open _root_.CategoryTheory |
| 12 | universe u |
| 13 | |
| 14 | def finiteProjectiveEulerAt {R : Type u} [CommRing R] |
| 15 | (D : CochainComplex (ModuleCat.{u} R) ℕ) (N : ℕ) (p : PrimeSpectrum R) : ℤ := |
| 16 | ∑ q ∈ Finset.range N, (-1 : ℤ) ^ q * (Module.rankAtStalk (D.X q) p : ℤ) |
| 17 | |
| 18 | theorem finiteProjectiveEulerAt_isLocallyConstant {R : Type u} [CommRing R] |
| 19 | (D : CochainComplex (ModuleCat.{u} R) ℕ) (N : ℕ) |
| 20 | (hfinite : ∀ q, Module.Finite R (D.X q)) (hprojective : ∀ q, Module.Projective R (D.X q)) : |
| 21 | IsLocallyConstant (finiteProjectiveEulerAt D N) := by |
| 22 | have hterm (q : ℕ) : IsLocallyConstant |
| 23 | (fun p : PrimeSpectrum R => (-1 : ℤ) ^ q * (Module.rankAtStalk (D.X q) p : ℤ)) := by |
| 24 | have := hfinite q |
| 25 | have := hprojective q |
| 26 | have : Module.FinitePresentation R (D.X q) := Module.finitePresentation_of_projective R _ |
| 27 | exact (Module.isLocallyConstant_rankAtStalk (R := R) (M := D.X q)).comp |
| 28 | (fun r : ℕ => (-1 : ℤ) ^ q * (r : ℤ)) |
| 29 | have hsum (s : Finset ℕ) : IsLocallyConstant |
| 30 | (fun p : PrimeSpectrum R => ∑ q ∈ s, (-1 : ℤ) ^ q * (Module.rankAtStalk (D.X q) p : ℤ)) := by |
| 31 | induction s using Finset.induction_on with |
| 32 | | empty => |
| 33 | have he : (fun p : PrimeSpectrum R => ∑ q ∈ (∅ : Finset ℕ), |
| 34 | (-1 : ℤ) ^ q * (Module.rankAtStalk (D.X q) p : ℤ)) = Function.const (PrimeSpectrum R) 0 := by |
| 35 | funext p |
| 36 | exact Finset.sum_empty |
| 37 | exact (congrArg (fun f : PrimeSpectrum R → ℤ => IsLocallyConstant f) he).mpr |
| 38 | (IsLocallyConstant.const 0) |
| 39 | | @insert q s hq ih => |
| 40 | have he : (fun p : PrimeSpectrum R => ∑ j ∈ insert q s, |
| 41 | (-1 : ℤ) ^ j * (Module.rankAtStalk (D.X j) p : ℤ)) = |
| 42 | (fun p => (-1 : ℤ) ^ q * (Module.rankAtStalk (D.X q) p : ℤ)) + |
| 43 | (fun p => ∑ j ∈ s, (-1 : ℤ) ^ j * (Module.rankAtStalk (D.X j) p : ℤ)) := by |
| 44 | funext p |
| 45 | exact Finset.sum_insert hq |
| 46 | exact (congrArg (fun f : PrimeSpectrum R → ℤ => IsLocallyConstant f) he).mpr ((hterm q).add ih) |
| 47 | exact hsum (Finset.range N) |
| 48 | |
| 49 | theorem finiteProjectiveEulerAt_eq_of_preconnected {R : Type u} [CommRing R] |
| 50 | [PreconnectedSpace (PrimeSpectrum R)] (D : CochainComplex (ModuleCat.{u} R) ℕ) (N : ℕ) |
| 51 | (hfinite : ∀ q, Module.Finite R (D.X q)) (hprojective : ∀ q, Module.Projective R (D.X q)) |
| 52 | (p q : PrimeSpectrum R) : finiteProjectiveEulerAt D N p = finiteProjectiveEulerAt D N q := |
| 53 | (finiteProjectiveEulerAt_isLocallyConstant D N hfinite hprojective).apply_eq_of_preconnectedSpace p q |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ProjectiveEulerFunction |