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.Section.ModuleResidueRank |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.UniformGraphPowerGeneration |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CanonicalGraph.FieldSectionIsomorphism |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAlgebraLocalBasis |
| 5 | |
| 6 | /-! # Graph Section Local Basis -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The fixed graph-power section module has its prescribed rank at every |
| 13 | prime and an actual basis of that size on a principal neighborhood. -/ |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | variable {S : Scheme.{u}} [IsAffine S] [IsNoetherianRing Γ(S, ⊤)] |
| 19 | variable {g N : ℕ} {δ : Fin g → ℕ} (A : PolarizationData.PolarizedAbelianWithFullLevel g δ N S) |
| 20 | |
| 21 | def PolarizationData.PolarizedAbelianWithFullLevel.uniformGraphSectionModule : ModuleCat.{u} Γ(S, ⊤) := |
| 22 | (Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor A.abelian.scheme.hom.appTop.hom).obj |
| 23 | (A.graphBundle.tensorPower (Graph.EmbeddingNumerics.graphUniformEmbeddingDegree g δ)).sheaf |
| 24 | |
| 25 | theorem PolarizationData.PolarizedAbelianWithFullLevel.uniformGraphSectionModule_rankAtStalk |
| 26 | (hg : 0 < g) (hδ : ∀ i, 0 < δ i) (hN : 3 ≤ N) (hunit : IsUnit (N : Γ(S, ⊤))) |
| 27 | (p : PrimeSpectrum Γ(S, ⊤)) : |
| 28 | Module.rankAtStalk A.uniformGraphSectionModule p = Graph.EmbeddingNumerics.graphUniformEmbeddingSectionRank g δ := by |
| 29 | obtain ⟨hf, hp⟩ := A.uniformGraphPower_sections_finite_projective hδ hN hunit |
| 30 | have : Module.Finite Γ(S, ⊤) ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor |
| 31 | A.abelian.scheme.hom.appTop.hom).obj |
| 32 | (A.graphBundle.tensorPower (Graph.EmbeddingNumerics.graphUniformEmbeddingDegree g δ)).sheaf) := hf |
| 33 | have : Module.Projective Γ(S, ⊤) ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor |
| 34 | A.abelian.scheme.hom.appTop.hom).obj |
| 35 | (A.graphBundle.tensorPower (Graph.EmbeddingNumerics.graphUniformEmbeddingDegree g δ)).sheaf) := hp |
| 36 | let x := S.isoSpec.inv p |
| 37 | have hx : S.toSpecΓ x = p := |
| 38 | congrArg (fun f : Spec Γ(S, ⊤) ⟶ Spec Γ(S, ⊤) => f p) S.isoSpec.inv_hom_id |
| 39 | calc |
| 40 | Module.rankAtStalk A.uniformGraphSectionModule p = |
| 41 | Module.rankAtStalk A.uniformGraphSectionModule (S.toSpecΓ x) := |
| 42 | congrArg (Module.rankAtStalk A.uniformGraphSectionModule) hx.symm |
| 43 | _ = FiberEulerGroundField.lineBundleFieldSectionDimension (A.abelian.scheme.hom.fiberToSpecResidueField x) |
| 44 | ((A.graphBundle.tensorPower (Graph.EmbeddingNumerics.graphUniformEmbeddingDegree g δ)).pullback |
| 45 | (A.abelian.scheme.hom.fiberι x)) := |
| 46 | Section.ModuleResidueRank.sectionModule_rankAtStalk_of_residueComparison A.abelian.scheme.hom |
| 47 | (A.graphBundle.tensorPower (Graph.EmbeddingNumerics.graphUniformEmbeddingDegree g δ)) x |
| 48 | (A.graphBundle_positivePower_fieldSectionTensorComparison_bijective hN hunit |
| 49 | (Graph.EmbeddingNumerics.graphUniformEmbeddingDegree g δ) (Graph.EmbeddingNumerics.graphUniformEmbeddingDegree_pos g δ hδ) |
| 50 | (S.fromSpecResidueField x)) |
| 51 | _ = Graph.EmbeddingNumerics.graphUniformEmbeddingSectionRank g δ := |
| 52 | A.uniformGraphPower_residueFiberSections_dimension hg hδ hN hunit x |
| 53 | |
| 54 | theorem PolarizationData.PolarizedAbelianWithFullLevel.uniformGraphSectionModule_localBasis |
| 55 | (hg : 0 < g) (hδ : ∀ i, 0 < δ i) (hN : 3 ≤ N) (hunit : IsUnit (N : Γ(S, ⊤))) |
| 56 | (p : PrimeSpectrum Γ(S, ⊤)) : |
| 57 | ∃ a : Γ(S, ⊤), a ∉ p.asIdeal ∧ Nonempty |
| 58 | (Module.Basis (Fin (Graph.EmbeddingNumerics.graphUniformEmbeddingSectionRank g δ - 1 + 1)) |
| 59 | (Localization.Away a) (LocalizedModule.Away a A.uniformGraphSectionModule)) := by |
| 60 | obtain ⟨hf, hp⟩ := A.uniformGraphPower_sections_finite_projective hδ hN hunit |
| 61 | have : Module.Finite Γ(S, ⊤) A.uniformGraphSectionModule := hf |
| 62 | have : Module.Projective Γ(S, ⊤) A.uniformGraphSectionModule := hp |
| 63 | have : Module.FinitePresentation Γ(S, ⊤) A.uniformGraphSectionModule := |
| 64 | Module.finitePresentation_of_projective Γ(S, ⊤) A.uniformGraphSectionModule |
| 65 | exact HilbertConstruction.Finite.FlatAlgebraLocalBasis.finiteFlat_exists_localModuleBasis A.uniformGraphSectionModule p |
| 66 | ((A.uniformGraphSectionModule_rankAtStalk hg hδ hN hunit p).trans |
| 67 | (Nat.sub_add_cancel (Nat.succ_le_of_lt (Graph.EmbeddingNumerics.graphUniformEmbeddingSectionRank_pos g δ hδ))).symm) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |