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.TensorOverBaseProjectives |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorModel |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightAlgebra |
| 4 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 5 | |
| 6 | /-! # External Tensor Projectives -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ExternalTensorProjectives |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Over a field, tensoring over the right algebra factor and |
| 13 | restricting to the left factor preserves projective modules. The free |
| 14 | generator becomes the actual scalar extension of the second module. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorOverBase OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorOverBaseProjectives OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorModel |
| 20 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightAlgebra.Constructions |
| 21 | |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | set_option backward.isDefEq.respectTransparency.types false |
| 24 | |
| 25 | universe u |
| 26 | variable (k R S : Type u) [Field k] [CommRing R] [CommRing S] [Algebra k R] [Algebra k S] |
| 27 | (N : ModuleCat.{u} S) |
| 28 | |
| 29 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 30 | |
| 31 | local instance : Module k N := Module.compHom N (algebraMap k S) |
| 32 | local instance : IsScalarTower k S N := IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) |
| 33 | |
| 34 | def externalTensor : ModuleCat.{u} (R ⊗[k] S) ⥤ ModuleCat.{u} R := |
| 35 | TensorOverBaseProjectives.tensorRestriction S (R ⊗[k] S) R N |
| 36 | |
| 37 | theorem model_smul (r : R) |
| 38 | (t : (TensorOverBase.tensorOverBase S (R ⊗[k] S) N).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S))) : |
| 39 | TensorModel.tensorModelEquiv S (R ⊗[k] S) (R ⊗[k] S) N (algebraMap R (R ⊗[k] S) r • t) = |
| 40 | r • TensorModel.tensorModelEquiv S (R ⊗[k] S) (R ⊗[k] S) N t := by |
| 41 | rw [map_smul] |
| 42 | exact IsScalarTower.algebraMap_smul (R ⊗[k] S) r _ |
| 43 | |
| 44 | def freeModelEquiv : |
| 45 | (externalTensor k R S N).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S)) ≃ₗ[R] |
| 46 | (R ⊗[k] S) ⊗[S] N where |
| 47 | __ := (TensorModel.tensorModelEquiv S (R ⊗[k] S) (R ⊗[k] S) N).toAddEquiv |
| 48 | map_smul' := model_smul k R S N |
| 49 | |
| 50 | def freeTensorEquiv : |
| 51 | (externalTensor k R S N).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S)) ≃ₗ[R] R ⊗[k] N := |
| 52 | (freeModelEquiv k R S N).trans (Tensor.ProductRightAlgebra.Constructions.leftLinearCancel k R S N) |
| 53 | |
| 54 | instance free_projective : |
| 55 | Projective ((externalTensor k R S N).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S))) := by |
| 56 | let : Module.Projective k N := inferInstance |
| 57 | let : Module.Projective R (R ⊗[k] N) := inferInstance |
| 58 | let : Module.Projective R ((externalTensor k R S N).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S))) := |
| 59 | Module.Projective.of_equiv' (freeTensorEquiv k R S N).symm |
| 60 | infer_instance |
| 61 | |
| 62 | instance externalTensor_preservesProjectiveObjects : (externalTensor k R S N).PreservesProjectiveObjects := by |
| 63 | let : Projective ((TensorOverBaseProjectives.tensorRestriction S (R ⊗[k] S) R N).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S))) := |
| 64 | free_projective k R S N |
| 65 | exact TensorOverBaseProjectives.tensorRestriction_preservesProjectiveObjects S (R ⊗[k] S) R N |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ExternalTensorProjectives |