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.Coordinate.GenerationBaseChange |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.GrassmannianBaseChange |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ResidueFieldDetection |
| 4 | |
| 5 | /-! # Surjectivity Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.SurjectivityBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Matrix surjectivity is preserved by coefficient extension and detected by residue-field fibers. -/ |
| 12 | |
| 13 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.GrassmannianBaseChange.Grassmannian |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {R A : Type u} [CommRing R] [CommRing A] |
| 18 | variable {ι ν : Type u} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 19 | |
| 20 | theorem coordinateSubmoduleExtension_top (φ : R →+* A) : |
| 21 | HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (ν := ν) φ ⊤ = ⊤ := by |
| 22 | apply top_unique |
| 23 | rw [← (Pi.basisFun A ν).span_eq] |
| 24 | apply Submodule.span_le.mpr |
| 25 | rintro _ ⟨i, rfl⟩ |
| 26 | have he : φ ∘ Pi.single i (1 : R) = Pi.single i (1 : A) := by |
| 27 | ext j |
| 28 | by_cases h : j = i |
| 29 | · simp [Function.comp_apply, h] |
| 30 | · simp [Function.comp_apply, h] |
| 31 | rw [Pi.basisFun_apply] |
| 32 | rw [← he] |
| 33 | exact Submodule.subset_span ⟨Pi.single i (1 : R), Submodule.mem_top, rfl⟩ |
| 34 | |
| 35 | omit [Fintype ι] [DecidableEq ι] in |
| 36 | theorem coordinateSubmoduleExtension_matrixRange (φ : R →+* A) (F : Matrix ι ν R) : |
| 37 | HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension φ (Matrix.toLin' F).range = (Matrix.toLin' (F.map φ)).range := by |
| 38 | rw [← Submodule.map_top (Matrix.toLin' F), Coordinate.GenerationBaseChange.coordinateSubmoduleExtension_linearImage, |
| 39 | coordinateSubmoduleExtension_top, Submodule.map_top] |
| 40 | |
| 41 | theorem matrix_surjective_baseChange (φ : R →+* A) (F : Matrix ι ν R) |
| 42 | (hF : Function.Surjective (Matrix.toLin' F)) : Function.Surjective (Matrix.toLin' (F.map φ)) := by |
| 43 | apply LinearMap.range_eq_top.mp |
| 44 | rw [← coordinateSubmoduleExtension_matrixRange, LinearMap.range_eq_top.mpr hF, |
| 45 | coordinateSubmoduleExtension_top] |
| 46 | |
| 47 | theorem matrix_surjective_of_residueFields (F : Matrix ι ν R) |
| 48 | (hF : ∀ p : PrimeSpectrum R, |
| 49 | Function.Surjective (Matrix.toLin' (F.map (algebraMap R p.asIdeal.ResidueField)))) : |
| 50 | Function.Surjective (Matrix.toLin' F) := by |
| 51 | let N := (Matrix.toLin' F).range |
| 52 | have hz : Subsingleton ((ι → R) ⧸ N) := |
| 53 | HilbertScheme.Presentations.ResidueFieldDetection.finiteModule_subsingleton_of_residueFields R _ (fun p => by |
| 54 | let e := HilbertScheme.Presentations.Coordinate.GrassmannianBaseChange.Grassmannian.coordinateBaseChangeQuotientEquiv (S := p.asIdeal.ResidueField) N |
| 55 | have hN : HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R p.asIdeal.ResidueField) N = ⊤ := |
| 56 | (coordinateSubmoduleExtension_matrixRange _ F).trans (LinearMap.range_eq_top.mpr (hF p)) |
| 57 | have : Subsingleton ((ι → p.asIdeal.ResidueField) ⧸ |
| 58 | HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R p.asIdeal.ResidueField) N) := by |
| 59 | rw [hN] |
| 60 | infer_instance |
| 61 | exact e.symm.subsingleton) |
| 62 | let := hz |
| 63 | intro y |
| 64 | have hy : N.mkQ y = 0 := Subsingleton.elim _ _ |
| 65 | exact (Submodule.Quotient.mk_eq_zero N).mp hy |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.SurjectivityBaseChange |