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 Mathlib.RingTheory.TensorProduct.Maps |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 3 | |
| 4 | /-! # Product Right Algebra -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightAlgebra.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Swapping algebra tensor factors identifies the right algebra |
| 11 | structure with the left one through the actual tensor permutation. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | variable (k R S : Type u) [CommRing k] [CommRing R] [CommRing S] [Algebra k R] [Algebra k S] |
| 17 | |
| 18 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 19 | |
| 20 | def rightSwap : R ⊗[k] S ≃ₐ[S] S ⊗[k] R := |
| 21 | (Algebra.TensorProduct.commRight k S R).symm |
| 22 | |
| 23 | theorem rightSwap_tmul (r : R) (s : S) : rightSwap k R S (r ⊗ₜ[k] s) = s ⊗ₜ[k] r := rfl |
| 24 | |
| 25 | variable (N : Type u) [AddCommGroup N] [Module k N] [Module S N] [IsScalarTower k S N] |
| 26 | |
| 27 | def rightTensorCancel : (R ⊗[k] S) ⊗[S] N ≃ₗ[S] N ⊗[k] R := |
| 28 | ((TensorProduct.congr (rightSwap k R S).toLinearEquiv (LinearEquiv.refl S N)).trans |
| 29 | (TensorProduct.comm S (S ⊗[k] R) N)).trans |
| 30 | (TensorProduct.AlgebraTensorModule.cancelBaseChange k S S N R) |
| 31 | |
| 32 | theorem rightTensorCancel_tmul (r : R) (s : S) (n : N) : |
| 33 | rightTensorCancel k R S N ((r ⊗ₜ[k] s) ⊗ₜ[S] n) = (s • n) ⊗ₜ[k] r := by |
| 34 | simp only [rightTensorCancel, LinearEquiv.trans_apply, TensorProduct.congr_tmul, |
| 35 | AlgEquiv.toLinearEquiv_apply, rightSwap_tmul, LinearEquiv.refl_apply, TensorProduct.comm_tmul, |
| 36 | TensorProduct.AlgebraTensorModule.cancelBaseChange_tmul] |
| 37 | |
| 38 | def tensorCancel : (R ⊗[k] S) ⊗[S] N ≃ₗ[k] R ⊗[k] N := |
| 39 | ((rightTensorCancel k R S N).restrictScalars k).trans (TensorProduct.comm k N R) |
| 40 | |
| 41 | theorem tensorCancel_tmul (r : R) (s : S) (n : N) : |
| 42 | tensorCancel k R S N ((r ⊗ₜ[k] s) ⊗ₜ[S] n) = r ⊗ₜ[k] (s • n) := by |
| 43 | simp only [tensorCancel, LinearEquiv.trans_apply, LinearEquiv.restrictScalars_apply, |
| 44 | rightTensorCancel_tmul, TensorProduct.comm_tmul] |
| 45 | |
| 46 | theorem tensorCancel_smul (a : R) (t : (R ⊗[k] S) ⊗[S] N) : |
| 47 | tensorCancel k R S N (a • t) = a • tensorCancel k R S 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 | rw [TensorProduct.smul_tmul'] |
| 52 | induction x using TensorProduct.inductionOn with |
| 53 | | add x y hx hy => simp only [smul_add, TensorProduct.add_tmul, map_add, hx, hy] |
| 54 | | tmul r s => simp only [TensorProduct.smul_tmul', tensorCancel_tmul] |
| 55 | |
| 56 | def leftLinearCancel : (R ⊗[k] S) ⊗[S] N ≃ₗ[R] R ⊗[k] N where |
| 57 | __ := (tensorCancel k R S N).toAddEquiv |
| 58 | map_smul' := tensorCancel_smul k R S N |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightAlgebra.Constructions |