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.CechTensorExactness |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Saturation.PositiveCech |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.FieldCechBound |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.FiberwiseModuleCech |
| 5 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProjectiveCoordinatePieces |
| 6 | import Mathlib.RingTheory.Flat.EquationalCriterion |
| 7 | |
| 8 | /-! # Projective Sections -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.ProjectiveSections.GradedHilbert |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Uniform finiteness, projectivity, and higher Čech vanishing for flat projective coordinate families with a fixed fiber Hilbert polynomial. -/ |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.FiberwiseModuleCech.ProjectiveCech |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 23 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (P : Polynomial ℚ) |
| 24 | variable (hP : ∀ p : PrimeSpectrum R, |
| 25 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 26 | (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I)).toIdeal P) |
| 27 | |
| 28 | include hP in |
| 29 | theorem coordinateCech_residueField_exact (d : ℤ) (hd : (RegularCoordinateFlag.GradedHilbert.regularCoordinateFlagBound.{u} n P : ℤ) ≤ d) |
| 30 | (q : ℕ) (p : PrimeSpectrum R) : |
| 31 | Function.Exact ((ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := Fin (n + 1)) R |
| 32 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) d (q + 1)).lTensor p.asIdeal.ResidueField) |
| 33 | ((ModuleCech.Terms.ProjectiveCech.moduleCechTermDifferential (σ := Fin (n + 1)) R |
| 34 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) d (q + 1 + 1)).lTensor p.asIdeal.ResidueField) := by |
| 35 | apply (Coordinate.CechTensorExactness.GradedHilbert.coordinateCech_tensor_exact_iff (S := p.asIdeal.ResidueField) I d (q + 1)).mpr |
| 36 | let J := Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I |
| 37 | apply (Saturation.PositiveCech.GradedHilbert.saturation_positiveCech_exact_iff J d q).mpr |
| 38 | exact Cech.FlatAugmentation.ProjectiveCech.moduleCechTermDifferential_exact p.asIdeal.ResidueField |
| 39 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing p.asIdeal.ResidueField n ⧸ (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation J).toIdeal) |
| 40 | (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation J)) d (q + 1) |
| 41 | (FieldCechBound.GradedHilbert.saturated_cech_exact_uniform (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation J) (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation_isSaturated J) |
| 42 | P (hP p) d hd (q + 1 + 1)) |
| 43 | |
| 44 | variable [IsNoetherianRing R] [Flat (Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I))] |
| 45 | |
| 46 | include hP in |
| 47 | theorem uniform_projective_sections_flat (d : ℤ) (hd : (RegularCoordinateFlag.GradedHilbert.regularCoordinateFlagBound.{u} n P : ℤ) ≤ d) : |
| 48 | Module.Flat R (FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 49 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) d) ∧ |
| 50 | ∀ q : ℕ, Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := Fin (n + 1)) R |
| 51 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) d (q + 2) := by |
| 52 | apply FiberwiseModuleCech.ProjectiveCech.moduleCech_fiberwise_exact_flat R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) d |
| 53 | · intro s hs |
| 54 | let : Module.Flat R (Graded.ModuleRestriction.ProjectiveCech.moduleChartDegree R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) |
| 55 | (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) s 0) := Presentations.Flat.ProjectiveCoordinatePieces.GradedHilbert.coordinateChartDegreeZero_flat I s hs |
| 56 | exact EventualDegreeFlatness.ProjectiveCech.moduleChartDegree_flat_of_zero R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) |
| 57 | (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) s hs d ((Int.natCast_nonneg _).trans hd) |
| 58 | · exact coordinateCech_residueField_exact I P hP d hd |
| 59 | |
| 60 | include hP in |
| 61 | theorem uniform_projective_sections_projective (d : ℕ) (hd : RegularCoordinateFlag.GradedHilbert.regularCoordinateFlagBound.{u} n P ≤ d) : |
| 62 | Module.Finite R (FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 63 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ)) ∧ |
| 64 | Module.Projective R (FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 65 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ)) := by |
| 66 | let : Module.Finite R (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I (d : ℤ)) := |
| 67 | Module.Finite.equiv (Coordinate.IntegerQuotient.GradedHilbert.integerDegreeQuotientEquiv I d) |
| 68 | let : Module.Finite R (FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 69 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ)) := |
| 70 | FiberwiseModuleCech.ProjectiveCech.moduleCechSections_finite R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ) |
| 71 | let : Module.Flat R (FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 72 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ)) := |
| 73 | (uniform_projective_sections_flat I P hP (d : ℤ) (by exact_mod_cast hd)).1 |
| 74 | let : Module.FinitePresentation R (FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 75 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ)) := |
| 76 | Module.finitePresentation_of_finite R (FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 77 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ)) |
| 78 | exact ⟨inferInstance, Module.Flat.projective_of_finitePresentation (R := R) |
| 79 | (M := FiberwiseModuleCech.ProjectiveCech.moduleCechSections (σ := Fin (n + 1)) R |
| 80 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) (d : ℤ))⟩ |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.ProjectiveSections.GradedHilbert |