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.Picard.PoincareBundle.ModuleBaseChangeFunctor |
| 2 | import Mathlib.CategoryTheory.Adjunction.Mates |
| 3 | |
| 4 | /-! # Module Base Change Mate -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleBaseChangeMate |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # The canonical affine base-change mate for PoincareBundle |
| 12 | |
| 13 | The tensor base-change isomorphism is identified with the actual mate |
| 14 | of the commutative square of restriction-of-scalars functors. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Functor TensorProduct |
| 18 | open scoped TensorProduct ChangeOfRings |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | /-- Component formula for the inverse mates correspondence. -/ |
| 23 | theorem inverseMate_app {C D E F : Type*} [Category* C] [Category* D] |
| 24 | [Category* E] [Category* F] |
| 25 | {L₁ : C ⥤ D} {R₁ : D ⥤ C} {L₂ : E ⥤ F} {R₂ : F ⥤ E} |
| 26 | {G : C ⥤ E} {H : D ⥤ F} |
| 27 | (adj₁ : L₁ ⊣ R₁) (adj₂ : L₂ ⊣ R₂) (γ : TwoSquare R₁ H G R₂) (M : C) : |
| 28 | ((mateEquiv adj₁ adj₂).symm γ).app M = |
| 29 | L₂.map (G.map (adj₁.unit.app M)) ≫ L₂.map (γ.app (L₁.obj M)) ≫ |
| 30 | adj₂.counit.app (H.obj (L₁.obj M)) := by |
| 31 | dsimp [mateEquiv] |
| 32 | simp |
| 33 | |
| 34 | variable (R S T : Type u) [CommRing R] [CommRing S] [CommRing T] |
| 35 | [Algebra R S] [Algebra R T] |
| 36 | |
| 37 | /-- The map from the second algebra to the tensor ring. -/ |
| 38 | abbrev rightMap : T →+* S ⊗[R] T := |
| 39 | (Algebra.TensorProduct.includeRight : T →ₐ[R] S ⊗[R] T).toRingHom |
| 40 | |
| 41 | /-- The two maps from the base ring to the tensor ring agree. -/ |
| 42 | theorem square_commutes : |
| 43 | (algebraMap S (S ⊗[R] T)).comp (algebraMap R S) = |
| 44 | (rightMap R S T).comp (algebraMap R T) := by |
| 45 | ext r |
| 46 | exact ((Algebra.TensorProduct.includeLeft : S →ₐ[R] S ⊗[R] T).commutes r).trans |
| 47 | ((Algebra.TensorProduct.includeRight : T →ₐ[R] S ⊗[R] T).commutes r).symm |
| 48 | |
| 49 | /-- Restricting through either side of the tensor-ring square agrees. -/ |
| 50 | def restrictionSquareIso : |
| 51 | ModuleCat.restrictScalars (algebraMap S (S ⊗[R] T)) ⋙ |
| 52 | ModuleCat.restrictScalars (algebraMap R S) ≅ |
| 53 | ModuleCat.restrictScalars (rightMap R S T) ⋙ ModuleCat.restrictScalars (algebraMap R T) := |
| 54 | (ModuleCat.restrictScalarsComp (algebraMap R S) (algebraMap S (S ⊗[R] T))).symm ≪≫ |
| 55 | ModuleCat.restrictScalarsComp' (algebraMap R T) (rightMap R S T) |
| 56 | ((algebraMap S (S ⊗[R] T)).comp (algebraMap R S)) (square_commutes R S T) |
| 57 | |
| 58 | /-- The restriction-square comparison acts identically on the original module. -/ |
| 59 | theorem restrictionSquareIso_hom_apply (M : ModuleCat.{u} (S ⊗[R] T)) (m : M) : |
| 60 | (restrictionSquareIso R S T).hom.app M m = m := rfl |
| 61 | |
| 62 | /-- The canonical adjunction base-change map. -/ |
| 63 | def baseChangeMap : ModuleBaseChangeFunctor.sourceFunctor R S T ⟶ |
| 64 | ModuleBaseChangeFunctor.targetFunctor R S T := |
| 65 | ((mateEquiv (ModuleCat.extendRestrictScalarsAdj (algebraMap S (S ⊗[R] T))) |
| 66 | (ModuleCat.extendRestrictScalarsAdj (algebraMap R T))).symm |
| 67 | (TwoSquare.mk _ _ _ _ (restrictionSquareIso R S T).hom)).natTrans |
| 68 | |
| 69 | /-- The mate is the composite of the actual unit, restriction comparison, and counit. -/ |
| 70 | theorem baseChangeMap_app (M : ModuleCat.{u} S) : |
| 71 | (baseChangeMap R S T).app M = |
| 72 | (ModuleCat.extendScalars (algebraMap R T)).map |
| 73 | ((ModuleCat.restrictScalars (algebraMap R S)).map |
| 74 | ((ModuleCat.extendRestrictScalarsAdj (algebraMap S (S ⊗[R] T))).unit.app M)) ≫ |
| 75 | (ModuleCat.extendScalars (algebraMap R T)).map |
| 76 | ((restrictionSquareIso R S T).hom.app |
| 77 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).obj M)) ≫ |
| 78 | (ModuleCat.extendRestrictScalarsAdj (algebraMap R T)).counit.app |
| 79 | ((ModuleCat.restrictScalars (rightMap R S T)).obj |
| 80 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).obj M)) := by |
| 81 | exact inverseMate_app |
| 82 | (ModuleCat.extendRestrictScalarsAdj (algebraMap S (S ⊗[R] T))) |
| 83 | (ModuleCat.extendRestrictScalarsAdj (algebraMap R T)) |
| 84 | (TwoSquare.mk _ _ _ _ (restrictionSquareIso R S T).hom) M |
| 85 | |
| 86 | /-- The extension unit, viewed through the commutative restriction square. -/ |
| 87 | def liftedUnit (M : ModuleCat.{u} S) : |
| 88 | (ModuleCat.restrictScalars (algebraMap R S)).obj M ⟶ |
| 89 | (ModuleCat.restrictScalars (algebraMap R T)).obj |
| 90 | ((ModuleCat.restrictScalars (rightMap R S T)).obj |
| 91 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).obj M)) := |
| 92 | (ModuleCat.restrictScalars (algebraMap R S)).map |
| 93 | ((ModuleCat.extendRestrictScalarsAdj (algebraMap S (S ⊗[R] T))).unit.app M) ≫ |
| 94 | (restrictionSquareIso R S T).hom.app |
| 95 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).obj M) |
| 96 | |
| 97 | /-- Its underlying formula is the unit pure tensor. -/ |
| 98 | theorem liftedUnit_apply (M : ModuleCat.{u} S) |
| 99 | (m : (ModuleCat.restrictScalars (algebraMap R S)).obj M) : |
| 100 | liftedUnit R S T M m = |
| 101 | (1 : S ⊗[R] T) ⊗ₜ[S,algebraMap S (S ⊗[R] T)] (show M from m) := rfl |
| 102 | |
| 103 | /-- The canonical mate is the adjoint transpose of the lifted unit. -/ |
| 104 | theorem baseChangeMap_app_liftedUnit (M : ModuleCat.{u} S) : |
| 105 | (baseChangeMap R S T).app M = |
| 106 | (ModuleCat.extendScalars (algebraMap R T)).map (liftedUnit R S T M) ≫ |
| 107 | (ModuleCat.extendRestrictScalarsAdj (algebraMap R T)).counit.app |
| 108 | ((ModuleCat.restrictScalars (rightMap R S T)).obj |
| 109 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).obj M)) := by |
| 110 | let a := (ModuleCat.restrictScalars (algebraMap R S)).map |
| 111 | ((ModuleCat.extendRestrictScalarsAdj (algebraMap S (S ⊗[R] T))).unit.app M) |
| 112 | let b := (restrictionSquareIso R S T).hom.app |
| 113 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).obj M) |
| 114 | let c := (ModuleCat.extendRestrictScalarsAdj (algebraMap R T)).counit.app |
| 115 | ((ModuleCat.restrictScalars (rightMap R S T)).obj |
| 116 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).obj M)) |
| 117 | let L := ModuleCat.extendScalars (algebraMap R T) |
| 118 | exact (baseChangeMap_app R S T M).trans |
| 119 | ((Category.assoc (L.map a) (L.map b) c).symm.trans |
| 120 | (congrArg (fun k => k ≫ c) (L.map_comp a b).symm)) |
| 121 | |
| 122 | /-- The canonical mate sends the unit pure tensor to the unit extended tensor. -/ |
| 123 | theorem baseChangeMap_one_tmul (M : ModuleCat.{u} S) |
| 124 | (m : (ModuleCat.restrictScalars (algebraMap R S)).obj M) : |
| 125 | (baseChangeMap R S T).app M ((1 : T) ⊗ₜ[R,algebraMap R T] m) = |
| 126 | (1 : S ⊗[R] T) ⊗ₜ[S,algebraMap S (S ⊗[R] T)] (show M from m) := by |
| 127 | erw [baseChangeMap_app_liftedUnit, ModuleCat.comp_apply, ModuleCat.ExtendScalars.map_tmul] |
| 128 | erw [ModuleCat.extendRestrictScalarsAdj_counit_app_apply_one_tmul, liftedUnit_apply] |
| 129 | |
| 130 | /-- The affine base-change mate is exactly the proved tensor isomorphism. -/ |
| 131 | theorem baseChangeMap_eq : |
| 132 | baseChangeMap R S T = (ModuleBaseChangeFunctor.baseChangeIso R S T).hom := by |
| 133 | apply NatTrans.ext |
| 134 | funext M |
| 135 | apply ModuleCat.ExtendScalars.hom_ext (f := algebraMap R T) |
| 136 | intro m |
| 137 | erw [baseChangeMap_one_tmul] |
| 138 | exact (ModuleBaseChangeFunctor.objectIso_hom_tmul R S T M 1 m).symm |
| 139 | |
| 140 | /-- The canonical affine base-change map is invertible. -/ |
| 141 | theorem baseChangeMap_isIso : IsIso (baseChangeMap R S T) := by |
| 142 | rw [baseChangeMap_eq] |
| 143 | infer_instance |
| 144 | |
| 145 | end |
| 146 | |
| 147 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleBaseChangeMate |