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.HilbertScheme.Presentations.Local.DegreeRankSpecialization |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.GeneratedPolynomialTest |
| 3 | |
| 4 | /-! # Rank Test -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.RankTest.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Over a local base, a flat homogeneous family has a prescribed field-fiber |
| 11 | Hilbert polynomial exactly when finitely many actual quotient ranks have the |
| 12 | prescribed values. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial |
| 15 | |
| 16 | universe u v z |
| 17 | |
| 18 | theorem generatorHilbertFunctionBound_ge (n N : ℕ) : N ≤ Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N := by |
| 19 | unfold Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound Uniform.GroebnerCompletion.GradedHilbert.homogeneousGroebnerDegreeBound |
| 20 | have hp : 1 ≤ 2 ^ ControlledCompletionCertificates.GradedHilbert.polynomialCompletionHorizon n N := Nat.one_le_two_pow |
| 21 | have hN : N ≤ N * 2 ^ ControlledCompletionCertificates.GradedHilbert.polynomialCompletionHorizon n N := by |
| 22 | simpa only [Nat.mul_one] using Nat.mul_le_mul_left N hp |
| 23 | exact hN.trans (by |
| 24 | simpa only [Nat.one_mul] using |
| 25 | Nat.mul_le_mul_right (N * 2 ^ ControlledCompletionCertificates.GradedHilbert.polynomialCompletionHorizon n N) (Nat.succ_le_succ (Nat.zero_le n))) |
| 26 | |
| 27 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 28 | variable {K : Type v} [Field K] [Algebra R K] |
| 29 | variable {n : ℕ} {ι : Type z} [Fintype ι] |
| 30 | |
| 31 | theorem homogeneous_local_hilbertPolynomial_rank_test |
| 32 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 33 | (hflat : ∀ d, Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N))) |
| 34 | (P : Polynomial ℚ) : |
| 35 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R K) g) N |
| 36 | (fun i => (hg i).map (algebraMap R K))).toIdeal P ↔ |
| 37 | P.natDegree ≤ n ∧ ∀ i : Fin (n + 1), |
| 38 | (Module.finrank R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal |
| 39 | (Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val)) : ℚ) = |
| 40 | P.eval ((Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val : ℕ) : ℚ) := by |
| 41 | refine (GeneratedPolynomialTest.GradedHilbert.homogeneousGenerators_hilbertPolynomial_finite_test |
| 42 | (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R K) g) N (fun i => (hg i).map (algebraMap R K)) P).trans ?_ |
| 43 | apply and_congr_right |
| 44 | intro _ |
| 45 | apply forall_congr' |
| 46 | intro i |
| 47 | have hd : N ≤ Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val := |
| 48 | (generatorHilbertFunctionBound_ge n N).trans (Nat.le_add_right _ _) |
| 49 | have hr : Module.finrank K (Hilbert.Polynomial.GradedHilbert.DegreeQuotient |
| 50 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal (Finite.SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R K) g) N |
| 51 | (fun i => (hg i).map (algebraMap R K))).toIdeal (Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val)) = |
| 52 | Module.finrank R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal |
| 53 | (Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val)) := by |
| 54 | rw [← Nat.sub_add_cancel hd] |
| 55 | let := hflat (Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val - N) |
| 56 | exact DegreeRankSpecialization.GradedHilbert.homogeneousDegree_finrank_baseChange_of_local_flat g N hg _ |
| 57 | change ((Module.finrank K _ : ℚ) = _) ↔ _ |
| 58 | rw [hr] |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.RankTest.GradedHilbert |