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.OneSidedTor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.TorRestriction |
| 3 | |
| 4 | /-! # Derived Scalar Extension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DerivedScalarExtension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Derived scalar extension retains the coefficient-ring action. |
| 11 | Flat extension of that coefficient ring commutes with these modules. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 20 | |
| 21 | variable (R T U : Type) [CommRing R] [CommRing T] [CommRing U] |
| 22 | [Algebra R T] [Algebra T U] [Algebra R U] [IsScalarTower R T U] |
| 23 | |
| 24 | def assocIso : 𝟭 (ModuleCat R) ⋙ ProjectionFormula.Flat.Extension.baseChange R U ≅ ProjectionFormula.Flat.Extension.baseChange R T ⋙ ProjectionFormula.Flat.Extension.baseChange T U := |
| 25 | NatIso.ofComponents (fun M => |
| 26 | (TensorProduct.AlgebraTensorModule.cancelBaseChange R T U U M).symm.toModuleIso) (by |
| 27 | intro M M' f |
| 28 | apply ModuleCat.hom_ext |
| 29 | apply LinearMap.ext |
| 30 | intro x |
| 31 | induction x using TensorProduct.inductionOn with |
| 32 | | tmul u m => rfl |
| 33 | | add x y hx hy => simp only [map_add, hx, hy]) |
| 34 | |
| 35 | def derivedIso [Module.Flat T U] (M : ModuleCat R) (i : ℕ) : |
| 36 | ((ProjectionFormula.Flat.Extension.baseChange R U).leftDerived i).obj M ≅ |
| 37 | (ProjectionFormula.Flat.Extension.baseChange T U).obj (((ProjectionFormula.Flat.Extension.baseChange R T).leftDerived i).obj M) := |
| 38 | DerivedBaseChange.leftDerivedIso (ProjectionFormula.Flat.Extension.baseChange R T) (ProjectionFormula.Flat.Extension.baseChange R U) (𝟭 _) (ProjectionFormula.Flat.Extension.baseChange T U) |
| 39 | (assocIso R T U) M i |
| 40 | |
| 41 | def restrictIso : 𝟭 (ModuleCat R) ⋙ MixedTensor.tensor R T (.of T U) ≅ |
| 42 | ProjectionFormula.Flat.Extension.baseChange R U ⋙ ModuleCat.restrictScalars (algebraMap T U) := |
| 43 | NatIso.ofComponents (fun M => |
| 44 | (show U ⊗[R] M ≃ₗ[T] (ModuleCat.restrictScalars (algebraMap T U)).obj ((ProjectionFormula.Flat.Extension.baseChange R U).obj M) from |
| 45 | { toFun := fun x => x |
| 46 | invFun := fun x => x |
| 47 | left_inv := fun _ => rfl |
| 48 | right_inv := fun _ => rfl |
| 49 | map_add' := fun _ _ => rfl |
| 50 | map_smul' := fun t x => (algebraMap_smul U t (show U ⊗[R] M from x)).symm }).toModuleIso) (by |
| 51 | intro M M' f |
| 52 | apply ModuleCat.hom_ext |
| 53 | apply LinearMap.ext |
| 54 | intro x |
| 55 | induction x using TensorProduct.inductionOn with |
| 56 | | tmul u m => rfl |
| 57 | | add x y hx hy => simp only [map_add, hx, hy]) |
| 58 | |
| 59 | def restrictedDerivedIso (M : ModuleCat R) (i : ℕ) : |
| 60 | ((MixedTensor.tensor R T (.of T U)).leftDerived i).obj M ≅ |
| 61 | (ModuleCat.restrictScalars (algebraMap T U)).obj (((ProjectionFormula.Flat.Extension.baseChange R U).leftDerived i).obj M) := |
| 62 | DerivedBaseChange.leftDerivedIso (ProjectionFormula.Flat.Extension.baseChange R U) (MixedTensor.tensor R T (.of T U)) |
| 63 | (𝟭 _) (ModuleCat.restrictScalars (algebraMap T U)) (restrictIso R T U) M i |
| 64 | |
| 65 | def torIso [Module.Flat R T] (M : ModuleCat R) (i : ℕ) : |
| 66 | (((Tor (ModuleCat T) i).obj ((ProjectionFormula.Flat.Extension.baseChange R T).obj M)).obj (.of T U)) ≅ |
| 67 | (ModuleCat.restrictScalars (algebraMap T U)).obj (((ProjectionFormula.Flat.Extension.baseChange R U).leftDerived i).obj M) := |
| 68 | ProjectionFormula.Tor.Symmetry.iso T _ (.of T U) i ≪≫ |
| 69 | OneSidedTor.derivedIso R T M (.of T U) i ≪≫ restrictedDerivedIso R T U M i |
| 70 | |
| 71 | theorem quotient_length [Module.Flat R T] (h : Function.Surjective (algebraMap T U)) |
| 72 | (M : ModuleCat R) (i : ℕ) : |
| 73 | Module.length T (((Tor (ModuleCat T) i).obj ((ProjectionFormula.Flat.Extension.baseChange R T).obj M)).obj (.of T U)) = |
| 74 | Module.length U (((ProjectionFormula.Flat.Extension.baseChange R U).leftDerived i).obj M) := by |
| 75 | rw [(torIso R T U M i).toLinearEquiv.length_eq] |
| 76 | let N := ((ProjectionFormula.Flat.Extension.baseChange R U).leftDerived i).obj M |
| 77 | let L := (ModuleCat.restrictScalars (algebraMap T U)).obj N |
| 78 | let : IsScalarTower T U L := IsScalarTower.of_compHom T U N |
| 79 | exact Module.length_eq_of_surjective (M := L) h |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DerivedScalarExtension |