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.Global.SectionExtension |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.SectionNonvanishing |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TensorPower.Addition |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ZeroTensorPowers |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Iterated.Powers |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.AffinePullback |
| 7 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 8 | |
| 9 | /-! # Ample Quasi Finite Pullback -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AmpleQuasiFinitePullback |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Pulling an ample line bundle back along a separated quasi-finite |
| 16 | finite-type morphism. Section extension first gives affine nonvanishing |
| 17 | neighborhoods inside any prescribed open; Zariski's main theorem then |
| 18 | reduces the pullback to an open immersion and an affine morphism. -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u |
| 23 | variable {X Y : Scheme.{u}} |
| 24 | |
| 25 | theorem ample_power_section_neighborhood [Y.IsSeparated] |
| 26 | (L : HilbertConstruction.Line.Bundles.LineBundle Y) (hL : L.IsAmple) (U : Y.Opens) (y : Y) (hy : y ∈ U) : |
| 27 | ∃ (n : ℕ) (_ : 0 < n) (s : HilbertConstruction.Line.Bundles.structureModule Y ⟶ (L.tensorPower n).sheaf), |
| 28 | y ∈ HilbertConstruction.Ample.LineBundles.sectionNonvanishing s ∧ IsAffineOpen (HilbertConstruction.Ample.LineBundles.sectionNonvanishing s) ∧ |
| 29 | HilbertConstruction.Ample.LineBundles.sectionNonvanishing s ≤ U := by |
| 30 | have : CompactSpace Y := ⟨hL.1⟩ |
| 31 | obtain ⟨d, hd, s, hys, hs⟩ := (L.isAmple_iff_tensorPower.mp hL).2 y |
| 32 | let M := L.tensorPower d |
| 33 | let D := HilbertConstruction.Ample.LineBundles.sectionNonvanishing s |
| 34 | have : IsAffine D.toScheme := hs |
| 35 | obtain ⟨r, hr, hyr⟩ := (isAffineOpen_top D.toScheme).exists_basicOpen_le |
| 36 | (⟨⟨y, hys⟩, hy⟩ : D.ι ⁻¹ᵁ U) (by trivial) |
| 37 | obtain ⟨m, _, a, ha⟩ := M.section_extension s r |
| 38 | let s' : HilbertConstruction.Line.Bundles.structureModule Y ⟶ (M.tensorPower 1).sheaf := s ≫ M.tensorPowerOneIso.inv |
| 39 | let e : ((M.tensorPower 1).tensor (M.tensorPower m)).sheaf ≅ |
| 40 | (L.tensorPower ((1 + m) * d)).sheaf := |
| 41 | (M.tensorPowerAddIso 1 m).symm ≪≫ (L.tensorPowerComposeIso (1 + m) d).symm |
| 42 | let t := HilbertConstruction.Tensor.ProductSections.tensorProductSection s' a ≫ e.hom |
| 43 | have ht : HilbertConstruction.Ample.LineBundles.sectionNonvanishing t = D ⊓ HilbertConstruction.Ample.LineBundles.sectionNonvanishing a := by |
| 44 | exact (HilbertConstruction.Ample.Powers.sectionNonvanishing_comp_iso _ e).trans |
| 45 | ((HilbertConstruction.Tensor.SectionNonvanishing.sectionNonvanishing_tensorProduct (M.tensorPower 1) (M.tensorPower m) s' a).trans |
| 46 | (congrArg (fun V : Y.Opens => V ⊓ HilbertConstruction.Ample.LineBundles.sectionNonvanishing a) |
| 47 | (HilbertConstruction.Ample.Powers.sectionNonvanishing_comp_iso s M.tensorPowerOneIso.symm))) |
| 48 | have hpre : D.ι ⁻¹ᵁ HilbertConstruction.Ample.LineBundles.sectionNonvanishing a = D.toScheme.basicOpen r := by |
| 49 | have : IsIso (HilbertConstruction.Ample.LineBundles.pullbackSection D.ι (HilbertConstruction.TensorPower.Maps.tensorPowerSection s m)) := |
| 50 | HilbertConstruction.Power.Nonvanishing.tensorPowerSection_pullback_isIso D.ι s m |
| 51 | rw [← HilbertConstruction.Section.Nonvanishing.sectionNonvanishing_pullback] |
| 52 | exact (HilbertConstruction.Scalar.Nonvanishing.sectionNonvanishing_frameCoordinate |
| 53 | (HilbertConstruction.Ample.LineBundles.pullbackSection D.ι (HilbertConstruction.TensorPower.Maps.tensorPowerSection s m)) (HilbertConstruction.Ample.LineBundles.pullbackSection D.ι a)).trans |
| 54 | (congrArg (fun q => D.toScheme.basicOpen q) ha) |
| 55 | have himage : D.ι ''ᵁ D.toScheme.basicOpen r = HilbertConstruction.Ample.LineBundles.sectionNonvanishing t := by |
| 56 | rw [← hpre, Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι, ht] |
| 57 | refine ⟨(1 + m) * d, Nat.mul_pos (by omega) hd, t, ?_, ?_, ?_⟩ |
| 58 | · rw [← himage] |
| 59 | exact ⟨⟨y, hys⟩, hyr, rfl⟩ |
| 60 | · rw [← himage] |
| 61 | exact ((isAffineOpen_top D.toScheme).basicOpen r).image_of_isOpenImmersion D.ι |
| 62 | · rw [← himage] |
| 63 | rintro z ⟨w, hw, rfl⟩ |
| 64 | exact hr hw |
| 65 | |
| 66 | theorem ample_pullback_openImmersion [Y.IsSeparated] |
| 67 | (j : X ⟶ Y) [IsOpenImmersion j] [QuasiCompact j] |
| 68 | (L : HilbertConstruction.Line.Bundles.LineBundle Y) (hL : L.IsAmple) : (L.pullback j).IsAmple := by |
| 69 | have hX : IsCompact (Set.univ : Set X) := by |
| 70 | simpa only [Set.preimage_univ] using |
| 71 | (QuasiCompact.isCompact_preimage (f := j) Set.univ isOpen_univ hL.1) |
| 72 | refine ⟨hX, fun x => ?_⟩ |
| 73 | obtain ⟨n, hn, s, hx, hs, hsub⟩ := |
| 74 | ample_power_section_neighborhood L hL j.opensRange (j x) ⟨x, rfl⟩ |
| 75 | refine ⟨n, hn, (L.tensorPower n).pullback j, |
| 76 | (L.tensorPower_isTensorPower n).pullback_of_isOpenImmersion j, |
| 77 | HilbertConstruction.Ample.LineBundles.pullbackSection j s, ?_, ?_⟩ |
| 78 | · change x ∈ HilbertConstruction.Ample.LineBundles.sectionNonvanishing (HilbertConstruction.Ample.LineBundles.pullbackSection j s) |
| 79 | rw [HilbertConstruction.Section.Nonvanishing.sectionNonvanishing_pullback] |
| 80 | exact hx |
| 81 | · change IsAffineOpen (HilbertConstruction.Ample.LineBundles.sectionNonvanishing (HilbertConstruction.Ample.LineBundles.pullbackSection j s)) |
| 82 | rw [HilbertConstruction.Section.Nonvanishing.sectionNonvanishing_pullback] |
| 83 | exact hs.preimage_of_isOpenImmersion j hsub |
| 84 | |
| 85 | theorem ample_pullback_separated_quasiFinite [Y.IsSeparated] |
| 86 | (f : X ⟶ Y) [LocallyOfFiniteType f] [LocallyQuasiFinite f] |
| 87 | [IsSeparated f] [QuasiCompact f] (L : HilbertConstruction.Line.Bundles.LineBundle Y) (hL : L.IsAmple) : |
| 88 | (L.pullback f).IsAmple := by |
| 89 | have : f.normalization.IsSeparated := ⟨by |
| 90 | rw [← terminal.comp_from f.fromNormalization] |
| 91 | infer_instance⟩ |
| 92 | have hN := hL.pullback_of_isAffineHom f.fromNormalization |
| 93 | have hX := ample_pullback_openImmersion f.toNormalization |
| 94 | (L.pullback f.fromNormalization) hN |
| 95 | exact hX.of_iso ((Scheme.Modules.pullbackComp f.toNormalization f.fromNormalization).app L.sheaf ≪≫ |
| 96 | (Scheme.Modules.pullbackCongr f.toNormalization_fromNormalization).app L.sheaf) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AmpleQuasiFinitePullback |