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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleQuasicoherent.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentSectionExtension |
| 8 | |
| 9 | /-! # Section Vanishing -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.SectionVanishing |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Denominator control for actual quasicoherent sections on an affine open. Adapted from the existing projective support, using HilbertConstruction's checked intrinsic affine localization. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {X : Scheme.{u}} |
| 22 | |
| 23 | theorem affineOpen_quasicoherent_section_vanishing |
| 24 | (M : X.Modules) [M.IsQuasicoherent] |
| 25 | (U : X.affineOpens) (f : Γ(X, U.1)) (t : Γ(M, U.1)) |
| 26 | (ht : M.presheaf.map (homOfLE (X.basicOpen_le f)).op t = 0) : |
| 27 | ∃ n : ℕ, f ^ n • t = 0 := by |
| 28 | let N := M.restrict U.1.ι |
| 29 | let g : Γ(U.1.toScheme, (⊤ : U.1.toScheme.Opens)) := U.1.topIso.inv f |
| 30 | have hTop : U.1 = U.1.ι ''ᵁ (⊤ : U.1.toScheme.Opens) := |
| 31 | U.1.ι_image_top.symm |
| 32 | have hBasic : X.basicOpen f = |
| 33 | U.1.ι ''ᵁ U.1.toScheme.basicOpen g := by |
| 34 | exact (U.1.ι_image_basicOpen_topIso_inv f).symm |
| 35 | let eTop : Γ(N, (⊤ : U.1.toScheme.Opens)) ≅ Γ(M, U.1) := |
| 36 | M.restrictAppIso U.1.ι ⊤ ≪≫ |
| 37 | M.presheaf.mapIso (eqToIso hTop).op |
| 38 | let eBasic : Γ(N, U.1.toScheme.basicOpen g) ≅ Γ(M, X.basicOpen f) := |
| 39 | M.restrictAppIso U.1.ι (U.1.toScheme.basicOpen g) ≪≫ |
| 40 | M.presheaf.mapIso (eqToIso hBasic).op |
| 41 | let s : Γ(N, (⊤ : U.1.toScheme.Opens)) := eTop.inv t |
| 42 | have hs : N.presheaf.map (U.1.toScheme.basicOpen g).leTop.op s = 0 := by |
| 43 | apply (ConcreteCategory.bijective_of_isIso eBasic.hom).1 |
| 44 | rw [map_zero] |
| 45 | simp only [N, s, eTop, eBasic, Iso.trans_hom, |
| 46 | ConcreteCategory.comp_apply, Scheme.Modules.map_restrictAppIso_hom_apply, |
| 47 | Iso.trans_inv, Iso.inv_hom_id_apply, Functor.mapIso_hom, |
| 48 | Functor.mapIso_inv, ← M.presheaf.map_comp_apply] |
| 49 | rw [show (((eqToIso hTop).op.inv ≫ |
| 50 | (homOfLE (U.1.ι.image_mono |
| 51 | (show U.1.toScheme.basicOpen g ≤ ⊤ from le_top))).op) ≫ |
| 52 | (eqToIso hBasic).op.hom) = |
| 53 | (homOfLE (X.basicOpen_le f)).op by |
| 54 | apply Subsingleton.elim] |
| 55 | exact ht |
| 56 | obtain ⟨n, hn⟩ := |
| 57 | Affine.QuasicoherentSectionExtension.affine_quasicoherent_section_vanishing |
| 58 | N g s hs |
| 59 | refine ⟨n, ?_⟩ |
| 60 | have hn' := congr(eTop.hom $hn) |
| 61 | rw [map_zero] at hn' |
| 62 | have hscalarOne : |
| 63 | X.presheaf.map (eqToIso hTop).hom.op |
| 64 | ((U.1.ι.appIso (⊤ : U.1.toScheme.Opens)).inv g) = f := by |
| 65 | dsimp [g] |
| 66 | rw [Scheme.Opens.topIso_inv, Scheme.Opens.ι_appIso] |
| 67 | change X.presheaf.map (eqToIso hTop).hom.op |
| 68 | (X.presheaf.map (eqToIso hTop).op.inv f) = f |
| 69 | rw [← X.presheaf.map_comp_apply] |
| 70 | simp |
| 71 | have hscalar : |
| 72 | X.presheaf.map (eqToIso hTop).hom.op |
| 73 | ((U.1.ι.appIso (⊤ : U.1.toScheme.Opens)).inv |
| 74 | (g ^ n)) = f ^ n := by |
| 75 | rw [map_pow, map_pow, hscalarOne] |
| 76 | simp only [eTop, Iso.trans_hom, ConcreteCategory.comp_apply] at hn' |
| 77 | rw [smul_restrictAppIso_hom_apply] at hn' |
| 78 | simp only [Functor.mapIso_hom] at hn' |
| 79 | rw [show (eqToIso hTop).op.hom = (eqToIso hTop).hom.op by |
| 80 | apply Subsingleton.elim] at hn' |
| 81 | rw [M.map_smul, hscalar] at hn' |
| 82 | have hsection : |
| 83 | M.presheaf.map (eqToIso hTop).hom.op |
| 84 | ((M.restrictAppIso U.1.ι ⊤).hom s) = t := by |
| 85 | change eTop.hom s = t |
| 86 | exact eTop.inv_hom_id_apply t |
| 87 | rw [hsection] at hn' |
| 88 | exact hn' |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.SectionVanishing |