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.Quotients.FiniteDescent.PowerSeriesIs |
| 2 | import Mathlib.RingTheory.AdicCompletion.AsTensorProduct |
| 3 | import Mathlib.RingTheory.RingHom.Flat |
| 4 | |
| 5 | /-! # Power Series X -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.PowerSeriesX.Construction.PowerSeriesFlatShift |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Flat formal coordinate rings centered at an arbitrary rational point. -/ |
| 12 | |
| 13 | variable {σ K : Type*} [CommRing K] |
| 14 | |
| 15 | def translateMap (v : σ → K) : MvPolynomial σ K →ₐ[K] MvPolynomial σ K := |
| 16 | MvPolynomial.aeval (fun i => MvPolynomial.X i + MvPolynomial.C (v i)) |
| 17 | |
| 18 | theorem translateMap_comp_neg (v : σ → K) : |
| 19 | (translateMap (-v)).comp (translateMap v) = AlgHom.id K (MvPolynomial σ K) := by |
| 20 | ext i |
| 21 | simp [translateMap] |
| 22 | |
| 23 | def translate (v : σ → K) : MvPolynomial σ K ≃ₐ[K] MvPolynomial σ K where |
| 24 | __ := translateMap v |
| 25 | invFun := translateMap (-v) |
| 26 | left_inv p := AlgHom.congr_fun (translateMap_comp_neg v) p |
| 27 | right_inv p := by simpa using AlgHom.congr_fun (translateMap_comp_neg (-v)) p |
| 28 | |
| 29 | def map (v : σ → K) : MvPolynomial σ K →ₐ[K] MvPowerSeries σ K := |
| 30 | (MvPolynomial.coeToMvPowerSeries.algHom K).comp (translate v).toAlgHom |
| 31 | |
| 32 | theorem map_X (v : σ → K) (i : σ) : |
| 33 | map v (MvPolynomial.X i) = MvPowerSeries.X i + MvPowerSeries.C (v i) := by |
| 34 | simp [map, translate, translateMap] |
| 35 | |
| 36 | theorem constantCoeff_map (v : σ → K) (p : MvPolynomial σ K) : |
| 37 | MvPowerSeries.constantCoeff (map v p) = MvPolynomial.eval v p := by |
| 38 | have he : MvPowerSeries.constantCoeff.comp (map v).toRingHom = MvPolynomial.eval v := by |
| 39 | apply MvPolynomial.ringHom_ext |
| 40 | · intro c |
| 41 | simp [map, translate, translateMap, MvPowerSeries.algebraMap_apply] |
| 42 | · intro i |
| 43 | simp [map_X] |
| 44 | exact RingHom.congr_fun he p |
| 45 | |
| 46 | variable [Finite σ] [IsNoetherianRing K] |
| 47 | |
| 48 | theorem canonical_flat : Module.Flat (MvPolynomial σ K) (MvPowerSeries σ K) := |
| 49 | Module.Flat.of_linearEquiv (MvPowerSeries.toAdicCompletionAlgEquiv σ K).toLinearEquiv |
| 50 | |
| 51 | theorem flat (v : σ → K) : (map v).toRingHom.Flat := by |
| 52 | have hf : (MvPolynomial.coeToMvPowerSeries.algHom (σ := σ) (R := K) K).toRingHom.Flat := by |
| 53 | change Module.Flat (MvPolynomial σ K) (MvPowerSeries σ K) |
| 54 | exact canonical_flat |
| 55 | exact RingHom.Flat.comp (RingHom.Flat.of_bijective (translate v).bijective) hf |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.PowerSeriesX.Construction.PowerSeriesFlatShift |