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.ProperFlat.FiberwiseCohomologyModel |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.CohomologyEulerComparison |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ResiduePrime |
| 4 | |
| 5 | /-! # Fiber Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.FiberEuler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The Euler characteristic of genuine geometric fiber cohomology equals the alternating rank function of a finite projective cohomology model. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | |
| 15 | def fiberEulerCharacteristic {X S : Scheme.{u}} (f : X ⟶ S) (L : Line.Bundles.LineBundle X) (x : S) : ℤ := |
| 16 | ∑ᶠ q : ℕ, (-1 : ℤ) ^ q * |
| 17 | (Module.finrank Γ(Spec (S.residueField x), ⊤) |
| 18 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (f.fiberToSpecResidueField x).appTop.hom q).obj |
| 19 | (L.pullback (f.fiberι x)).sheaf) : ℤ) |
| 20 | |
| 21 | theorem fiberEulerCharacteristic_eq_modelEuler |
| 22 | {X S : Scheme.{u}} (f : X ⟶ S) (L : Line.Bundles.LineBundle X) (x : S) |
| 23 | (D : CochainComplex (ModuleCat.{u} Γ(S, ⊤)) ℕ) (N : ℕ) |
| 24 | (hfinite : ∀ q, Module.Finite Γ(S, ⊤) (D.X q)) |
| 25 | (hprojective : ∀ q, Module.Projective Γ(S, ⊤) (D.X q)) |
| 26 | (hbound : ∀ q, N ≤ q → IsZero (D.X q)) |
| 27 | (he : ∀ q, Nonempty |
| 28 | ((((ModuleCat.extendScalars (S.fromSpecResidueField x).appTop.hom).mapHomologicalComplex |
| 29 | (.up ℕ)).obj D).homology q ≅ |
| 30 | (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (f.fiberToSpecResidueField x).appTop.hom q).obj |
| 31 | (L.pullback (f.fiberι x)).sheaf)) : |
| 32 | fiberEulerCharacteristic f L x = HilbertConstruction.Finite.ProjectiveEulerFunction.finiteProjectiveEulerAt D (N + 1) (S.toSpecΓ x) := by |
| 33 | let : Field Γ(Spec (S.residueField x), ⊤) := |
| 34 | ((Scheme.ΓSpecIso (S.residueField x)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 35 | (Field.toIsField (S.residueField x))).toField |
| 36 | let g := S.fromSpecResidueField x |
| 37 | let C := ((ModuleCat.extendScalars g.appTop.hom).mapHomologicalComplex (.up ℕ)).obj D |
| 38 | have hs : fiberEulerCharacteristic f L x = |
| 39 | ∑ q ∈ Finset.range (N + 1), (-1 : ℤ) ^ q * |
| 40 | (Module.finrank Γ(Spec (S.residueField x), ⊤) |
| 41 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (f.fiberToSpecResidueField x).appTop.hom q).obj |
| 42 | (L.pullback (f.fiberι x)).sheaf) : ℤ) := by |
| 43 | apply finsum_eq_sum_of_support_subset |
| 44 | intro q hq |
| 45 | by_contra hnot |
| 46 | have hn : N ≤ q := by |
| 47 | simp only [Finset.mem_coe, Finset.mem_range] at hnot |
| 48 | omega |
| 49 | have hz : IsZero (C.X q) := (ModuleCat.extendScalars g.appTop.hom).map_isZero (hbound q hn) |
| 50 | have hH := (he q).some.isZero_iff.mp (HomologicalComplex.ExactAt.of_isZero hz).isZero_homology |
| 51 | have := ModuleCat.isZero_iff_subsingleton.mp hH |
| 52 | exact hq (by simp only [Module.finrank_zero_of_subsingleton, Nat.cast_zero, mul_zero]) |
| 53 | have ht := HilbertConstruction.Field.CohomologyEulerComparison.finiteProjectiveEulerAt_fieldHomology_sum g.appTop.hom D N hfinite hprojective |
| 54 | (hbound (N + 1) (by omega)) |
| 55 | rw [Affine.ResiduePrime.residuePoint_prime_comap S x] at ht |
| 56 | refine hs.trans (Eq.trans ?_ ht.symm) |
| 57 | apply Finset.sum_congr rfl |
| 58 | intro q _ |
| 59 | exact congrArg (fun n : ℕ => (-1 : ℤ) ^ q * (n : ℤ)) (he q).some.toLinearEquiv.finrank_eq.symm |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.FiberEuler |