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.NumberTheory.PadicHodge.IntegralComparison.DualComplexHomology |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.IntrinsicScalarExtensionExact |
| 3 | import Mathlib.LinearAlgebra.Dual.BaseChange |
| 4 | |
| 5 | /-! # Free Dual Base Change -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FreeDualBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite free coefficient duals commute with the specified scalar extension, |
| 12 | including the actual differentials of a complex. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.HomologicalComplex |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u v |
| 21 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 22 | |
| 23 | variable (V : Type u) [AddCommGroup V] [Module R V] |
| 24 | [Module.Free R V] [Module.Finite R V] |
| 25 | |
| 26 | def equiv : S ⊗[R] Module.Dual R V ≃ₗ[S] Module.Dual S (S ⊗[R] V) := |
| 27 | (TensorProduct.isBaseChange R V S).toDualBaseChange |
| 28 | |
| 29 | theorem equiv_tmul_one (a : S) (f : Module.Dual R V) (v : V) : |
| 30 | equiv R S V (a ⊗ₜ[R] f) (1 ⊗ₜ[R] v) = a * algebraMap R S (f v) := |
| 31 | (TensorProduct.isBaseChange R V S).toDualBaseChange_tmul a f v |
| 32 | |
| 33 | theorem equiv_tmul (a b : S) (f : Module.Dual R V) (v : V) : |
| 34 | equiv R S V (a ⊗ₜ[R] f) (b ⊗ₜ[R] v) = a * b * algebraMap R S (f v) := by |
| 35 | have h : b ⊗ₜ[R] v = b • (1 ⊗ₜ[R] v) := by |
| 36 | rw [TensorProduct.smul_tmul', smul_eq_mul, mul_one] |
| 37 | rw [h, map_smul, equiv_tmul_one] |
| 38 | simp only [smul_eq_mul] |
| 39 | ring |
| 40 | |
| 41 | variable {V} |
| 42 | variable {W : Type u} [AddCommGroup W] [Module R W] |
| 43 | [Module.Free R W] [Module.Finite R W] |
| 44 | |
| 45 | theorem naturality (f : V →ₗ[R] W) : |
| 46 | (equiv R S V).toLinearMap.comp (f.dualMap.baseChange S) = |
| 47 | (f.baseChange S).dualMap.comp (equiv R S W).toLinearMap := by |
| 48 | apply TensorProduct.AlgebraTensorModule.ext |
| 49 | intro a g |
| 50 | apply TensorProduct.AlgebraTensorModule.ext |
| 51 | intro b v |
| 52 | simp only [LinearMap.comp_apply, LinearMap.baseChange_tmul, |
| 53 | LinearEquiv.coe_coe, LinearMap.dualMap_apply, equiv_tmul] |
| 54 | |
| 55 | variable {ι : Type v} {c : ComplexShape ι} |
| 56 | |
| 57 | abbrev tensorFunctor := AlgebraicGeometry.Crystalline.Cohomology.IntrinsicScalarExtension.functor R S |
| 58 | |
| 59 | def complexIso (K : HomologicalComplex (ModuleCat.{u} R) c) |
| 60 | [∀ i, Module.Free R (K.X i)] [∀ i, Module.Finite R (K.X i)] : |
| 61 | ((tensorFunctor R S).mapHomologicalComplex c.symm).obj |
| 62 | (DualComplexHomology.complex R K) ≅ |
| 63 | DualComplexHomology.complex S |
| 64 | (((tensorFunctor R S).mapHomologicalComplex c).obj K) := |
| 65 | Hom.isoOfComponents (fun i => (equiv R S (K.X i)).toModuleIso) (by |
| 66 | intro i j hij |
| 67 | exact ModuleCat.hom_ext (naturality R S (K.d j i).hom).symm) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FreeDualBaseChange |