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.LineScalarRestriction |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.Gluing |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperFunctionsEq |
| 4 | |
| 5 | /-! # Line End Ring -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.LineEndRing.Construction.LineScalars |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The endomorphism ring of a line bundle is the ring of global regular functions. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.Gluing |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {X : Scheme.{u}} |
| 18 | |
| 19 | theorem scalar_surjective (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) : Function.Surjective (ModuleScalarsApp.Construction.ModuleScalars.scalarHom L.sheaf) := by |
| 20 | intro a |
| 21 | choose U hx he using L.locallyTrivial |
| 22 | let e (x : X) : (Scheme.Modules.pullback (U x).ι).obj L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule (U x).toScheme := |
| 23 | Classical.choice (he x) |
| 24 | let q (x : X) : Γ(X, U x) := |
| 25 | (U x).topIso.hom (LineScalarsEq.Construction.LineScalars.frameValue (e x) ((Scheme.Modules.pullback (U x).ι).map a)) |
| 26 | have hq (i j : X) : |
| 27 | X.presheaf.map (homOfLE (show U i ⊓ U j ≤ U i from inf_le_left)).op (q i) = |
| 28 | X.presheaf.map (homOfLE (show U i ⊓ U j ≤ U j from inf_le_right)).op (q j) := by |
| 29 | let V := U i ⊓ U j |
| 30 | let eV : (Scheme.Modules.pullback V.ι).obj L.sheaf ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule V.toScheme := |
| 31 | L.frameRestrict inf_le_left (e i) |
| 32 | dsimp only [q] |
| 33 | rw [LineScalarRestriction.Construction.LineScalars.topIso_homOfLE, LineScalarRestriction.Construction.LineScalars.topIso_homOfLE] |
| 34 | exact congrArg V.topIso.hom |
| 35 | ((LineScalarRestriction.Construction.LineScalars.frameValue_homOfLE inf_le_left (e i) eV a).trans |
| 36 | (LineScalarRestriction.Construction.LineScalars.frameValue_homOfLE inf_le_right (e j) eV a).symm) |
| 37 | obtain ⟨s, hs, _⟩ := AbelianModuli.HilbertConstruction.Section.Gluing.moduleSection_glue (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X) U |
| 38 | (fun x => ⟨x, hx x⟩) q hq |
| 39 | let r : Γ(X, ⊤) := AbelianModuli.HilbertConstruction.Frame.Coordinates.structureModuleEndValue X s |
| 40 | have hr (x : X) : (U x).ι.appTop r = |
| 41 | LineScalarsEq.Construction.LineScalars.frameValue (e x) ((Scheme.Modules.pullback (U x).ι).map a) := by |
| 42 | apply (ConcreteCategory.bijective_of_isIso (U x).topIso.hom).1 |
| 43 | rw [LineScalarRestriction.Construction.LineScalars.topIso_appTop] |
| 44 | exact (AbelianModuli.HilbertConstruction.RestrictionScalars.structureModuleEndValue_onOpen s (U x)).symm.trans (hs x) |
| 45 | refine ⟨r, ?_⟩ |
| 46 | change ModuleScalarsApp.Construction.ModuleScalars.scalar L.sheaf r = a |
| 47 | apply ReducedSectionsEq.Construction.ReducedSections.moduleMap_eq_of_locally |
| 48 | intro x |
| 49 | refine ⟨U x, hx x, ?_⟩ |
| 50 | rw [ModuleScalarsApp.Construction.ModuleScalars.pullback_scalar, hr x] |
| 51 | exact LineScalarsEq.Construction.LineScalars.scalar_eq_of_frame (e x) ((Scheme.Modules.pullback (U x).ι).map a) |
| 52 | |
| 53 | /-- Scalar multiplication identifies global functions with all endomorphisms |
| 54 | of the line bundle. -/ |
| 55 | def endRingEquiv (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) : Γ(X, ⊤) ≃+* End L.sheaf := |
| 56 | RingEquiv.ofBijective (ModuleScalarsApp.Construction.ModuleScalars.scalarHom L.sheaf) |
| 57 | ⟨LineScalarsEq.Construction.LineScalars.scalar_injective L, scalar_surjective L⟩ |
| 58 | |
| 59 | theorem isIso_of_ne_zero {K : Type u} [Field K] |
| 60 | (X : Over (Spec (.of K))) [IsProper X.hom] [ConnectedSpace X.left] [IsReduced X.left] |
| 61 | (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X.left) (a : End L.sheaf) (ha : a ≠ 0) : IsIso a := by |
| 62 | let r := (endRingEquiv L).symm a |
| 63 | have hr : r ≠ 0 := by |
| 64 | intro h |
| 65 | have he := congrArg (endRingEquiv L) h |
| 66 | exact ha (by simpa only [r, RingEquiv.apply_symm_apply, map_zero] using he) |
| 67 | have hu : IsUnit r := (ProperFunctionsEq.Construction.ProperFunctions.section_eq_zero_or_isUnit X r).resolve_left hr |
| 68 | have haunit : IsUnit a := by |
| 69 | have h := hu.map (endRingEquiv L).toRingHom |
| 70 | simpa only [RingEquiv.toRingHom_eq_coe, RingEquiv.coe_toRingHom, |
| 71 | r, RingEquiv.apply_symm_apply] using h |
| 72 | exact (isUnit_iff_isIso a).mp haunit |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.LineEndRing.Construction.LineScalars |