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.CycleClass.Geometric.RationalSingularChains |
| 2 | import OAI.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Descent |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 5 | |
| 6 | /-! # Homology Scalar Extension -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.HomologyScalarExtension.ChainScalarExtension |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Scalar extension of the actual singular chain complex along a coefficient ring homomorphism. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | open scoped Simplicial TensorProduct ChangeOfRings |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Geometric.RationalSingularChains.Cycles OAI.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 20 | |
| 21 | variable {R S : Type} [CommRing R] [CommRing S] (σ : R →+* S) |
| 22 | |
| 23 | abbrev extension : ModuleCat.{0} R ⥤ ModuleCat.{0} S := ModuleCat.extendScalars σ |
| 24 | |
| 25 | instance extension_additive : (extension σ).Additive where |
| 26 | map_add {X Y f g} := by |
| 27 | let : Module R S := Module.compHom S σ |
| 28 | apply ModuleCat.ExtendScalars.hom_ext |
| 29 | intro x |
| 30 | change (1 : S) ⊗ₜ[R, σ] ((f + g) x) = |
| 31 | (1 : S) ⊗ₜ[R, σ] f x + (1 : S) ⊗ₜ[R, σ] g x |
| 32 | exact TensorProduct.tmul_add _ _ _ |
| 33 | |
| 34 | def unitIso : (extension σ).obj (ModuleCat.of R R) ≅ ModuleCat.of S S := by |
| 35 | letI : Algebra R S := σ.toAlgebra |
| 36 | letI : Module R S := Module.compHom S σ |
| 37 | letI : SMul R S := (Module.compHom S σ).toSMul |
| 38 | letI : IsScalarTower R S S := IsScalarTower.of_compHom R S S |
| 39 | letI : SMulCommClass R S S := SMulCommClass.of_commMonoid R S S |
| 40 | exact (TensorProduct.AlgebraTensorModule.rid R S S).toModuleIso |
| 41 | |
| 42 | theorem unitIso_tmul (s : S) (r : R) : |
| 43 | (unitIso σ).hom (s ⊗ₜ[R, σ] r) = s * σ r := by |
| 44 | change σ r * s = s * σ r |
| 45 | exact mul_comm _ _ |
| 46 | |
| 47 | def chainsIso (X : TopCat.{0}) : |
| 48 | ((extension σ).mapHomologicalComplex (ComplexShape.down ℕ)).obj |
| 49 | (AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := R) X) ≅ AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := S) X := |
| 50 | AlgebraicGeometry.CycleClass.Geometric.RationalSingularChains.Cycles.coefficientFunctorChainsIso (extension σ) (ModuleCat.of R R) (ModuleCat.of S S) |
| 51 | (unitIso σ) (TopCat.toSSet.obj X) |
| 52 | |
| 53 | theorem chainsIso_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) : |
| 54 | ((extension σ).mapHomologicalComplex (ComplexShape.down ℕ)).map |
| 55 | (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularScalarChainMap (R := R) f) ≫ (chainsIso σ Y).hom = |
| 56 | (chainsIso σ X).hom ≫ AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularScalarChainMap (R := S) f := |
| 57 | AlgebraicGeometry.CycleClass.Geometric.RationalSingularChains.Cycles.coefficientFunctorChainsIso_hom_naturality (extension σ) |
| 58 | (ModuleCat.of R R) (ModuleCat.of S S) (unitIso σ) (TopCat.toSSet.map f) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | /-! Exact coefficient extension identifies the actual singular homology objects. -/ |
| 63 | |
| 64 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 65 | |
| 66 | open OAI.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 67 | |
| 68 | variable {R S : Type} [Field R] [Field S] (σ : R →+* S) |
| 69 | |
| 70 | instance extension_preservesFiniteLimits : PreservesFiniteLimits (extension σ) := |
| 71 | ModuleCat.preservesFiniteLimits_extendScalars_of_flat (RingHom.Flat.of_isField (Field.toIsField R) σ) |
| 72 | |
| 73 | theorem compose_squares {C : Type*} [Category* C] {A B D E F G : C} |
| 74 | (a : A ⟶ B) (b : B ⟶ D) (c : D ⟶ E) (d : A ⟶ F) (e : F ⟶ D) |
| 75 | (f : F ⟶ G) (g : G ⟶ E) (h₁ : a ≫ b = d ≫ e) (h₂ : e ≫ c = f ≫ g) : |
| 76 | a ≫ b ≫ c = (d ≫ f) ≫ g := by |
| 77 | rw [← Category.assoc, h₁, Category.assoc, h₂, ← Category.assoc] |
| 78 | |
| 79 | def homologyIso (X : TopCat.{0}) (n : ℕ) : |
| 80 | (extension σ).obj ((AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := R) X).homology n) ≅ |
| 81 | (AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := S) X).homology n := |
| 82 | ((AlgebraicTopology.Cohomology.Singular.Evaluation.singularScalarChains (R := R) X).sc n |>.mapHomologyIso (extension σ)).symm ≪≫ |
| 83 | (HomologicalComplex.homologyFunctor (ModuleCat S) (ComplexShape.down ℕ) n).mapIso (chainsIso σ X) |
| 84 | |
| 85 | theorem homologyIso_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) (n : ℕ) : |
| 86 | (extension σ).map (HomologicalComplex.homologyMap (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularScalarChainMap (R := R) f) n) ≫ |
| 87 | (homologyIso σ Y n).hom = (homologyIso σ X n).hom ≫ |
| 88 | HomologicalComplex.homologyMap (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularScalarChainMap (R := S) f) n := by |
| 89 | have h₁ := ShortComplex.mapHomologyIso_inv_naturality |
| 90 | ((HomologicalComplex.shortComplexFunctor (ModuleCat R) (ComplexShape.down ℕ) n).map |
| 91 | (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularScalarChainMap (R := R) f)) (extension σ) |
| 92 | have h₂ := congrArg ((HomologicalComplex.homologyFunctor (ModuleCat S) (ComplexShape.down ℕ) n).map) |
| 93 | (chainsIso_naturality σ f) |
| 94 | simp only [Functor.map_comp] at h₂ |
| 95 | exact compose_squares _ _ _ _ _ _ _ h₁ h₂ |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.PadicHodge.GeometricComparison.HomologyScalarExtension.ChainScalarExtension |