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.LocalFlatness |
| 2 | import Mathlib.RingTheory.Flat.FaithfullyFlat.Algebra |
| 3 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 4 | |
| 5 | /-! # Geometric Flatness -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GeometricFlatness.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Descent from geometric closed fibers in the Openness flatness argument. -/ |
| 12 | |
| 13 | open IsLocalRing TensorProduct |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | variable (R A : Type*) [CommRing R] [CommRing A] [Algebra R A] |
| 17 | [IsLocalRing R] [IsLocalRing A] [IsLocalHom (algebraMap R A)] |
| 18 | |
| 19 | /-- The local finite-module flatness criterion can be checked after a |
| 20 | faithfully flat extension of the closed fiber ring. -/ |
| 21 | theorem flat_of_faithfullyFlat_closedFiber |
| 22 | (N D : Type*) [AddCommGroup N] [Module R N] [Module A N] |
| 23 | [IsScalarTower R A N] [Module.FinitePresentation A N] [Module.Flat R N] |
| 24 | [CommRing D] [Algebra A D] [Algebra (A ⊗[R] ResidueField R) D] |
| 25 | [IsScalarTower A (A ⊗[R] ResidueField R) D] |
| 26 | [Module.FaithfullyFlat (A ⊗[R] ResidueField R) D] |
| 27 | [Module.Flat D (D ⊗[A] N)] : Module.Flat A N := by |
| 28 | let C := A ⊗[R] ResidueField R |
| 29 | have : Module.Flat D (D ⊗[C] (C ⊗[A] N)) := |
| 30 | Module.Flat.of_linearEquiv (AlgebraTensorModule.cancelBaseChange A C D D N) |
| 31 | have : Module.Flat C (C ⊗[A] N) := |
| 32 | Module.Flat.of_flat_tensorProduct C (C ⊗[A] N) D |
| 33 | exact LocalFlatness.Construction.flat_of_flat_residueField_fiber R A N |
| 34 | |
| 35 | attribute [local instance] Algebra.TensorProduct.rightAlgebra in |
| 36 | /-- A field extension of the residue field suffices to test the closed |
| 37 | fiber in the finite-module local flatness criterion. -/ |
| 38 | theorem flat_of_flat_geometric_closedFiber |
| 39 | (N K : Type*) [AddCommGroup N] [Module R N] [Module A N] |
| 40 | [IsScalarTower R A N] [Module.FinitePresentation A N] [Module.Flat R N] |
| 41 | [Field K] [Algebra (ResidueField R) K] |
| 42 | [Module.Flat ((A ⊗[R] ResidueField R) ⊗[ResidueField R] K) |
| 43 | (((A ⊗[R] ResidueField R) ⊗[ResidueField R] K) ⊗[A] N)] : |
| 44 | Module.Flat A N := by |
| 45 | let C := A ⊗[R] ResidueField R |
| 46 | let D := C ⊗[ResidueField R] K |
| 47 | have : Module.FaithfullyFlat (ResidueField R) K := inferInstance |
| 48 | have : Module.FaithfullyFlat C D := inferInstance |
| 49 | exact flat_of_faithfullyFlat_closedFiber R A N D |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GeometricFlatness.Construction |