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.FormalGeometry.Completion.Projective.Numerics |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.SerreVanishing |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.BaseZeroSections |
| 4 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.AdditiveCoproductSections |
| 5 | |
| 6 | /-! # Euler Sections -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.EulerSections.K |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual projective Euler characteristic equals the dimension of |
| 13 | global sections after a sufficiently positive twist, over every field. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace MonoidalCategory |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.FormalGeometry.Completion.Projective.Numerics.Construction |
| 18 | |
| 19 | universe u |
| 20 | attribute [local instance] MvPolynomial.gradedAlgebra AlgebraicGeometry.SheafCohomology.Projective.Monoidal.Scheme.Modules.monoidalCategory |
| 21 | |
| 22 | theorem projectiveEuler_eventually_sections |
| 23 | {K : Type u} [Field K] {r : ℕ} |
| 24 | (M : (Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)).Modules) |
| 25 | [M.IsQuasicoherent] [M.IsFiniteType] (j : Fin (r + 1)) : |
| 26 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → |
| 27 | (AlgebraicGeometry.SheafCohomology.Projective.Euler.MvPolynomial.projectiveSheafEuler |
| 28 | (M ⊗ AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := K) j n) : ℚ) = |
| 29 | AlgebraicGeometry.FormalGeometry.Completion.Projective.Numerics.Construction.projectiveHilbertFunction M j n := by |
| 30 | classical |
| 31 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := AlgebraicGeometry.FormalGeometry.Completion.Projective.Numerics.Construction.fieldSpec_sections_isField.toField |
| 32 | have hv (q : Fin r) := |
| 33 | AlgebraicGeometry.SheafCohomology.Projective.SerreVanishing.MvPolynomial.finiteType_eventually_orderedBaseCechComplex_exactAt_succ M j q.val |
| 34 | choose b hb using hv |
| 35 | refine ⟨Finset.univ.sup b, fun n hn => ?_⟩ |
| 36 | let N := M ⊗ AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := K) j n |
| 37 | let π := AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := K) (σ := Fin (r + 1)) |
| 38 | let U := AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := K) (σ := Fin (r + 1)) |
| 39 | have heuler : AlgebraicGeometry.SheafCohomology.Projective.Euler.MvPolynomial.projectiveSheafEuler N = |
| 40 | (Module.finrank Γ(Spec (CommRingCat.of K), ⊤) |
| 41 | ((AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCech.Scheme.Modules.orderedBaseCechComplex π N U).homology 0) : ℤ) := by |
| 42 | unfold AlgebraicGeometry.SheafCohomology.Projective.Euler.MvPolynomial.projectiveSheafEuler |
| 43 | rw [Finset.sum_eq_single 0] |
| 44 | · simp only [pow_zero, one_mul] |
| 45 | rfl |
| 46 | · intro q hq hq0 |
| 47 | obtain ⟨k, rfl⟩ := Nat.exists_eq_succ_of_ne_zero hq0 |
| 48 | have hk : k < r := by have := Finset.mem_range.mp hq; omega |
| 49 | have hn' : b ⟨k, hk⟩ ≤ n := |
| 50 | (Finset.le_sup (f := b) (Finset.mem_univ ⟨k, hk⟩)).trans hn |
| 51 | have : Subsingleton |
| 52 | ((AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCech.Scheme.Modules.orderedBaseCechComplex π N U).homology (k + 1)) := |
| 53 | ModuleCat.subsingleton_of_isZero (hb ⟨k, hk⟩ n hn').isZero_homology |
| 54 | rw [Module.finrank_zero_of_subsingleton] |
| 55 | simp only [Nat.cast_zero, mul_zero] |
| 56 | · simp |
| 57 | have hU : IsOpenCover U := |
| 58 | IsOpenCover.mk (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.iSup_coordinateOpenCover_eq_top |
| 59 | (R := K) (σ := Fin (r + 1))) |
| 60 | let := AlgebraicGeometry.SheafCohomology.Projective.BaseZeroSections.baseGlobalSectionsModule π N |
| 61 | rw [heuler, Int.cast_natCast] |
| 62 | exact congrArg (fun d : ℕ => (d : ℚ)) |
| 63 | (AlgebraicGeometry.SheafCohomology.Projective.BaseZeroSections.orderedBaseCechHZeroGlobalSectionsLinearEquiv π N U hU).finrank_eq |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.EulerSections.K |