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.FiniteDimensional.Lemmas |
| 2 | import Mathlib.Algebra.Exact.Basic |
| 3 | |
| 4 | /-! # Exact Finrank -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ExactFinrank |
| 7 | |
| 8 | /-! Dimension additivity for an actual short exact sequence of vector spaces. -/ |
| 9 | |
| 10 | universe u v w t |
| 11 | |
| 12 | variable {K : Type u} [Field K] |
| 13 | variable {M : Type v} [AddCommGroup M] [Module K M] |
| 14 | variable {N : Type w} [AddCommGroup N] [Module K N] [Module.Finite K N] |
| 15 | variable {P : Type t} [AddCommGroup P] [Module K P] |
| 16 | |
| 17 | theorem finrank_add_of_short_exact (i : M →ₗ[K] N) (p : N →ₗ[K] P) |
| 18 | (hi : Function.Injective i) (hp : Function.Surjective p) (hex : Function.Exact i p) : |
| 19 | Module.finrank K M + Module.finrank K P = Module.finrank K N := by |
| 20 | have hker : Module.finrank K p.ker = Module.finrank K M := |
| 21 | ((LinearEquiv.ofInjective i hi).trans (LinearEquiv.ofEq _ _ hex.linearMap_ker_eq.symm)).finrank_eq.symm |
| 22 | have hrange : Module.finrank K p.range = Module.finrank K P := by |
| 23 | rw [LinearMap.range_eq_top.mpr hp, finrank_top] |
| 24 | have h := p.finrank_range_add_finrank_ker |
| 25 | rw [hker, hrange, Nat.add_comm] at h |
| 26 | exact h |
| 27 | |
| 28 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ExactFinrank |