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.Homogeneous.DegreeCokernel |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LocusIntersections |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.QuasiCompact |
| 4 | |
| 5 | /-! # Degree Loci -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.DegreeLoci.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual locally closed schemes imposing finitely many homogeneous quotient |
| 12 | flatness and rank conditions in a polynomial family. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 15 | |
| 16 | universe u |
| 17 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.QuasiCompact.Grassmannian |
| 18 | variable {S : Scheme.{u}} (M : Over S) {n : ℕ} {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 19 | variable (g : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing Γ(M.left, ⊤) n) (N : ℕ) (hg : ∀ i, (g i).IsHomogeneous N) |
| 20 | |
| 21 | abbrev degreeQuotientAtStalk {T : Over S} (x : T ⟶ M) (t : T.left) (d : ℕ) := |
| 22 | Hilbert.Polynomial.GradedHilbert.DegreeQuotient (RelationPresentation.GradedHilbert.homogeneousGeneratorsIdeal |
| 23 | (fun i => MvPolynomial.map ((T.left.presheaf.Γgerm t).hom.comp x.left.appTop.hom) (g i)) N |
| 24 | (fun i => (hg i).map _)).toIdeal (d + N) |
| 25 | |
| 26 | def HomogeneousDegreeFlatRank (d q : ℕ) {T : Over S} (x : T ⟶ M) : Prop := |
| 27 | ∀ t : T.left, Module.Flat (T.left.presheaf.stalk t) (degreeQuotientAtStalk M g N hg x t d) ∧ |
| 28 | Module.finrank (T.left.presheaf.stalk t) (degreeQuotientAtStalk M g N hg x t d) + q = |
| 29 | Fintype.card (CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N)) |
| 30 | |
| 31 | def homogeneousDegreeFlatRankSubfunctor (d q : ℕ) : Subfunctor (yoneda.obj M) := |
| 32 | Presentations.Matrix.FlatRankLocus.Grassmannian.matrixFlatRankSubfunctor (ι := ULift.{u} (Fin q)) M (DegreeMatrix.GradedHilbert.homogeneousDegreeMatrix g N hg d) |
| 33 | |
| 34 | theorem homogeneousDegreeFlatRankSubfunctor_mem (d q : ℕ) {T : Over S} (x : T ⟶ M) : |
| 35 | x ∈ (homogeneousDegreeFlatRankSubfunctor M g N hg d q).obj (.op T) ↔ |
| 36 | HomogeneousDegreeFlatRank M g N hg d q x := by |
| 37 | have e (t : T.left) := DegreeCokernel.GradedHilbert.homogeneousSpecializedMatrixCokernelEquiv |
| 38 | ((T.left.presheaf.Γgerm t).hom.comp x.left.appTop.hom) g N hg d |
| 39 | constructor |
| 40 | · intro hx t |
| 41 | have h := hx t |
| 42 | dsimp only [Presentations.Matrix.FlatRankLocus.Grassmannian.matrixAtStalk] at h |
| 43 | have hf : Module.Flat (T.left.presheaf.stalk t) |
| 44 | ((CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N) → T.left.presheaf.stalk t) ⧸ |
| 45 | (Matrix.toLin' ((DegreeMatrix.GradedHilbert.homogeneousDegreeMatrix g N hg d).map |
| 46 | ((T.left.presheaf.Γgerm t).hom.comp x.left.appTop.hom))).range) := h.1 |
| 47 | let := hf |
| 48 | refine ⟨Module.Flat.of_linearEquiv (e t).symm, ?_⟩ |
| 49 | rw [← (e t).finrank_eq] |
| 50 | have hr := h.2 |
| 51 | simp only [Fintype.card_ulift, Fintype.card_fin] at hr |
| 52 | exact hr |
| 53 | · intro hx t |
| 54 | have h := hx t |
| 55 | let := h.1 |
| 56 | refine ⟨Module.Flat.of_linearEquiv (e t), ?_⟩ |
| 57 | change Module.finrank (T.left.presheaf.stalk t) |
| 58 | ((CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N) → T.left.presheaf.stalk t) ⧸ |
| 59 | (Matrix.toLin' ((DegreeMatrix.GradedHilbert.homogeneousDegreeMatrix g N hg d).map |
| 60 | ((T.left.presheaf.Γgerm t).hom.comp x.left.appTop.hom))).range) + |
| 61 | Fintype.card (ULift.{u} (Fin q)) = _ |
| 62 | rw [(e t).finrank_eq, Fintype.card_ulift, Fintype.card_fin] |
| 63 | exact h.2 |
| 64 | |
| 65 | theorem homogeneous_degree_flat_rank_immersion (d q : ℕ) : |
| 66 | SubfunctorRepresentations.ImmersionRepresentable (homogeneousDegreeFlatRankSubfunctor M g N hg d q) := by |
| 67 | obtain ⟨Z, j, hj, _, hqc, e, he⟩ := |
| 68 | MatrixRank.QuasiCompact.Grassmannian.matrix_flat_fixed_rank_immersion (ι := ULift.{u} (Fin q)) M (DegreeMatrix.GradedHilbert.homogeneousDegreeMatrix g N hg d) |
| 69 | exact ⟨Z, j, hj, hqc, e, he⟩ |
| 70 | |
| 71 | theorem homogeneous_finite_degree_locus (D : Finset ℕ) (q : ℕ → ℕ) : |
| 72 | SubfunctorRepresentations.ImmersionRepresentable (⨅ d ∈ D, homogeneousDegreeFlatRankSubfunctor M g N hg d (q d)) := |
| 73 | Finite.LocusIntersections.immersionRepresentable_finset_inf D _ (fun d _ => homogeneous_degree_flat_rank_immersion M g N hg d (q d)) |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Homogeneous.DegreeLoci.GradedHilbert |