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.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteCoverCocycles |
| 2 | import Mathlib.RingTheory.Localization.BaseChange |
| 3 | |
| 4 | /-! # Principal Overlaps -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PrincipalOverlaps.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Tensor coordinates for intersections of principal affine opens. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable (R : Type u) [CommRing R] |
| 17 | |
| 18 | theorem isLocalization_principalTensor (f g : R) : |
| 19 | IsLocalization.Away (f * g) (Localization.Away f ⊗[R] Localization.Away g) := by |
| 20 | let : IsLocalization.Away (algebraMap R (Localization.Away f) g) |
| 21 | (Localization.Away f ⊗[R] Localization.Away g) := by |
| 22 | simpa only [Algebra.algebraMapSubmonoid, Submonoid.map_powers] using |
| 23 | (IsLocalization.tensor (S := Localization.Away f) |
| 24 | (Localization.Away g) (Submonoid.powers g)) |
| 25 | exact IsLocalization.Away.mul' (Localization.Away f) |
| 26 | (Localization.Away f ⊗[R] Localization.Away g) f g |
| 27 | |
| 28 | def principalOverlapAlgEquiv (f g : R) : |
| 29 | (Localization.Away f ⊗[R] Localization.Away g) ≃ₐ[R] Localization.Away (f * g) := by |
| 30 | let := isLocalization_principalTensor R f g |
| 31 | exact IsLocalization.algEquiv (Submonoid.powers (f * g)) _ _ |
| 32 | |
| 33 | def principalOverlapModuleEquiv (f g : R) (M : Type v) [AddCommGroup M] [Module R M] : |
| 34 | Localization.Away f ⊗[R] (Localization.Away g ⊗[R] M) ≃ₗ[R] |
| 35 | Localization.Away (f * g) ⊗[R] M := |
| 36 | (TensorProduct.assoc R _ _ _).symm ≪≫ₗ |
| 37 | (principalOverlapAlgEquiv R f g).toLinearEquiv.rTensor M |
| 38 | |
| 39 | def principalRestriction (f h : R) (hfh : f ∣ h) : |
| 40 | Localization.Away f →ₐ[R] Localization.Away h where |
| 41 | __ := IsLocalization.Away.lift f |
| 42 | (IsLocalization.Away.isUnit_of_dvd (S := Localization.Away h) h hfh) |
| 43 | commutes' r := IsLocalization.Away.lift_eq _ _ r |
| 44 | |
| 45 | theorem principalRestriction_algebraMap (f h : R) (hfh : f ∣ h) (r : R) : |
| 46 | principalRestriction R f h hfh (algebraMap R _ r) = algebraMap R _ r := |
| 47 | (principalRestriction R f h hfh).commutes r |
| 48 | |
| 49 | theorem principalRestriction_comp (f g h : R) (hfg : f ∣ g) (hgh : g ∣ h) : |
| 50 | (principalRestriction R g h hgh).comp (principalRestriction R f g hfg) = |
| 51 | principalRestriction R f h (hfg.trans hgh) := by |
| 52 | apply IsLocalization.algHom_ext (Submonoid.powers f) |
| 53 | exact Subsingleton.elim _ _ |
| 54 | |
| 55 | theorem principalRestriction_comp_apply (f g h : R) (hfg : f ∣ g) (hgh : g ∣ h) |
| 56 | (a : Localization.Away f) : |
| 57 | principalRestriction R g h hgh (principalRestriction R f g hfg a) = |
| 58 | principalRestriction R f h (hfg.trans hgh) a := |
| 59 | AlgHom.congr_fun (principalRestriction_comp R f g h hfg hgh) a |
| 60 | |
| 61 | theorem principalOverlapAlgEquiv_includeLeft (f g : R) : |
| 62 | (principalOverlapAlgEquiv R f g).toAlgHom.comp Algebra.TensorProduct.includeLeft = |
| 63 | principalRestriction R f (f * g) (dvd_mul_right f g) := by |
| 64 | apply IsLocalization.algHom_ext (Submonoid.powers f) |
| 65 | exact Subsingleton.elim _ _ |
| 66 | |
| 67 | theorem principalOverlapAlgEquiv_includeRight (f g : R) : |
| 68 | (principalOverlapAlgEquiv R f g).toAlgHom.comp Algebra.TensorProduct.includeRight = |
| 69 | principalRestriction R g (f * g) (dvd_mul_left g f) := by |
| 70 | apply IsLocalization.algHom_ext (Submonoid.powers g) |
| 71 | exact Subsingleton.elim _ _ |
| 72 | |
| 73 | theorem principalOverlapAlgEquiv_tmul (f g : R) (a : Localization.Away f) |
| 74 | (b : Localization.Away g) : |
| 75 | principalOverlapAlgEquiv R f g (a ⊗ₜ[R] b) = |
| 76 | principalRestriction R f (f * g) (dvd_mul_right f g) a * |
| 77 | principalRestriction R g (f * g) (dvd_mul_left g f) b := by |
| 78 | have ha := AlgHom.congr_fun (principalOverlapAlgEquiv_includeLeft R f g) a |
| 79 | have hb := AlgHom.congr_fun (principalOverlapAlgEquiv_includeRight R f g) b |
| 80 | change principalOverlapAlgEquiv R f g (a ⊗ₜ[R] 1) = _ at ha |
| 81 | change principalOverlapAlgEquiv R f g (1 ⊗ₜ[R] b) = _ at hb |
| 82 | rw [← ha, ← hb, ← map_mul] |
| 83 | simp |
| 84 | |
| 85 | variable (M : Type v) [AddCommGroup M] [Module R M] |
| 86 | |
| 87 | def principalRestrictionModule (f h : R) (hfh : f ∣ h) : |
| 88 | Localization.Away f ⊗[R] M →ₗ[R] Localization.Away h ⊗[R] M := |
| 89 | (principalRestriction R f h hfh).toLinearMap.rTensor M |
| 90 | |
| 91 | theorem principalOverlapModuleEquiv_tmul (f g : R) (a : Localization.Away f) |
| 92 | (b : Localization.Away g) (m : M) : |
| 93 | principalOverlapModuleEquiv R f g M (a ⊗ₜ[R] (b ⊗ₜ[R] m)) = |
| 94 | (principalRestriction R f (f * g) (dvd_mul_right f g) a * |
| 95 | principalRestriction R g (f * g) (dvd_mul_left g f) b) ⊗ₜ[R] m := by |
| 96 | simp [principalOverlapModuleEquiv, principalOverlapAlgEquiv_tmul] |
| 97 | |
| 98 | theorem principalOverlapModuleEquiv_insert_left (f g : R) (z : Localization.Away g ⊗[R] M) : |
| 99 | principalOverlapModuleEquiv R f g M (1 ⊗ₜ[R] z) = |
| 100 | principalRestrictionModule R M g (f * g) (dvd_mul_left g f) z := by |
| 101 | induction z using TensorProduct.inductionOn with |
| 102 | | tmul b m => simp [principalOverlapModuleEquiv_tmul, principalRestrictionModule] |
| 103 | | add x y hx hy => simp only [TensorProduct.tmul_add, map_add, hx, hy] |
| 104 | |
| 105 | theorem principalOverlapModuleEquiv_insert_right (f g : R) (z : Localization.Away f ⊗[R] M) : |
| 106 | principalOverlapModuleEquiv R f g M ((TensorProduct.mk R (Localization.Away g) M 1).lTensor |
| 107 | (Localization.Away f) z) = |
| 108 | principalRestrictionModule R M f (f * g) (dvd_mul_right f g) z := by |
| 109 | induction z using TensorProduct.inductionOn with |
| 110 | | tmul a m => simp [principalOverlapModuleEquiv_tmul, principalRestrictionModule] |
| 111 | | add x y hx hy => simp [hx, hy] |
| 112 | |
| 113 | def principalTripleModuleEquiv (f g h : R) : |
| 114 | Localization.Away f ⊗[R] (Localization.Away g ⊗[R] (Localization.Away h ⊗[R] M)) ≃ₗ[R] |
| 115 | Localization.Away (f * (g * h)) ⊗[R] M := |
| 116 | (principalOverlapModuleEquiv R g h M).lTensor (Localization.Away f) ≪≫ₗ |
| 117 | principalOverlapModuleEquiv R f (g * h) M |
| 118 | |
| 119 | theorem principalTripleModuleEquiv_tmul (f g h : R) (a : Localization.Away f) |
| 120 | (b : Localization.Away g) (c : Localization.Away h) (m : M) : |
| 121 | principalTripleModuleEquiv R M f g h (a ⊗ₜ[R] (b ⊗ₜ[R] (c ⊗ₜ[R] m))) = |
| 122 | (principalRestriction R f (f * (g * h)) (dvd_mul_right _ _) a * |
| 123 | (principalRestriction R g (f * (g * h)) |
| 124 | ((dvd_mul_right g h).trans (dvd_mul_left (g * h) f)) b * |
| 125 | principalRestriction R h (f * (g * h)) |
| 126 | ((dvd_mul_left h g).trans (dvd_mul_left (g * h) f)) c)) ⊗ₜ[R] m := by |
| 127 | simp [principalTripleModuleEquiv, principalOverlapModuleEquiv_tmul, |
| 128 | principalRestriction_comp_apply] |
| 129 | |
| 130 | theorem principalTripleModuleEquiv_insert_first (f g h : R) |
| 131 | (z : Localization.Away g ⊗[R] (Localization.Away h ⊗[R] M)) : |
| 132 | principalTripleModuleEquiv R M f g h (1 ⊗ₜ[R] z) = |
| 133 | principalRestrictionModule R M (g * h) (f * (g * h)) (dvd_mul_left _ _) |
| 134 | (principalOverlapModuleEquiv R g h M z) := by |
| 135 | simp [principalTripleModuleEquiv, principalOverlapModuleEquiv_insert_left] |
| 136 | |
| 137 | theorem principalTripleModuleEquiv_insert_middle (f g h : R) |
| 138 | (z : Localization.Away f ⊗[R] (Localization.Away h ⊗[R] M)) : |
| 139 | principalTripleModuleEquiv R M f g h |
| 140 | ((TensorProduct.mk R (Localization.Away g) (Localization.Away h ⊗[R] M) 1).lTensor |
| 141 | (Localization.Away f) z) = |
| 142 | principalRestrictionModule R M (f * h) (f * (g * h)) |
| 143 | (by use g; ring) |
| 144 | (principalOverlapModuleEquiv R f h M z) := by |
| 145 | induction z using TensorProduct.inductionOn with |
| 146 | | tmul a z => |
| 147 | induction z using TensorProduct.inductionOn with |
| 148 | | tmul c m => |
| 149 | simp [principalTripleModuleEquiv_tmul, principalOverlapModuleEquiv_tmul, |
| 150 | principalRestrictionModule, principalRestriction_comp_apply] |
| 151 | | add x y hx hy => simp only [TensorProduct.tmul_add, map_add, hx, hy] |
| 152 | | add x y hx hy => simp [hx, hy] |
| 153 | |
| 154 | theorem principalTripleModuleEquiv_insert_last (f g h : R) |
| 155 | (z : Localization.Away f ⊗[R] (Localization.Away g ⊗[R] M)) : |
| 156 | principalTripleModuleEquiv R M f g h |
| 157 | (((TensorProduct.mk R (Localization.Away h) M 1).lTensor (Localization.Away g)).lTensor |
| 158 | (Localization.Away f) z) = |
| 159 | principalRestrictionModule R M (f * g) (f * (g * h)) |
| 160 | (by use h; ring) |
| 161 | (principalOverlapModuleEquiv R f g M z) := by |
| 162 | induction z using TensorProduct.inductionOn with |
| 163 | | tmul a z => |
| 164 | induction z using TensorProduct.inductionOn with |
| 165 | | tmul b m => |
| 166 | simp [principalTripleModuleEquiv_tmul, principalOverlapModuleEquiv_tmul, |
| 167 | principalRestrictionModule, principalRestriction_comp_apply] |
| 168 | | add x y hx hy => simp only [TensorProduct.tmul_add, map_add, hx, hy] |
| 169 | | add x y hx hy => simp [hx, hy] |
| 170 | |
| 171 | end |
| 172 | |
| 173 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PrincipalOverlaps.Construction |