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.EulerPolynomial |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Coherent.HilbertLeadingDifference |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.PullbackHilbert |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.PushforwardHilbert |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SymmetricProjectiveEmbedding |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Frobenius.ShiftIsogeny |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.DominantResidueDegree |
| 8 | |
| 9 | /-! # Degree Polynomial -/ |
| 10 | |
| 11 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreePolynomial |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! The degree polynomial of an actual abelian-scheme endomorphism. |
| 16 | Its normalization comes from the positive leading coefficient of the |
| 17 | structure-sheaf Hilbert polynomial. At every finite dominant shift it |
| 18 | computes the actual generic residue degree of that shift. -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 21 | |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.EulerPolynomial |
| 23 | AlgebraicGeometry.SheafCohomology.Projective.DominantResidueDegree.Dimension |
| 24 | |
| 25 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 26 | |
| 27 | variable {K : Type} [Field K] [IsAlgClosed K] |
| 28 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 29 | [IsProper A.hom] [Smooth A.hom] [GeometricallyIntegral A.hom] |
| 30 | |
| 31 | local instance : IsIntegral A.left := |
| 32 | GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 33 | |
| 34 | theorem exists_degree_polynomial_of_symmetric_embedding |
| 35 | {r : ℕ} |
| 36 | (a : A.left ⟶ Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)) |
| 37 | [IsClosedImmersion a] (j : Fin (r + 1)) |
| 38 | (ha : a ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ = A.hom) |
| 39 | (hsym : Nonempty (((Coherent.EulerHilbert.ProjectiveK.projectiveLineBundle a j).pullback |
| 40 | (GrpObj.inv (X := A)).left).sheaf ≅ (Coherent.EulerHilbert.ProjectiveK.projectiveLineBundle a j).sheaf)) |
| 41 | (f : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 42 | ∃ D : Polynomial ℚ, D.Monic ∧ |
| 43 | D.natDegree = 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom ∧ |
| 44 | ∀ n : ℕ, |
| 45 | IsFinite ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left → |
| 46 | IsDominant ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left → |
| 47 | D.eval (n : ℚ) = |
| 48 | (((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left.residueDegree |
| 49 | (genericPoint A.left) : ℚ) := by |
| 50 | have : IsIntegral A.left := GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 51 | have : A.left.IsSeparated := by |
| 52 | constructor |
| 53 | rw [← CategoryTheory.Limits.terminal.comp_from A.hom] |
| 54 | infer_instance |
| 55 | let d := AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom |
| 56 | let H := Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial a j (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left) |
| 57 | let c := H.leadingCoeff |
| 58 | have hc : 0 < c := (Coherent.StructureDimension.ProjectiveK.coherentStructureHilbertPolynomial_dimension a j A.hom).2 |
| 59 | obtain ⟨P, D₀, hD₀, _, hP, htop, hlead⟩ := |
| 60 | EulerPolynomial.exists_euler_polynomials A a j (Coherent.EulerHilbert.ProjectiveK.projectiveLineBundle a j) hsym f |
| 61 | have hD₀top : D₀.coeff (2 * d) = c := by |
| 62 | exact hlead.trans (Coherent.HilbertLeadingDifference.ProjectiveK.coherentStructureHilbert_leadingCoeff_eq_difference a j A.hom).symm |
| 63 | let D := Polynomial.C c⁻¹ * D₀ |
| 64 | have hD : D.natDegree ≤ 2 * d := |
| 65 | (Polynomial.natDegree_C_mul_le c⁻¹ D₀).trans hD₀ |
| 66 | have hDtop : D.coeff (2 * d) = 1 := by |
| 67 | change (Polynomial.C c⁻¹ * D₀).coeff (2 * d) = 1 |
| 68 | rw [Polynomial.coeff_C_mul, hD₀top, inv_mul_cancel₀ hc.ne'] |
| 69 | refine ⟨D, Polynomial.monic_of_natDegree_le_of_coeff_eq_one _ hD hDtop, |
| 70 | Polynomial.natDegree_eq_of_le_of_coeff_ne_zero hD (hDtop.trans_ne one_ne_zero), ?_⟩ |
| 71 | intro n hfinite hdominant |
| 72 | let g : A.left ⟶ A.left := ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left |
| 73 | have : IsFinite g := hfinite |
| 74 | have : IsDominant g := hdominant |
| 75 | have hg : g ≫ A.hom = A.hom := ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.w |
| 76 | have hnormal (x : A.left) : IsIntegrallyClosed (A.left.presheaf.stalk x) := by |
| 77 | have := AlgebraicGeometry.Quotients.FiniteDescent.SmoothStalk.Construction.SmoothStalkFactorial.stalk A.hom x |
| 78 | infer_instance |
| 79 | have hpoly := Finite.PullbackHilbert.ProjectiveK.polynomial_eq_finitePushforward_hilbert a j A.hom ha g hg (P n) (hP n) |
| 80 | have hdegree := Finite.PushforwardHilbert.finitePushforward_degree_leadingCoeff |
| 81 | g hnormal a A.hom j |
| 82 | dsimp only at hdegree |
| 83 | rw [AlgebraicGeometry.SheafCohomology.Projective.DominantResidueDegree.Dimension.dominantFunctionField_finrank_eq_residueDegree g] at hdegree |
| 84 | have hdegree' : |
| 85 | (Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial a j |
| 86 | (Finite.PullbackHilbert.ProjectiveK.coherentFinitePushforward g (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left))).natDegree = d ∧ |
| 87 | (Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial a j |
| 88 | (Finite.PullbackHilbert.ProjectiveK.coherentFinitePushforward g (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left))).leadingCoeff = |
| 89 | (g.residueDegree (genericPoint A.left) : ℚ) * c := hdegree |
| 90 | have hval : D₀.eval (n : ℚ) = |
| 91 | (g.residueDegree (genericPoint A.left) : ℚ) * c := by |
| 92 | rw [← htop n, hpoly] |
| 93 | change (Coherent.HilbertFiltration.ProjectiveK.coherentHilbertPolynomial a j |
| 94 | (Finite.PullbackHilbert.ProjectiveK.coherentFinitePushforward g (Coherent.StructureDimension.ProjectiveK.coherentStructureModule A.left))).coeff d = _ |
| 95 | rw [← hdegree'.1, Polynomial.coeff_natDegree] |
| 96 | exact hdegree'.2 |
| 97 | change (Polynomial.C c⁻¹ * D₀).eval (n : ℚ) = _ |
| 98 | rw [Polynomial.eval_mul, Polynomial.eval_C, hval] |
| 99 | field_simp [hc.ne'] |
| 100 | rfl |
| 101 | |
| 102 | theorem exists_degree_polynomial (f : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 103 | ∃ D : Polynomial ℚ, D.Monic ∧ |
| 104 | D.natDegree = 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom ∧ |
| 105 | ∀ n : ℕ, |
| 106 | IsFinite ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left → |
| 107 | IsDominant ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left → |
| 108 | D.eval (n : ℚ) = |
| 109 | (((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left.residueDegree |
| 110 | (genericPoint A.left) : ℚ) := by |
| 111 | obtain ⟨r, a, ha, hbase, hsym⟩ := |
| 112 | SymmetricProjectiveEmbedding.exists_symmetric_projective_embedding A |
| 113 | have : IsClosedImmersion a := ha |
| 114 | exact exists_degree_polynomial_of_symmetric_embedding A a 0 hbase hsym f |
| 115 | |
| 116 | theorem exists_degree_polynomial_on_tail (f : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 117 | ∃ D : Polynomial ℚ, D.Monic ∧ |
| 118 | D.natDegree = 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom ∧ |
| 119 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → |
| 120 | D.eval (n : ℚ) = |
| 121 | (((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left.residueDegree |
| 122 | (genericPoint A.left) : ℚ) := by |
| 123 | obtain ⟨D, hD, hd, he⟩ := exists_degree_polynomial A f |
| 124 | obtain ⟨b, hb⟩ := Frobenius.ShiftIsogeny.endomorphism_shift_eventually_isogeny A f |
| 125 | refine ⟨D, hD, hd, b, fun n hn => ?_⟩ |
| 126 | obtain ⟨hf, hs, _⟩ := hb n hn |
| 127 | have : Surjective ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left := hs |
| 128 | exact he n hf inferInstance |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreePolynomial |