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.AbelianScheme.IsogenyQuotient.NormFrameBasis |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeTrivializationBasis |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 4 | |
| 5 | /-! # Norm Rank Basis -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.NormRankBasis.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual finite-flat rank supplies the fixed-size bases needed |
| 12 | for the norm charts. No reducedness or characteristic assumption is used. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {X Y : Scheme.{u}} |
| 18 | |
| 19 | theorem affine_finrank_eq_basis_card [IsAffine X] [IsAffine Y] |
| 20 | (q : X ⟶ Y) [IsFinite q] [Flat q] {d : ℕ} |
| 21 | (b : letI := q.appTop.hom.toAlgebra; Module.Basis (Fin d) Γ(Y, ⊤) Γ(X, ⊤)) |
| 22 | (y : Y) : q.finrank y = d := by |
| 23 | let := q.appTop.hom.toAlgebra |
| 24 | have : Module.Free Γ(Y, ⊤) Γ(X, ⊤) := Module.Free.of_basis b |
| 25 | have : Module.Finite Γ(Y, ⊤) Γ(X, ⊤) := Module.Finite.of_basis b |
| 26 | have : Nontrivial Γ(Y, ⊤) := (Y.isoSpec.hom y).nontrivial |
| 27 | have : IsFinite (Spec.map q.appTop) := (IsFinite.SpecMap_iff _).mpr q.finite_appTop |
| 28 | have : Flat (Spec.map q.appTop) := Flat.SpecMap_iff.mpr q.flat_appTop |
| 29 | have hp : IsPullback X.isoSpec.hom q (Spec.map q.appTop) Y.isoSpec.hom := |
| 30 | IsPullback.of_horiz_isIso ⟨Scheme.isoSpec_hom_naturality q⟩ |
| 31 | calc |
| 32 | q.finrank y = (Spec.map q.appTop).finrank (Y.isoSpec.hom y) := |
| 33 | Scheme.Hom.finrank_of_isPullback _ _ _ _ hp y |
| 34 | _ = Module.rankAtStalk (R := Γ(Y, ⊤)) Γ(X, ⊤) (Y.isoSpec.hom y) := |
| 35 | Scheme.Hom.finrank_SpecMap_algebraMap Γ(Y, ⊤) Γ(X, ⊤) _ |
| 36 | _ = d := by |
| 37 | rw [Module.rankAtStalk_eq_finrank_of_free, Module.finrank_eq_card_basis b] |
| 38 | exact Fintype.card_fin d |
| 39 | |
| 40 | theorem exists_fixed_rank_basis_neighborhood (q : X ⟶ Y) |
| 41 | [IsFinite q] [Flat q] [LocallyOfFinitePresentation q] (d : ℕ) |
| 42 | (hdegree : ∀ y : Y, q.finrank y = d) (y : Y) : |
| 43 | ∃ U : Y.Opens, IsAffineOpen U ∧ y ∈ U ∧ |
| 44 | letI := (q ∣_ U).appTop.hom.toAlgebra |
| 45 | Nonempty (Module.Basis (Fin d) Γ(U.toScheme, ⊤) Γ((q ⁻¹ᵁ U).toScheme, ⊤)) := by |
| 46 | obtain ⟨U, hU, hy, n, ⟨b⟩⟩ := Quotients.FiniteDescent.SchemeTrivializationBasis.Construction.SchemeTrivialization.exists_basis_neighborhood q y |
| 47 | have : IsAffine U.toScheme := hU |
| 48 | have : IsAffine (q ⁻¹ᵁ U).toScheme := isAffine_of_isAffineHom (q ∣_ U) |
| 49 | have hn : n = d := (affine_finrank_eq_basis_card (q ∣_ U) b ⟨y, hy⟩).symm.trans |
| 50 | ((Scheme.Hom.finrank_of_isPullback _ _ _ _ (isPullback_morphismRestrict q U).flip ⟨y, hy⟩).trans |
| 51 | (hdegree y)) |
| 52 | subst n |
| 53 | exact ⟨U, hU, hy, ⟨b⟩⟩ |
| 54 | |
| 55 | theorem normFrameOpens_cover_of_finrank (q : X ⟶ Y) |
| 56 | [IsFinite q] [Flat q] [LocallyOfFinitePresentation q] (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle Y) (d : ℕ) |
| 57 | (hdegree : ∀ y : Y, q.finrank y = d) (y : Y) : |
| 58 | ∃ U : LocalNormSections.Construction.NormFrameOpen q L d, y ∈ U.openSet := by |
| 59 | obtain ⟨U, hU, hyU, ⟨b⟩⟩ := exists_fixed_rank_basis_neighborhood q d hdegree y |
| 60 | obtain ⟨V, hyV, ⟨e⟩⟩ := L.locallyTrivial y |
| 61 | obtain ⟨_, ⟨W : Y.Opens, hW, rfl⟩, hyW, hWU⟩ := |
| 62 | Y.isBasis_affineOpens.exists_subset_of_mem_open (show y ∈ U ⊓ V from ⟨hyU, hyV⟩) |
| 63 | (U ⊓ V).isOpen |
| 64 | have : IsAffine U.toScheme := hU |
| 65 | have : IsAffine W.toScheme := hW |
| 66 | obtain ⟨bW⟩ := Quotients.FiniteDescent.AffineBasis.Construction.AffineBasisTransfer.restrictLE q W U (hWU.trans inf_le_left) b |
| 67 | exact ⟨⟨W, hW, bW, (L.frameRestrict (hWU.trans inf_le_right) e).symm⟩, hyW⟩ |
| 68 | |
| 69 | theorem normFrameOpens_cover_connected (q : X ⟶ Y) |
| 70 | [IsFinite q] [Flat q] [LocallyOfFinitePresentation q] [PreconnectedSpace Y] |
| 71 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle Y) (y₀ y : Y) : |
| 72 | ∃ U : LocalNormSections.Construction.NormFrameOpen q L (q.finrank y₀), y ∈ U.openSet := |
| 73 | normFrameOpens_cover_of_finrank q L (q.finrank y₀) |
| 74 | (fun y => q.isLocallyConstant_finrank.apply_eq_of_preconnectedSpace y y₀) y |
| 75 | |
| 76 | theorem finiteFlat_surjective_rank_pos (q : X ⟶ Y) |
| 77 | [IsFinite q] [Flat q] [Surjective q] (y : Y) : 0 < q.finrank y := |
| 78 | (Scheme.Hom.one_le_finrank_iff_surjective q).mpr inferInstance y |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.NormRankBasis.Construction |