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.PELModuli.IntegralModel.AmpleFiberPowerGeneration |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Cartesian.SectionAmpleness |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Open.CartesianRestriction |
| 4 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Open.ImageAmpleness |
| 5 | |
| 6 | /-! # Flat Ample Neighborhood -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Proper.FlatAmpleNeighborhood |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Ampleness on one residue fiber of a proper flat family extends to |
| 13 | an actual affine base neighborhood. All generating sections are constructed. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.PELModuli.IntegralModel.Cartesian.SectionAmpleness.PolarizationEmbedding |
| 20 | |
| 21 | theorem properFlat_exists_affine_ample_neighborhood |
| 22 | {X S : Scheme.{0}} [IsAffine S] [IsNoetherianRing Γ(S, ⊤)] |
| 23 | (f : X ⟶ S) [IsProper f] [Flat f] (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (x : S) |
| 24 | (hL : (L.pullback (f.fiberι x)).IsAmple) : |
| 25 | ∃ U : S.Opens, x ∈ U ∧ IsAffineOpen U ∧ |
| 26 | (L.pullback (f ⁻¹ᵁ U).ι).IsAmple := by |
| 27 | obtain ⟨d, hd, n, s, U, hxU, hU, hs⟩ := |
| 28 | AmpleFiberPowerGeneration.properFlat_exists_power_generating_near_ample_fiber f L x hL |
| 29 | have : IsAffine U.toScheme := hU |
| 30 | let P := L.tensorPower d |
| 31 | let G := P.pullback (f ⁻¹ᵁ U).ι |
| 32 | let sU := fun i => AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection (f ⁻¹ᵁ U).ι (s i) |
| 33 | have hr : Set.range (S.fromSpecResidueField x) ⊆ (U : Set S) := by |
| 34 | rintro _ ⟨t, rfl⟩ |
| 35 | change S.fromSpecResidueField x t ∈ U |
| 36 | rw [Scheme.fromSpecResidueField_apply] |
| 37 | exact hxU |
| 38 | obtain ⟨a, g, ha, hg, hp⟩ := Open.CartesianRestriction.exists_cartesian_open_lifts f (f.fiberι x) |
| 39 | (f.fiberToSpecResidueField x) (S.fromSpecResidueField x) |
| 40 | (IsPullback.of_hasPullback f (S.fromSpecResidueField x)) U hr |
| 41 | let e : (G.pullback a).sheaf ≅ (P.pullback (f.fiberι x)).sheaf := |
| 42 | (Scheme.Modules.pullbackComp a (f ⁻¹ᵁ U).ι).app P.sheaf ≪≫ |
| 43 | (Scheme.Modules.pullbackCongr ha).app P.sheaf |
| 44 | have hP : (P.pullback (f.fiberι x)).IsAmple := |
| 45 | (hL.tensorPower d hd).of_iso (L.powerBaseChangeIso (f.fiberι x) d).symm |
| 46 | let t := IsLocalRing.closedPoint (S.residueField x) |
| 47 | obtain ⟨V, htV, hV, hGV⟩ := |
| 48 | Cartesian.SectionAmpleness.PolarizationEmbedding.exists_affine_ample_neighborhood_of_cartesian_generated_ample (f ∣_ U) G sU hs |
| 49 | a (f.fiberToSpecResidueField x) g hp t (hP.of_iso e.symm) |
| 50 | let W := U.ι ''ᵁ V |
| 51 | have hxW : x ∈ W := by |
| 52 | refine ⟨g t, htV, ?_⟩ |
| 53 | have h := congrArg (fun z : Spec (S.residueField x) ⟶ S => z t) hg |
| 54 | exact h.trans (S.fromSpecResidueField_apply x t) |
| 55 | have hW : IsAffineOpen W := hV.image_of_isOpenImmersion U.ι |
| 56 | have hPW : (P.pullback (f ⁻¹ᵁ W).ι).IsAmple := by |
| 57 | have h := Open.ImageAmpleness.isAmple_on_open_image (f ⁻¹ᵁ U).ι P ((f ∣_ U) ⁻¹ᵁ V) hGV |
| 58 | rwa [image_morphismRestrict_preimage] at h |
| 59 | exact ⟨W, hxW, hW, AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.IsAmple.of_tensorPower d hd |
| 60 | (hPW.of_iso (L.powerBaseChangeIso (f ⁻¹ᵁ W).ι d))⟩ |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Proper.FlatAmpleNeighborhood |