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.DerivedBaseChange |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ScalarQuotient |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Associator |
| 4 | |
| 5 | /-! # Ring Equiv Tor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RingEquivTor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Native Tor and its module lengths transport through a ring |
| 12 | isomorphism by the actual restriction-of-scalars equivalence. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R S : Type u} [CommRing R] [CommRing S] (e : R ≃+* S) |
| 23 | |
| 24 | def tensorEquiv (M N : ModuleCat.{u} S) : |
| 25 | ((ModuleCat.restrictScalars e.toRingHom).obj M) ⊗[R] |
| 26 | ((ModuleCat.restrictScalars e.toRingHom).obj N) ≃ₗ[R] |
| 27 | (ModuleCat.restrictScalars e.toRingHom).obj (M ⊗ N) := by |
| 28 | let : Algebra R S := e.toRingHom.toAlgebra |
| 29 | let : Module R M := Module.compHom M e.toRingHom |
| 30 | let : Module R N := Module.compHom N e.toRingHom |
| 31 | let : IsScalarTower R S M := IsScalarTower.of_compHom R S M |
| 32 | let : IsScalarTower R S N := IsScalarTower.of_compHom R S N |
| 33 | let : TensorProduct.CompatibleSMul R S M N := |
| 34 | TensorProduct.CompatibleSMul.of_algebraMap_surjective M N e.surjective |
| 35 | exact TensorProduct.equivOfCompatibleSMul S R R M N |
| 36 | |
| 37 | def tensorIso (M : ModuleCat.{u} S) : |
| 38 | ModuleCat.restrictScalars e.toRingHom ⋙ tensorLeft ((ModuleCat.restrictScalars e.toRingHom).obj M) ≅ |
| 39 | tensorLeft M ⋙ ModuleCat.restrictScalars e.toRingHom := |
| 40 | NatIso.ofComponents (fun N => (tensorEquiv e M N).toModuleIso) (by |
| 41 | intro N N' f |
| 42 | apply ModuleCat.hom_ext |
| 43 | apply TensorProduct.ext' |
| 44 | intro m n |
| 45 | rfl) |
| 46 | |
| 47 | def torIso (M N : ModuleCat.{u} S) (n : ℕ) : |
| 48 | ((Tor (ModuleCat R) n).obj ((ModuleCat.restrictScalars e.toRingHom).obj M)).obj |
| 49 | ((ModuleCat.restrictScalars e.toRingHom).obj N) ≅ |
| 50 | (ModuleCat.restrictScalars e.toRingHom).obj (((Tor (ModuleCat S) n).obj M).obj N) := |
| 51 | DerivedBaseChange.leftDerivedIso (tensorLeft M) |
| 52 | (tensorLeft ((ModuleCat.restrictScalars e.toRingHom).obj M)) |
| 53 | (ModuleCat.restrictScalars e.toRingHom) (ModuleCat.restrictScalars e.toRingHom) |
| 54 | (tensorIso e M) N n |
| 55 | |
| 56 | theorem length (M N : ModuleCat.{u} S) (n : ℕ) : |
| 57 | Module.length R (((Tor (ModuleCat R) n).obj ((ModuleCat.restrictScalars e.toRingHom).obj M)).obj |
| 58 | ((ModuleCat.restrictScalars e.toRingHom).obj N)) = |
| 59 | Module.length S (((Tor (ModuleCat S) n).obj M).obj N) := by |
| 60 | rw [(torIso e M N n).toLinearEquiv.length_eq] |
| 61 | let T := ((Tor (ModuleCat S) n).obj M).obj N |
| 62 | let : Algebra R S := e.toRingHom.toAlgebra |
| 63 | let : Module R T := Module.compHom T e.toRingHom |
| 64 | let : IsScalarTower R S T := IsScalarTower.of_compHom R S T |
| 65 | change Module.length R T = Module.length S T |
| 66 | exact Module.length_eq_of_surjective e.surjective |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.RingEquivTor |