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.Divisors.LineBundles.EquationPeriodicComplex |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.PeriodicComplex |
| 3 | import Mathlib.Algebra.Homology.Homotopy |
| 4 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 5 | |
| 6 | /-! # Factor Kill -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.FactorKill.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! |
| 15 | # LineBundleCycles: the actual cone for composition of scalar factors |
| 16 | |
| 17 | For abc annihilating M, the cone compares the complexes (a,bc), |
| 18 | (ab,c), and (b,ac). Its two differentials are explicit two by two |
| 19 | matrices on M × M; their composites vanish by the given annihilation. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory |
| 23 | |
| 24 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 25 | |
| 26 | def factorConeFirst (a b c : R) : (M × M) →ₗ[R] M × M := |
| 27 | ((a * b) • LinearMap.fst R M M + b • LinearMap.snd R M M).prod |
| 28 | ((-(b * c)) • LinearMap.snd R M M) |
| 29 | |
| 30 | def factorConeSecond (a c : R) : (M × M) →ₗ[R] M × M := |
| 31 | (c • LinearMap.fst R M M + LinearMap.snd R M M).prod |
| 32 | ((-a) • LinearMap.snd R M M) |
| 33 | |
| 34 | theorem factorCone_comp_zero (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) : |
| 35 | (factorConeSecond a c).comp (factorConeFirst (M := M) a b c) = 0 := by |
| 36 | apply LinearMap.ext |
| 37 | intro m |
| 38 | apply Prod.ext |
| 39 | · change c • ((a * b) • m.1 + b • m.2) + (-(b * c)) • m.2 = 0 |
| 40 | calc |
| 41 | _ = (a * b * c) • m.1 := by module |
| 42 | _ = 0 := h m.1 |
| 43 | · change (-a) • ((-(b * c)) • m.2) = 0 |
| 44 | calc |
| 45 | _ = (a * b * c) • m.2 := by module |
| 46 | _ = 0 := h m.2 |
| 47 | |
| 48 | theorem factorCone_comp_zero_reverse (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) : |
| 49 | (factorConeFirst a b c).comp (factorConeSecond (M := M) a c) = 0 := by |
| 50 | apply LinearMap.ext |
| 51 | intro m |
| 52 | apply Prod.ext |
| 53 | · change (a * b) • (c • m.1 + m.2) + b • ((-a) • m.2) = 0 |
| 54 | calc |
| 55 | _ = (a * b * c) • m.1 := by module |
| 56 | _ = 0 := h m.1 |
| 57 | · change (-(b * c)) • ((-a) • m.2) = 0 |
| 58 | calc |
| 59 | _ = (a * b * c) • m.2 := by module |
| 60 | _ = 0 := h m.2 |
| 61 | |
| 62 | def periodicFactorCone (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) : |
| 63 | HomologicalComplex (ModuleCat R) PeriodicComplex.BundleCycles.periodicComplexShape := |
| 64 | PeriodicComplex.BundleCycles.endomorphismPeriodicComplex (factorConeFirst (M := M) a b c) (factorConeSecond (M := M) a c) |
| 65 | (factorCone_comp_zero a b c h) (factorCone_comp_zero_reverse a b c h) |
| 66 | |
| 67 | theorem factorCone_kill_middle (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) : |
| 68 | ∀ m : M, (b * (a * c)) • m = 0 := by |
| 69 | intro m |
| 70 | rw [show b * (a * c) = a * b * c by ring] |
| 71 | exact h m |
| 72 | |
| 73 | theorem factorCone_kill_source (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) : |
| 74 | ∀ m : M, (a * (b * c)) • m = 0 := by |
| 75 | simpa only [mul_assoc] using h |
| 76 | |
| 77 | end |
| 78 | |
| 79 | section |
| 80 | |
| 81 | /-! |
| 82 | # LineBundleCycles: explicit retraction of the factor cone |
| 83 | |
| 84 | Projection sends (y,z) to ay+z in degree zero and (u,v) to u in degree |
| 85 | one. The section sends z to (0,z) and u to (u,-cu). These are actual |
| 86 | chain maps, and their composite on the scalar complex is the identity. |
| 87 | -/ |
| 88 | |
| 89 | open _root_.CategoryTheory |
| 90 | |
| 91 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 92 | (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) |
| 93 | |
| 94 | def factorConeProjection : periodicFactorCone a b c h ⟶ |
| 95 | EquationPeriodicComplex.BundleCycles.equationPeriodicComplex b (a * c) (factorCone_kill_middle a b c h) where |
| 96 | f i := match i with |
| 97 | | false => ModuleCat.ofHom (a • LinearMap.fst R M M + LinearMap.snd R M M) |
| 98 | | true => ModuleCat.ofHom (LinearMap.fst R M M) |
| 99 | comm' := by |
| 100 | intro i j hij |
| 101 | cases i <;> cases j |
| 102 | · exact (hij rfl).elim |
| 103 | · apply ModuleCat.hom_ext |
| 104 | apply LinearMap.ext |
| 105 | intro m |
| 106 | change b • (a • m.1 + m.2) = (a * b) • m.1 + b • m.2 |
| 107 | module |
| 108 | · apply ModuleCat.hom_ext |
| 109 | apply LinearMap.ext |
| 110 | intro m |
| 111 | change (a * c) • m.1 = a • (c • m.1 + m.2) + (-a) • m.2 |
| 112 | module |
| 113 | · exact (hij rfl).elim |
| 114 | |
| 115 | def factorConeSection : EquationPeriodicComplex.BundleCycles.equationPeriodicComplex b (a * c) (factorCone_kill_middle a b c h) ⟶ |
| 116 | periodicFactorCone a b c h where |
| 117 | f i := match i with |
| 118 | | false => ModuleCat.ofHom (LinearMap.inr R M M) |
| 119 | | true => ModuleCat.ofHom ((LinearMap.id : M →ₗ[R] M).prod ((-c) • LinearMap.id)) |
| 120 | comm' := by |
| 121 | intro i j hij |
| 122 | cases i <;> cases j |
| 123 | · exact (hij rfl).elim |
| 124 | · apply ModuleCat.hom_ext |
| 125 | apply LinearMap.ext |
| 126 | intro m |
| 127 | change M at m |
| 128 | apply Prod.ext |
| 129 | · change (a * b) • (0 : M) + b • m = b • m |
| 130 | module |
| 131 | · change (-(b * c)) • m = (-c) • (b • m) |
| 132 | module |
| 133 | · apply ModuleCat.hom_ext |
| 134 | apply LinearMap.ext |
| 135 | intro m |
| 136 | change M at m |
| 137 | apply Prod.ext |
| 138 | · change c • m + (-c) • m = 0 |
| 139 | module |
| 140 | · change (-a) • ((-c) • m) = (a * c) • m |
| 141 | module |
| 142 | · exact (hij rfl).elim |
| 143 | |
| 144 | theorem factorCone_section_projection : |
| 145 | factorConeSection a b c h ≫ factorConeProjection a b c h = 𝟙 _ := by |
| 146 | apply HomologicalComplex.hom_ext |
| 147 | intro i |
| 148 | cases i |
| 149 | · apply ModuleCat.hom_ext |
| 150 | apply LinearMap.ext |
| 151 | intro m |
| 152 | change M at m |
| 153 | change a • (0 : M) + m = m |
| 154 | module |
| 155 | · rfl |
| 156 | |
| 157 | end |
| 158 | |
| 159 | /-! |
| 160 | # LineBundleCycles: contraction of the extra summand in the factor cone |
| 161 | |
| 162 | The homotopy sends (y,z) in degree zero to (0,y) in degree one. |
| 163 | It proves that the explicit section and projection are inverse on |
| 164 | homology, without assuming any homology comparison. |
| 165 | -/ |
| 166 | |
| 167 | open _root_.CategoryTheory |
| 168 | |
| 169 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 170 | (a b c : R) (h : ∀ m : M, (a * b * c) • m = 0) |
| 171 | |
| 172 | def factorConeContraction : Homotopy (𝟙 (periodicFactorCone a b c h)) |
| 173 | (factorConeProjection a b c h ≫ factorConeSection a b c h) where |
| 174 | hom i j := match i, j with |
| 175 | | false, true => ModuleCat.ofHom ((0 : (M × M) →ₗ[R] M).prod (LinearMap.fst R M M)) |
| 176 | | _, _ => 0 |
| 177 | zero := by |
| 178 | intro i j hij |
| 179 | cases i <;> cases j |
| 180 | · rfl |
| 181 | · exact (hij PeriodicComplex.BundleCycles.periodicComplexShape_true_false).elim |
| 182 | · rfl |
| 183 | · rfl |
| 184 | comm := by |
| 185 | intro i |
| 186 | cases i |
| 187 | · rw [dNext_eq _ PeriodicComplex.BundleCycles.periodicComplexShape_false_true, prevD_eq _ PeriodicComplex.BundleCycles.periodicComplexShape_true_false] |
| 188 | apply ModuleCat.hom_ext |
| 189 | apply LinearMap.ext |
| 190 | intro m |
| 191 | apply Prod.ext |
| 192 | · change m.1 = 0 + (c • (0 : M) + m.1) + 0 |
| 193 | module |
| 194 | · change m.2 = 0 + (-a) • m.1 + (a • m.1 + m.2) |
| 195 | module |
| 196 | · rw [dNext_eq _ PeriodicComplex.BundleCycles.periodicComplexShape_true_false, prevD_eq _ PeriodicComplex.BundleCycles.periodicComplexShape_false_true] |
| 197 | apply ModuleCat.hom_ext |
| 198 | apply LinearMap.ext |
| 199 | intro m |
| 200 | apply Prod.ext |
| 201 | · change m.1 = 0 + ((a * b) • (0 : M) + b • (0 : M)) + m.1 |
| 202 | module |
| 203 | · change m.2 = (c • m.1 + m.2) + (-(b * c)) • (0 : M) + (-c) • m.1 |
| 204 | module |
| 205 | |
| 206 | def factorConeHomotopyEquiv : HomotopyEquiv (periodicFactorCone a b c h) |
| 207 | (EquationPeriodicComplex.BundleCycles.equationPeriodicComplex b (a * c) (factorCone_kill_middle a b c h)) where |
| 208 | hom := factorConeProjection a b c h |
| 209 | inv := factorConeSection a b c h |
| 210 | homotopyHomInvId := (factorConeContraction a b c h).symm |
| 211 | homotopyInvHomId := Homotopy.ofEq (factorCone_section_projection a b c h) |
| 212 | |
| 213 | def factorConeHomologyIso (i : Bool) : (periodicFactorCone a b c h).homology i ≅ |
| 214 | (EquationPeriodicComplex.BundleCycles.equationPeriodicComplex b (a * c) (factorCone_kill_middle a b c h)).homology i := |
| 215 | (factorConeHomotopyEquiv a b c h).toHomologyIso i |
| 216 | |
| 217 | end |
| 218 | |
| 219 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Periodic.FactorKill.BundleCycles |