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.Nakayama |
| 2 | |
| 3 | /-! # Residue Lifting Surjectivity -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ResidueLiftingSurjectivity |
| 6 | |
| 7 | /-! A map onto an actual residue module generates the original finite module. -/ |
| 8 | |
| 9 | universe u v w z |
| 10 | |
| 11 | variable {R : Type u} [CommRing R] |
| 12 | {L : Type v} [AddCommGroup L] [Module R L] |
| 13 | {M : Type w} [AddCommGroup M] [Module R M] [Module.Finite R M] |
| 14 | {N : Type z} [AddCommGroup N] [Module R N] |
| 15 | |
| 16 | theorem surjective_of_lifts (I : Ideal R) (hI : I ≤ (⊥ : Ideal R).jacobson) |
| 17 | (f : L →ₗ[R] M) |
| 18 | (hs : ∀ x : M, ∃ y : L, f y - x ∈ I • (⊤ : Submodule R M)) : |
| 19 | Function.Surjective f := by |
| 20 | apply LinearMap.surjective_of_surjective_comp_mkQ f I hI |
| 21 | intro q |
| 22 | obtain ⟨x, rfl⟩ := (I • (⊤ : Submodule R M)).mkQ_surjective q |
| 23 | obtain ⟨y, hy⟩ := hs x |
| 24 | exact ⟨y, (Submodule.Quotient.eq _).mpr hy⟩ |
| 25 | |
| 26 | theorem surjective (I : Ideal R) (hI : I ≤ (⊥ : Ideal R).jacobson) |
| 27 | (f : L →ₗ[R] M) (g : M →ₗ[R] N) (hk : LinearMap.ker g = I • (⊤ : Submodule R M)) |
| 28 | (hs : ∀ x : N, ∃ y : L, g (f y) = x) : Function.Surjective f := by |
| 29 | apply LinearMap.surjective_of_surjective_comp_mkQ f I hI |
| 30 | intro q |
| 31 | obtain ⟨x, rfl⟩ := (I • (⊤ : Submodule R M)).mkQ_surjective q |
| 32 | obtain ⟨y, hy⟩ := hs (g x) |
| 33 | refine ⟨y, (Submodule.Quotient.eq _).mpr ?_⟩ |
| 34 | rw [← hk, LinearMap.mem_ker, map_sub] |
| 35 | exact sub_eq_zero.mpr hy |
| 36 | |
| 37 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ResidueLiftingSurjectivity |