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.LinearAlgebra.Pi |
| 2 | |
| 3 | /-! # Inverse Limit -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.InverseLimit.ModuleInverseLimit |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # Compatible module sections and natural equivalences -/ |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | variable (R : Type u) [CommRing R] (M : ℕ → Type u) [∀ n, AddCommGroup (M n)] [∀ n, Module R (M n)] |
| 14 | (t : ∀ n m, n ≤ m → M m →ₗ[R] M n) |
| 15 | |
| 16 | def compatible : Submodule R (∀ n, M n) where |
| 17 | carrier x := ∀ n m hnm, t n m hnm (x m) = x n |
| 18 | zero_mem' n m hnm := map_zero (t n m hnm) |
| 19 | add_mem' hx hy n m hnm := by rw [Pi.add_apply, map_add, hx n m hnm, hy n m hnm]; rfl |
| 20 | smul_mem' r _ hx n m hnm := by rw [Pi.smul_apply, map_smul, hx n m hnm]; rfl |
| 21 | |
| 22 | def eval (n : ℕ) : compatible R M t →ₗ[R] M n where |
| 23 | toFun x := x.val n |
| 24 | map_add' _ _ := rfl |
| 25 | map_smul' _ _ := rfl |
| 26 | |
| 27 | theorem ext {x y : compatible R M t} (he : ∀ n, eval R M t n x = eval R M t n y) : x = y := |
| 28 | Subtype.ext (funext he) |
| 29 | |
| 30 | variable (N : ℕ → Type u) [∀ n, AddCommGroup (N n)] [∀ n, Module R (N n)] |
| 31 | (s : ∀ n m, n ≤ m → N m →ₗ[R] N n) |
| 32 | (f : ∀ n, M n →ₗ[R] N n) (hf : ∀ n m hnm a, f n (t n m hnm a) = s n m hnm (f m a)) |
| 33 | |
| 34 | def map : compatible R M t →ₗ[R] compatible R N s where |
| 35 | toFun x := ⟨fun n => f n (x.val n), by |
| 36 | intro n m hnm |
| 37 | exact (hf n m hnm (x.val m)).symm.trans (congrArg (f n) (x.property n m hnm))⟩ |
| 38 | map_add' x y := ModuleInverseLimit.ext R N s (fun n => (f n).map_add (x.val n) (y.val n)) |
| 39 | map_smul' r x := ModuleInverseLimit.ext R N s (fun n => (f n).map_smul r (x.val n)) |
| 40 | |
| 41 | variable (e : ∀ n, M n ≃ₗ[R] N n) |
| 42 | (he : ∀ n m hnm a, e n (t n m hnm a) = s n m hnm (e m a)) |
| 43 | |
| 44 | include he in |
| 45 | theorem inverse_naturality (n m : ℕ) (hnm : n ≤ m) (a : N m) : |
| 46 | (e n).symm (s n m hnm a) = t n m hnm ((e m).symm a) := by |
| 47 | apply (e n).injective |
| 48 | rw [LinearEquiv.apply_symm_apply, he, LinearEquiv.apply_symm_apply] |
| 49 | |
| 50 | def equiv : compatible R M t ≃ₗ[R] compatible R N s := |
| 51 | LinearEquiv.ofLinearMap |
| 52 | (map R M t N s (fun n => (e n).toLinearMap) he) |
| 53 | (map R N s M t (fun n => (e n).symm.toLinearMap) (inverse_naturality R M t N s e he)) |
| 54 | (by |
| 55 | apply LinearMap.ext |
| 56 | intro a |
| 57 | exact ModuleInverseLimit.ext R N s (fun n => (e n).apply_symm_apply (a.val n))) |
| 58 | (by |
| 59 | apply LinearMap.ext |
| 60 | intro a |
| 61 | exact ModuleInverseLimit.ext R M t (fun n => (e n).symm_apply_apply (a.val n))) |
| 62 | |
| 63 | theorem equiv_eval (n : ℕ) (a : compatible R M t) : |
| 64 | eval R N s n (equiv R M t N s e he a) = e n (eval R M t n a) := rfl |
| 65 | |
| 66 | theorem equiv_symm_eval (n : ℕ) (a : compatible R N s) : |
| 67 | eval R M t n ((equiv R M t N s e he).symm a) = (e n).symm (eval R N s n a) := rfl |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.InverseLimit.ModuleInverseLimit |