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.Basis.Basic |
| 2 | |
| 3 | /-! # Basis Sum Functional -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.BasisSumFunctional.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual linear functional taking every basis vector to one. -/ |
| 10 | |
| 11 | variable {R M ι : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 12 | (b : Module.Basis ι R M) |
| 13 | |
| 14 | def basisSumFunctional : M →ₗ[R] R := b.constr R (fun _ => 1) |
| 15 | |
| 16 | theorem basisSumFunctional_basis (i : ι) : basisSumFunctional b (b i) = 1 := |
| 17 | b.constr_basis R (fun _ => 1) i |
| 18 | |
| 19 | theorem basisSumFunctional_surjective [Nonempty ι] : Function.Surjective (basisSumFunctional b) := by |
| 20 | intro r |
| 21 | let i : ι := Classical.choice inferInstance |
| 22 | refine ⟨r • b i, ?_⟩ |
| 23 | rw [map_smul, basisSumFunctional_basis, smul_eq_mul, mul_one] |
| 24 | |
| 25 | end |
| 26 | |
| 27 | end OAI.AlgebraicGeometry.Divisors.LineBundles.BasisSumFunctional.BundleCycles |