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.RingTheory.AdicCompletion.Completeness |
| 2 | import Mathlib.RingTheory.AdicCompletion.Functoriality |
| 3 | |
| 4 | /-! # Completion Linear Density -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.CompletionLinearDensity |
| 7 | |
| 8 | /-! # Linear maps out of completions are determined by the original module -/ |
| 9 | |
| 10 | variable {R M N : Type*} [CommRing R] [AddCommGroup M] [AddCommGroup N] |
| 11 | [Module R M] [Module R N] (I : Ideal R) (hI : I.FG) [IsHausdorff I N] |
| 12 | |
| 13 | include hI in |
| 14 | theorem ext (f g : AdicCompletion I M →ₗ[R] N) |
| 15 | (h : ∀ x, f (AdicCompletion.of I M x) = g (AdicCompletion.of I M x)) : f = g := by |
| 16 | apply LinearMap.ext |
| 17 | intro x |
| 18 | apply sub_eq_zero.mp |
| 19 | apply IsHausdorff.haus' (I := I) |
| 20 | intro n |
| 21 | obtain ⟨a, ha⟩ := Submodule.mkQ_surjective (I ^ n • (⊤ : Submodule R M)) (AdicCompletion.eval I M n x) |
| 22 | have hx : x - AdicCompletion.of I M a ∈ I ^ n • (⊤ : Submodule R (AdicCompletion I M)) := by |
| 23 | rw [AdicCompletion.pow_smul_top_eq_ker_eval hI, LinearMap.mem_ker, map_sub] |
| 24 | change AdicCompletion.eval I M n x - Submodule.Quotient.mk a = 0 |
| 25 | exact sub_eq_zero.mpr ha.symm |
| 26 | have hm : Submodule.map (f - g) (I ^ n • (⊤ : Submodule R (AdicCompletion I M))) ≤ |
| 27 | I ^ n • (⊤ : Submodule R N) := by |
| 28 | rw [Submodule.map_smul''] |
| 29 | exact smul_mono_right _ le_top |
| 30 | have hh := hm (show (f - g) (x - AdicCompletion.of I M a) ∈ |
| 31 | Submodule.map (f - g) (I ^ n • (⊤ : Submodule R (AdicCompletion I M))) from ⟨_, hx, rfl⟩) |
| 32 | simp only [map_sub, LinearMap.sub_apply, h a, sub_self, sub_zero] at hh |
| 33 | simpa only [SModEq.sub_mem, sub_zero] using hh |
| 34 | |
| 35 | include hI in |
| 36 | theorem double_ext (J : Ideal R) (hJ : J.FG) [IsHausdorff J N] |
| 37 | (f g : AdicCompletion J (AdicCompletion I M) →ₗ[R] N) |
| 38 | (h : ∀ x, f (AdicCompletion.of J _ (AdicCompletion.of I M x)) = |
| 39 | g (AdicCompletion.of J _ (AdicCompletion.of I M x))) : f = g := by |
| 40 | apply CompletionLinearDensity.ext J hJ |
| 41 | have he : f.comp (AdicCompletion.of J (AdicCompletion I M)) = |
| 42 | g.comp (AdicCompletion.of J (AdicCompletion I M)) := CompletionLinearDensity.ext I hI _ _ h |
| 43 | exact LinearMap.congr_fun he |
| 44 | |
| 45 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.CompletionLinearDensity |