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.MvPowerSeries.Equiv |
| 2 | import Mathlib.RingTheory.MvPowerSeries.Inverse |
| 3 | import Mathlib.RingTheory.AdicCompletion.LocalRing |
| 4 | import Mathlib.RingTheory.AdicCompletion.Topology |
| 5 | |
| 6 | /-! # Power Series Is -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.PowerSeriesIs.Construction.PowerSeriesLocal |
| 9 | |
| 10 | /-! Complete local structure on a power-series ring in finitely many variables. -/ |
| 11 | |
| 12 | open MvPowerSeries |
| 13 | |
| 14 | variable {σ K : Type*} [Finite σ] [Field K] |
| 15 | |
| 16 | omit [Finite σ] in |
| 17 | theorem mem_maximalIdeal_iff (f : MvPowerSeries σ K) : |
| 18 | f ∈ IsLocalRing.maximalIdeal (MvPowerSeries σ K) ↔ f.constantCoeff = 0 := by |
| 19 | change ¬ IsUnit f ↔ _ |
| 20 | rw [MvPowerSeries.isUnit_iff_constantCoeff, isUnit_iff_ne_zero, not_not] |
| 21 | |
| 22 | theorem isAdicComplete : |
| 23 | IsAdicComplete (IsLocalRing.maximalIdeal (MvPowerSeries σ K)) (MvPowerSeries σ K) := by |
| 24 | let I := MvPolynomial.idealOfVars σ K |
| 25 | have hfg : I.FG := MvPolynomial.idealOfVars_fg σ K |
| 26 | have hmax : I.IsMaximal := by |
| 27 | have he : I = RingHom.ker (MvPolynomial.constantCoeff : MvPolynomial σ K →+* K) := by |
| 28 | ext f |
| 29 | change f ∈ MvPolynomial.idealOfVars σ K ↔ MvPolynomial.constantCoeff f = 0 |
| 30 | rw [← pow_one (MvPolynomial.idealOfVars σ K), MvPolynomial.mem_pow_idealOfVars_iff'] |
| 31 | simp [Finsupp.degree_eq_zero_iff, MvPolynomial.constantCoeff_eq] |
| 32 | rw [he] |
| 33 | exact RingHom.ker_isMaximal_of_surjective _ |
| 34 | (fun a => ⟨MvPolynomial.C a, by simp⟩) |
| 35 | have : I.IsMaximal := hmax |
| 36 | let A := AdicCompletion I (MvPolynomial σ K) |
| 37 | let J : Ideal A := I.map (algebraMap (MvPolynomial σ K) A) |
| 38 | have hJ : J.IsMaximal := AdicCompletion.isMaximal_map_of_le I I le_rfl hfg |
| 39 | have hcomp : IsAdicComplete J A := AdicCompletion.isAdicComplete_self I hfg |
| 40 | let e : A ≃+* MvPowerSeries σ K := (toAdicCompletionAlgEquiv σ K).symm.toRingEquiv |
| 41 | have hJe : (J.map e).IsMaximal := |
| 42 | Ideal.IsMaximal.map_of_surjective_of_ker_le e.surjective (by simp) |
| 43 | have heq : J.map e = IsLocalRing.maximalIdeal (MvPowerSeries σ K) := |
| 44 | IsLocalRing.eq_maximalIdeal hJe |
| 45 | rw [← heq] |
| 46 | exact (IsAdicComplete.congr_ringEquiv J e).mpr hcomp |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.PowerSeriesIs.Construction.PowerSeriesLocal |