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.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.FiniteSumEuler |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIs |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreePolynomial |
| 4 | |
| 5 | /-! # Finite Sum Degree -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.FiniteSumDegree |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A genuine multivariate polynomial for the geometric degree of a |
| 12 | finite combination of endomorphisms of an abelian variety. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIs.Scalar |
| 17 | |
| 18 | universe v |
| 19 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 20 | |
| 21 | variable {K : Type} [Field K] [IsAlgClosed K] |
| 22 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 23 | [IsProper A.hom] [Smooth A.hom] [GeometricallyIntegral A.hom] |
| 24 | |
| 25 | local instance : IsIntegral A.left := |
| 26 | GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 27 | |
| 28 | theorem exists_degree_polynomial_of_symmetric_embedding |
| 29 | {r : ℕ} |
| 30 | (e : A.left ⟶ Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)) |
| 31 | [IsClosedImmersion e] (j : Fin (r + 1)) |
| 32 | (he : e ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ = A.hom) |
| 33 | (hsym : Nonempty (((Coherent.EulerHilbert.ProjectiveK.projectiveLineBundle e j).pullback |
| 34 | (GrpObj.inv (X := A)).left).sheaf ≅ (Coherent.EulerHilbert.ProjectiveK.projectiveLineBundle e j).sheaf)) |
| 35 | {ι : Type v} [Fintype ι] (f : ι → AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 36 | ∃ D : MvPolynomial ι ℚ, |
| 37 | D.totalDegree ≤ 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom ∧ |
| 38 | ∀ a : ι → ℕ, |
| 39 | IsFinite (∑ i, a i • f i).toMul.hom.hom.left → |
| 40 | IsDominant (∑ i, a i • f i).toMul.hom.hom.left → |
| 41 | MvPolynomial.eval (fun i => (a i : ℚ)) D = |
| 42 | ((∑ i, a i • f i).toMul.hom.hom.left.residueDegree |
| 43 | (genericPoint A.left) : ℚ) := by |
| 44 | have : A.left.IsSeparated := by |
| 45 | constructor |
| 46 | rw [← CategoryTheory.Limits.terminal.comp_from A.hom] |
| 47 | infer_instance |
| 48 | let d := AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom |
| 49 | let H := Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial e j (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left) |
| 50 | let c := H.leadingCoeff |
| 51 | let q : ℚ := 2 ^ (2 * d) |
| 52 | have hc : 0 < c := (Coherent.StructureDimension.ProjectiveK.coherentStructureHilbertPolynomial_dimension e j A.hom).2 |
| 53 | have hq : q ≠ 0 := pow_ne_zero _ (by norm_num) |
| 54 | obtain ⟨P, D₀, hD₀, _, hP, htop⟩ := |
| 55 | FiniteSumEuler.exists_euler_polynomials A e j |
| 56 | (Coherent.EulerHilbert.ProjectiveK.projectiveLineBundle e j) hsym f |
| 57 | let D := MvPolynomial.C ((q * c)⁻¹) * D₀ |
| 58 | have hD : D.totalDegree ≤ 2 * d := by |
| 59 | exact (MvPolynomial.totalDegree_mul _ _).trans |
| 60 | (by simpa only [MvPolynomial.totalDegree_C, zero_add] using hD₀) |
| 61 | refine ⟨D, hD, ?_⟩ |
| 62 | intro a hfinite hdominant |
| 63 | let s : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A := ∑ i, a i • f i |
| 64 | have : IsFinite s.toMul.hom.hom.left := hfinite |
| 65 | have : IsDominant s.toMul.hom.hom.left := hdominant |
| 66 | let g := (2 • s).toMul.hom.hom.left |
| 67 | have : IsFinite g := DegreeIs.Scalar.nsmul_isFinite A s 2 (by norm_num) |
| 68 | have : IsDominant g := DegreeIs.Scalar.nsmul_isDominant A s 2 (by norm_num) |
| 69 | have hg : g ≫ A.hom = A.hom := (2 • s).toMul.hom.hom.w |
| 70 | have hnormal (x : A.left) : IsIntegrallyClosed (A.left.presheaf.stalk x) := by |
| 71 | have := AlgebraicGeometry.Quotients.FiniteDescent.SmoothStalk.Construction.SmoothStalkFactorial.stalk A.hom x |
| 72 | infer_instance |
| 73 | have hpoly := Finite.PullbackHilbert.ProjectiveK.polynomial_eq_finitePushforward_hilbert e j A.hom he g hg (P a) (hP a) |
| 74 | have hdegree := Finite.PushforwardHilbert.finitePushforward_degree_leadingCoeff |
| 75 | g hnormal e A.hom j |
| 76 | dsimp only at hdegree |
| 77 | rw [AlgebraicGeometry.SheafCohomology.Projective.DominantResidueDegree.Dimension.dominantFunctionField_finrank_eq_residueDegree g] at hdegree |
| 78 | have hdegree' : |
| 79 | (Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial e j |
| 80 | (Finite.PullbackHilbert.ProjectiveK.coherentFinitePushforward g (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left))).natDegree = d ∧ |
| 81 | (Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial e j |
| 82 | (Finite.PullbackHilbert.ProjectiveK.coherentFinitePushforward g (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left))).leadingCoeff = |
| 83 | (g.residueDegree (genericPoint A.left) : ℚ) * c := hdegree |
| 84 | have hval : MvPolynomial.eval (fun i => (a i : ℚ)) D₀ = |
| 85 | (g.residueDegree (genericPoint A.left) : ℚ) * c := by |
| 86 | rw [← htop a, hpoly] |
| 87 | change (Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial e j |
| 88 | (Finite.PullbackHilbert.ProjectiveK.coherentFinitePushforward g (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left))).coeff d = _ |
| 89 | rw [← hdegree'.1, Polynomial.coeff_natDegree] |
| 90 | exact hdegree'.2 |
| 91 | have hscalar : (g.residueDegree (genericPoint A.left) : ℚ) = |
| 92 | q * (s.toMul.hom.hom.left.residueDegree (genericPoint A.left) : ℚ) := by |
| 93 | dsimp only [g, q, d] |
| 94 | exact_mod_cast DegreeIs.Scalar.nsmul_residueDegree A s 2 (by norm_num) |
| 95 | change MvPolynomial.eval (fun i => (a i : ℚ)) |
| 96 | (MvPolynomial.C ((q * c)⁻¹) * D₀) = _ |
| 97 | rw [map_mul, MvPolynomial.eval_C, hval, hscalar] |
| 98 | field_simp [hc.ne', hq] |
| 99 | ring |
| 100 | |
| 101 | theorem exists_degree_polynomial {ι : Type v} [Fintype ι] (f : ι → AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 102 | ∃ D : MvPolynomial ι ℚ, |
| 103 | D.totalDegree ≤ 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom ∧ |
| 104 | ∀ a : ι → ℕ, |
| 105 | IsFinite (∑ i, a i • f i).toMul.hom.hom.left → |
| 106 | IsDominant (∑ i, a i • f i).toMul.hom.hom.left → |
| 107 | MvPolynomial.eval (fun i => (a i : ℚ)) D = |
| 108 | ((∑ i, a i • f i).toMul.hom.hom.left.residueDegree |
| 109 | (genericPoint A.left) : ℚ) := by |
| 110 | obtain ⟨r, e, he, hbase, hsym⟩ := |
| 111 | SymmetricProjectiveEmbedding.exists_symmetric_projective_embedding A |
| 112 | have : IsClosedImmersion e := he |
| 113 | exact exists_degree_polynomial_of_symmetric_embedding A e 0 hbase hsym f |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.FiniteSumDegree |