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.DisjointCoefficientSectionProduct |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.StalkExactness |
| 3 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 4 | |
| 5 | /-! # Discrete Stalk Section Count -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DiscreteStalkSectionCount |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! On a finite discrete scheme, every nonzero stalk contributes at |
| 12 | least one dimension to global sections. The proof uses actual sections |
| 13 | on singleton opens and their disjoint gluing. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | universe u |
| 16 | |
| 17 | def singletonSchemeOpen {X : Scheme.{u}} [DiscreteTopology X] (x : X) : X.Opens := |
| 18 | ⟨{x}, isOpen_discrete _⟩ |
| 19 | |
| 20 | theorem nonzero_stalk_exists_nonzero_singleton_section |
| 21 | {X : Scheme.{u}} [DiscreteTopology X] (M : X.Modules) (x : X) |
| 22 | (hx : ¬ IsZero ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor x).obj M)) : |
| 23 | ∃ s : Γ(M, singletonSchemeOpen x), s ≠ 0 := by |
| 24 | classical |
| 25 | have hnt : Nontrivial (M.presheaf.stalk x) := by |
| 26 | apply not_subsingleton_iff_nontrivial.mp |
| 27 | intro h |
| 28 | have : Subsingleton ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor x).obj M) := h |
| 29 | exact hx (ModuleCat.isZero_of_subsingleton _) |
| 30 | let := hnt |
| 31 | obtain ⟨m, hm⟩ := exists_ne (0 : M.presheaf.stalk x) |
| 32 | obtain ⟨U, hxU, s, hs⟩ := M.presheaf.exists_germ_eq m |
| 33 | have hle : singletonSchemeOpen x ≤ U := by |
| 34 | intro y hy |
| 35 | have he : y = x := hy |
| 36 | exact he.symm ▸ hxU |
| 37 | let t := M.presheaf.map (homOfLE hle).op s |
| 38 | have ht : M.presheaf.germ (singletonSchemeOpen x) x (Set.mem_singleton x) t = m := |
| 39 | (M.presheaf.germ_res_apply (homOfLE hle) x (Set.mem_singleton x) s).trans hs |
| 40 | refine ⟨t, ?_⟩ |
| 41 | intro hz |
| 42 | exact hm (ht.symm.trans (by rw [hz, map_zero])) |
| 43 | |
| 44 | theorem discrete_stalk_count_le_sectionDimension |
| 45 | {K : Type u} [Field K] {X : Scheme.{u}} [Finite X] [DiscreteTopology X] |
| 46 | (c : K →+* Γ(X, ⊤)) (M : X.Modules) |
| 47 | [Module.Finite K ((Coefficient.SectionEvaluation.coefficientSectionFunctor c ⊤).obj M)] |
| 48 | (S : Finset X) (hS : ∀ x ∈ S, ¬ IsZero ((HilbertConstruction.Module.StalkExactness.moduleStalkFunctor x).obj M)) : |
| 49 | S.card ≤ Module.finrank K ((Coefficient.SectionEvaluation.coefficientSectionFunctor c ⊤).obj M) := by |
| 50 | classical |
| 51 | let : Fintype X := Fintype.ofFinite X |
| 52 | let U : X → X.Opens := singletonSchemeOpen |
| 53 | have hcover : ∀ x : X, ∃ i, x ∈ U i := fun x => ⟨x, Set.mem_singleton x⟩ |
| 54 | have hdis : Pairwise (fun i j => Disjoint (U i) (U j)) := by |
| 55 | intro i j hij |
| 56 | apply disjoint_iff.mpr |
| 57 | apply le_antisymm |
| 58 | · intro x hx |
| 59 | exact (hij (hx.1.symm.trans hx.2)).elim |
| 60 | · exact bot_le |
| 61 | let V : X → Type u := fun x => (Coefficient.SectionEvaluation.coefficientSectionFunctor c (U x)).obj M |
| 62 | let e := DisjointCoefficientSectionProduct.disjointCoefficientSectionProductEquiv c M U hcover hdis |
| 63 | have : Module.Finite K (∀ x, V x) := Module.Finite.equiv e |
| 64 | have hfin (x : X) : Module.Finite K (V x) := |
| 65 | Module.Finite.of_surjective (LinearMap.proj x : (∀ y, V y) →ₗ[K] V x) |
| 66 | (fun v => ⟨Pi.single x v, by simp⟩) |
| 67 | have hpos (x : X) (hx : x ∈ S) : 1 ≤ Module.finrank K (V x) := by |
| 68 | apply Nat.succ_le_of_lt |
| 69 | apply Module.finrank_pos_iff_exists_ne_zero.mpr |
| 70 | exact nonzero_stalk_exists_nonzero_singleton_section M x (hS x hx) |
| 71 | calc |
| 72 | S.card = ∑ _x ∈ S, 1 := by simp |
| 73 | _ ≤ ∑ x ∈ S, Module.finrank K (V x) := Finset.sum_le_sum hpos |
| 74 | _ ≤ ∑ x : X, Module.finrank K (V x) := Finset.sum_le_sum_of_subset (Finset.subset_univ S) |
| 75 | _ = Module.finrank K ((Coefficient.SectionEvaluation.coefficientSectionFunctor c ⊤).obj M) := |
| 76 | (Module.finrank_pi_fintype K).symm.trans e.finrank_eq.symm |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DiscreteStalkSectionCount |