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.Homology.ShortComplex.ModuleCat |
| 2 | import Mathlib.Algebra.Module.Pi |
| 3 | |
| 4 | /-! # Sequential Module -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.SequentialModule.SequentialModuleDifference |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # The difference map of a surjective sequential module system |
| 12 | |
| 13 | For successive maps `t n: M (n+1) → M n`, the difference map sends a |
| 14 | sequence `x` to `x n - t n (x (n+1))`. If every transition is surjective, |
| 15 | recursive lifting solves this equation for every right-hand side. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable (R : Type u) [Ring R] (M : ℕ → Type v) |
| 23 | [∀ n, AddCommGroup (M n)] [∀ n, Module R (M n)] |
| 24 | (t : ∀ n, M (n + 1) →ₗ[R] M n) |
| 25 | |
| 26 | def shift : (∀ n, M n) →ₗ[R] (∀ n, M n) where |
| 27 | toFun x n := t n (x (n + 1)) |
| 28 | map_add' x y := funext (fun n => (t n).map_add (x (n + 1)) (y (n + 1))) |
| 29 | map_smul' r x := funext (fun n => (t n).map_smul r (x (n + 1))) |
| 30 | |
| 31 | def difference : (∀ n, M n) →ₗ[R] (∀ n, M n) := LinearMap.id - shift R M t |
| 32 | |
| 33 | theorem difference_apply (x : ∀ n, M n) (n : ℕ) : |
| 34 | difference R M t x n = x n - t n (x (n + 1)) := rfl |
| 35 | |
| 36 | variable (ht : ∀ n, Function.Surjective (t n)) |
| 37 | |
| 38 | def lift (y : ∀ n, M n) : ∀ n, M n |
| 39 | | 0 => 0 |
| 40 | | n + 1 => Classical.choose (ht n (lift y n - y n)) |
| 41 | |
| 42 | theorem transition_lift (y : ∀ n, M n) (n : ℕ) : |
| 43 | t n (SequentialModuleDifference.lift R M t ht y (n + 1)) = SequentialModuleDifference.lift R M t ht y n - y n := |
| 44 | Classical.choose_spec (ht n (SequentialModuleDifference.lift R M t ht y n - y n)) |
| 45 | |
| 46 | theorem difference_lift (y : ∀ n, M n) : difference R M t (SequentialModuleDifference.lift R M t ht y) = y := by |
| 47 | ext n |
| 48 | rw [difference_apply, transition_lift, sub_sub_cancel] |
| 49 | |
| 50 | include ht in |
| 51 | theorem surjective : Function.Surjective (difference R M t) := |
| 52 | fun y => ⟨SequentialModuleDifference.lift R M t ht y, difference_lift R M t ht y⟩ |
| 53 | |
| 54 | include ht in |
| 55 | theorem shortExact : (difference R M t).shortComplexKer.ShortExact := |
| 56 | LinearMap.shortExact_shortComplexKer (surjective R M t ht) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.SequentialModule.SequentialModuleDifference |