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.Category.ModuleCat.Localization |
| 2 | |
| 3 | /-! # Localized Kernels -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.LocalizedKernels |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | variable {R : Type u} [CommRing R] {M N M' N' : ModuleCat.{u} R} |
| 12 | (f : M →ₗ[R] N) (f' : M' →ₗ[R] N') (lM : M →ₗ[R] M') (lN : N →ₗ[R] N') |
| 13 | (h : ∀ x, f' (lM x) = lN (f x)) |
| 14 | |
| 15 | def map : LinearMap.ker f →ₗ[R] LinearMap.ker f' where |
| 16 | toFun x := ⟨lM x, by rw [LinearMap.mem_ker, h, x.2, map_zero]⟩ |
| 17 | map_add' x y := Subtype.ext (lM.map_add x y) |
| 18 | map_smul' r x := Subtype.ext (lM.map_smul r x) |
| 19 | |
| 20 | theorem isLocalized (S : Submonoid R) [IsLocalizedModule S lM] [IsLocalizedModule S lN] : |
| 21 | IsLocalizedModule S (map f f' lM lN h) where |
| 22 | map_units s := by |
| 23 | rw [Module.End.isUnit_iff] |
| 24 | constructor |
| 25 | · intro x y hxy |
| 26 | apply Subtype.ext |
| 27 | exact IsLocalizedModule.smul_injective lM s (congrArg Subtype.val hxy) |
| 28 | · intro y |
| 29 | obtain ⟨x, hx⟩ := ((Module.End.isUnit_iff _).mp (IsLocalizedModule.map_units lM s)).surjective y.1 |
| 30 | change s • x = y.1 at hx |
| 31 | have hxker : f' x = 0 := by |
| 32 | apply IsLocalizedModule.smul_injective lN s |
| 33 | change s • f' x = s • (0 : N') |
| 34 | rw [smul_zero, ← f'.map_smul_of_tower, hx] |
| 35 | exact y.2 |
| 36 | exact ⟨⟨x, hxker⟩, Subtype.ext hx⟩ |
| 37 | surj y := by |
| 38 | obtain ⟨⟨x, s⟩, hx⟩ := IsLocalizedModule.surj S lM y.1 |
| 39 | have hz : lN (f x) = 0 := by |
| 40 | rw [← h, ← hx, f'.map_smul_of_tower, y.2, smul_zero] |
| 41 | obtain ⟨t, ht⟩ := (IsLocalizedModule.eq_zero_iff S lN).mp hz |
| 42 | have hxker : f (t • x) = 0 := by rw [f.map_smul_of_tower]; exact ht |
| 43 | refine ⟨(⟨t • x, hxker⟩, t * s), Subtype.ext ?_⟩ |
| 44 | change (t * s) • y.1 = lM (t • x) |
| 45 | rw [mul_smul, hx, lM.map_smul_of_tower] |
| 46 | exists_of_eq hxy := by |
| 47 | have heq : lM _ = lM _ := congrArg Subtype.val hxy |
| 48 | obtain ⟨s, hs⟩ := (IsLocalizedModule.eq_iff_exists S lM).mp heq |
| 49 | exact ⟨s, Subtype.ext hs⟩ |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Independent.LocalizedKernels |