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.Saturation.PrimeDescent |
| 2 | |
| 3 | /-! # Generated Saturation Neighborhood -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.GeneratedSaturationNeighborhood.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Equality of the projective subschemes cut out by two finite homogeneous |
| 10 | lists is open around a coefficient prime where they agree. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u v w |
| 15 | variable {A : Type u} [CommRing A] {n : ℕ} |
| 16 | |
| 17 | theorem mapped_generator_mem_projectiveSaturation |
| 18 | (T : Type v) [CommRing T] [Algebra A T] |
| 19 | {κ : Type w} (g : κ → Hilbert.Polynomial.GradedHilbert.CoordinateRing A n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) (i : κ) : |
| 20 | MvPolynomial.map (algebraMap A T) (g i) ∈ |
| 21 | (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := T) (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg))).toIdeal := |
| 22 | Projective.Saturation.GradedHilbert.le_projectiveSaturation _ (Ideal.mem_map_of_mem _ (Ideal.subset_span (Set.mem_range_self i))) |
| 23 | |
| 24 | theorem generated_projectiveSaturation_equality_neighborhood |
| 25 | (p : Ideal A) [p.IsPrime] |
| 26 | {ι : Type v} [Fintype ι] {κ : Type w} [Fintype κ] |
| 27 | (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing A n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 28 | (h : κ → Hilbert.Polynomial.GradedHilbert.CoordinateRing A n) (M : ℕ) (hh : ∀ i, (h i).IsHomogeneous M) |
| 29 | (he : Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := Localization.AtPrime p) |
| 30 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg)) = |
| 31 | Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := Localization.AtPrime p) |
| 32 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal h M hh))) : |
| 33 | ∃ s : A, s ∉ p ∧ |
| 34 | Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := Localization.Away s) |
| 35 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg)) = |
| 36 | Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := Localization.Away s) |
| 37 | (Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal h M hh)) := by |
| 38 | let I := Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal g N hg |
| 39 | let J := Homogeneous.RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal h M hh |
| 40 | let target : ι ⊕ κ → HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading A n) := Sum.elim (fun _ => J) (fun _ => I) |
| 41 | let polys : ι ⊕ κ → Hilbert.Polynomial.GradedHilbert.CoordinateRing A n := Sum.elim g h |
| 42 | let degree : ι ⊕ κ → ℕ := Sum.elim (fun _ => N) (fun _ => M) |
| 43 | have hdegree : ∀ i, (polys i).IsHomogeneous (degree i) := by |
| 44 | intro i |
| 45 | cases i with |
| 46 | | inl i => exact hg i |
| 47 | | inr i => exact hh i |
| 48 | have hmem (i : ι ⊕ κ) : MvPolynomial.map (algebraMap A (Localization.AtPrime p)) (polys i) ∈ |
| 49 | (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := Localization.AtPrime p) (target i))).toIdeal := by |
| 50 | cases i with |
| 51 | | inl i => |
| 52 | exact he ▸ mapped_generator_mem_projectiveSaturation (Localization.AtPrime p) g N hg i |
| 53 | | inr i => |
| 54 | exact he.symm ▸ mapped_generator_mem_projectiveSaturation (Localization.AtPrime p) h M hh i |
| 55 | obtain ⟨s, hs, hsm⟩ := Saturation.PrimeDescent.GradedHilbert.finite_saturation_membership_prime_descent p target polys degree hdegree hmem |
| 56 | refine ⟨s, hs, le_antisymm ?_ ?_⟩ |
| 57 | · exact Saturation.PrimeDescent.GradedHilbert.generatedIdeal_le_saturation_of_mapped_generators (Localization.Away s) g N hg J |
| 58 | (fun i => hsm (.inl i)) |
| 59 | · exact Saturation.PrimeDescent.GradedHilbert.generatedIdeal_le_saturation_of_mapped_generators (Localization.Away s) h M hh I |
| 60 | (fun i => hsm (.inr i)) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.GeneratedSaturationNeighborhood.GradedHilbert |