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.Resolution.Blowups.ProjectiveClosedImmersion |
| 2 | import Mathlib.RingTheory.MvPolynomial.Homogeneous |
| 3 | |
| 4 | /-! # Rees Presentation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.ReesPresentation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Polynomial presentations and relative projective embeddings of affine blowups. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 15 | |
| 16 | namespace Construction |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R ι : Type u} [CommRing R] (I : Ideal R) (a : ι → I) |
| 21 | |
| 22 | /-- A generating family for the ideal gives algebra generators for its Rees algebra. -/ |
| 23 | theorem reesFamily_adjoin (hgen : Submodule.span R (Set.range a) = ⊤) : |
| 24 | Algebra.adjoin R (Set.range (fun i => Blowup.Charts.Construction.reesGenerator I (a i))) = ⊤ := by |
| 25 | let C := Algebra.adjoin R (Set.range (fun i => Blowup.Charts.Construction.reesGenerator I (a i))) |
| 26 | have hspan : Submodule.span R (Set.range a) ≤ C.toSubmodule.comap (ReesMap.Construction.reesGeneratorLinear I) := by |
| 27 | apply Submodule.span_le.mpr |
| 28 | rintro _ ⟨i, rfl⟩ |
| 29 | exact Algebra.subset_adjoin ⟨i, rfl⟩ |
| 30 | rw [hgen] at hspan |
| 31 | apply top_le_iff.mp |
| 32 | rw [← Blowup.Charts.Construction.reesGenerators_adjoin I] |
| 33 | apply Algebra.adjoin_le |
| 34 | rintro _ ⟨b, rfl⟩ |
| 35 | exact hspan (Submodule.mem_top : b ∈ (⊤ : Submodule R I)) |
| 36 | |
| 37 | /-- Evaluation at degree-one Rees generators preserves total degree. -/ |
| 38 | theorem reesPolynomialEval_mem {n : ℕ} (p : MvPolynomial ι R) |
| 39 | (hp : p ∈ MvPolynomial.homogeneousSubmodule ι R n) : |
| 40 | MvPolynomial.aeval (fun i => Blowup.Charts.Construction.reesGenerator I (a i)) p ∈ ReesGrading.Construction.reesGrade I n := by |
| 41 | classical |
| 42 | rw [← p.support_sum_monomial_coeff, map_sum] |
| 43 | apply Submodule.sum_mem |
| 44 | intro d hd |
| 45 | rw [MvPolynomial.aeval_monomial, Finsupp.prod] |
| 46 | have hprod := SetLike.prod_pow_mem_graded (ReesGrading.Construction.reesGrade I) (fun _ : ι => (1 : ℕ)) |
| 47 | (fun i => Blowup.Charts.Construction.reesGenerator I (a i)) d (F := d.support) (fun i _ => Blowup.Charts.Construction.reesGenerator_mem I (a i)) |
| 48 | have hconst : algebraMap R (reesAlgebra I) (AddMonoidAlgebra.coeff (p) (d)) ∈ ReesGrading.Construction.reesGrade I 0 := |
| 49 | SetLike.algebraMap_mem_graded (ReesGrading.Construction.reesGrade I) _ |
| 50 | rw [(show p.IsHomogeneous n from hp).degree_eq_sum_deg_support hd] |
| 51 | simpa only [zero_add, smul_eq_mul, mul_one] using SetLike.mul_mem_graded hconst hprod |
| 52 | |
| 53 | /-- The graded polynomial presentation determined by an ideal generating family. -/ |
| 54 | def reesPolynomialPresentation : |
| 55 | MvPolynomial.homogeneousSubmodule ι R →+*ᵍ ReesGrading.Construction.reesGrade I where |
| 56 | __ := (MvPolynomial.aeval (fun i => Blowup.Charts.Construction.reesGenerator I (a i))).toRingHom |
| 57 | map_mem := reesPolynomialEval_mem I a _ |
| 58 | |
| 59 | theorem reesPolynomialPresentation_surjective (hgen : Submodule.span R (Set.range a) = ⊤) : |
| 60 | Function.Surjective (reesPolynomialPresentation I a) := by |
| 61 | change Function.Surjective (MvPolynomial.aeval (fun i => Blowup.Charts.Construction.reesGenerator I (a i))) |
| 62 | rw [← AlgHom.range_eq_top, MvPolynomial.aeval_range] |
| 63 | exact reesFamily_adjoin I a hgen |
| 64 | |
| 65 | /-- A generating family embeds the actual affine blowup as a closed subscheme |
| 66 | of projective space over the coefficient ring. -/ |
| 67 | def affineBlowupProjectiveEmbedding (hgen : Submodule.span R (Set.range a) = ⊤) : |
| 68 | ReesGrading.Construction.affineBlowup I ⟶ Proj (MvPolynomial.homogeneousSubmodule ι R) := |
| 69 | ProjectiveClosedImmersion.Construction.projClosedMap (reesPolynomialPresentation I a) (reesPolynomialPresentation_surjective I a hgen) |
| 70 | |
| 71 | instance affineBlowupProjectiveEmbedding_isClosedImmersion |
| 72 | (hgen : Submodule.span R (Set.range a) = ⊤) : |
| 73 | IsClosedImmersion (affineBlowupProjectiveEmbedding I a hgen) := |
| 74 | ProjectiveClosedImmersion.Construction.projClosedMap_isClosedImmersion _ _ |
| 75 | |
| 76 | /-- The structural map of polynomial projective space over the coefficient ring. -/ |
| 77 | def polynomialProjToSpec : Proj (MvPolynomial.homogeneousSubmodule ι R) ⟶ Spec (.of R) := |
| 78 | Proj.toSpecZero (MvPolynomial.homogeneousSubmodule ι R) ≫ |
| 79 | Spec.map (CommRingCat.ofHom (algebraMap R (MvPolynomial.homogeneousSubmodule ι R 0))) |
| 80 | |
| 81 | /-- The projective embedding of the affine blowup is over its original affine base. -/ |
| 82 | theorem affineBlowupProjectiveEmbedding_over (hgen : Submodule.span R (Set.range a) = ⊤) : |
| 83 | affineBlowupProjectiveEmbedding I a hgen ≫ polynomialProjToSpec = ReesGrading.Construction.affineBlowupToSpec I := by |
| 84 | unfold affineBlowupProjectiveEmbedding ProjectiveClosedImmersion.Construction.projClosedMap polynomialProjToSpec ReesGrading.Construction.affineBlowupToSpec |
| 85 | rw [← Category.assoc, Blowup.BaseOpen.Construction.projMap_toSpecZero, Category.assoc, ← Spec.map_comp] |
| 86 | congr 1 |
| 87 | congr 1 |
| 88 | apply CommRingCat.hom_ext |
| 89 | apply RingHom.ext |
| 90 | intro r |
| 91 | apply Subtype.ext |
| 92 | exact MvPolynomial.aeval_C (fun i => Blowup.Charts.Construction.reesGenerator I (a i)) r |
| 93 | |
| 94 | /-- Over a Noetherian affine base, the blowup has an actual closed embedding |
| 95 | into a polynomial projective space with finitely many coordinates. -/ |
| 96 | theorem affineBlowup_exists_finite_projectiveEmbedding [IsNoetherianRing R] : |
| 97 | ∃ (s : Finset I) |
| 98 | (i : ReesGrading.Construction.affineBlowup I ⟶ Proj (MvPolynomial.homogeneousSubmodule s R)), |
| 99 | IsClosedImmersion i ∧ i ≫ polynomialProjToSpec = ReesGrading.Construction.affineBlowupToSpec I := by |
| 100 | obtain ⟨s, hs⟩ := (Module.Finite.fg_top (R := R) (M := I)) |
| 101 | have hgen : Submodule.span R (Set.range (fun x : s => (x.val : I))) = ⊤ := by |
| 102 | have hrange : Set.range (fun x : s => (x.val : I)) = (s : Set I) := by |
| 103 | ext x |
| 104 | exact ⟨fun ⟨y, h⟩ => h ▸ y.property, fun hx => ⟨⟨x, hx⟩, rfl⟩⟩ |
| 105 | rw [hrange] |
| 106 | exact hs |
| 107 | exact ⟨s, affineBlowupProjectiveEmbedding I (fun x : s => x.val) hgen, |
| 108 | affineBlowupProjectiveEmbedding_isClosedImmersion I _ hgen, |
| 109 | affineBlowupProjectiveEmbedding_over I _ hgen⟩ |
| 110 | |
| 111 | end Construction |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.Resolution.Blowups.ReesPresentation |