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 Extension -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.SectionExtension |
| 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_clear_denominator |
| 24 | (M : X.Modules) [M.IsQuasicoherent] |
| 25 | (U : X.affineOpens) (f : Γ(X, U.1)) (s : Γ(M, X.basicOpen f)) : |
| 26 | ∃ (n : ℕ) (t : Γ(M, U.1)), |
| 27 | M.presheaf.map (homOfLE (X.basicOpen_le f)).op t = |
| 28 | X.presheaf.map (homOfLE (X.basicOpen_le f)).op (f ^ n) • s := by |
| 29 | let N := M.restrict U.1.ι |
| 30 | let g : Γ(U.1.toScheme, (⊤ : U.1.toScheme.Opens)) := U.1.topIso.inv f |
| 31 | have hTop : U.1 = U.1.ι ''ᵁ (⊤ : U.1.toScheme.Opens) := |
| 32 | U.1.ι_image_top.symm |
| 33 | have hBasic : X.basicOpen f = |
| 34 | U.1.ι ''ᵁ U.1.toScheme.basicOpen g := by |
| 35 | exact (U.1.ι_image_basicOpen_topIso_inv f).symm |
| 36 | let eTop : Γ(N, (⊤ : U.1.toScheme.Opens)) ≅ Γ(M, U.1) := |
| 37 | M.restrictAppIso U.1.ι ⊤ ≪≫ |
| 38 | M.presheaf.mapIso (eqToIso hTop).op |
| 39 | let eBasic : Γ(N, U.1.toScheme.basicOpen g) ≅ Γ(M, X.basicOpen f) := |
| 40 | M.restrictAppIso U.1.ι (U.1.toScheme.basicOpen g) ≪≫ |
| 41 | M.presheaf.mapIso (eqToIso hBasic).op |
| 42 | let r : Γ(N, U.1.toScheme.basicOpen g) := eBasic.inv s |
| 43 | obtain ⟨n, t, ht⟩ := |
| 44 | Affine.QuasicoherentSectionExtension.affine_quasicoherent_section_clear_denominator |
| 45 | N g r |
| 46 | refine ⟨n, eTop.hom t, ?_⟩ |
| 47 | have hleft : |
| 48 | M.presheaf.map (homOfLE (X.basicOpen_le f)).op (eTop.hom t) = |
| 49 | eBasic.hom |
| 50 | (N.presheaf.map (U.1.toScheme.basicOpen g).leTop.op t) := by |
| 51 | simp only [N, eTop, eBasic, Iso.trans_hom, |
| 52 | ConcreteCategory.comp_apply, Functor.mapIso_hom, |
| 53 | Scheme.Modules.map_restrictAppIso_hom_apply, |
| 54 | ← M.presheaf.map_comp_apply] |
| 55 | exact ConcreteCategory.congr_hom |
| 56 | (M.presheaf.congr_map (Subsingleton.elim _ _)) _ |
| 57 | have hright : |
| 58 | eBasic.hom |
| 59 | (U.1.toScheme.presheaf.map |
| 60 | (U.1.toScheme.basicOpen g).leTop.op (g ^ n) • r) = |
| 61 | X.presheaf.map (homOfLE (X.basicOpen_le f)).op (f ^ n) • s := by |
| 62 | change M.presheaf.map (eqToIso hBasic).op.hom |
| 63 | ((M.restrictAppIso U.1.ι (U.1.toScheme.basicOpen g)).hom |
| 64 | (U.1.toScheme.presheaf.map |
| 65 | (U.1.toScheme.basicOpen g).leTop.op (g ^ n) • r)) = _ |
| 66 | rw [Scheme.Modules.smul_restrictAppIso_hom_apply] |
| 67 | have hmap := M.val.map_smul (eqToIso hBasic).op.hom |
| 68 | ((U.1.ι.appIso (U.1.toScheme.basicOpen g)).inv |
| 69 | (U.1.toScheme.presheaf.map |
| 70 | (U.1.toScheme.basicOpen g).leTop.op (g ^ n))) |
| 71 | ((M.restrictAppIso U.1.ι (U.1.toScheme.basicOpen g)).hom r) |
| 72 | refine hmap.trans ?_ |
| 73 | have hr : |
| 74 | M.val.map (eqToIso hBasic).op.hom |
| 75 | ((M.restrictAppIso U.1.ι (U.1.toScheme.basicOpen g)).hom r) = s := by |
| 76 | dsimp only [r] |
| 77 | change eBasic.hom r = s |
| 78 | exact eBasic.inv_hom_id_apply s |
| 79 | rw [hr] |
| 80 | let i : Opposite.op (⊤ : U.1.toScheme.Opens) ⟶ |
| 81 | Opposite.op (U.1.toScheme.basicOpen g) := |
| 82 | (U.1.toScheme.basicOpen g).leTop.op |
| 83 | have hnat := ConcreteCategory.congr_hom |
| 84 | (U.1.ι.appIso_inv_naturality i) (g ^ n) |
| 85 | have hscalarOne : |
| 86 | X.presheaf.map (eqToIso hTop).hom.op |
| 87 | ((U.1.ι.appIso (⊤ : U.1.toScheme.Opens)).inv g) = f := by |
| 88 | dsimp only [g] |
| 89 | rw [Scheme.Opens.topIso_inv, Scheme.Opens.ι_appIso] |
| 90 | change X.presheaf.map (eqToIso hTop).hom.op |
| 91 | (X.presheaf.map (eqToIso hTop).op.inv f) = f |
| 92 | rw [← X.presheaf.map_comp_apply] |
| 93 | simp |
| 94 | have hscalarTop : |
| 95 | X.presheaf.map (eqToIso hTop).hom.op |
| 96 | ((U.1.ι.appIso (⊤ : U.1.toScheme.Opens)).inv (g ^ n)) = |
| 97 | f ^ n := by |
| 98 | rw [map_pow, map_pow, hscalarOne] |
| 99 | have hscalar : |
| 100 | X.presheaf.map (eqToIso hBasic).op.hom |
| 101 | ((U.1.ι.appIso (U.1.toScheme.basicOpen g)).inv |
| 102 | (U.1.toScheme.presheaf.map i (g ^ n))) = |
| 103 | X.presheaf.map (homOfLE (X.basicOpen_le f)).op (f ^ n) := by |
| 104 | calc |
| 105 | X.presheaf.map (eqToIso hBasic).op.hom |
| 106 | ((U.1.ι.appIso (U.1.toScheme.basicOpen g)).inv |
| 107 | (U.1.toScheme.presheaf.map i (g ^ n))) = |
| 108 | X.presheaf.map (eqToIso hBasic).op.hom |
| 109 | (X.presheaf.map (U.1.ι.opensFunctor.op.map i) |
| 110 | ((U.1.ι.appIso (⊤ : U.1.toScheme.Opens)).inv (g ^ n))) := by |
| 111 | exact congrArg |
| 112 | (fun y ↦ X.presheaf.map (eqToIso hBasic).op.hom y) hnat |
| 113 | _ = X.presheaf.map (homOfLE (X.basicOpen_le f)).op |
| 114 | (X.presheaf.map (eqToIso hTop).hom.op |
| 115 | ((U.1.ι.appIso (⊤ : U.1.toScheme.Opens)).inv (g ^ n))) := by |
| 116 | rw [← X.presheaf.map_comp_apply, ← X.presheaf.map_comp_apply] |
| 117 | exact ConcreteCategory.congr_hom |
| 118 | (X.presheaf.congr_map (Subsingleton.elim _ _)) _ |
| 119 | _ = X.presheaf.map (homOfLE (X.basicOpen_le f)).op (f ^ n) := by |
| 120 | rw [hscalarTop] |
| 121 | exact congrArg (fun z : Γ(X, X.basicOpen f) ↦ z • s) hscalar |
| 122 | exact hleft.trans ((congrArg eBasic.hom ht).trans hright) |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.SectionExtension |