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 Mathlib.Algebra.Module.LocalizedModule.Away |
| 2 | import Mathlib.Algebra.Group.Commute.Units |
| 3 | |
| 4 | /-! # Successive Module -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.SuccessiveModule.SuccessiveModuleLocalization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Successive principal localization of modules |
| 12 | |
| 13 | If a module is first localized at `b`, and the composite map localizes |
| 14 | at `b * s`, the second map is localization at `s`. |
| 15 | -/ |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R M N P : Type u) [CommRing R] |
| 20 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 21 | [AddCommGroup P] [Module R P] |
| 22 | (b s : R) (f : M →ₗ[R] N) (g : N →ₗ[R] P) |
| 23 | [IsLocalizedModule.Away b f] [IsLocalizedModule.Away (b * s) (g.comp f)] |
| 24 | |
| 25 | include b f in |
| 26 | theorem isLocalizedModule : IsLocalizedModule.Away s g := by |
| 27 | have hu := IsLocalizedModule.Away.isUnit_algebraMap (g.comp f) (b * s) |
| 28 | rw [map_mul] at hu |
| 29 | have hc : Commute (algebraMap R (Module.End R P) b) |
| 30 | (algebraMap R (Module.End R P) s) := (Commute.all b s).map _ |
| 31 | obtain ⟨hb, hs⟩ := hc.isUnit_mul_iff.mp hu |
| 32 | apply IsLocalizedModule.Away.mk_of_addCommGroup hs |
| 33 | · intro z |
| 34 | obtain ⟨n, x, hx⟩ := IsLocalizedModule.Away.surj (g.comp f) (b * s) z |
| 35 | have hbn := IsLocalizedModule.map_units (S := Submonoid.powers b) f ⟨b ^ n, n, rfl⟩ |
| 36 | obtain ⟨y, hy⟩ := ((Module.End.isUnit_iff _).mp hbn).surjective (f x) |
| 37 | change b ^ n • y = f x at hy |
| 38 | refine ⟨n, y, ?_⟩ |
| 39 | apply ((Module.End.isUnit_iff _).mp (hb.pow n)).injective |
| 40 | rw [← map_pow] |
| 41 | change b ^ n • (s ^ n • z) = b ^ n • g y |
| 42 | rw [← g.map_smul, hy] |
| 43 | simpa only [mul_pow, mul_smul, LinearMap.comp_apply] using hx |
| 44 | · intro y hy |
| 45 | obtain ⟨k, x, hx⟩ := IsLocalizedModule.Away.surj f b y |
| 46 | have hfx : (g.comp f) x = (g.comp f) 0 := by |
| 47 | simp only [LinearMap.comp_apply, ← hx, map_smul, hy, smul_zero, map_zero] |
| 48 | obtain ⟨n, hn⟩ := IsLocalizedModule.Away.exists_of_eq (b * s) hfx |
| 49 | have he : b ^ (n + k) • (s ^ n • y) = b ^ (n + k) • (0 : N) := by |
| 50 | have hm := congrArg f hn |
| 51 | simp only [map_smul, ← hx, map_zero, smul_zero, mul_pow, mul_smul] at hm |
| 52 | rw [pow_add, mul_smul, smul_comm (b ^ k) (s ^ n)] |
| 53 | simpa only [smul_zero] using hm |
| 54 | have hbn := IsLocalizedModule.map_units (S := Submonoid.powers b) f |
| 55 | ⟨b ^ (n + k), n + k, rfl⟩ |
| 56 | exact ⟨n, ((Module.End.isUnit_iff _).mp hbn).injective he⟩ |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.SuccessiveModule.SuccessiveModuleLocalization |