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.RelationComponents |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.CoefficientBaseChange |
| 3 | |
| 4 | /-! # Relation Presentation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.RelationPresentation.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite homogeneous presentations of the degree quotients of an ideal generated in one degree. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u z |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {n : ℕ} {ι : Type z} [Fintype ι] |
| 17 | |
| 18 | def homogeneousGeneratorsIdeal (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) |
| 19 | (hg : ∀ i, (g i).IsHomogeneous N) : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n) where |
| 20 | __ := Ideal.span (Set.range g) |
| 21 | is_homogeneous' := Ideal.homogeneous_span (Hilbert.Polynomial.GradedHilbert.grading R n) _ (by |
| 22 | rintro p ⟨i, rfl⟩ |
| 23 | exact ⟨N, hg i⟩) |
| 24 | |
| 25 | def homogeneousVectorInclusion (d : ℕ) : |
| 26 | (ι → Hilbert.Polynomial.GradedHilbert.grading R n d) →ₗ[R] (ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) := |
| 27 | LinearMap.pi (fun i => (Hilbert.Polynomial.GradedHilbert.grading R n d).subtype.comp (LinearMap.proj i)) |
| 28 | |
| 29 | theorem polynomialRelationMap_homogeneous |
| 30 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N d : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 31 | (a : ι → Hilbert.Polynomial.GradedHilbert.grading R n d) : |
| 32 | (SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g (homogeneousVectorInclusion d a)).IsHomogeneous (d + N) := by |
| 33 | apply IsHomogeneous.sum |
| 34 | intro i _ |
| 35 | exact (a i).property.mul (hg i) |
| 36 | |
| 37 | def homogeneousRelationPresentation |
| 38 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) : |
| 39 | (ι → Hilbert.Polynomial.GradedHilbert.grading R n d) →ₗ[R] Hilbert.Polynomial.GradedHilbert.grading R n (d + N) := |
| 40 | (((SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g).restrictScalars R).comp (homogeneousVectorInclusion d)).codRestrict |
| 41 | (Hilbert.Polynomial.GradedHilbert.grading R n (d + N)) (polynomialRelationMap_homogeneous g N d hg) |
| 42 | |
| 43 | theorem homogeneousRelationPresentation_val |
| 44 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 45 | (d : ℕ) (a : ι → Hilbert.Polynomial.GradedHilbert.grading R n d) : |
| 46 | (homogeneousRelationPresentation g N hg d a).val = SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g (fun i => (a i).val) := rfl |
| 47 | |
| 48 | theorem homogeneousRelationPresentation_range |
| 49 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) : |
| 50 | (homogeneousRelationPresentation g N hg d).range = |
| 51 | Hilbert.Polynomial.GradedHilbert.degreeRelations (homogeneousGeneratorsIdeal g N hg).toIdeal (d + N) := by |
| 52 | apply le_antisymm |
| 53 | · rintro f ⟨a, rfl⟩ |
| 54 | change (∑ i, (a i).val * g i) ∈ Ideal.span (Set.range g) |
| 55 | exact Ideal.sum_mem _ (fun i _ => Ideal.mul_mem_left _ (a i).val |
| 56 | (Ideal.subset_span (Set.mem_range_self i))) |
| 57 | · intro f hf |
| 58 | have hfspan : f.val ∈ Submodule.span (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Set.range g) := hf |
| 59 | obtain ⟨c, hc⟩ := (Submodule.mem_span_range_iff_exists_fun (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)).mp hfspan |
| 60 | have hc' : SyzygiesFromPolynomialKernel.GradedHilbert.polynomialRelationMap g c = f.val := hc |
| 61 | have he := congrArg (homogeneousComponent (d + N)) hc' |
| 62 | rw [RelationComponents.GradedHilbert.homogeneousComponent_polynomialRelationMap g c N d hg, |
| 63 | homogeneousComponent_eq_self f.property] at he |
| 64 | refine ⟨fun i => ⟨homogeneousComponent d (c i), homogeneousComponent_isHomogeneous d (c i)⟩, ?_⟩ |
| 65 | exact Subtype.ext he |
| 66 | |
| 67 | def homogeneousPresentationCokernelEquiv |
| 68 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (d : ℕ) : |
| 69 | (Hilbert.Polynomial.GradedHilbert.grading R n (d + N) ⧸ (homogeneousRelationPresentation g N hg d).range) ≃ₗ[R] |
| 70 | Hilbert.Polynomial.GradedHilbert.DegreeQuotient (homogeneousGeneratorsIdeal g N hg).toIdeal (d + N) := |
| 71 | Submodule.quotEquivOfEq _ _ (homogeneousRelationPresentation_range g N hg d) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.RelationPresentation.GradedHilbert |