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 OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.CompatibleLifting |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AdicModules |
| 3 | import Mathlib.LinearAlgebra.Isomorphisms |
| 4 | |
| 5 | /-! # Scalar Inverse Residue -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ScalarInverseResidue |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The kernel of reduction on a finite scalar-exact inverse system is precisely the scalar multiple of its limit. -/ |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable (R : Type u) [CommRing R] (r : R) (M : ℕ → Type v) |
| 16 | [∀ n, AddCommGroup (M n)] [∀ n, Module R (M n)] |
| 17 | (t : ∀ n, M (n + 1) →ₗ[R] M n) |
| 18 | |
| 19 | def compatible : Submodule R (∀ n, M n) := |
| 20 | LinearMap.ker (SequentialModuleDifference.difference R M t) |
| 21 | |
| 22 | def evaluation : compatible R M t →ₗ[R] M 0 := |
| 23 | (LinearMap.proj 0).comp (compatible R M t).subtype |
| 24 | |
| 25 | variable (j : ∀ n, M n →ₗ[R] M (n + 1)) (q : ∀ n, M n →ₗ[R] M 0) |
| 26 | (hj : ∀ n x, j n (t n x) = r • x) |
| 27 | (ht : ∀ n x, t n (j n x) = r • x) |
| 28 | (hqzero : q 0 = LinearMap.id) (hq : ∀ n x, q (n + 1) x = q n (t n x)) |
| 29 | (hexact : ∀ n x, q (n + 1) x = 0 ↔ ∃ y, j n y = x) |
| 30 | |
| 31 | include hqzero hq in |
| 32 | theorem projection (x : compatible R M t) (n : ℕ) : q n (x.val n) = x.val 0 := by |
| 33 | have hx := (SequentialModuleDifference.difference_eq_zero_iff R M t x.val).mp x.property |
| 34 | induction n with |
| 35 | | zero => rw [hqzero]; rfl |
| 36 | | succ n ih => rw [hq, hx, ih] |
| 37 | |
| 38 | include hj ht hqzero hq hexact in |
| 39 | theorem divisible [∀ n, Finite (M n)] (x : compatible R M t) (hx : evaluation R M t x = 0) : |
| 40 | ∃ y : compatible R M t, r • y = x := by |
| 41 | have hx' := (SequentialModuleDifference.difference_eq_zero_iff R M t x.val).mp x.property |
| 42 | have hn (n : ℕ) : ∃ y, j n y = x.val (n + 1) := |
| 43 | (hexact n _).mp ((projection R M t q hqzero hq x (n + 1)).trans hx) |
| 44 | obtain ⟨y, hy, hxy⟩ := IntegralComparison.Finite.CompatibleLifting.exists_lift R M (fun n => M (n + 1)) t |
| 45 | (fun n => t (n + 1)) j (fun n a => (hj n a).trans (ht (n + 1) a).symm) |
| 46 | (fun n => x.val (n + 1)) (fun n => hx' (n + 1)) hn |
| 47 | refine ⟨⟨y, (SequentialModuleDifference.difference_eq_zero_iff R M t y).mpr hy⟩, ?_⟩ |
| 48 | apply Subtype.ext |
| 49 | funext n |
| 50 | exact (ht n (y n)).symm.trans ((congrArg (t n) (hxy n)).trans (hx' n)) |
| 51 | |
| 52 | variable (hrzero : ∀ x : M 0, r • x = 0) |
| 53 | |
| 54 | include hj ht hqzero hq hexact hrzero in |
| 55 | theorem kernel [∀ n, Finite (M n)] : LinearMap.ker (evaluation R M t) = |
| 56 | (Ideal.span {r}) • (⊤ : Submodule R (compatible R M t)) := by |
| 57 | ext x |
| 58 | rw [LinearMap.mem_ker] |
| 59 | have hmem : x ∈ (Ideal.span {r}) • (⊤ : Submodule R (compatible R M t)) ↔ |
| 60 | ∃ y : compatible R M t, r • y = x := by |
| 61 | simpa only [Principal.PowerModuleSequence.submodule, pow_one] using |
| 62 | Principal.PowerModuleSequence.mem_submodule R (compatible R M t) r 1 x |
| 63 | rw [hmem] |
| 64 | constructor |
| 65 | · exact divisible R r M t j q hj ht hqzero hq hexact x |
| 66 | · rintro ⟨y, rfl⟩ |
| 67 | exact (evaluation R M t).map_smul r y |>.trans (hrzero (evaluation R M t y)) |
| 68 | |
| 69 | include hj ht hqzero hq hexact hrzero in |
| 70 | theorem finite_residue [∀ n, Finite (M n)] : |
| 71 | Finite (compatible R M t ⧸ ((Ideal.span {r}) • (⊤ : Submodule R (compatible R M t)))) := by |
| 72 | rw [← kernel R r M t j q hj ht hqzero hq hexact hrzero] |
| 73 | exact Finite.of_injective (evaluation R M t).quotKerEquivRange |
| 74 | (evaluation R M t).quotKerEquivRange.injective |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ScalarInverseResidue |