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.Quotients.FiniteDescent.StalkIdealIs |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.SectionDivisionNe |
| 3 | |
| 4 | /-! # Stalk Ideal Frame -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.StalkIdealFrame.Construction.StalkIdealFrames |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nonzero principal stalk-ideal generator gives an actual local sheaf frame. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : Scheme.{u}} (I : ∀ x : X, Ideal (X.presheaf.stalk x)) |
| 17 | |
| 18 | def multiply {U V : X.Opens} (h : V ≤ U) (a : Γ(X, U)) |
| 19 | (ha : a ∈ StalkIdealIs.Construction.StalkIdealSheaf.ideal I U) : |
| 20 | Γ(X, V) →ₗ[Γ(X, V)] Γ(StalkIdealIs.Construction.StalkIdealSheaf.sheaf I, V) where |
| 21 | toFun s := ⟨X.presheaf.map (homOfLE h).op a * s, by |
| 22 | apply (StalkIdealIs.Construction.StalkIdealSheaf.mem_ideal I V _).mpr |
| 23 | intro x |
| 24 | rw [map_mul, X.presheaf.germ_res_apply] |
| 25 | exact (I x).mul_mem_right _ |
| 26 | ((StalkIdealIs.Construction.StalkIdealSheaf.mem_ideal I U a).mp ha ⟨x, h x.2⟩)⟩ |
| 27 | map_add' s t := by |
| 28 | apply Subtype.ext |
| 29 | exact mul_add (X.presheaf.map (homOfLE h).op a) s t |
| 30 | map_smul' r s := by |
| 31 | apply Subtype.ext |
| 32 | change _ * (r * s) = r * (_ * s) |
| 33 | exact mul_left_comm _ _ _ |
| 34 | |
| 35 | theorem multiply_natural {U V W : X.Opens} (hV : V ≤ U) (hW : W ≤ V) |
| 36 | (a : Γ(X, U)) (ha : a ∈ StalkIdealIs.Construction.StalkIdealSheaf.ideal I U) (s : Γ(X, V)) : |
| 37 | (StalkIdealIs.Construction.StalkIdealSheaf.sheaf I).presheaf.map (homOfLE hW).op (multiply I hV a ha s) = |
| 38 | multiply I (hW.trans hV) a ha (X.presheaf.map (homOfLE hW).op s) := by |
| 39 | apply Subtype.ext |
| 40 | change X.presheaf.map (homOfLE hW).op (X.presheaf.map (homOfLE hV).op a * s) = _ |
| 41 | rw [map_mul, ← ConcreteCategory.comp_apply, ← Functor.map_comp] |
| 42 | rfl |
| 43 | |
| 44 | def frameMap (U : X.Opens) (a : Γ(X, U)) (ha : a ∈ StalkIdealIs.Construction.StalkIdealSheaf.ideal I U) : |
| 45 | (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).restrict U.ι ⟶ (StalkIdealIs.Construction.StalkIdealSheaf.sheaf I).restrict U.ι where |
| 46 | val.app W := ModuleCat.ofHom |
| 47 | (X := ((AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).restrict U.ι).val.obj W) |
| 48 | (Y := ((StalkIdealIs.Construction.StalkIdealSheaf.sheaf I).restrict U.ι).val.obj W) (show |
| 49 | Γ((AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X).restrict U.ι, W.unop) →ₗ[Γ(U.toScheme, W.unop)] |
| 50 | Γ((StalkIdealIs.Construction.StalkIdealSheaf.sheaf I).restrict U.ι, W.unop) from |
| 51 | { toFun s := multiply I (U.ι_image_le W.unop) a ha |
| 52 | (show Γ(X, U.ι ''ᵁ W.unop) from s) |
| 53 | map_add' s t := (multiply I (U.ι_image_le W.unop) a ha).map_add |
| 54 | (show Γ(X, U.ι ''ᵁ W.unop) from s) (show Γ(X, U.ι ''ᵁ W.unop) from t) |
| 55 | map_smul' r s := by |
| 56 | change Γ(X, U.ι ''ᵁ W.unop) at s |
| 57 | apply Subtype.ext |
| 58 | change _ * ((U.ι.appIso W.unop).inv r * s) = |
| 59 | (U.ι.appIso W.unop).inv r * (_ * s) |
| 60 | exact mul_left_comm _ _ _ }) |
| 61 | val.naturality {V W} h := by |
| 62 | ext s |
| 63 | exact (multiply_natural I (U.ι_image_le V.unop) |
| 64 | (U.ι.image_mono h.unop.le) a ha s).symm |
| 65 | |
| 66 | theorem multiply_bijective [IsIntegral X] {U V : X.Opens} (hV : V ≤ U) |
| 67 | (a : Γ(X, U)) (ha : a ∈ StalkIdealIs.Construction.StalkIdealSheaf.ideal I U) (ha0 : a ≠ 0) |
| 68 | (hgen : ∀ x : U, I x = Ideal.span {X.presheaf.germ U x x.2 a}) : |
| 69 | Function.Bijective (multiply I hV a ha) := by |
| 70 | constructor |
| 71 | · intro s t hst |
| 72 | exact SectionDivisionNe.Construction.SectionDivision.cancel_restrict hV ha0 (congrArg Subtype.val hst) |
| 73 | · intro s |
| 74 | by_cases hVne : Nonempty V |
| 75 | · have := hVne |
| 76 | have hd : X.presheaf.map (homOfLE hV).op a ∣ s.val := by |
| 77 | apply SectionDivisionNe.Construction.SectionDivision.dvd_of_germs _ _ (SectionDivisionNe.Construction.SectionDivision.restrict_ne_zero hV ha0) |
| 78 | intro x |
| 79 | have hs := (StalkIdealIs.Construction.StalkIdealSheaf.mem_ideal I V s.val).mp s.property x |
| 80 | rw [hgen ⟨x, hV x.2⟩, Ideal.mem_span_singleton] at hs |
| 81 | rwa [X.presheaf.germ_res_apply] |
| 82 | obtain ⟨t, ht⟩ := hd |
| 83 | exact ⟨t, Subtype.ext ht.symm⟩ |
| 84 | · have hbot : V = ⊥ := by |
| 85 | apply SetLike.ext |
| 86 | intro x |
| 87 | exact ⟨fun hx => (hVne ⟨⟨x, hx⟩⟩).elim, fun hx => hx.elim⟩ |
| 88 | have : Subsingleton Γ(X, V) := |
| 89 | CommRingCat.subsingleton_of_isTerminal (X.sheaf.isTerminalOfEqEmpty hbot) |
| 90 | refine ⟨0, Subtype.ext ?_⟩ |
| 91 | change (X.presheaf.map (homOfLE hV).op a * 0 : Γ(X, V)) = s.val |
| 92 | exact Subsingleton.elim _ _ |
| 93 | |
| 94 | def frameIso [IsIntegral X] (U : X.Opens) (a : Γ(X, U)) |
| 95 | (ha : a ∈ StalkIdealIs.Construction.StalkIdealSheaf.ideal I U) (ha0 : a ≠ 0) |
| 96 | (hgen : ∀ x : U, I x = Ideal.span {X.presheaf.germ U x x.2 a}) : |
| 97 | (Scheme.Modules.pullback U.ι).obj (StalkIdealIs.Construction.StalkIdealSheaf.sheaf I) ≅ |
| 98 | AbelianModuli.HilbertConstruction.Line.Bundles.structureModule U.toScheme := by |
| 99 | have : IsIso (frameMap I U a ha) := by |
| 100 | apply Scheme.Modules.Hom.isIso_iff_isIso_app.mpr |
| 101 | intro W |
| 102 | apply (ConcreteCategory.isIso_iff_bijective ((frameMap I U a ha).app W)).mpr |
| 103 | exact multiply_bijective I (U.ι_image_le W) a ha ha0 hgen |
| 104 | exact (Scheme.Modules.restrictFunctorIsoPullback U.ι).symm.app _ ≪≫ |
| 105 | (asIso (frameMap I U a ha)).symm ≪≫ Scheme.Modules.restrictUnitIso U.ι |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.StalkIdealFrame.Construction.StalkIdealFrames |