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.HilbertScheme.Presentations.Normalized.Quotients |
| 2 | import Mathlib.RingTheory.LocalRing.Module |
| 3 | import Mathlib.LinearAlgebra.FreeModule.Finite.Basic |
| 4 | |
| 5 | /-! # Quotient Cover -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.QuotientCover.Grassmannian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Every finite locally free quotient over a local ring is described by a |
| 13 | normalized matrix in a coordinate chart. The matrix kernel is exactly the |
| 14 | original submodule. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.Module |
| 18 | |
| 19 | universe u v w |
| 20 | |
| 21 | variable {R : Type u} [CommRing R] |
| 22 | variable {ι : Type v} {ν : Type w} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 23 | |
| 24 | def quotientBasisMatrix (N : Submodule R (ν → R)) (B : Basis ι R ((ν → R) ⧸ N)) : |
| 25 | Matrix ι ν R := LinearMap.toMatrix' (B.equivFun.toLinearMap.comp N.mkQ) |
| 26 | |
| 27 | theorem quotientBasisMatrix_normalized (N : Submodule R (ν → R)) |
| 28 | (a : ι → ν) (B : Basis ι R ((ν → R) ⧸ N)) |
| 29 | (hB : ∀ i, B i = N.mkQ (Pi.single (a i) 1)) : |
| 30 | Matrices.Grassmannian.IsNormalized a (quotientBasisMatrix N B) := by |
| 31 | ext i j |
| 32 | change LinearMap.toMatrix' (B.equivFun.toLinearMap.comp N.mkQ) i (a j) = _ |
| 33 | rw [LinearMap.toMatrix'_apply, LinearMap.comp_apply, ← hB j] |
| 34 | simp [Matrix.one_apply, eq_comm] |
| 35 | |
| 36 | omit [DecidableEq ι] in |
| 37 | theorem quotientBasisMatrix_kernel (N : Submodule R (ν → R)) |
| 38 | (B : Basis ι R ((ν → R) ⧸ N)) : (Matrix.toLin' (quotientBasisMatrix N B)).ker = N := by |
| 39 | rw [quotientBasisMatrix, Matrix.toLin'_toMatrix', LinearEquiv.ker_comp, N.ker_mkQ] |
| 40 | |
| 41 | omit [DecidableEq ι] in |
| 42 | theorem local_quotient_basis_coordinates [IsLocalRing R] |
| 43 | (N : Module.Grassmannian R (ν → R) (Fintype.card ι)) : |
| 44 | ∃ (a : ι → ν) (B : Basis ι R ((ν → R) ⧸ N.toSubmodule)), |
| 45 | Function.Injective a ∧ ∀ i, B i = N.toSubmodule.mkQ (Pi.single (a i) 1) := by |
| 46 | classical |
| 47 | have : Module.FinitePresentation R ((ν → R) ⧸ N.toSubmodule) := |
| 48 | Module.finitePresentation_of_projective R ((ν → R) ⧸ N.toSubmodule) |
| 49 | let v : ν → (ν → R) ⧸ N.toSubmodule := fun i => N.toSubmodule.mkQ ((Pi.basisFun R ν) i) |
| 50 | have hv : Submodule.span R (Set.range v) = ⊤ := by |
| 51 | change Submodule.span R (Set.range (N.toSubmodule.mkQ ∘ Pi.basisFun R ν)) = ⊤ |
| 52 | rw [Set.range_comp, ← Submodule.map_span, (Pi.basisFun R ν).span_eq, Submodule.map_top] |
| 53 | exact LinearMap.range_eq_top.mpr N.toSubmodule.mkQ_surjective |
| 54 | obtain ⟨κ, a, B, hB⟩ := Module.exists_basis_of_span_of_flat v hv |
| 55 | have ha : Function.Injective a := by |
| 56 | intro i j hij |
| 57 | apply B.injective |
| 58 | rw [hB i, hB j, hij] |
| 59 | let : Module.Free R ((ν → R) ⧸ N.toSubmodule) := Module.Free.of_basis B |
| 60 | have : Finite κ := Finite.of_injective a ha |
| 61 | let : Fintype κ := Fintype.ofFinite κ |
| 62 | have hrank : Module.finrank R ((ν → R) ⧸ N.toSubmodule) = Fintype.card ι := by |
| 63 | have h := N.rankAtStalk_eq ⟨IsLocalRing.maximalIdeal R, inferInstance⟩ |
| 64 | simpa using h |
| 65 | let e : κ ≃ ι := Fintype.equivOfCardEq ((Module.finrank_eq_card_basis B).symm.trans hrank) |
| 66 | refine ⟨a ∘ e.symm, B.reindex e, ha.comp e.symm.injective, ?_⟩ |
| 67 | intro i |
| 68 | simpa only [Basis.reindex_apply, Function.comp_apply, v, Pi.basisFun_apply] using hB (e.symm i) |
| 69 | |
| 70 | /-- The normalized charts cover all Grassmannian quotients over local rings. -/ |
| 71 | theorem normalizedGrassmannian_local_cover [IsLocalRing R] |
| 72 | (N : Module.Grassmannian R (ν → R) (Fintype.card ι)) : |
| 73 | ∃ (a : ι → ν) (Q : Matrix ι ν R) (hQ : Matrices.Grassmannian.IsNormalized a Q), |
| 74 | Function.Injective a ∧ Quotients.Grassmannian.normalizedGrassmannian a Q hQ = N := by |
| 75 | obtain ⟨a, B, ha, hB⟩ := local_quotient_basis_coordinates N |
| 76 | refine ⟨a, quotientBasisMatrix N.toSubmodule B, |
| 77 | quotientBasisMatrix_normalized N.toSubmodule a B hB, ha, ?_⟩ |
| 78 | apply Module.Grassmannian.ext |
| 79 | exact quotientBasisMatrix_kernel N.toSubmodule B |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.QuotientCover.Grassmannian |