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.DiscreteStalkSectionCount |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.StalkSupportTransport |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CoherentSupportCohomology |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.CoherentCohomology |
| 5 | |
| 6 | /-! # Support Stalk Euler Bound -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.SupportStalkEulerBound |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Any finite set of nonzero stalks of a coherent sheaf with finite |
| 13 | support on a proper field scheme has cardinality at most its Euler |
| 14 | characteristic. This counts actual sheaf contributions and retains |
| 15 | nilpotent multiplicity. -/ |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 18 | universe u |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | theorem finiteSupport_nonzeroStalk_count_le_euler |
| 23 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] |
| 24 | (M : X.Modules) [M.IsQuasicoherent] [M.IsFiniteType] |
| 25 | (hf : ((Coherent.Annihilator.coherentAnnihilator M).support : Set X).Finite) |
| 26 | (S : Finset X) (hS : ∀ x ∈ S, ¬ IsZero ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor x).obj M)) : |
| 27 | (S.card : ℤ) ≤ CohomologyEulerCharacteristic.coefficientEulerCharacteristic p M := by |
| 28 | classical |
| 29 | let I := Coherent.Annihilator.coherentAnnihilator M |
| 30 | let j := I.subschemeι |
| 31 | let q := j ≫ p |
| 32 | let : IsFinite q := CoherentSupportCohomology.idealSubscheme_finite_of_finite_support p I hf |
| 33 | let : IsLocallyArtinian I.subscheme := IsLocallyArtinian.of_locallyQuasiFinite q |
| 34 | let : CompactSpace I.subscheme := QuasiCompact.compactSpace_of_compactSpace q |
| 35 | let : IsArtinianScheme I.subscheme := ⟨⟩ |
| 36 | obtain ⟨N, hNq, hNt, ⟨e⟩⟩ := Coherent.ClosedDescent.exists_coherent_on_annihilating_subscheme M I le_rfl |
| 37 | let := hNq |
| 38 | let := hNt |
| 39 | have hΓN : Module.Finite K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor q).obj N) := by |
| 40 | have := Proper.CoherentCohomology.proper_coherent_cohomologyFinite q N 0 |
| 41 | exact Module.Finite.equiv |
| 42 | (CoefficientCohomology.DegreeZero.ZariskiCohomology.coefficientCohomologyZeroSectionsEquiv (Coefficient.ModulePresheaf.schemeCoefficientMap q) N) |
| 43 | let := hΓN |
| 44 | have hlift (x : S) : ∃ z : I.subscheme, j z = x.val := by |
| 45 | have hx := HilbertConstruction.Module.StalkSupportTransport.nonzero_moduleStalk_mem_coherent_support M x.val (hS x.val x.property) |
| 46 | have hr : x.val ∈ Set.range j := by rw [I.range_subschemeι]; exact hx |
| 47 | exact hr |
| 48 | choose z hz using hlift |
| 49 | have hinj : Function.Injective z := by |
| 50 | intro a b hab |
| 51 | apply Subtype.ext |
| 52 | exact (hz a).symm.trans ((congrArg j hab).trans (hz b)) |
| 53 | let T : Finset I.subscheme := Finset.univ.image z |
| 54 | have hcard : T.card = S.card := by |
| 55 | dsimp only [T] |
| 56 | rw [Finset.card_image_of_injective _ hinj, Finset.card_univ, Fintype.card_coe] |
| 57 | have hT : ∀ y ∈ T, ¬ IsZero ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor y).obj N) := by |
| 58 | intro y hy hzero |
| 59 | obtain ⟨x, _, rfl⟩ := Finset.mem_image.mp hy |
| 60 | have hpush : IsZero ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor (j (z x))).obj ((pushforward j).obj N)) := |
| 61 | (HilbertConstruction.Module.StalkSupportTransport.modulePushforward_stalk_isZero_iff j j.isEmbedding.toIsInducing N (z x)).mpr hzero |
| 62 | have hM : IsZero ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor (j (z x))).obj M) := |
| 63 | ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor (j (z x))).mapIso e).isZero_iff.mp hpush |
| 64 | exact hS x.val x.property ((congrArg (fun y => IsZero ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor y).obj M)) (hz x)).mp hM) |
| 65 | have : Module.Finite K ((Coefficient.SectionEvaluation.coefficientSectionFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap q) ⊤).obj N) := hΓN |
| 66 | have hcount := DiscreteStalkSectionCount.discrete_stalk_count_le_sectionDimension (Coefficient.ModulePresheaf.schemeCoefficientMap q) N T hT |
| 67 | let eΓ : (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor q).obj N ≃ₗ[K] (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M := |
| 68 | (Coefficient.GlobalSectionsPushforward.schemeGlobalSectionsPushforwardIso j p N).symm.trans (Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsIso p e) |
| 69 | have hbound : S.card ≤ Module.finrank K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M) := by |
| 70 | rw [← hcard] |
| 71 | exact hcount.trans_eq eΓ.finrank_eq |
| 72 | rw [CoherentSupportCohomology.finiteSupport_coherent_euler_eq_sections p M hf] |
| 73 | exact_mod_cast hbound |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.SupportStalkEulerBound |