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.ChartHomogeneousIdeal |
| 2 | |
| 3 | /-! # Chart Overlap -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.ChartOverlap.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Compatibility and denominator clearing on pairs of standard projective |
| 11 | charts. Compatible affine ideals are generated locally by the homogeneous |
| 12 | ideal obtained by intersecting their dehomogenization conditions. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.MvPolynomial _root_.CategoryTheory _root_.AlgebraicGeometry _root_.HomogeneousLocalization |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 20 | |
| 21 | def chartOverlapLeft (i j : Fin (n + 1)) : |
| 22 | HomogeneousLocalization.Away (Hilbert.Polynomial.GradedHilbert.grading R n) (X i) →+* |
| 23 | HomogeneousLocalization.Away (Hilbert.Polynomial.GradedHilbert.grading R n) (X i * X j) := |
| 24 | HomogeneousLocalization.awayMap (Hilbert.Polynomial.GradedHilbert.grading R n) (isHomogeneous_X R j) rfl |
| 25 | |
| 26 | def chartOverlapRight (i j : Fin (n + 1)) : |
| 27 | HomogeneousLocalization.Away (Hilbert.Polynomial.GradedHilbert.grading R n) (X j) →+* |
| 28 | HomogeneousLocalization.Away (Hilbert.Polynomial.GradedHilbert.grading R n) (X i * X j) := |
| 29 | HomogeneousLocalization.awayMap (Hilbert.Polynomial.GradedHilbert.grading R n) (isHomogeneous_X R i) (mul_comm _ _) |
| 30 | |
| 31 | theorem homogeneous_chart_overlap (i j : Fin (n + 1)) |
| 32 | {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n} {d : ℕ} (hf : f.IsHomogeneous d) : |
| 33 | chartOverlapRight i j (Dehomogenization.GradedHilbert.dehomogenize j f) = |
| 34 | chartOverlapRight i j (Dehomogenization.GradedHilbert.dehomogenize j (X i)) ^ d * |
| 35 | chartOverlapLeft i j (Dehomogenization.GradedHilbert.dehomogenize i f) := by |
| 36 | rw [Dehomogenization.GradedHilbert.dehomogenize_homogeneous j hf, Dehomogenization.GradedHilbert.dehomogenize_homogeneous i hf, Dehomogenization.GradedHilbert.dehomogenize_X] |
| 37 | apply HomogeneousLocalization.val_injective |
| 38 | simp only [HomogeneousLocalization.val_mul, HomogeneousLocalization.val_pow] |
| 39 | erw [IdealRecovery.GradedHilbert.coordinateFraction, IdealRecovery.GradedHilbert.coordinateFraction, IdealRecovery.GradedHilbert.coordinateFraction, |
| 40 | chartOverlapRight, chartOverlapLeft, HomogeneousLocalization.awayMap_mk, |
| 41 | HomogeneousLocalization.awayMap_mk, HomogeneousLocalization.awayMap_mk, |
| 42 | HomogeneousLocalization.Away.val_mk, HomogeneousLocalization.Away.val_mk, |
| 43 | HomogeneousLocalization.Away.val_mk] |
| 44 | rw [Localization.mk_pow, Localization.mk_mul, Localization.mk_eq_mk_iff, |
| 45 | Localization.r_iff_exists] |
| 46 | refine ⟨1, ?_⟩ |
| 47 | simp only [OneMemClass.coe_one, one_mul, Submonoid.coe_mul, SubmonoidClass.coe_pow, |
| 48 | pow_one, mul_pow] |
| 49 | ring |
| 50 | |
| 51 | def CompatibleChartIdeals (J : ChartHomogeneousIdeal.GradedHilbert.ChartIdeals R n) : Prop := |
| 52 | ∀ i j, (J i).map (chartOverlapLeft i j) = (J j).map (chartOverlapRight i j) |
| 53 | |
| 54 | theorem compatible_chart_clear_denominator (J : ChartHomogeneousIdeal.GradedHilbert.ChartIdeals R n) (hJ : CompatibleChartIdeals J) |
| 55 | (i j : Fin (n + 1)) {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n} {d : ℕ} (hf : f.IsHomogeneous d) |
| 56 | (hfi : Dehomogenization.GradedHilbert.dehomogenize i f ∈ J i) : |
| 57 | ∃ k : ℕ, Dehomogenization.GradedHilbert.dehomogenize j (X i) ^ k * Dehomogenization.GradedHilbert.dehomogenize j f ∈ J j := by |
| 58 | let L := HomogeneousLocalization.Away (Hilbert.Polynomial.GradedHilbert.grading R n) (X (R := R) i * X j) |
| 59 | let := (chartOverlapRight (R := R) i j).toAlgebra |
| 60 | have hloc := HomogeneousLocalization.Away.isLocalization_mul (𝒜 := Hilbert.Polynomial.GradedHilbert.grading R n) |
| 61 | (f := X j) (g := X i) (x := X i * X j) (d := 1) (e := 1) |
| 62 | (isHomogeneous_X R j) (isHomogeneous_X R i) (mul_comm (X i) (X j)) (by omega : 1 ≠ 0) |
| 63 | have helem : HomogeneousLocalization.Away.isLocalizationElem |
| 64 | (isHomogeneous_X R j) (isHomogeneous_X R i) = Dehomogenization.GradedHilbert.dehomogenize j (X i) := by |
| 65 | rw [Dehomogenization.GradedHilbert.dehomogenize_X] |
| 66 | simp only [HomogeneousLocalization.Away.isLocalizationElem, IdealRecovery.GradedHilbert.coordinateFraction, pow_one] |
| 67 | have : IsLocalization.Away (Dehomogenization.GradedHilbert.dehomogenize (R := R) j (X i)) L := by |
| 68 | rw [← helem] |
| 69 | exact hloc |
| 70 | have hm : chartOverlapRight i j (Dehomogenization.GradedHilbert.dehomogenize j f) ∈ (J j).map (chartOverlapRight i j) := by |
| 71 | rw [homogeneous_chart_overlap i j hf] |
| 72 | apply Ideal.mul_mem_left |
| 73 | rw [← hJ i j] |
| 74 | exact Ideal.mem_map_of_mem _ hfi |
| 75 | change algebraMap _ L (Dehomogenization.GradedHilbert.dehomogenize j f) ∈ (J j).map (algebraMap _ L) at hm |
| 76 | obtain ⟨s, hs, hsf⟩ := (IsLocalization.algebraMap_mem_map_algebraMap_iff |
| 77 | (Submonoid.powers (Dehomogenization.GradedHilbert.dehomogenize (R := R) j (X i))) L (J j) (Dehomogenization.GradedHilbert.dehomogenize j f)).mp hm |
| 78 | obtain ⟨k, hk⟩ := hs |
| 79 | rw [← hk] at hsf |
| 80 | exact ⟨k, hsf⟩ |
| 81 | |
| 82 | theorem compatible_chart_homogeneous_extension (J : ChartHomogeneousIdeal.GradedHilbert.ChartIdeals R n) |
| 83 | (hJ : CompatibleChartIdeals J) (i : Fin (n + 1)) |
| 84 | {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n} {d : ℕ} (hf : f.IsHomogeneous d) |
| 85 | (hfi : Dehomogenization.GradedHilbert.dehomogenize i f ∈ J i) : |
| 86 | ∃ m : ℕ, X i ^ m * f ∈ (ChartHomogeneousIdeal.GradedHilbert.chartHomogeneousIdeal J).toIdeal := by |
| 87 | classical |
| 88 | choose k hk using fun j => compatible_chart_clear_denominator J hJ i j hf hfi |
| 89 | let m := ∑ j, k j |
| 90 | refine ⟨m, (ChartHomogeneousIdeal.GradedHilbert.mem_chartHomogeneousIdeal J (d := m + d) ?_).mpr ?_⟩ |
| 91 | · simpa only [one_mul] using ((isHomogeneous_X R i).pow m).mul hf |
| 92 | · intro j |
| 93 | have hj : k j ≤ m := Finset.single_le_sum (fun _ _ => Nat.zero_le _) (Finset.mem_univ j) |
| 94 | rw [map_mul, map_pow] |
| 95 | have heq : Dehomogenization.GradedHilbert.dehomogenize j (X i) ^ m * Dehomogenization.GradedHilbert.dehomogenize j f = |
| 96 | Dehomogenization.GradedHilbert.dehomogenize j (X i) ^ (m - k j) * |
| 97 | (Dehomogenization.GradedHilbert.dehomogenize j (X i) ^ k j * Dehomogenization.GradedHilbert.dehomogenize j f) := by |
| 98 | rw [← mul_assoc, ← pow_add, Nat.sub_add_cancel hj] |
| 99 | rw [heq] |
| 100 | exact (J j).mul_mem_left _ (hk j) |
| 101 | |
| 102 | theorem chartHomogeneousIdeal_map (J : ChartHomogeneousIdeal.GradedHilbert.ChartIdeals R n) (hJ : CompatibleChartIdeals J) |
| 103 | (i : Fin (n + 1)) : |
| 104 | (ChartHomogeneousIdeal.GradedHilbert.chartHomogeneousIdeal J).toIdeal.map (Dehomogenization.GradedHilbert.dehomogenize i) = J i := by |
| 105 | apply le_antisymm |
| 106 | · apply Ideal.map_le_iff_le_comap.mpr |
| 107 | exact (Ideal.toIdeal_homogeneousCore_le (Hilbert.Polynomial.GradedHilbert.grading R n) _).trans (iInf_le _ i) |
| 108 | · intro z hz |
| 109 | obtain ⟨d, f, hf, rfl⟩ := |
| 110 | HomogeneousLocalization.Away.mk_surjective (Hilbert.Polynomial.GradedHilbert.grading R n) (isHomogeneous_X R i) z |
| 111 | have hf' : f ∈ Hilbert.Polynomial.GradedHilbert.grading R n d := by simpa only [smul_eq_mul, mul_one] using hf |
| 112 | change IdealRecovery.GradedHilbert.coordinateFraction i d ⟨f, hf'⟩ ∈ J i at hz |
| 113 | rw [← Dehomogenization.GradedHilbert.dehomogenize_homogeneous i hf'] at hz |
| 114 | obtain ⟨m, hm⟩ := compatible_chart_homogeneous_extension J hJ i hf' hz |
| 115 | have hmem := Ideal.mem_map_of_mem (Dehomogenization.GradedHilbert.dehomogenize i) hm |
| 116 | change IdealRecovery.GradedHilbert.coordinateFraction i d ⟨f, hf'⟩ ∈ (ChartHomogeneousIdeal.GradedHilbert.chartHomogeneousIdeal J).toIdeal.map (Dehomogenization.GradedHilbert.dehomogenize i) |
| 117 | simpa only [map_mul, map_pow, Dehomogenization.GradedHilbert.dehomogenize_self, one_pow, one_mul, |
| 118 | Dehomogenization.GradedHilbert.dehomogenize_homogeneous i hf'] using hmem |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Projective.ChartOverlap.GradedHilbert |