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.ArithmeticGeometry.OrdinaryLocus.Openness.GeometricFlatness |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FinitePresentation |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 5 | import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation |
| 6 | |
| 7 | /-! # Affine Fiber Flatness -/ |
| 8 | |
| 9 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineFiberFlatness.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Affine scheme forms of the Openness local flatness criterion. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry IsLocalRing TensorProduct |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | /-- A finite, locally finitely presented affine morphism gives a finitely |
| 21 | presented module on global sections. -/ |
| 22 | theorem finitePresentation_module_appTop |
| 23 | {X Y : Scheme} (f : X ⟶ Y) [IsAffine Y] |
| 24 | [IsFinite f] [LocallyOfFinitePresentation f] : |
| 25 | letI : Algebra Γ(Y, ⊤) Γ(X, ⊤) := f.appTop.hom.toAlgebra |
| 26 | Module.FinitePresentation Γ(Y, ⊤) Γ(X, ⊤) := by |
| 27 | let : Algebra Γ(Y, ⊤) Γ(X, ⊤) := f.appTop.hom.toAlgebra |
| 28 | have : IsAffine X := isAffine_of_isAffineHom f |
| 29 | have : Module.Finite Γ(Y, ⊤) Γ(X, ⊤) := f.finite_appTop |
| 30 | have : Algebra.FinitePresentation Γ(Y, ⊤) Γ(X, ⊤) := f.finitePresentation_appTop |
| 31 | exact Module.FinitePresentation.of_finite_of_finitePresentation _ _ |
| 32 | |
| 33 | /-- Over a local base and local target, a finite morphism of finite |
| 34 | presentation is flat if its source is base-flat and the closed fiber |
| 35 | becomes flat after a faithfully flat extension. -/ |
| 36 | theorem flat_SpecMap_of_flat_closedFiber_baseChange |
| 37 | (R A B D : Type u) [CommRing R] [CommRing A] [CommRing B] [CommRing D] |
| 38 | [Algebra R A] [Algebra A B] [Algebra R B] [IsScalarTower R A B] |
| 39 | [IsLocalRing R] [IsLocalRing A] [IsLocalHom (algebraMap R A)] |
| 40 | [Algebra A D] [Algebra (A ⊗[R] ResidueField R) D] |
| 41 | [IsScalarTower A (A ⊗[R] ResidueField R) D] |
| 42 | [Module.FaithfullyFlat (A ⊗[R] ResidueField R) D] |
| 43 | [IsFinite (Spec.map (CommRingCat.ofHom (algebraMap A B)))] |
| 44 | [LocallyOfFinitePresentation (Spec.map (CommRingCat.ofHom (algebraMap A B)))] |
| 45 | [Flat (Spec.map (CommRingCat.ofHom (algebraMap R B)))] |
| 46 | [Flat (pullback.fst (Spec.map (CommRingCat.ofHom (algebraMap A D))) |
| 47 | (Spec.map (CommRingCat.ofHom (algebraMap A B))))] : |
| 48 | Flat (Spec.map (CommRingCat.ofHom (algebraMap A B))) := by |
| 49 | have hfin : (algebraMap A B).Finite := |
| 50 | (IsFinite.SpecMap_iff (CommRingCat.ofHom (algebraMap A B))).mp inferInstance |
| 51 | have hfp : (algebraMap A B).FinitePresentation := |
| 52 | (LocallyOfFinitePresentation.SpecMap_iff |
| 53 | (CommRingCat.ofHom (algebraMap A B))).mp inferInstance |
| 54 | have : Module.Finite A B := RingHom.finite_algebraMap.mp hfin |
| 55 | have : Algebra.FinitePresentation A B := by |
| 56 | rwa [RingHom.finitePresentation_algebraMap] at hfp |
| 57 | have : Module.FinitePresentation A B := |
| 58 | Module.FinitePresentation.of_finite_of_finitePresentation A B |
| 59 | have : Module.Flat R B := RingHom.flat_algebraMap_iff.mp |
| 60 | ((Flat.SpecMap_iff (f := CommRingCat.ofHom (algebraMap R B))).mp inferInstance) |
| 61 | have : Flat (Spec.map (CommRingCat.ofHom (algebraMap D (D ⊗[A] B)))) := by |
| 62 | rw [← pullbackSpecIso_inv_fst A D B] |
| 63 | infer_instance |
| 64 | have : Module.Flat D (D ⊗[A] B) := RingHom.flat_algebraMap_iff.mp |
| 65 | ((Flat.SpecMap_iff (f := CommRingCat.ofHom (algebraMap D (D ⊗[A] B)))).mp |
| 66 | inferInstance) |
| 67 | have : Module.Flat A B := GeometricFlatness.Construction.flat_of_faithfullyFlat_closedFiber R A B D |
| 68 | exact Flat.SpecMap_iff.mpr (RingHom.flat_algebraMap_iff.mpr inferInstance) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineFiberFlatness.Construction |