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.IntersectionTheory.ProjectionFormula.Regular.LocalOne |
| 2 | import Mathlib.RingTheory.KrullDimension.Regular |
| 3 | |
| 4 | /-! # Local Two Parameters -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.LocalTwoParameters |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! In a two-dimensional regular local domain, a minimal pair of |
| 11 | generators of the maximal ideal is an actual regular sequence. -/ |
| 12 | |
| 13 | open IsLocalRing |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] [IsRegularLocalRing R] [IsDomain R] |
| 18 | |
| 19 | theorem exists_pair (hd : ringKrullDim R = 2) : |
| 20 | ∃ a b : R, a ≠ 0 ∧ maximalIdeal R = Ideal.span {a, b} ∧ |
| 21 | IsSMulRegular (R ⧸ Ideal.span {a}) b := by |
| 22 | classical |
| 23 | have hspan : (maximalIdeal R).spanFinrank = 2 := by |
| 24 | have h := ((isRegularLocalRing_iff R).mp inferInstance).trans hd |
| 25 | exact_mod_cast h |
| 26 | have hn (c : R) : maximalIdeal R ≠ Ideal.span {c} := by |
| 27 | intro hc |
| 28 | have hle := Submodule.spanFinrank_span_le_ncard_of_finite |
| 29 | (R := R) (Set.finite_singleton c) |
| 30 | change (Ideal.span {c}).spanFinrank ≤ _ at hle |
| 31 | rw [← hc, hspan, Set.ncard_singleton] at hle |
| 32 | omega |
| 33 | obtain ⟨s, hs, hsm⟩ := Submodule.FG.exists_span_finset_card_eq_spanFinrank |
| 34 | (maximalIdeal R).fg_of_isNoetherianRing |
| 35 | rw [hspan] at hs |
| 36 | obtain ⟨a, b, _, rfl⟩ := Finset.card_eq_two.mp hs |
| 37 | have hm : maximalIdeal R = Ideal.span {a, b} := by simpa only [Finset.coe_pair] using hsm.symm |
| 38 | have ha : a ≠ 0 := by |
| 39 | intro ha |
| 40 | apply hn b |
| 41 | simpa [ha] using hm |
| 42 | have ham : a ∈ maximalIdeal R := hm ▸ Ideal.subset_span (by simp) |
| 43 | have hIa : Ideal.span {a} ≤ maximalIdeal R := |
| 44 | Ideal.span_le.mpr (Set.singleton_subset_iff.mpr ham) |
| 45 | let S := R ⧸ Ideal.span {a} |
| 46 | let π : R →+* S := Ideal.Quotient.mk _ |
| 47 | let : Nontrivial S := Ideal.Quotient.nontrivial_iff.mpr |
| 48 | (ne_top_of_le_ne_top (maximalIdeal.isMaximal R).ne_top hIa) |
| 49 | let : IsLocalRing S := IsLocalRing.of_surjective' π Ideal.Quotient.mk_surjective |
| 50 | have hms : maximalIdeal S = Ideal.span {π b} := by |
| 51 | rw [← map_maximalIdeal_of_surjective π Ideal.Quotient.mk_surjective, hm, Ideal.map_span] |
| 52 | have hpa : π a = 0 := Ideal.Quotient.eq_zero_iff_mem.mpr (Ideal.subset_span (by simp)) |
| 53 | simp [Set.image_insert_eq, Set.image_singleton, hpa] |
| 54 | have hdim : ringKrullDim S = 1 := by |
| 55 | have h := ringKrullDim_quotient_span_singleton_succ_eq_ringKrullDim |
| 56 | (show IsSMulRegular R a from fun _ _ h => mul_left_cancel₀ ha h) ham |
| 57 | rw [hd] at h |
| 58 | apply (ENat.WithBot.add_natCast_cancel (c := 1)).mp |
| 59 | change ringKrullDim S + 1 = 1 + 1 |
| 60 | simpa only [one_add_one_eq_two] using h |
| 61 | let : IsDomain S := LocalOne.domain_of_principal S ⟨π b, hms⟩ |
| 62 | (hdim ▸ by norm_num) |
| 63 | have hb : π b ≠ 0 := by |
| 64 | intro hb |
| 65 | apply hn a |
| 66 | apply le_antisymm |
| 67 | · rw [hm] |
| 68 | apply Ideal.span_le.mpr |
| 69 | intro c hc |
| 70 | rcases hc with rfl | hc |
| 71 | · exact Ideal.subset_span (by simp) |
| 72 | · have hc' : c = b := Set.mem_singleton_iff.mp hc |
| 73 | rw [hc'] |
| 74 | exact Ideal.Quotient.eq_zero_iff_mem.mp hb |
| 75 | · exact hIa |
| 76 | refine ⟨a, b, ha, hm, ?_⟩ |
| 77 | intro x y hxy |
| 78 | exact mul_left_cancel₀ hb hxy |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.LocalTwoParameters |