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 OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.SurjectivityBaseChange |
| 2 | import Mathlib.LinearAlgebra.Matrix.Rank |
| 3 | import Mathlib.Algebra.Module.Projective |
| 4 | |
| 5 | /-! # Fiberwise Matrix Splitting -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiberwiseMatrixSplitting |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite matrix injective on all residue fields has an actual |
| 12 | left inverse over the original coefficient ring. Thus injection |
| 13 | persists under arbitrary, including nonflat, coefficient changes. -/ |
| 14 | universe u |
| 15 | variable {ι ν : Type u} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 16 | |
| 17 | theorem field_matrix_transpose_surjective_of_injective {K : Type u} [Field K] |
| 18 | (F : Matrix ι ν K) (hF : Function.Injective (Matrix.toLin' F)) : |
| 19 | Function.Surjective (Matrix.toLin' F.transpose) := by |
| 20 | apply LinearMap.range_eq_top.mp |
| 21 | apply Submodule.eq_top_of_finrank_eq |
| 22 | change F.transpose.rank = Module.finrank K (ν → K) |
| 23 | rw [Matrix.rank_transpose] |
| 24 | exact LinearMap.finrank_range_of_inj hF |
| 25 | |
| 26 | theorem matrix_leftInverse_of_residueField_injective {R : Type u} [CommRing R] |
| 27 | (F : Matrix ι ν R) |
| 28 | (hF : ∀ p : PrimeSpectrum R, |
| 29 | Function.Injective (Matrix.toLin' (F.map (algebraMap R p.asIdeal.ResidueField)))) : |
| 30 | ∃ B : Matrix ν ι R, B * F = 1 := by |
| 31 | have hsurj : Function.Surjective (Matrix.toLin' F.transpose) := by |
| 32 | apply HilbertConstruction.Matrix.SurjectivityBaseChange.matrix_surjective_of_residueFields |
| 33 | intro p |
| 34 | exact field_matrix_transpose_surjective_of_injective _ (hF p) |
| 35 | obtain ⟨g, hg⟩ := (Matrix.toLin' F.transpose).exists_rightInverse_of_surjective |
| 36 | (LinearMap.range_eq_top.mpr hsurj) |
| 37 | have hmat : F.transpose * LinearMap.toMatrix' g = 1 := by |
| 38 | simpa only [LinearMap.toMatrix'_comp, LinearMap.toMatrix'_toLin', LinearMap.toMatrix'_id] using |
| 39 | congrArg (fun f : (ν → R) →ₗ[R] (ν → R) => LinearMap.toMatrix' f) hg |
| 40 | refine ⟨(LinearMap.toMatrix' g).transpose, ?_⟩ |
| 41 | simpa only [Matrix.transpose_mul, Matrix.transpose_transpose, Matrix.transpose_one] using |
| 42 | congrArg Matrix.transpose hmat |
| 43 | |
| 44 | theorem matrix_injective_all_baseChanges_of_residueField_injective |
| 45 | {R A : Type u} [CommRing R] [CommRing A] (φ : R →+* A) (F : Matrix ι ν R) |
| 46 | (hF : ∀ p : PrimeSpectrum R, |
| 47 | Function.Injective (Matrix.toLin' (F.map (algebraMap R p.asIdeal.ResidueField)))) : |
| 48 | Function.Injective (Matrix.toLin' (F.map φ)) := by |
| 49 | obtain ⟨B, hB⟩ := matrix_leftInverse_of_residueField_injective F hF |
| 50 | have hBA : B.map φ * F.map φ = 1 := by |
| 51 | calc |
| 52 | B.map φ * F.map φ = (B * F).map φ := Matrix.map_mul.symm |
| 53 | _ = (1 : Matrix ν ν R).map φ := congrArg (fun M : Matrix ν ν R => M.map φ) hB |
| 54 | _ = 1 := Matrix.map_one φ (map_zero φ) (map_one φ) |
| 55 | have hlin : (Matrix.toLin' (B.map φ)).comp (Matrix.toLin' (F.map φ)) = LinearMap.id := by |
| 56 | rw [← Matrix.toLin'_mul, hBA, Matrix.toLin'_one] |
| 57 | have hl : Function.LeftInverse (Matrix.toLin' (B.map φ)) (Matrix.toLin' (F.map φ)) := |
| 58 | fun x => LinearMap.congr_fun hlin x |
| 59 | exact hl.injective |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiberwiseMatrixSplitting |