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.Coordinate.IntegerQuotient |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.ChartModule |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProjectiveCharts |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.EventualDegreeFlatness |
| 5 | |
| 6 | /-! # Projective Coordinate Pieces -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProjectiveCoordinatePieces.GradedHilbert |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | Flat projective quotients over noetherian rings have flat homogeneous |
| 14 | coordinate pieces in sufficiently high degree. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.ChartModule.GradedModules OAI.AlgebraicGeometry.HilbertScheme.Presentations.EventualDegreeFlatness.ProjectiveCech |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 24 | |
| 25 | theorem quotient_inversionMonomial_homogeneous |
| 26 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (s : Finset (Fin (n + 1))) : |
| 27 | algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) |
| 28 | (LaurentMonomials.ProjectiveCech.inversionMonomial R s) ∈ Graded.Quotient.GradedHilbert.quotientGrading I s.card := by |
| 29 | apply (Graded.Quotient.GradedHilbert.gradedQuotientMap I).map_mem |
| 30 | have h := Graded.ModuleRestriction.ProjectiveCech.inversionMonomial_integer_degree R s |
| 31 | rw [IntegerPolynomialGrading.GradedModules.polynomialIntegerGrading_nat] at h |
| 32 | exact h |
| 33 | |
| 34 | def coordinateChartModuleEquiv (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 35 | (s : Finset (Fin (n + 1))) : |
| 36 | HomogeneousLocalization.Away (Graded.Quotient.GradedHilbert.quotientGrading I) |
| 37 | (algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (LaurentMonomials.ProjectiveCech.inversionMonomial R s)) ≃ₗ[R] |
| 38 | Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) s 0 := |
| 39 | Homogeneous.ChartModule.GradedModules.homogeneousChartModuleEquiv (WeightedFreeModules.GradedModules.polynomialIntegerGrading R) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) |
| 40 | (Graded.Quotient.GradedHilbert.quotientGrading I) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading_nat I) (LaurentMonomials.ProjectiveCech.inversionMonomial R s) s.card |
| 41 | (Graded.ModuleRestriction.ProjectiveCech.inversionMonomial_integer_degree R s) (quotient_inversionMonomial_homogeneous I s) |
| 42 | |
| 43 | theorem coordinateChartDegreeZero_flat (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 44 | [Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I))] |
| 45 | (s : Finset (Fin (n + 1))) (hs : s.Nonempty) : |
| 46 | Module.Flat R (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) |
| 47 | (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) s 0) := by |
| 48 | let : Module.Flat R (HomogeneousLocalization.Away (Graded.Quotient.GradedHilbert.quotientGrading I) |
| 49 | (algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (LaurentMonomials.ProjectiveCech.inversionMonomial R s))) := |
| 50 | ProjectiveCharts.GradedHilbert.homogeneousChart_flat_of_projective_flat (Graded.Quotient.GradedHilbert.quotientGrading I) (Finset.card_pos.mpr hs) |
| 51 | (quotient_inversionMonomial_homogeneous I s) |
| 52 | exact Module.Flat.of_linearEquiv (coordinateChartModuleEquiv I s).symm |
| 53 | |
| 54 | theorem eventual_coordinatePieces_flat_of_projective_flat [IsNoetherianRing R] |
| 55 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 56 | [Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I))] : |
| 57 | ∃ N : ℕ, ∀ d ≥ N, Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := by |
| 58 | obtain ⟨N, hN⟩ := EventualDegreeFlatness.ProjectiveCech.eventual_degree_flat_of_projective_charts |
| 59 | (σ := Fin (n + 1)) R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) |
| 60 | (coordinateChartDegreeZero_flat I) |
| 61 | refine ⟨N, fun d hd => ?_⟩ |
| 62 | let : Module.Flat R (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I (d : ℤ)) := hN d (by exact_mod_cast hd) |
| 63 | exact Module.Flat.of_linearEquiv (Coordinate.IntegerQuotient.GradedHilbert.integerDegreeQuotientEquiv I d) |
| 64 | |
| 65 | theorem projectiveQuotient_flat_iff_eventual_coordinatePieces_flat [IsNoetherianRing R] |
| 66 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 67 | Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I)) ↔ |
| 68 | ∃ N : ℕ, ∀ d ≥ N, Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := by |
| 69 | constructor |
| 70 | · intro h |
| 71 | let : Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I)) := h |
| 72 | exact eventual_coordinatePieces_flat_of_projective_flat I |
| 73 | · rintro ⟨N, hN⟩ |
| 74 | exact Projective.Flatness.GradedHilbert.projectiveQuotient_flat_of_eventually_flat I N hN |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProjectiveCoordinatePieces.GradedHilbert |