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.Isomorphisms |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | |
| 4 | /-! # Surjective Scalar Sequence -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SurjectiveScalarSequence |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A quotient with the kernel of scalar multiplication identifies with its image. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u v w z |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | {M : Type v} [AddCommGroup M] [Module R M] |
| 18 | {N : Type w} [AddCommGroup N] [Module R N] |
| 19 | (q : M →ₗ[R] N) (hq : Function.Surjective q) (r : R) |
| 20 | (hk : ∀ x : M, q x = 0 ↔ r • x = 0) |
| 21 | |
| 22 | def inclusion : N →ₗ[R] M := |
| 23 | ((LinearMap.ker q).liftQ (DistribSMul.toLinearMap R M r) |
| 24 | (fun x hx => (hk x).mp hx)).comp (q.quotKerEquivOfSurjective hq).symm.toLinearMap |
| 25 | |
| 26 | theorem inclusion_apply (x : M) : inclusion q hq r hk (q x) = r • x := by |
| 27 | change (LinearMap.ker q).liftQ (DistribSMul.toLinearMap R M r) |
| 28 | (fun y hy => (hk y).mp hy) ((q.quotKerEquivOfSurjective hq).symm (q x)) = _ |
| 29 | rw [LinearMap.quotKerEquivOfSurjective_symm_apply] |
| 30 | rfl |
| 31 | |
| 32 | theorem injective : Function.Injective (inclusion q hq r hk) := by |
| 33 | apply LinearMap.ker_eq_bot.mp |
| 34 | apply le_antisymm ?_ bot_le |
| 35 | intro y hy |
| 36 | obtain ⟨x, rfl⟩ := hq y |
| 37 | change q x = 0 |
| 38 | exact (hk x).mpr ((inclusion_apply q hq r hk x).symm.trans hy) |
| 39 | |
| 40 | variable {P : Type z} [AddCommGroup P] [Module R P] (g : M →ₗ[R] P) |
| 41 | (hg : ∀ x : M, g x = 0 ↔ ∃ y : M, r • y = x) |
| 42 | |
| 43 | include hg in |
| 44 | theorem exact : Function.Exact (inclusion q hq r hk) g := by |
| 45 | intro x |
| 46 | constructor |
| 47 | · intro hx |
| 48 | obtain ⟨y, hy⟩ := (hg x).mp hx |
| 49 | exact ⟨q y, (inclusion_apply q hq r hk y).trans hy⟩ |
| 50 | · rintro ⟨y, rfl⟩ |
| 51 | obtain ⟨z, rfl⟩ := hq y |
| 52 | exact (hg _).mpr ⟨z, (inclusion_apply q hq r hk z).symm⟩ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SurjectiveScalarSequence |