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 Mathlib.RingTheory.Flat.FaithfullyFlat.Algebra |
| 2 | import Mathlib.RingTheory.Ideal.IsPrincipal |
| 3 | import Mathlib.RingTheory.LocalRing.Basic |
| 4 | |
| 5 | /-! # Principal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.Principal.Construction.PrincipalDescent |
| 8 | |
| 9 | /-! Principal ideals descend from a faithfully flat local domain. -/ |
| 10 | |
| 11 | variable {R S : Type*} [CommRing R] [CommRing S] [IsDomain S] [IsLocalRing S] |
| 12 | variable [Algebra R S] [Module.FaithfullyFlat R S] |
| 13 | |
| 14 | omit [Module.FaithfullyFlat R S] in |
| 15 | theorem exists_generator_of_map (I : Ideal R) {c : S} (hc : c ≠ 0) |
| 16 | (hI : I.map (algebraMap R S) = Ideal.span {c}) : |
| 17 | ∃ a ∈ I, Ideal.span {algebraMap R S a} = Ideal.span {c} := by |
| 18 | classical |
| 19 | by_contra! h |
| 20 | have hle : I.map (algebraMap R S) ≤ |
| 21 | IsLocalRing.maximalIdeal S * Ideal.span {c} := by |
| 22 | rw [Ideal.map_le_iff_le_comap] |
| 23 | intro a ha |
| 24 | have hm : algebraMap R S a ∈ Ideal.span {c} := hI ▸ Ideal.mem_map_of_mem _ ha |
| 25 | obtain ⟨b, hb⟩ := Ideal.mem_span_singleton'.mp hm |
| 26 | have hbu : ¬ IsUnit b := by |
| 27 | intro hu |
| 28 | apply h a ha |
| 29 | rw [← hb] |
| 30 | exact Ideal.span_singleton_mul_left_unit hu c |
| 31 | exact Ideal.mem_mul_span_singleton.mpr ⟨b, hbu, hb⟩ |
| 32 | have hm : c ∈ IsLocalRing.maximalIdeal S * Ideal.span {c} := |
| 33 | hle (hI.symm ▸ Ideal.subset_span (Set.mem_singleton c)) |
| 34 | obtain ⟨b, hb, he⟩ := Ideal.mem_mul_span_singleton.mp hm |
| 35 | have hb1 : b = 1 := (mul_right_cancel₀ hc) (he.trans (one_mul c).symm) |
| 36 | exact (IsLocalRing.maximalIdeal S).one_notMem (hb1 ▸ hb) |
| 37 | |
| 38 | theorem isPrincipal (I : Ideal R) (hI : (I.map (algebraMap R S)).IsPrincipal) : |
| 39 | I.IsPrincipal := by |
| 40 | classical |
| 41 | by_cases hz : I.map (algebraMap R S) = ⊥ |
| 42 | · have he : I = ⊥ := by |
| 43 | apply Ideal.map_injective_of_faithfullyFlat (B := S) |
| 44 | simpa using hz |
| 45 | rw [he] |
| 46 | infer_instance |
| 47 | obtain ⟨c, hc⟩ := hI |
| 48 | change I.map (algebraMap R S) = Ideal.span {c} at hc |
| 49 | have hc0 : c ≠ 0 := by |
| 50 | intro h |
| 51 | apply hz |
| 52 | rw [hc, h] |
| 53 | simp |
| 54 | obtain ⟨a, _, ha⟩ := exists_generator_of_map I hc0 hc |
| 55 | refine ⟨a, ?_⟩ |
| 56 | apply Ideal.map_injective_of_faithfullyFlat (B := S) |
| 57 | simpa [Ideal.map_span, hc] using ha.symm |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.Principal.Construction.PrincipalDescent |