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.ExternalTensorResolution |
| 2 | |
| 3 | /-! # Diagonal Module -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.DiagonalModule |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The diagonal is the actual module obtained from multiplication |
| 10 | on the tensor algebra. Restriction to the right factor gives the free |
| 11 | rank-one module, and tensoring along that factor gives the chosen module |
| 12 | with its original left action. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.ExternalTensorProjectives OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RightRestrictionProjectives |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | universe u |
| 23 | variable (k R : Type u) [Field k] [CommRing R] [Algebra k R] |
| 24 | |
| 25 | def diagonalModule : ModuleCat.{u} (R ⊗[k] R) := |
| 26 | (ModuleCat.restrictScalars (Algebra.TensorProduct.lmul' k (S := R)).toRingHom).obj |
| 27 | (ModuleCat.of R R) |
| 28 | |
| 29 | def rightDiagonalEquiv : (RightRestrictionProjectives.rightRestriction k R R).obj (diagonalModule k R) ≃ₗ[R] R where |
| 30 | __ := AddEquiv.refl R |
| 31 | map_smul' r x := by |
| 32 | change Algebra.TensorProduct.lmul' k (1 ⊗ₜ[k] r) * (show R from x) = r * (show R from x) |
| 33 | rw [Algebra.TensorProduct.lmul'_apply_tmul, one_mul] |
| 34 | |
| 35 | instance rightDiagonal_projective : Projective ((RightRestrictionProjectives.rightRestriction k R R).obj (diagonalModule k R)) := by |
| 36 | let : Module.Projective R ((RightRestrictionProjectives.rightRestriction k R R).obj (diagonalModule k R)) := |
| 37 | Module.Projective.of_equiv' (rightDiagonalEquiv k R).symm |
| 38 | infer_instance |
| 39 | |
| 40 | variable (N : ModuleCat.{u} R) |
| 41 | |
| 42 | def diagonalTensorAddEquiv : (ExternalTensorProjectives.externalTensor k R R N).obj (diagonalModule k R) ≃+ N := |
| 43 | ((TensorProduct.congr (rightDiagonalEquiv k R) (LinearEquiv.refl R N)).trans |
| 44 | (TensorProduct.lid R N)).toAddEquiv |
| 45 | |
| 46 | theorem diagonalTensor_smul (r : R) (t : (ExternalTensorProjectives.externalTensor k R R N).obj (diagonalModule k R)) : |
| 47 | diagonalTensorAddEquiv k R N (r • t) = r • diagonalTensorAddEquiv k R N t := by |
| 48 | induction t using TensorProduct.inductionOn with |
| 49 | | add x y hx hy => simp only [smul_add, map_add, hx, hy] |
| 50 | | tmul x n => |
| 51 | change (Algebra.TensorProduct.lmul' k (r ⊗ₜ[k] 1) * (show R from x)) • n = |
| 52 | r • ((show R from x) • n) |
| 53 | rw [Algebra.TensorProduct.lmul'_apply_tmul, mul_one, mul_smul] |
| 54 | |
| 55 | def diagonalTensorEquiv : (ExternalTensorProjectives.externalTensor k R R N).obj (diagonalModule k R) ≃ₗ[R] N where |
| 56 | __ := diagonalTensorAddEquiv k R N |
| 57 | map_smul' := diagonalTensor_smul k R N |
| 58 | |
| 59 | def diagonalTensorIso : (ExternalTensorProjectives.externalTensor k R R N).obj (diagonalModule k R) ≅ N := |
| 60 | (diagonalTensorEquiv k R N).toModuleIso |
| 61 | |
| 62 | def tensorResolution (P : ProjectiveResolution (diagonalModule k R)) : |
| 63 | ProjectiveResolution ((ExternalTensorProjectives.externalTensor k R R N).obj (diagonalModule k R)) := |
| 64 | ExternalTensorResolution.resolution k R R N (diagonalModule k R) P |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.DiagonalModule |