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.IntersectionTheory.ProjectionFormula.DiagonalTensor |
| 2 | |
| 3 | /-! # Diagonal Tensor Naturality -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensorNaturality |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The diagonal tensor identification is natural in its first input, |
| 10 | with the original-ring action obtained from the first product factor. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensor |
| 21 | |
| 22 | variable (K R : Type u) [Field K] [CommRing R] [Algebra K R] |
| 23 | |
| 24 | attribute [local instance] DiagonalTensor.diagonalAlgebra ExternalTensorFunctor.scalar |
| 25 | ExternalTensorFunctor.tower ExternalTensor.module |
| 26 | |
| 27 | abbrev first : R →+* DiagonalTensor.Ring K R := (Algebra.TensorProduct.includeLeft : R →ₐ[K] R ⊗[K] R).toRingHom |
| 28 | |
| 29 | def diagonal : ModuleCat.{u} (DiagonalTensor.Ring K R) := |
| 30 | (ModuleCat.restrictScalars (DiagonalTensor.multiplication K R)).obj (.of R R) |
| 31 | |
| 32 | theorem first_smul {V : Type u} [AddCommGroup V] [Module R V] |
| 33 | [Module (DiagonalTensor.Ring K R) V] [IsScalarTower (DiagonalTensor.Ring K R) R V] (r : R) (v : V) : |
| 34 | first K R r • v = r • v := by |
| 35 | rw [← algebraMap_smul R (first K R r)] |
| 36 | have he : algebraMap (DiagonalTensor.Ring K R) R (first K R r) = r := mul_one r |
| 37 | rw [he] |
| 38 | |
| 39 | variable (M N : ModuleCat.{u} R) |
| 40 | |
| 41 | def component : |
| 42 | (ModuleCat.restrictScalars (first K R)).obj |
| 43 | ((tensorRight (diagonal K R)).obj ((ExternalTensorFunctor.tensor K R R N).obj M)) ≃ₗ[R] |
| 44 | M ⊗[R] N := |
| 45 | { (TensorProduct.comm (DiagonalTensor.Ring K R) (ExternalTensor.obj K R R M N) R).toAddEquiv.trans |
| 46 | (DiagonalTensor.equiv K R M N).toAddEquiv with |
| 47 | map_smul' := by |
| 48 | intro r x |
| 49 | change DiagonalTensor.equiv K R M N |
| 50 | ((TensorProduct.comm (DiagonalTensor.Ring K R) (ExternalTensor.obj K R R M N) R) (first K R r • x)) = |
| 51 | r • DiagonalTensor.equiv K R M N |
| 52 | ((TensorProduct.comm (DiagonalTensor.Ring K R) (ExternalTensor.obj K R R M N) R) x) |
| 53 | rw [map_smul] |
| 54 | let y : R ⊗[DiagonalTensor.Ring K R] ExternalTensor.obj K R R M N := |
| 55 | TensorProduct.comm (DiagonalTensor.Ring K R) (ExternalTensor.obj K R R M N) R x |
| 56 | exact (congrArg (DiagonalTensor.equiv K R M N) (first_smul K R r y)).trans ((DiagonalTensor.equiv K R M N).map_smul r y) } |
| 57 | |
| 58 | theorem component_tmul (r : R) (m : M) (n : N) : |
| 59 | component K R M N ((m ⊗ₜ[K] n) ⊗ₜ[DiagonalTensor.Ring K R] r) = r • (m ⊗ₜ[R] n) := rfl |
| 60 | |
| 61 | variable {M} |
| 62 | |
| 63 | def naturalIso : |
| 64 | ExternalTensorFunctor.tensor K R R N ⋙ tensorRight (diagonal K R) ⋙ |
| 65 | ModuleCat.restrictScalars (first K R) ≅ tensorRight N := |
| 66 | NatIso.ofComponents (fun M => (component K R M N).toModuleIso) (by |
| 67 | intro M M' f |
| 68 | apply ModuleCat.hom_ext |
| 69 | apply LinearMap.ext |
| 70 | intro x |
| 71 | induction x using TensorProduct.inductionOn with |
| 72 | | tmul x r => |
| 73 | induction x using TensorProduct.inductionOn with |
| 74 | | tmul m n => |
| 75 | change (show R from r) • (f m ⊗ₜ[R] n) = |
| 76 | (TensorProduct.map f.hom (LinearMap.id : N →ₗ[R] N)) ((show R from r) • (m ⊗ₜ[R] n)) |
| 77 | rw [map_smul, TensorProduct.map_tmul] |
| 78 | rfl |
| 79 | | add x y hx hy => simp only [TensorProduct.add_tmul, map_add, hx, hy] |
| 80 | | add x y hx hy => simp only [map_add, hx, hy]) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensorNaturality |