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.Dimension.Finite |
| 2 | import Mathlib.RingTheory.OrzechProperty |
| 3 | import Mathlib.RingTheory.FiniteType |
| 4 | import Mathlib.Data.Fintype.EquivFin |
| 5 | |
| 6 | /-! # Equal Rank Surjectivity -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Comparison.Betti.EqualRankSurjectivity.LinearAlgebra |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Surjectivity between finite free modules of equal rank implies injectivity over a commutative ring. -/ |
| 13 | |
| 14 | variable {R M N I J : Type} [CommRing R] [AddCommGroup M] [AddCommGroup N] |
| 15 | [Module R M] [Module R N] [Finite I] [Finite J] |
| 16 | |
| 17 | theorem injective_of_surjective_of_basis_card |
| 18 | (b : Module.Basis I R M) (c : Module.Basis J R N) |
| 19 | (hcard : Nat.card I = Nat.card J) (f : M →ₗ[R] N) (hf : Function.Surjective f) : |
| 20 | Function.Injective f := by |
| 21 | let : Fintype I := Fintype.ofFinite I |
| 22 | let : Fintype J := Fintype.ofFinite J |
| 23 | let : Module.Finite R N := Module.Finite.of_basis c |
| 24 | have h : Fintype.card I = Fintype.card J := by simpa only [Nat.card_eq_fintype_card] using hcard |
| 25 | let e := b.equiv c (Fintype.equivOfCardEq h) |
| 26 | exact OrzechProperty.injective_of_surjective_of_injective e.toLinearMap f e.injective hf |
| 27 | |
| 28 | end |
| 29 | |
| 30 | end OAI.AlgebraicGeometry.Comparison.Betti.EqualRankSurjectivity.LinearAlgebra |