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.Linear.FormQuotient |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ExactFinrank |
| 3 | |
| 4 | /-! # Form Function -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.FormFunction.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The Hilbert-function recurrence from an actual regular linear form. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {K : Type u} [Field K] {n : ℕ} |
| 17 | |
| 18 | theorem linearForm_hilbertFunction (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 19 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (hl : l.IsHomogeneous 1) |
| 20 | (hreg : ∀ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, l * f ∈ I.toIdeal → f ∈ I.toIdeal) (d : ℕ) : |
| 21 | Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d + Hilbert.Polynomial.GradedHilbert.hilbertFunction (FormQuotient.GradedHilbert.linearFormQuotientIdeal I l hl).toIdeal (d + 1) = |
| 22 | Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal (d + 1) := by |
| 23 | let ℳ := Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I |
| 24 | let ℙ := Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading (FormQuotient.GradedHilbert.linearFormQuotientIdeal I l hl) |
| 25 | let i := (FormQuotient.GradedHilbert.linearFormScalar I l).restrictScalars K |
| 26 | let p := (FormQuotient.GradedHilbert.linearFormQuotientMap I l hl).restrictScalars K |
| 27 | have hi : ∀ e x, x ∈ ReindexedGrading.GradedModules.shiftedGrading ℳ (-1) e → i x ∈ ℳ e := by |
| 28 | intro e x hx |
| 29 | change FormQuotient.GradedHilbert.linearFormScalar I l x ∈ Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I e |
| 30 | have h := FormQuotient.GradedHilbert.linearFormScalar_homogeneous I l hl (e + -1) x hx |
| 31 | simpa only [neg_add_cancel_right] using h |
| 32 | have hp : ∀ e x, x ∈ ℳ e → p x ∈ ℙ e := FormQuotient.GradedHilbert.linearFormQuotientMap_homogeneous I l hl |
| 33 | let i' := Graded.Exactness.GradedModules.degreeMap (ReindexedGrading.GradedModules.shiftedGrading ℳ (-1)) ℳ i hi ((d + 1 : ℕ) : ℤ) |
| 34 | let p' := Graded.Exactness.GradedModules.degreeMap ℳ ℙ p hp ((d + 1 : ℕ) : ℤ) |
| 35 | have hi' : Function.Injective i' := by |
| 36 | intro x y hxy |
| 37 | exact Subtype.ext (FormQuotient.GradedHilbert.linearFormScalar_injective I l hreg (congrArg Subtype.val hxy)) |
| 38 | have hp' : Function.Surjective p' := Graded.Exactness.GradedModules.degreeMap_surjective ℳ ℙ p hp |
| 39 | (FormQuotient.GradedHilbert.linearFormQuotientMap_surjective I l hl) _ |
| 40 | have hex : Function.Exact i' p' := Graded.Exactness.GradedModules.degreeMap_exact (ReindexedGrading.GradedModules.shiftedGrading ℳ (-1)) ℳ ℙ i p hi hp |
| 41 | (FormQuotient.GradedHilbert.linearFormQuotient_exact I l hl) _ |
| 42 | let E₀ : Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d ≃ₗ[K] ReindexedGrading.GradedModules.shiftedGrading ℳ (-1) ((d + 1 : ℕ) : ℤ) := |
| 43 | (Coordinate.IntegerQuotient.GradedHilbert.integerDegreeQuotientEquiv I d).trans (LinearEquiv.ofEq _ _ (by |
| 44 | change Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I (d : ℤ) = Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I (((d + 1 : ℕ) : ℤ) + -1) |
| 45 | congr 1 |
| 46 | omega)) |
| 47 | let E₁ := Coordinate.IntegerQuotient.GradedHilbert.integerDegreeQuotientEquiv I (d + 1) |
| 48 | let E₂ := Coordinate.IntegerQuotient.GradedHilbert.integerDegreeQuotientEquiv (FormQuotient.GradedHilbert.linearFormQuotientIdeal I l hl) (d + 1) |
| 49 | let : Module.Finite K (ℳ ((d + 1 : ℕ) : ℤ)) := Module.Finite.equiv E₁ |
| 50 | have h := ExactFinrank.finrank_add_of_short_exact i' p' hi' hp' hex |
| 51 | rw [← E₀.finrank_eq, ← E₁.finrank_eq, ← E₂.finrank_eq] at h |
| 52 | exact h |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.FormFunction.GradedHilbert |