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.BaseChangeRightExact |
| 2 | |
| 3 | /-! # Tensor Cancel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorCancel |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual tensor cancellation for an S-module and an R-module, |
| 10 | as a natural isomorphism on the underlying R-module functors. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.FlatExtension |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u |
| 21 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 22 | |
| 23 | local instance (M : ModuleCat.{u} S) : |
| 24 | IsScalarTower R S ((ModuleCat.restrictScalars (algebraMap R S)).obj M) := |
| 25 | IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) |
| 26 | |
| 27 | def cancel (M : ModuleCat.{u} S) (N : ModuleCat.{u} R) : |
| 28 | M ⊗[S] (S ⊗[R] N) ≃ₗ[S] |
| 29 | ((ModuleCat.restrictScalars (algebraMap R S)).obj M) ⊗[R] N := |
| 30 | TensorProduct.AlgebraTensorModule.cancelBaseChange R S S |
| 31 | ((ModuleCat.restrictScalars (algebraMap R S)).obj M) N |
| 32 | |
| 33 | theorem cancel_algebraMap_smul (M : ModuleCat.{u} S) (N : ModuleCat.{u} R) (r : R) |
| 34 | (t : M ⊗[S] (S ⊗[R] N)) : |
| 35 | cancel R S M N ((algebraMap R S r) • t) = r • cancel R S M N t := by |
| 36 | rw [map_smul] |
| 37 | exact IsScalarTower.algebraMap_smul S r (cancel R S M N t) |
| 38 | |
| 39 | def component (M : ModuleCat.{u} S) (N : ModuleCat.{u} R) : |
| 40 | (ModuleCat.restrictScalars (algebraMap R S)).obj ((tensorLeft M).obj ((FlatExtension.baseChange R S).obj N)) ≃ₗ[R] |
| 41 | (tensorLeft ((ModuleCat.restrictScalars (algebraMap R S)).obj M)).obj N where |
| 42 | __ := (cancel R S M N).toAddEquiv |
| 43 | map_smul' r t := cancel_algebraMap_smul R S M N r t |
| 44 | |
| 45 | def tensorCancelIso (M : ModuleCat.{u} S) : |
| 46 | (FlatExtension.baseChange R S ⋙ tensorLeft M) ⋙ ModuleCat.restrictScalars (algebraMap R S) ≅ |
| 47 | tensorLeft ((ModuleCat.restrictScalars (algebraMap R S)).obj M) := |
| 48 | NatIso.ofComponents (fun N => (component R S M N).toModuleIso) (by |
| 49 | intro N N' f |
| 50 | ext t |
| 51 | induction t using TensorProduct.inductionOn with |
| 52 | | tmul m t => |
| 53 | induction t using TensorProduct.inductionOn with |
| 54 | | tmul s n => rfl |
| 55 | | add a b ha hb => simp only [TensorProduct.tmul_add, map_add, ha, hb] |
| 56 | | add a b ha hb => simp only [map_add, ha, hb]) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorCancel |