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.Flat.Stability |
| 3 | |
| 4 | /-! # Flat Descent Tower -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.FlatDescentTower.AnalyticLocal |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flatness over the base descends through a faithfully flat algebra. -/ |
| 11 | |
| 12 | open TensorProduct |
| 13 | |
| 14 | theorem flat_of_faithfullyFlat_extension (R S T : Type*) [CommRing R] [CommRing S] [CommRing T] |
| 15 | [Algebra R S] [Algebra S T] [Algebra R T] [IsScalarTower R S T] |
| 16 | [Module.Flat R T] [Module.FaithfullyFlat S T] : Module.Flat R S := by |
| 17 | rw [Module.Flat.iff_lTensor_preserves_injective_linearMap] |
| 18 | intro N P _ _ _ _ f hf |
| 19 | let g : S ⊗[R] N →ₗ[S] S ⊗[R] P := AlgebraTensorModule.map LinearMap.id f |
| 20 | have hg : Function.Injective g := by |
| 21 | apply (Module.FaithfullyFlat.lTensor_injective_iff_injective S T g).mp |
| 22 | let eN := AlgebraTensorModule.cancelBaseChange R S S T N |
| 23 | let eP := AlgebraTensorModule.cancelBaseChange R S S T P |
| 24 | have hc : eP.toLinearMap.restrictScalars R ∘ₗ (g.lTensor T).restrictScalars R = |
| 25 | f.lTensor T ∘ₗ eN.toLinearMap.restrictScalars R := by |
| 26 | ext x |
| 27 | change eP ((g.lTensor T) x) = (f.lTensor T) (eN x) |
| 28 | induction x using TensorProduct.inductionOn with |
| 29 | | add u v hu hv => simp only [map_add, hu, hv] |
| 30 | | tmul t y => |
| 31 | induction y using TensorProduct.inductionOn with |
| 32 | | add u v hu hv => simp only [tmul_add, map_add, hu, hv] |
| 33 | | tmul s n => simp [g, eN, eP] |
| 34 | intro u v huv |
| 35 | apply eN.injective |
| 36 | apply Module.Flat.lTensor_preserves_injective_linearMap f hf |
| 37 | exact (DFunLike.congr_fun hc u).symm.trans |
| 38 | ((congrArg eP huv).trans (DFunLike.congr_fun hc v)) |
| 39 | exact hg |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.Comparison.Betti.FlatDescentTower.AnalyticLocal |