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.AbelianModuli.HilbertConstruction.Tensor.ModelCartesian |
| 2 | import Mathlib.RingTheory.Smooth.NoetherianDescent |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | import Mathlib.AlgebraicGeometry.Noetherian |
| 5 | |
| 6 | /-! # Affine Models -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.AffineModels |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Smooth affine algebras admit actual smooth flat scheme models over noetherian coefficient rings. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 19 | |
| 20 | structure SmoothAffineModel where |
| 21 | coefficients : Subalgebra ℤ R |
| 22 | finiteType : Algebra.FiniteType ℤ coefficients |
| 23 | algebra : CommAlgCat.{u} coefficients |
| 24 | smooth : Algebra.Smooth coefficients algebra |
| 25 | recovery : A ≃ₐ[R] R ⊗[coefficients] algebra |
| 26 | |
| 27 | attribute [instance] SmoothAffineModel.finiteType SmoothAffineModel.smooth |
| 28 | |
| 29 | theorem smoothAffineModel_nonempty [Algebra.Smooth R A] : Nonempty (SmoothAffineModel R A) := by |
| 30 | obtain ⟨C, B, _, _, hC, hB, ⟨e⟩⟩ := Algebra.Smooth.exists_subalgebra_fg ℤ R A |
| 31 | exact ⟨{ |
| 32 | coefficients := C |
| 33 | finiteType := (Subalgebra.fg_iff_finiteType C).mp hC |
| 34 | algebra := CommAlgCat.of C B |
| 35 | smooth := hB |
| 36 | recovery := e }⟩ |
| 37 | |
| 38 | namespace SmoothAffineModel |
| 39 | |
| 40 | variable {R A} (M : SmoothAffineModel R A) |
| 41 | |
| 42 | instance coefficients_noetherian : IsNoetherianRing M.coefficients := |
| 43 | Algebra.FiniteType.isNoetherianRing ℤ M.coefficients |
| 44 | |
| 45 | instance algebra_noetherian : IsNoetherianRing M.algebra := |
| 46 | Algebra.FiniteType.isNoetherianRing M.coefficients M.algebra |
| 47 | |
| 48 | def structureMap : Spec (.of M.algebra) ⟶ Spec (.of M.coefficients) := |
| 49 | Spec.map (CommRingCat.ofHom (algebraMap M.coefficients M.algebra)) |
| 50 | |
| 51 | instance structureMap_smooth : Smooth M.structureMap := by |
| 52 | apply HasRingHomProperty.Spec_iff.mpr |
| 53 | exact RingHom.smooth_algebraMap.mpr M.smooth |
| 54 | |
| 55 | instance structureMap_flat : Flat M.structureMap := inferInstance |
| 56 | |
| 57 | def map : Spec (.of A) ⟶ Spec (.of M.algebra) := Tensor.ModelCartesian.tensorModelMap M.recovery |
| 58 | |
| 59 | theorem isPullback : |
| 60 | IsPullback M.map (Spec.map (CommRingCat.ofHom (algebraMap R A))) M.structureMap |
| 61 | (Spec.map (CommRingCat.ofHom M.coefficients.val.toRingHom)) := |
| 62 | Tensor.ModelCartesian.tensorModelMap_isPullback M.recovery |
| 63 | |
| 64 | end SmoothAffineModel |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.AffineModels |