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.DegreePolynomial |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIs |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Polynomial.Quotient |
| 4 | |
| 5 | /-! # Degree Integrality -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIntegrality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The geometric degree polynomial has integer coefficients. An actual |
| 12 | integral annihilator of the endomorphism gives divisibility at every |
| 13 | sufficiently large integer. Polynomial division and integrally closedness |
| 14 | then give coefficient integrality, without a cohomological comparison. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Filter |
| 17 | |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreePolynomial OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIs.Divisibility |
| 19 | IntegralComparison.Polynomial.Quotient.Integral |
| 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 degree_polynomial_dvd_annihilator_power |
| 29 | (f : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) (D : Polynomial ℚ) (hD : D.Monic) (b : ℕ) |
| 30 | (hvalues : ∀ n : ℕ, b ≤ n → |
| 31 | D.eval (n : ℚ) = |
| 32 | (((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left.residueDegree |
| 33 | (genericPoint A.left) : ℚ)) |
| 34 | (Q : Polynomial ℤ) (hQ : Q.Monic) (hQf : Polynomial.aeval f Q = 0) : |
| 35 | D ∣ (Q.map (Int.castRingHom ℚ)) ^ (2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom) := by |
| 36 | obtain ⟨c, hc⟩ := DegreeIs.Divisibility.shift_degree_eventually_dvd_annihilator A f Q hQ hQf |
| 37 | apply IntegralComparison.Polynomial.Quotient.Integral.dvd_of_eventual_integral_quotient _ _ hD.ne_zero |
| 38 | filter_upwards [eventually_ge_atTop (max b c)] with n hn |
| 39 | obtain ⟨z, hz⟩ := hc n ((le_max_right b c).trans hn) |
| 40 | refine ⟨z, ?_⟩ |
| 41 | rw [Polynomial.eval_pow, Polynomial.eval_natCast_map, |
| 42 | hvalues n ((le_max_left b c).trans hn)] |
| 43 | simpa only [map_pow, map_mul, Int.coe_castRingHom, Int.cast_natCast] using |
| 44 | congrArg (Int.castRingHom ℚ) hz |
| 45 | |
| 46 | theorem exists_monic_integer_degree_polynomial (f : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 47 | ∃ W : Polynomial ℤ, W.Monic ∧ |
| 48 | W.natDegree = 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom ∧ |
| 49 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → |
| 50 | W.eval (n : ℤ) = |
| 51 | (((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left.residueDegree |
| 52 | (genericPoint A.left) : ℤ) := by |
| 53 | obtain ⟨D, hD, hdegree, b, hvalues⟩ := DegreePolynomial.exists_degree_polynomial_on_tail A f |
| 54 | let : Module.Finite ℤ (AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) := |
| 55 | Module.Finite.iff_addGroup_fg.mpr (AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.FiniteGeneration.Construction.algebraicEnd_finiteGenerated A) |
| 56 | obtain ⟨Q, hQ, hQf⟩ := IsIntegral.of_finite ℤ f |
| 57 | have hdiv := degree_polynomial_dvd_annihilator_power A f D hD b hvalues Q hQ hQf |
| 58 | obtain ⟨W, hW, hWD⟩ := IntegralComparison.Polynomial.Quotient.Integral.exists_monic_integer_of_dvd_monic D hD |
| 59 | (Q ^ (2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom)) |
| 60 | (hQ.pow _) (by simpa only [Polynomial.map_pow] using hdiv) |
| 61 | refine ⟨W, hW, ?_, b, ?_⟩ |
| 62 | · calc |
| 63 | W.natDegree = (W.map (Int.castRingHom ℚ)).natDegree := |
| 64 | (Polynomial.natDegree_map_eq_of_injective (Int.cast_injective (α := ℚ)) W).symm |
| 65 | _ = 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom := by rw [hWD]; exact hdegree |
| 66 | · intro n hn |
| 67 | apply Int.cast_injective (α := ℚ) |
| 68 | have hv := hvalues n hn |
| 69 | rw [← hWD, Polynomial.eval_natCast_map] at hv |
| 70 | simpa only [Int.coe_castRingHom, Int.cast_natCast] using hv |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIntegrality |