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.Homogeneous.PresentationLifts |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.Flatness |
| 3 | |
| 4 | /-! # Degree Flatness Local -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.DegreeFlatnessLocal.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A uniform finite-degree flatness test over arbitrary local coefficient rings, proved using bounded syzygies and residue-field relation lifting. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u z |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] [IsLocalRing R] {n : ℕ} {ι : Type z} [Fintype ι] |
| 17 | |
| 18 | theorem homogeneous_quotients_free_of_finite_flat_degrees |
| 19 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 20 | (hflat : ∀ e ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 21 | Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (e + N))) |
| 22 | (d : ℕ) : Module.Free R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N)) := by |
| 23 | let K := IsLocalRing.ResidueField R |
| 24 | let φ := algebraMap R K |
| 25 | have hφ : Function.Surjective φ := IsLocalRing.residue_surjective |
| 26 | have hsmall : ∀ e ≤ Coordinate.SyzygyBound.GradedHilbert.homogeneousSyzygyDegreeBound n (Fintype.card ι) N, |
| 27 | ∀ a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, (∀ i, (a i).IsHomogeneous e) → |
| 28 | SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap (SyzygyLifting.GradedHilbert.mapRelationVector φ g) a = 0 → |
| 29 | ∃ b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n, SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g b = 0 ∧ SyzygyLifting.GradedHilbert.mapRelationVector φ b = a := by |
| 30 | intro e he a ha hrel |
| 31 | let := hflat e he |
| 32 | obtain ⟨b, _, hb, hba⟩ := Homogeneous.PresentationLifts.GradedHilbert.homogeneous_relation_lift_of_flat_quotient hφ g N hg e a ha hrel |
| 33 | exact ⟨b, hb, hba⟩ |
| 34 | have hall := SyzygyLifting.GradedHilbert.all_relations_lift_of_bounded_homogeneous_lifts φ hφ g N hg hsmall |
| 35 | have hlift (a : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (ha : ∀ i, (a i).IsHomogeneous d) |
| 36 | (hrel : SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap (SyzygyLifting.GradedHilbert.mapRelationVector φ g) a = 0) : |
| 37 | ∃ b : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n, (∀ i, (b i).IsHomogeneous d) ∧ |
| 38 | SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g b = 0 ∧ SyzygyLifting.GradedHilbert.mapRelationVector φ b = a := by |
| 39 | apply Homogeneous.RelationComponents.GradedHilbert.homogeneous_relation_lift_of_relation_lift φ g N d hg a ha |
| 40 | have hm : a ∈ SyzygyLifting.GradedHilbert.liftedPolynomialRelations φ hφ g := by |
| 41 | rw [hall] |
| 42 | exact hrel |
| 43 | exact hm |
| 44 | let f := Homogeneous.RelationPresentation.GradedHilbert.homogeneousRelationPresentation g N hg d |
| 45 | have hex := Homogeneous.PresentationLifts.GradedHilbert.homogeneousPresentation_tensor_exact_of_lifts (S := K) g N hg d hlift |
| 46 | let : Module.Free R (Hilbert.Polynomial.GradedHilbert.grading R n (d + N)) := Homogeneous.PresentationBaseChange.GradedHilbert.coordinateDegreeSpace_free (d + N) |
| 47 | let : Module.Free R (Hilbert.Polynomial.GradedHilbert.grading R n (d + N) ⧸ f.range) := |
| 48 | LiftedRelationsFlatness.cokernel_free_of_lifted_residue_relations f hex |
| 49 | exact Module.Free.of_equiv (Homogeneous.RelationPresentation.GradedHilbert.homogeneousPresentationCokernelEquiv g N hg d) |
| 50 | |
| 51 | theorem homogeneous_quotients_flat_finite_test |
| 52 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) : |
| 53 | (∀ d, Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg).toIdeal (d + N))) ↔ |
| 54 | (∀ 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))) := by |
| 56 | constructor |
| 57 | · exact fun h e _ => h e |
| 58 | · intro h d |
| 59 | let := homogeneous_quotients_free_of_finite_flat_degrees g N hg h d |
| 60 | infer_instance |
| 61 | |
| 62 | theorem projectiveQuotient_flat_of_finite_degree_test_local |
| 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 (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg))) := by |
| 67 | apply 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_finite_test g N hg).mpr hflat (d - N) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.DegreeFlatnessLocal.GradedHilbert |