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.RestrictionProjectives |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightAlgebra |
| 3 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 4 | |
| 5 | /-! # Right Restriction Projectives -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RightRestrictionProjectives |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Restriction to the right factor of a tensor algebra over a field |
| 12 | preserves projective modules. The free algebra is identified with |
| 13 | the scalar extension of the left factor by the actual tensor swap. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightAlgebra.Constructions |
| 19 | |
| 20 | universe u |
| 21 | variable (k R S : Type u) [Field k] [CommRing R] [CommRing S] [Algebra k R] [Algebra k S] |
| 22 | |
| 23 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 24 | |
| 25 | def rightRestriction : ModuleCat.{u} (R ⊗[k] S) ⥤ ModuleCat.{u} S := |
| 26 | ModuleCat.restrictScalars (algebraMap S (R ⊗[k] S)) |
| 27 | |
| 28 | def freeModelEquiv : |
| 29 | (rightRestriction k R S).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S)) ≃ₗ[S] R ⊗[k] S where |
| 30 | __ := AddEquiv.refl (R ⊗[k] S) |
| 31 | map_smul' s a := (Algebra.smul_def s (show R ⊗[k] S from a)).symm |
| 32 | |
| 33 | def freeTensorEquiv : |
| 34 | (rightRestriction k R S).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S)) ≃ₗ[S] S ⊗[k] R := |
| 35 | (freeModelEquiv k R S).trans (Tensor.ProductRightAlgebra.Constructions.rightSwap k R S).toLinearEquiv |
| 36 | |
| 37 | instance free_projective : |
| 38 | Projective ((rightRestriction k R S).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S))) := by |
| 39 | let : Module.Projective k R := inferInstance |
| 40 | let : Module.Projective S (S ⊗[k] R) := inferInstance |
| 41 | let : Module.Projective S ((rightRestriction k R S).obj (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S))) := |
| 42 | Module.Projective.of_equiv' (freeTensorEquiv k R S).symm |
| 43 | infer_instance |
| 44 | |
| 45 | instance rightRestriction_preservesProjectiveObjects : |
| 46 | (rightRestriction k R S).PreservesProjectiveObjects := by |
| 47 | let : Projective ((ModuleCat.restrictScalars (algebraMap S (R ⊗[k] S))).obj |
| 48 | (ModuleCat.of (R ⊗[k] S) (R ⊗[k] S))) := free_projective k R S |
| 49 | exact RestrictionProjectives.restriction_preservesProjectiveObjects S (R ⊗[k] S) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RightRestrictionProjectives |