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.RegularQuotientCech |
| 3 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 4 | |
| 5 | /-! # Form Quotient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.FormQuotient.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual graded exact sequence obtained by quotienting a homogeneous coordinate ring by a linear form. -/ |
| 12 | |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 18 | |
| 19 | def linearFormIdeal (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) : |
| 20 | HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n) where |
| 21 | __ := Ideal.span {l} |
| 22 | is_homogeneous' := Ideal.homogeneous_span (Hilbert.Polynomial.GradedHilbert.grading R n) {l} (by |
| 23 | intro x hx |
| 24 | obtain rfl := Set.mem_singleton_iff.mp hx |
| 25 | exact ⟨1, hl⟩) |
| 26 | |
| 27 | def linearFormQuotientIdeal (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 28 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n) := |
| 29 | I ⊔ linearFormIdeal l hl |
| 30 | |
| 31 | def linearFormQuotientMap (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 32 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) : |
| 33 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) →ₗ[Hilbert.Polynomial.GradedHilbert.CoordinateRing R n] |
| 34 | Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ (linearFormQuotientIdeal I l hl).toIdeal := |
| 35 | (Ideal.Quotient.factorₐ (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (show I.toIdeal ≤ |
| 36 | (linearFormQuotientIdeal I l hl).toIdeal from le_sup_left)).toLinearMap |
| 37 | |
| 38 | theorem linearFormQuotientMap_surjective (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 39 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) : |
| 40 | Function.Surjective (linearFormQuotientMap I l hl) := |
| 41 | Ideal.Quotient.factor_surjective (show I.toIdeal ≤ (linearFormQuotientIdeal I l hl).toIdeal from le_sup_left) |
| 42 | |
| 43 | theorem linearFormQuotientMap_homogeneous (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 44 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) (d : ℤ) |
| 45 | (x : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (hx : x ∈ Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I d) : |
| 46 | linearFormQuotientMap I l hl x ∈ Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading (linearFormQuotientIdeal I l hl) d := by |
| 47 | obtain ⟨f, hf, rfl⟩ := hx |
| 48 | exact ⟨f, hf, rfl⟩ |
| 49 | |
| 50 | def linearFormScalar (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) : |
| 51 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) →ₗ[Hilbert.Polynomial.GradedHilbert.CoordinateRing R n] Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal := |
| 52 | algebraMap (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Module.End (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal)) l |
| 53 | |
| 54 | theorem linearFormScalar_homogeneous (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 55 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) (d : ℤ) |
| 56 | (x : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (hx : x ∈ Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I d) : |
| 57 | linearFormScalar I l x ∈ Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I (d + 1) := by |
| 58 | have hl' : l ∈ WeightedFreeModules.GradedModules.polynomialIntegerGrading R (1 : ℤ) := by |
| 59 | rw [show (1 : ℤ) = ((1 : ℕ) : ℤ) from rfl, IntegerPolynomialGrading.GradedModules.polynomialIntegerGrading_nat] |
| 60 | exact hl |
| 61 | have h := SetLike.GradedSMul.smul_mem hl' hx |
| 62 | change l • x ∈ Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I (1 + d) at h |
| 63 | change l • x ∈ Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I (d + 1) |
| 64 | simpa only [add_comm 1 d] using h |
| 65 | |
| 66 | theorem linearFormScalar_injective (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 67 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hreg : ∀ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n, l * f ∈ I.toIdeal → f ∈ I.toIdeal) : |
| 68 | Function.Injective (linearFormScalar I l) := by |
| 69 | intro x y hxy |
| 70 | apply sub_eq_zero.mp |
| 71 | have hz : linearFormScalar I l (x - y) = 0 := by rw [map_sub, hxy, sub_self] |
| 72 | obtain ⟨f, hf⟩ := Ideal.Quotient.mk_surjective (x - y) |
| 73 | rw [← hf] at hz ⊢ |
| 74 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 75 | apply hreg f |
| 76 | exact Ideal.Quotient.eq_zero_iff_mem.mp hz |
| 77 | |
| 78 | theorem linearFormQuotient_exact (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 79 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) : |
| 80 | Function.Exact (linearFormScalar I l) (linearFormQuotientMap I l hl) := by |
| 81 | intro x |
| 82 | obtain ⟨f, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 83 | constructor |
| 84 | · intro hf |
| 85 | have hf' : f ∈ I.toIdeal ⊔ Ideal.span {l} := Ideal.Quotient.eq_zero_iff_mem.mp hf |
| 86 | obtain ⟨a, ha, b, hb, hab⟩ := Submodule.mem_sup.mp hf' |
| 87 | obtain ⟨c, rfl⟩ := Ideal.mem_span_singleton.mp hb |
| 88 | refine ⟨Ideal.Quotient.mk I.toIdeal c, ?_⟩ |
| 89 | change Ideal.Quotient.mk I.toIdeal (l * c) = Ideal.Quotient.mk I.toIdeal f |
| 90 | rw [← hab, map_add, Ideal.Quotient.eq_zero_iff_mem.mpr ha, zero_add] |
| 91 | · rintro ⟨y, hy⟩ |
| 92 | rw [← hy] |
| 93 | obtain ⟨g, rfl⟩ := Ideal.Quotient.mk_surjective y |
| 94 | change Ideal.Quotient.mk (linearFormQuotientIdeal I l hl).toIdeal (l * g) = 0 |
| 95 | apply Ideal.Quotient.eq_zero_iff_mem.mpr |
| 96 | apply Ideal.mul_mem_right |
| 97 | exact (le_sup_right : Ideal.span {l} ≤ I.toIdeal ⊔ Ideal.span {l}) (Ideal.subset_span rfl) |
| 98 | |
| 99 | theorem coordinate_cech_exact_of_regular_linearForm [IsNoetherianRing R] |
| 100 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) (hl : l.IsHomogeneous 1) |
| 101 | (hreg : ∀ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n, l * f ∈ I.toIdeal → f ∈ I.toIdeal) |
| 102 | (D : ℤ) (hquot : ∀ d : ℤ, D ≤ d → ∀ q : ℕ, |
| 103 | Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := Fin (n + 1)) R |
| 104 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ (linearFormQuotientIdeal I l hl).toIdeal) |
| 105 | (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading (linearFormQuotientIdeal I l hl)) d q) : |
| 106 | ∀ d : ℤ, D ≤ d → ∀ q : ℕ, Cech.DimensionShift.ProjectiveCech.ModuleCechExactAt (σ := Fin (n + 1)) |
| 107 | R (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) d q := |
| 108 | RegularQuotientCech.ProjectiveCech.moduleCech_exact_of_regular_quotient (σ := Fin (n + 1)) R |
| 109 | (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n ⧸ I.toIdeal) (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading I) |
| 110 | (Coordinate.IntegerQuotient.GradedHilbert.integerQuotientGrading (linearFormQuotientIdeal I l hl)) |
| 111 | (linearFormScalar I l) (linearFormQuotientMap I l hl) |
| 112 | (linearFormScalar_homogeneous I l hl) (linearFormQuotientMap_homogeneous I l hl) |
| 113 | (linearFormScalar_injective I l hreg) (linearFormQuotientMap_surjective I l hl) |
| 114 | (linearFormQuotient_exact I l hl) D hquot |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.FormQuotient.GradedHilbert |