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.Polynomial.ChartPresentation |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.Properness |
| 3 | |
| 4 | /-! # Projective -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.Projective.PolynomialProjective |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Standard affine covers and properness for projective polynomial quotients |
| 12 | with arbitrary finite coordinate index types. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.MvPolynomial _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {R σ : Type u} [CommRing R] |
| 20 | |
| 21 | theorem quotient_irrelevant_le_span_variables (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) : |
| 22 | (HomogeneousIdeal.irrelevant (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I)).toIdeal ≤ |
| 23 | Ideal.span (Set.range (fun i : σ => Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i))) := by |
| 24 | have h := Homogeneous.Quotient.HomogeneousQuotient.irrelevant_quotient_le_map I |
| 25 | change (HomogeneousIdeal.irrelevant (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I)).toIdeal ≤ |
| 26 | Ideal.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (HomogeneousIdeal.irrelevant (Dehomogenization.PolynomialProjective.polynomialGrading σ R)).toIdeal at h |
| 27 | apply h.trans |
| 28 | have hr : (Set.range fun i : σ => Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) = |
| 29 | Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I '' Set.range X := Set.range_comp' _ _ |
| 30 | rw [hr] |
| 31 | erw [← Ideal.map_span] |
| 32 | apply Ideal.map_mono |
| 33 | apply (HomogeneousIdeal.toIdeal_irrelevant_le (Dehomogenization.PolynomialProjective.polynomialGrading σ R)).mpr |
| 34 | intro d hd f hf |
| 35 | change f ∈ Ideal.span (Set.range (X : σ → MvPolynomial σ R)) |
| 36 | rw [← Set.image_univ, MvPolynomial.mem_ideal_span_X_image] |
| 37 | intro a ha |
| 38 | have had : a.degree = d := by |
| 39 | simpa only [Finsupp.degree_eq_weight_one, Pi.one_def] using |
| 40 | (show f.IsHomogeneous d from hf) (MvPolynomial.mem_support_iff.mp ha) |
| 41 | have hex : ∃ i, a i ≠ 0 := by |
| 42 | by_contra! hzero |
| 43 | have haz : a = 0 := Finsupp.ext hzero |
| 44 | rw [haz] at had |
| 45 | simp only [map_zero] at had |
| 46 | omega |
| 47 | obtain ⟨i, hi⟩ := hex |
| 48 | exact ⟨i, Set.mem_univ i, hi⟩ |
| 49 | |
| 50 | def projectiveQuotientAffineCover (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) : |
| 51 | (Homogeneous.ProjectiveQuotient.HomogeneousQuotient.projectiveQuotient I).AffineOpenCover := |
| 52 | Proj.affineOpenCoverOfIrrelevantLESpan (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) |
| 53 | (fun i : σ => Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) |
| 54 | (fun i => (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I).map_mem (isHomogeneous_X R i)) |
| 55 | (fun _ => Nat.zero_lt_one) (quotient_irrelevant_le_span_variables I) |
| 56 | |
| 57 | theorem quotientGrading_zero_algebraMap_surjective (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) : |
| 58 | Function.Surjective (algebraMap R (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I 0)) := by |
| 59 | intro q |
| 60 | obtain ⟨f, hf, hq⟩ := q.property |
| 61 | have hfeq : f = C (f.coeff 0) := totalDegree_eq_zero_iff_eq_C.mp |
| 62 | ((totalDegree_zero_iff_isHomogeneous σ).mpr hf) |
| 63 | refine ⟨f.coeff 0, Subtype.ext ?_⟩ |
| 64 | change Ideal.Quotient.mk I.toIdeal (C (f.coeff 0)) = q.val |
| 65 | rw [← hfeq] |
| 66 | exact hq |
| 67 | |
| 68 | theorem projectiveQuotient_proper [Finite σ] (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) : |
| 69 | IsProper (Projective.Flatness.GradedHilbert.projectiveStructureMap (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I)) := |
| 70 | Projective.Properness.GradedHilbert.projectiveStructureMap_proper (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) |
| 71 | (quotientGrading_zero_algebraMap_surjective I) |
| 72 | |
| 73 | theorem dehomogenize_C_algebraMap (i : σ) (r : R) : |
| 74 | Dehomogenization.PolynomialProjective.dehomogenize i (C r) = algebraMap R (HomogeneousLocalization.Away (Dehomogenization.PolynomialProjective.polynomialGrading σ R) (X i)) r := by |
| 75 | rw [Dehomogenization.PolynomialProjective.dehomogenize_C, Homogeneous.LocalizationFlat.GradedHilbert.homogeneousLocalization_algebraMap] |
| 76 | rfl |
| 77 | |
| 78 | theorem quotientAwayMap_algebraMap (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) (i : σ) (r : R) : |
| 79 | HomogeneousLocalization.Away.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (X i) |
| 80 | (algebraMap R (HomogeneousLocalization.Away (Dehomogenization.PolynomialProjective.polynomialGrading σ R) (X i)) r) = |
| 81 | algebraMap R (HomogeneousLocalization.Away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i))) r := by |
| 82 | rw [← dehomogenize_C_algebraMap] |
| 83 | exact ChartPresentation.PolynomialProjective.affineChartMap_C I i r |
| 84 | |
| 85 | theorem projectiveQuotientInclusion_over (I : HomogeneousIdeal (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) : |
| 86 | Homogeneous.ProjectiveQuotient.HomogeneousQuotient.projectiveQuotientInclusion I ≫ Projective.Flatness.GradedHilbert.projectiveStructureMap (Dehomogenization.PolynomialProjective.polynomialGrading σ R) = |
| 87 | Projective.Flatness.GradedHilbert.projectiveStructureMap (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) := by |
| 88 | apply (projectiveQuotientAffineCover I).openCover.hom_ext |
| 89 | intro i |
| 90 | change σ at i |
| 91 | have hi : X i ∈ Dehomogenization.PolynomialProjective.polynomialGrading σ R 1 := isHomogeneous_X R i |
| 92 | change Proj.awayι (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) |
| 93 | ((Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I).map_mem hi) Nat.zero_lt_one ≫ |
| 94 | (Proj.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (Homogeneous.Quotient.HomogeneousQuotient.irrelevant_quotient_le_map I) ≫ |
| 95 | Projective.Flatness.GradedHilbert.projectiveStructureMap (Dehomogenization.PolynomialProjective.polynomialGrading σ R)) = |
| 96 | Proj.awayι (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i)) |
| 97 | ((Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I).map_mem hi) Nat.zero_lt_one ≫ |
| 98 | Projective.Flatness.GradedHilbert.projectiveStructureMap (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) |
| 99 | rw [← Category.assoc, Proj.awayι_comp_map _ _ Nat.zero_lt_one (X i) hi, Category.assoc, |
| 100 | Projective.Flatness.GradedHilbert.projectiveStructureMap_away (Dehomogenization.PolynomialProjective.polynomialGrading σ R) hi] |
| 101 | refine Eq.trans ?_ |
| 102 | (Projective.Flatness.GradedHilbert.projectiveStructureMap_away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) ((Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I).map_mem hi)).symm |
| 103 | rw [← Spec.map_comp] |
| 104 | have hc : (HomogeneousLocalization.Away.map (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I) (X i)).comp |
| 105 | (algebraMap R (HomogeneousLocalization.Away (Dehomogenization.PolynomialProjective.polynomialGrading σ R) (X i))) = |
| 106 | algebraMap R (HomogeneousLocalization.Away (Homogeneous.Quotient.HomogeneousQuotient.quotientGrading I) (Homogeneous.Quotient.HomogeneousQuotient.gradedQuotientMap I (X i))) := by |
| 107 | apply RingHom.ext |
| 108 | exact quotientAwayMap_algebraMap I i |
| 109 | exact congrArg (fun f => Spec.map (CommRingCat.ofHom f)) hc |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.Projective.PolynomialProjective |