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.SectionBase |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperFunctionsEq |
| 3 | |
| 4 | /-! # Ample Fiber Eq -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.AmpleFiberEq.Construction.AmpleFiber |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Proper connected fibers inside an open trivializing an ample line bundle. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem scalar_nonvanishing_eq_bot_or_top {K : Type u} [Field K] |
| 17 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 18 | (a : End (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left)) : |
| 19 | AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing a = ⊥ ∨ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing a = ⊤ := by |
| 20 | rw [AbelianModuli.HilbertConstruction.Scalar.Nonvanishing.sectionNonvanishing_scalar] |
| 21 | rcases ProperFunctionsEq.Construction.ProperFunctions.section_eq_zero_or_isUnit X (AbelianModuli.HilbertConstruction.Frame.Coordinates.structureModuleEndValue X.left a) with h | h |
| 22 | · exact Or.inl (h ▸ X.left.basicOpen_zero ⊤) |
| 23 | · exact Or.inr (X.left.basicOpen_of_isUnit h) |
| 24 | |
| 25 | theorem preimage_nonvanishing_eq_bot_or_top {K : Type u} [Field K] |
| 26 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 27 | {A : Scheme.{u}} (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A) (W : A.Opens) |
| 28 | (e : (L.pullback W.ι).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule W.toScheme) |
| 29 | (g : X.left ⟶ W.toScheme) (m : ℕ) |
| 30 | (s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A ⟶ (L.tensorPower m).sheaf) : |
| 31 | (g ≫ W.ι) ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s = ⊥ ∨ |
| 32 | (g ≫ W.ι) ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s = ⊤ := by |
| 33 | let e' : (Scheme.Modules.pullback W.ι).obj (L.tensorPower m).sheaf ≅ |
| 34 | AbelianModuli.HilbertConstruction.Line.Bundles.structureModule W.toScheme := |
| 35 | L.tensorPowerPullbackIso m W.ι ≪≫ (AbelianModuli.HilbertConstruction.TensorPower.Maps.tensorPowerFunctor W.toScheme m).mapIso e ≪≫ |
| 36 | AbelianModuli.HilbertConstruction.TensorPower.Maps.tensorPowerUnitIso W.toScheme m |
| 37 | let t : End (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule W.toScheme) := AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection W.ι s ≫ e'.hom |
| 38 | let a : End (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X.left) := |
| 39 | AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection g t ≫ (AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso g).hom |
| 40 | have ha : AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing a = (g ≫ W.ι) ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s := by |
| 41 | rw [AbelianModuli.HilbertConstruction.Ample.Powers.sectionNonvanishing_comp_iso, PullbackScalarsValue.Construction.PullbackScalars.nonvanishing_pullback_scalar] |
| 42 | dsimp only [t] |
| 43 | rw [AbelianModuli.HilbertConstruction.Ample.Powers.sectionNonvanishing_comp_iso, AbelianModuli.HilbertConstruction.Section.Nonvanishing.sectionNonvanishing_pullback W.ι] |
| 44 | rfl |
| 45 | rw [← ha] |
| 46 | exact scalar_nonvanishing_eq_bot_or_top X a |
| 47 | |
| 48 | /-- An ample section neighborhood containing one image point contains the |
| 49 | whole proper connected reduced source when the bundle is trivial along that source's open. -/ |
| 50 | theorem exists_affine_contains_image {K : Type u} [Field K] |
| 51 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 52 | {A : Scheme.{u}} (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A) (hL : L.IsAmple) (W : A.Opens) |
| 53 | (e : (L.pullback W.ι).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule W.toScheme) |
| 54 | (g : X.left ⟶ W.toScheme) : |
| 55 | ∃ V : A.Opens, IsAffineOpen V ∧ Set.range (g ≫ W.ι) ⊆ V := by |
| 56 | obtain ⟨x⟩ := (inferInstance : Nonempty X.left) |
| 57 | obtain ⟨m, _hm, s, hx, hs⟩ := (L.isAmple_iff_tensorPower.mp hL).2 ((g ≫ W.ι) x) |
| 58 | refine ⟨AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s, hs, ?_⟩ |
| 59 | have ht : (g ≫ W.ι) ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s = ⊤ := |
| 60 | (preimage_nonvanishing_eq_bot_or_top X L W e g m s).resolve_left (by |
| 61 | intro h |
| 62 | have hx' : x ∈ (g ≫ W.ι) ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s := hx |
| 63 | rw [h] at hx' |
| 64 | exact hx'.elim) |
| 65 | rintro _ ⟨y, rfl⟩ |
| 66 | exact (show y ∈ (g ≫ W.ι) ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s from ht.symm ▸ trivial) |
| 67 | |
| 68 | theorem apply_eq {K : Type u} [Field K] |
| 69 | (X A : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 70 | [LocallyOfFiniteType A.hom] [IsSeparated A.hom] |
| 71 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A.left) (hL : L.IsAmple) (W : A.left.Opens) |
| 72 | (e : (L.pullback W.ι).sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule W.toScheme) |
| 73 | (f : X ⟶ A) (g : X.left ⟶ W.toScheme) (hg : g ≫ W.ι = f.left) |
| 74 | (x y : X.left) : f.left x = f.left y := by |
| 75 | obtain ⟨V, hV, h⟩ := exists_affine_contains_image X L hL W e g |
| 76 | have hr : Set.range f.left ⊆ Set.range V.ι := by |
| 77 | rw [Scheme.Opens.range_ι, ← hg] |
| 78 | exact h |
| 79 | let q := IsOpenImmersion.lift V.ι f.left hr |
| 80 | have hq : q ≫ V.ι = f.left := IsOpenImmersion.lift_fac V.ι f.left hr |
| 81 | let B : Over (Spec (.of K)) := Over.mk (V.ι ≫ A.hom) |
| 82 | have : IsAffine B.left := hV |
| 83 | have : LocallyOfFiniteType B.hom := by dsimp [B]; infer_instance |
| 84 | have : IsSeparated B.hom := by dsimp [B]; infer_instance |
| 85 | let q' : X ⟶ B := Over.homMk q (by |
| 86 | change q ≫ V.ι ≫ A.hom = X.hom |
| 87 | rw [← Category.assoc, hq, Over.w]) |
| 88 | have he := ProperFunctionsEq.Construction.ProperFunctions.apply_eq q' x y |
| 89 | have hx : V.ι (q x) = f.left x := congrArg (fun k => k x) hq |
| 90 | have hy : V.ι (q y) = f.left y := congrArg (fun k => k y) hq |
| 91 | exact hx.symm.trans ((congrArg V.ι he).trans hy) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.AmpleFiberEq.Construction.AmpleFiber |