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.Finite.DegreeFlatnessLocal |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.GeneratorsBaseChange |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.QuotientFinitePresentation |
| 4 | import Mathlib.RingTheory.Flat.Localization |
| 5 | import Mathlib.RingTheory.Localization.BaseChange |
| 6 | |
| 7 | /-! # Degree Flatness -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.DegreeFlatness.GradedHilbert |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A uniform finite-degree flatness test over arbitrary commutative coefficient rings. -/ |
| 14 | |
| 15 | open _root_.MvPolynomial TensorProduct |
| 16 | |
| 17 | universe u z |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] {n : ℕ} {ι : Type z} [Fintype ι] |
| 20 | |
| 21 | theorem homogeneous_quotients_flat_of_finite_flat_degrees |
| 22 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 23 | (hflat : ∀ e ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 24 | Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (e + N))) |
| 25 | (d : ℕ) : Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N)) := by |
| 26 | let M := Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N) |
| 27 | apply Module.flat_of_localized_maximal |
| 28 | intro P hP |
| 29 | let A := Localization.AtPrime P |
| 30 | let gA := SyzygyLifting.GradedHilbert.mapRelationVector (algebraMap R A) g |
| 31 | have hgA (i : ι) : (gA i).IsHomogeneous N := (hg i).map (algebraMap R A) |
| 32 | have hflatA : ∀ e ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 33 | Module.Flat A (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal gA N hgA).toIdeal (e + N)) := by |
| 34 | intro e he |
| 35 | let := hflat e he |
| 36 | exact Homogeneous.GeneratorsBaseChange.GradedHilbert.homogeneousGeneratorsDegree_flat_baseChange (S := A) g N hg (e + N) |
| 37 | let := DegreeFlatnessLocal.GradedHilbert.homogeneous_quotients_free_of_finite_flat_degrees gA N hgA hflatA d |
| 38 | let : Module.Flat A (A ⊗[R] M) := Module.Flat.of_linearEquiv |
| 39 | (Homogeneous.GeneratorsBaseChange.GradedHilbert.homogeneousGeneratorsDegreeBaseChangeEquiv (S := A) g N hg (d + N)) |
| 40 | rw [← Module.flat_iff_of_isLocalization A P.primeCompl] |
| 41 | exact Module.Flat.of_linearEquiv (LocalizedModule.equivTensorProduct P.primeCompl M) |
| 42 | |
| 43 | theorem homogeneous_quotients_flat_finite_test_global |
| 44 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) : |
| 45 | (∀ d, Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N))) ↔ |
| 46 | (∀ e ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 47 | Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (e + N))) := by |
| 48 | constructor |
| 49 | · exact fun h e _ => h e |
| 50 | · exact homogeneous_quotients_flat_of_finite_flat_degrees g N hg |
| 51 | |
| 52 | theorem homogeneous_quotients_projective_of_finite_flat_degrees |
| 53 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 54 | (hflat : ∀ e ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 55 | Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (e + N))) |
| 56 | (d : ℕ) : Module.Projective R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N)) := by |
| 57 | let := homogeneous_quotients_flat_of_finite_flat_degrees g N hg hflat d |
| 58 | let := Homogeneous.QuotientFinitePresentation.GradedHilbert.homogeneousGeneratorsDegree_finitePresentation g N hg d |
| 59 | exact Module.Flat.projective_of_finitePresentation |
| 60 | (R := R) (M := Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N)) |
| 61 | |
| 62 | theorem projectiveQuotient_flat_of_finite_degree_test |
| 63 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 64 | (hflat : ∀ e ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 65 | Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (e + N))) : |
| 66 | AlgebraicGeometry.Flat (Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg))) := by |
| 67 | apply Presentations.Projective.Flatness.GradedHilbert.projectiveQuotient_flat_of_eventually_flat (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg) N |
| 68 | intro d hd |
| 69 | have he : d - N + N = d := Nat.sub_add_cancel hd |
| 70 | rw [← he] |
| 71 | exact homogeneous_quotients_flat_of_finite_flat_degrees g N hg hflat (d - N) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.DegreeFlatness.GradedHilbert |