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.ExternalTensorProjectives |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RightRestrictionProjectives |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorRestrictionSquare |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ResolutionViaProjectiveRestriction |
| 5 | |
| 6 | /-! # External Tensor Resolution -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ExternalTensorResolution |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A projective resolution over the tensor algebra becomes a |
| 13 | projective resolution over the left ring after tensoring over the right |
| 14 | ring, when the resolved object is projective over that right ring. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ExternalTensorProjectives OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RightRestrictionProjectives |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | variable (k R S : Type u) [Field k] [CommRing R] [CommRing S] [Algebra k R] [Algebra k S] |
| 26 | (N : ModuleCat.{u} S) (X : ModuleCat.{u} (R ⊗[k] S)) |
| 27 | [Projective ((RightRestrictionProjectives.rightRestriction k R S).obj X)] |
| 28 | |
| 29 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 30 | |
| 31 | def resolution (P : ProjectiveResolution X) : |
| 32 | ProjectiveResolution ((ExternalTensorProjectives.externalTensor k R S N).obj X) := by |
| 33 | let F := ExternalTensorProjectives.externalTensor k R S N |
| 34 | let F' := tensorRight N ⋙ ModuleCat.restrictScalars (algebraMap k S) |
| 35 | let H := RightRestrictionProjectives.rightRestriction k R S |
| 36 | let G := ModuleCat.restrictScalars (algebraMap k R) |
| 37 | let : H.Additive := by dsimp [H, RightRestrictionProjectives.rightRestriction]; infer_instance |
| 38 | let : H.PreservesHomology := by dsimp [H, RightRestrictionProjectives.rightRestriction]; infer_instance |
| 39 | let : F.Additive := by |
| 40 | dsimp [F, ExternalTensorProjectives.externalTensor, TensorOverBaseProjectives.tensorRestriction] |
| 41 | infer_instance |
| 42 | let : PreservesFiniteColimits F := by |
| 43 | let : PreservesFiniteColimits (TensorOverBase.tensorOverBase S (R ⊗[k] S) N) := |
| 44 | TensorOverBase.tensorOverBase_preservesFiniteColimits S (R ⊗[k] S) N |
| 45 | let : PreservesFiniteColimits (ModuleCat.restrictScalars.{u} (algebraMap R (R ⊗[k] S))) := |
| 46 | inferInstance |
| 47 | change PreservesFiniteColimits (TensorOverBase.tensorOverBase S (R ⊗[k] S) N ⋙ |
| 48 | ModuleCat.restrictScalars (algebraMap R (R ⊗[k] S))) |
| 49 | exact comp_preservesFiniteColimits _ _ |
| 50 | exact ResolutionViaProjectiveRestriction.resolution F F' H G |
| 51 | (TensorRestrictionSquare.tensorRestrictionSquare k R S (R ⊗[k] S) N) X P |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ExternalTensorResolution |