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.DiscreteValuationRing.Basic |
| 2 | |
| 3 | /-! # DVR Maximal Square -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.DVRMaximalSquare.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # LineBundleCycles: the first-order ideal criterion for a genuine DVR uniformizer -/ |
| 10 | |
| 11 | open IsLocalRing |
| 12 | |
| 13 | variable {R : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 14 | |
| 15 | theorem dvr_irreducible_not_mem_maximal_square {π : R} (hπ : Irreducible π) : |
| 16 | π ∉ maximalIdeal R ^ 2 := by |
| 17 | rw [hπ.maximalIdeal_eq, Ideal.span_singleton_pow, Ideal.mem_span_singleton] |
| 18 | rintro ⟨b, hb⟩ |
| 19 | have h : 1 = π * b := by |
| 20 | apply mul_left_cancel₀ hπ.ne_zero |
| 21 | simpa only [mul_one, pow_two, mul_assoc] using hb |
| 22 | exact hπ.not_isUnit (isUnit_of_dvd_one ⟨b, h⟩) |
| 23 | |
| 24 | theorem dvr_irreducible_iff_maximal_not_square (a : R) : |
| 25 | Irreducible a ↔ a ∈ maximalIdeal R ∧ a ∉ maximalIdeal R ^ 2 := by |
| 26 | constructor |
| 27 | · intro ha |
| 28 | exact ⟨(IsLocalRing.mem_maximalIdeal a).mpr ha.not_isUnit, |
| 29 | dvr_irreducible_not_mem_maximal_square ha⟩ |
| 30 | · rintro ⟨ha, ha2⟩ |
| 31 | obtain ⟨π, hπ⟩ := IsDiscreteValuationRing.exists_irreducible R |
| 32 | have hdiv : π ∣ a := by |
| 33 | rw [hπ.maximalIdeal_eq, Ideal.mem_span_singleton] at ha |
| 34 | exact ha |
| 35 | obtain ⟨b, rfl⟩ := hdiv |
| 36 | have hb : IsUnit b := by |
| 37 | by_contra hb |
| 38 | have hbm : b ∈ maximalIdeal R := (IsLocalRing.mem_maximalIdeal b).mpr hb |
| 39 | have hπm : π ∈ maximalIdeal R := (IsLocalRing.mem_maximalIdeal π).mpr hπ.not_isUnit |
| 40 | exact ha2 (by simpa only [pow_two] using Ideal.mul_mem_mul hπm hbm) |
| 41 | exact (irreducible_mul_isUnit hb).mpr hπ |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.Divisors.LineBundles.DVRMaximalSquare.BundleCycles |