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.Pi |
| 2 | import Mathlib.LinearAlgebra.Pi |
| 3 | |
| 4 | /-! # Sequential Module Difference -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SequentialModuleDifference |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: the difference map for a surjective inverse sequence of modules |
| 12 | -/ |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable (R : Type u) [Ring R] (M : ℕ → Type v) |
| 17 | [∀ n, AddCommGroup (M n)] [∀ n, Module R (M n)] |
| 18 | (t : ∀ n, M (n + 1) →ₗ[R] M n) |
| 19 | |
| 20 | def difference : (∀ n, M n) →ₗ[R] (∀ n, M n) where |
| 21 | toFun x n := x n - t n (x (n + 1)) |
| 22 | map_add' x y := by |
| 23 | funext n |
| 24 | change (x n + y n) - t n (x (n + 1) + y (n + 1)) = _ |
| 25 | rw [map_add] |
| 26 | exact add_sub_add_comm _ _ _ _ |
| 27 | map_smul' r x := by |
| 28 | funext n |
| 29 | change r • x n - t n (r • x (n + 1)) = r • (x n - t n (x (n + 1))) |
| 30 | rw [map_smul, smul_sub] |
| 31 | |
| 32 | theorem difference_eq_zero_iff (x : ∀ n, M n) : |
| 33 | difference R M t x = 0 ↔ ∀ n, t n (x (n + 1)) = x n := by |
| 34 | constructor |
| 35 | · intro h n |
| 36 | exact (sub_eq_zero.mp (congrFun h n)).symm |
| 37 | · intro h |
| 38 | funext n |
| 39 | exact sub_eq_zero.mpr (h n).symm |
| 40 | |
| 41 | variable (ht : ∀ n, Function.Surjective (t n)) |
| 42 | |
| 43 | def preimage (y : ∀ n, M n) : ∀ n, M n |
| 44 | | 0 => 0 |
| 45 | | n + 1 => (ht n (preimage y n - y n)).choose |
| 46 | |
| 47 | theorem difference_preimage (y : ∀ n, M n) : difference R M t (SequentialModuleDifference.preimage R M t ht y) = y := by |
| 48 | funext n |
| 49 | change SequentialModuleDifference.preimage R M t ht y n - t n ((ht n (SequentialModuleDifference.preimage R M t ht y n - y n)).choose) = y n |
| 50 | rw [(ht n (SequentialModuleDifference.preimage R M t ht y n - y n)).choose_spec] |
| 51 | exact sub_sub_cancel _ _ |
| 52 | |
| 53 | include ht in |
| 54 | theorem surjective : Function.Surjective (difference R M t) := |
| 55 | fun y => ⟨SequentialModuleDifference.preimage R M t ht y, difference_preimage R M t ht y⟩ |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SequentialModuleDifference |