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.Thom.TorAlgebra.TensorOverBase |
| 2 | import Mathlib.LinearAlgebra.DirectSum.Finsupp |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 4 | import Mathlib.CategoryTheory.Preadditive.Projective.Preserves |
| 5 | |
| 6 | /-! # Tensor Over Base Projectives -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorOverBaseProjectives |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Tensoring over one base and restricting through a second algebra |
| 13 | map preserves projectives whenever it sends the rank-one free algebra |
| 14 | module to a projective module. The proof uses actual free-module splittings. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open scoped TensorProduct Classical |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorOverBase |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | variable (S A L : Type u) [CommRing S] [CommRing A] [CommRing L] |
| 26 | [Algebra S A] [Algebra L A] (N : ModuleCat.{u} S) |
| 27 | |
| 28 | attribute [local instance] TensorOverBase.moduleCarrier |
| 29 | TensorOverBase.scalarTowerCarrier |
| 30 | |
| 31 | def tensorRestriction : ModuleCat.{u} A ⥤ ModuleCat.{u} L := |
| 32 | TensorOverBase.tensorOverBase S A N ⋙ ModuleCat.restrictScalars (algebraMap L A) |
| 33 | |
| 34 | theorem freeScalarModule_eq (ι : Type u) : |
| 35 | Module.compHom (ι →₀ A) (algebraMap S A) = (inferInstance : Module S (ι →₀ A)) := by |
| 36 | ext s f i |
| 37 | change (algebraMap S A s) * f i = s • f i |
| 38 | exact (Algebra.smul_def s (f i)).symm |
| 39 | |
| 40 | def freeTensorCoordinates (M : ModuleCat.{u} A) (ι : Type u) : |
| 41 | (TensorOverBase.tensorOverBase S A N).obj (ModuleCat.of A (ι →₀ M)) ≃ₗ[A] |
| 42 | (ι →₀ (TensorOverBase.tensorOverBase S A N).obj M) := by |
| 43 | let i : (ModuleCat.of A (ι →₀ M)) ≃ₗ[A] (ι →₀ M) := LinearEquiv.refl A _ |
| 44 | exact (TensorProduct.AlgebraTensorModule.congr i (LinearEquiv.refl S N)).trans |
| 45 | (TensorProduct.finsuppLeft S A M N ι) |
| 46 | |
| 47 | def freeComponent (ι : Type u) : |
| 48 | (tensorRestriction S A L N).obj (ModuleCat.of A (ι →₀ A)) ≃ₗ[L] |
| 49 | (ι →₀ (tensorRestriction S A L N).obj (ModuleCat.of A A)) where |
| 50 | __ := (freeTensorCoordinates S A N (ModuleCat.of A A) ι).toAddEquiv |
| 51 | map_smul' l x := (freeTensorCoordinates S A N (ModuleCat.of A A) ι).map_smul (algebraMap L A l) x |
| 52 | |
| 53 | variable [Projective ((tensorRestriction S A L N).obj (ModuleCat.of A A))] |
| 54 | |
| 55 | theorem free_projective (ι : Type u) : |
| 56 | Projective ((tensorRestriction S A L N).obj (ModuleCat.of A (ι →₀ A))) := by |
| 57 | let : Module.Projective L ((tensorRestriction S A L N).obj (ModuleCat.of A A)) := inferInstance |
| 58 | let : Module.Projective L (ι →₀ (tensorRestriction S A L N).obj (ModuleCat.of A A)) := |
| 59 | Module.Projective.of_equiv' (finsuppLEquivDirectSum L _ ι).symm |
| 60 | let : Module.Projective L ((tensorRestriction S A L N).obj (ModuleCat.of A (ι →₀ A))) := |
| 61 | Module.Projective.of_equiv' (freeComponent S A L N ι).symm |
| 62 | infer_instance |
| 63 | |
| 64 | instance tensorRestriction_preservesProjectiveObjects : |
| 65 | (tensorRestriction S A L N).PreservesProjectiveObjects where |
| 66 | projective_obj {M} hM := by |
| 67 | let : Projective M := hM |
| 68 | let : Module.Projective A M := inferInstance |
| 69 | obtain ⟨s, hs⟩ := (inferInstance : Module.Projective A M) |
| 70 | let i : M ⟶ ModuleCat.of A (M →₀ A) := ModuleCat.ofHom s |
| 71 | let j : ModuleCat.of A (M →₀ A) ⟶ M := ModuleCat.ofHom (Finsupp.linearCombination A id) |
| 72 | have hij : i ≫ j = 𝟙 M := ModuleCat.hom_ext (LinearMap.ext hs) |
| 73 | let : Projective ((tensorRestriction S A L N).obj (ModuleCat.of A (M →₀ A))) := |
| 74 | free_projective S A L N M |
| 75 | let : Module.Projective L ((tensorRestriction S A L N).obj (ModuleCat.of A (M →₀ A))) := inferInstance |
| 76 | have hf := congrArg (tensorRestriction S A L N).map hij |
| 77 | rw [(tensorRestriction S A L N).map_comp, (tensorRestriction S A L N).map_id] at hf |
| 78 | let : Module.Projective L ((tensorRestriction S A L N).obj M) := Module.Projective.of_split |
| 79 | ((tensorRestriction S A L N).map i).hom ((tensorRestriction S A L N).map j).hom |
| 80 | (congrArg ModuleCat.Hom.hom hf) |
| 81 | infer_instance |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorOverBaseProjectives |