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.Basic |
| 2 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 3 | import Mathlib.RingTheory.Localization.Integer |
| 4 | import Mathlib.Algebra.Algebra.Rat |
| 5 | import Mathlib.RingTheory.Localization.NumDen |
| 6 | |
| 7 | /-! # Spectral Rational Span -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.Quaternion.Arithmetic.SpectralRationalSpan |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A finite family of characteristic-zero eigenvalues is spanned by |
| 14 | its rational additive projections. Denominators of each projected finite |
| 15 | family can be cleared simultaneously. -/ |
| 16 | |
| 17 | open scoped Classical |
| 18 | open Set _root_.Module |
| 19 | |
| 20 | variable {K ι : Type*} [Field K] [CharZero K] [Fintype ι] |
| 21 | |
| 22 | theorem finite_family_mem_span_rational_projections (w : ι → K) : |
| 23 | w ∈ Submodule.span K |
| 24 | {z : ι → K | ∃ φ : K →ₗ[ℚ] ℚ, z = fun i => (φ (w i) : K)} := by |
| 25 | let V := Submodule.span ℚ (range w) |
| 26 | let : FiniteDimensional ℚ V := FiniteDimensional.span_of_finite ℚ (finite_range w) |
| 27 | let b := Module.finBasis ℚ V |
| 28 | have hext (j : Fin (Module.finrank ℚ V)) : |
| 29 | ∃ φ : K →ₗ[ℚ] ℚ, φ.comp V.subtype = b.coord j := (b.coord j).exists_extend |
| 30 | choose φ hφ using hext |
| 31 | let z := fun j i => (φ j (w i) : K) |
| 32 | have hz (j : Fin (Module.finrank ℚ V)) : z j ∈ Submodule.span K |
| 33 | {z : ι → K | ∃ φ : K →ₗ[ℚ] ℚ, z = fun i => (φ (w i) : K)} := |
| 34 | Submodule.subset_span ⟨φ j, rfl⟩ |
| 35 | have he : (∑ j, (b j : K) • z j) = w := by |
| 36 | funext i |
| 37 | rw [Finset.sum_apply] |
| 38 | change (∑ j, (b j : K) * (φ j (w i) : K)) = w i |
| 39 | let wi : V := ⟨w i, Submodule.subset_span (mem_range_self i)⟩ |
| 40 | have hcoord (j : Fin (Module.finrank ℚ V)) : φ j (w i) = b.repr wi j := |
| 41 | LinearMap.congr_fun (hφ j) wi |
| 42 | have hb : ∑ j, (b.repr wi j : ℚ) • (b j : K) = w i := by |
| 43 | simpa only [Submodule.coe_sum, Submodule.coe_smul] using congrArg Subtype.val (b.sum_repr wi) |
| 44 | simpa only [hcoord, Rat.smul_def, mul_comm] using hb |
| 45 | have hsum : (∑ j, (b j : K) • z j) ∈ Submodule.span K |
| 46 | {z : ι → K | ∃ φ : K →ₗ[ℚ] ℚ, z = fun i => (φ (w i) : K)} := |
| 47 | Submodule.sum_mem _ (fun j _ => Submodule.smul_mem _ (b j : K) (hz j)) |
| 48 | exact he ▸ hsum |
| 49 | |
| 50 | theorem finite_rational_family_integer_multiple (a : ι → ℚ) : |
| 51 | ∃ D : ℤ, D ≠ 0 ∧ ∃ z : ι → ℤ, ∀ i, (z i : ℚ) = (D : ℚ) * a i := by |
| 52 | obtain ⟨D, hD⟩ := IsLocalization.exist_integer_multiples_of_finite (nonZeroDivisors ℤ) a |
| 53 | choose z hz using hD |
| 54 | refine ⟨D.val, mem_nonZeroDivisors_iff_ne_zero.mp D.property, z, ?_⟩ |
| 55 | intro i |
| 56 | simpa only [algebraMap_int_eq, Int.coe_castRingHom, zsmul_eq_mul] using hz i |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.Quaternion.Arithmetic.SpectralRationalSpan |