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.Algebra.Category.ModuleCat.Descent |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 5 | import Mathlib.RingTheory.Flat.Localization |
| 6 | import Mathlib.RingTheory.Localization.FractionRing |
| 7 | |
| 8 | /-! # Rational Scalar Extension -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.RationalScalarExtension.Cycles |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Rational scalar extension and homology |
| 16 | |
| 17 | Rationalization is the actual extension-of-scalars functor from integral modules |
| 18 | to rational modules. Its exactness follows from the localization description of |
| 19 | the rational numbers, and gives the native homology comparison for chain |
| 20 | complexes. The unit-module comparison is the tensor-product right unitor, with |
| 21 | its value on elementary tensors recorded explicitly. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 25 | open scoped TensorProduct ChangeOfRings |
| 26 | |
| 27 | /-- Rationalization of integral modules by the canonical inclusion into `ℚ`. -/ |
| 28 | def rationalizeModules : ModuleCat.{0} ℤ ⥤ ModuleCat.{0} ℚ := |
| 29 | ModuleCat.extendScalars (Int.castRingHom ℚ) |
| 30 | |
| 31 | /-- Flatness comes from the actual fraction-ring localization of `ℤ`. -/ |
| 32 | theorem rationalModule_flat : Module.Flat ℤ ℚ := |
| 33 | IsLocalization.flat ℚ (nonZeroDivisors ℤ) |
| 34 | |
| 35 | /-- The canonical integer-to-rational ring homomorphism is flat. -/ |
| 36 | theorem rationalCast_flat : (Int.castRingHom ℚ).Flat := by |
| 37 | change (algebraMap ℤ ℚ).Flat |
| 38 | exact RingHom.flat_algebraMap_iff.mpr rationalModule_flat |
| 39 | |
| 40 | instance rationalizeModules_isLeftAdjoint : rationalizeModules.IsLeftAdjoint := by |
| 41 | unfold rationalizeModules |
| 42 | infer_instance |
| 43 | |
| 44 | instance rationalizeModules_preservesColimits : PreservesColimits rationalizeModules := by |
| 45 | infer_instance |
| 46 | |
| 47 | instance rationalizeModules_preservesFiniteLimits : |
| 48 | PreservesFiniteLimits rationalizeModules := |
| 49 | ModuleCat.preservesFiniteLimits_extendScalars_of_flat rationalCast_flat |
| 50 | |
| 51 | instance rationalizeModules_preservesZeroMorphisms : |
| 52 | rationalizeModules.PreservesZeroMorphisms := by |
| 53 | infer_instance |
| 54 | |
| 55 | instance rationalizeModules_additive : rationalizeModules.Additive := |
| 56 | Functor.additive_of_preserves_binary_products rationalizeModules |
| 57 | |
| 58 | instance rationalizeModules_preservesHomology : rationalizeModules.PreservesHomology := by |
| 59 | infer_instance |
| 60 | |
| 61 | /-- The degreewise rationalization functor also preserves small colimits. -/ |
| 62 | instance rationalizeModules_chain_preservesColimits : |
| 63 | PreservesColimits (rationalizeModules.mapHomologicalComplex (ComplexShape.down ℕ)) where |
| 64 | preservesColimitsOfShape := by |
| 65 | intros |
| 66 | infer_instance |
| 67 | |
| 68 | /-- Exact rationalization commutes with the native homology of chain complexes. -/ |
| 69 | def rationalizeHomologyIso (C : ChainComplex (ModuleCat.{0} ℤ) ℕ) (n : ℕ) : |
| 70 | ((rationalizeModules.mapHomologicalComplex (ComplexShape.down ℕ)).obj C).homology n ≅ |
| 71 | rationalizeModules.obj (C.homology n) := |
| 72 | (C.sc n).mapHomologyIso rationalizeModules |
| 73 | |
| 74 | /-- The homology comparison respects all actual integral chain maps. -/ |
| 75 | @[reassoc] |
| 76 | theorem rationalizeHomologyIso_hom_naturality |
| 77 | {C D : ChainComplex (ModuleCat.{0} ℤ) ℕ} (f : C ⟶ D) (n : ℕ) : |
| 78 | HomologicalComplex.homologyMap |
| 79 | ((rationalizeModules.mapHomologicalComplex (ComplexShape.down ℕ)).map f) n ≫ |
| 80 | (rationalizeHomologyIso D n).hom = |
| 81 | (rationalizeHomologyIso C n).hom ≫ |
| 82 | rationalizeModules.map (HomologicalComplex.homologyMap f n) := |
| 83 | ShortComplex.mapHomologyIso_hom_naturality |
| 84 | ((HomologicalComplex.shortComplexFunctor _ _ n).map f) rationalizeModules |
| 85 | |
| 86 | /-- Rationalizing the integral unit module gives the rational unit module. -/ |
| 87 | def rationalizeUnitIso : |
| 88 | rationalizeModules.obj (ModuleCat.of ℤ ℤ) ≅ ModuleCat.of ℚ ℚ := |
| 89 | (TensorProduct.AlgebraTensorModule.rid ℤ ℚ ℚ).toModuleIso |
| 90 | |
| 91 | /-- Elementary tensors are sent to the product of their rational coefficients. -/ |
| 92 | @[simp] |
| 93 | theorem rationalizeUnitIso_hom_tmul (q : ℚ) (z : ℤ) : |
| 94 | rationalizeUnitIso.hom (q ⊗ₜ[ℤ, Int.castRingHom ℚ] z) = q * (z : ℚ) := by |
| 95 | change z • q = q * (z : ℚ) |
| 96 | simp [zsmul_eq_mul, mul_comm] |
| 97 | |
| 98 | /-- In particular, the scalar extension of an integer has its usual rational value. -/ |
| 99 | @[simp] |
| 100 | theorem rationalizeUnitIso_hom_one_tmul (z : ℤ) : |
| 101 | rationalizeUnitIso.hom ((1 : ℚ) ⊗ₜ[ℤ, Int.castRingHom ℚ] z) = (z : ℚ) := by |
| 102 | simpa only [one_mul] using rationalizeUnitIso_hom_tmul (1 : ℚ) z |
| 103 | |
| 104 | /-- The inverse inserts an elementary tensor with integral unit. -/ |
| 105 | @[simp] |
| 106 | theorem rationalizeUnitIso_inv_apply (q : ℚ) : |
| 107 | rationalizeUnitIso.inv q = q ⊗ₜ[ℤ, Int.castRingHom ℚ] (1 : ℤ) := |
| 108 | rfl |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.CycleClass.Geometric.RationalScalarExtension.Cycles |