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.Quotients.FiniteDescent.ModuleTensor |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.TensorProducts |
| 3 | import Mathlib.Algebra.Homology.QuasiIso |
| 4 | |
| 5 | /-! # Tensor Extension Quasi -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.TensorExtensionQuasi |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Universal tensor comparisons also give comparisons after extension of scalars. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | open scoped TensorProduct ChangeOfRings |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace Construction.TensorExtension |
| 21 | |
| 22 | variable {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) |
| 23 | |
| 24 | def iso : letI : Algebra R S := f.toAlgebra |
| 25 | ModuleTensor.Construction.ModuleTensorFunctor.tensor (R := R) S ≅ |
| 26 | ModuleCat.extendScalars f ⋙ ModuleCat.restrictScalars f := by |
| 27 | letI : Algebra R S := f.toAlgebra |
| 28 | refine NatIso.ofComponents (fun M => ModuleCat.isoMk (Iso.refl _) ?_) ?_ |
| 29 | · intro r |
| 30 | ext z |
| 31 | let z' : S ⊗[R] (↥M) := z |
| 32 | change f r • z' = r • z' |
| 33 | exact IsScalarTower.algebraMap_smul S r z' |
| 34 | · intro M N a |
| 35 | apply ModuleCat.hom_ext |
| 36 | apply TensorProduct.ext |
| 37 | ext s m |
| 38 | rfl |
| 39 | |
| 40 | def complexIso : letI : Algebra R S := f.toAlgebra |
| 41 | (ModuleCat.extendScalars f).mapHomologicalComplex (ComplexShape.up ℕ) ⋙ |
| 42 | (ModuleCat.restrictScalars f).mapHomologicalComplex (ComplexShape.up ℕ) ≅ |
| 43 | (ModuleTensor.Construction.ModuleTensorFunctor.tensor (R := R) S).mapHomologicalComplex (ComplexShape.up ℕ) := by |
| 44 | letI : Algebra R S := f.toAlgebra |
| 45 | exact Functor.mapHomologicalComplexCompIso (iso f).symm (ComplexShape.up ℕ) |
| 46 | |
| 47 | theorem quasiIso {C D : CochainComplex (ModuleCat.{u} R) ℕ} (φ : C ⟶ D) |
| 48 | (h : ∀ (A : Type u) [AddCommGroup A] [Module R A], QuasiIso (ModuleTensor.Construction.ModuleTensorFunctor.map A φ)) : |
| 49 | QuasiIso (((ModuleCat.extendScalars f).mapHomologicalComplex (ComplexShape.up ℕ)).map φ) := by |
| 50 | let : Algebra R S := f.toAlgebra |
| 51 | have : QuasiIso (ModuleTensor.Construction.ModuleTensorFunctor.map S φ) := h S |
| 52 | let e := complexIso f |
| 53 | let ψ := ((ModuleCat.extendScalars f).mapHomologicalComplex (ComplexShape.up ℕ)).map φ |
| 54 | let χ := ((ModuleCat.restrictScalars f).mapHomologicalComplex (ComplexShape.up ℕ)).map ψ |
| 55 | let a : Arrow.mk χ ≅ Arrow.mk (ModuleTensor.Construction.ModuleTensorFunctor.map S φ) := |
| 56 | Arrow.isoMk (e.app C) (e.app D) (e.hom.naturality φ) |
| 57 | have hχ : QuasiIso χ := |
| 58 | (quasiIso_iff_of_arrow_mk_iso χ (ModuleTensor.Construction.ModuleTensorFunctor.map S φ) a).mpr inferInstance |
| 59 | exact (HomologicalComplex.quasiIso_map_iff_of_preservesHomology ψ |
| 60 | (ModuleCat.restrictScalars f)).mp hχ |
| 61 | |
| 62 | end Construction.TensorExtension |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.TensorExtensionQuasi |