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 |
| 2 | |
| 3 | /-! # Unique Linear Lift -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.UniqueLinearLift |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Uniqueness of a linear lift forces it to preserve the observed kernel. -/ |
| 10 | |
| 11 | theorem unique_linear_lift_kernel |
| 12 | {k X V U : Type*} [Field k] [AddCommGroup X] [Module k X] |
| 13 | [AddCommGroup V] [Module k V] [AddCommMonoid U] [Module k U] |
| 14 | (p : V →ₗ[k] U) (θ : X →ₗ[k] V) (η : X →ₗ[k] U) |
| 15 | (h : p.comp θ = η) (hu : ∀ ψ : X →ₗ[k] V, p.comp ψ = η → ψ = θ) : |
| 16 | LinearMap.ker η ≤ LinearMap.ker θ := by |
| 17 | intro x hx |
| 18 | change θ x = 0 |
| 19 | by_cases hzero : x = 0 |
| 20 | · simp only [hzero, map_zero] |
| 21 | obtain ⟨l, hl⟩ := Module.Projective.exists_dual_eq_one k hzero |
| 22 | let correction : X →ₗ[k] V := (LinearMap.toSpanSingleton k V (θ x)).comp l |
| 23 | have hc : p.comp correction = 0 := by |
| 24 | apply LinearMap.ext |
| 25 | intro y |
| 26 | change p (l y • θ x) = 0 |
| 27 | rw [map_smul] |
| 28 | have hpx : p (θ x) = 0 := (LinearMap.congr_fun h x).trans hx |
| 29 | rw [hpx, smul_zero] |
| 30 | have hnew : p.comp (θ + correction) = η := by rw [LinearMap.comp_add, h, hc, add_zero] |
| 31 | have he := LinearMap.congr_fun (hu (θ + correction) hnew) x |
| 32 | change θ x + l x • θ x = θ x at he |
| 33 | rw [hl, one_smul] at he |
| 34 | exact add_left_cancel (he.trans (add_zero (θ x)).symm) |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.UniqueLinearLift |