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.Cartesian.PropertyComparison |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.OpenImmersion |
| 3 | |
| 4 | /-! # Monomorphism Local Sections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MonomorphismLocalSections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A scheme monomorphism with local sections on target neighborhoods of its image is an open immersion. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | def monomorphismPullbackSectionIso {X Y : Scheme.{u}} (i : X ⟶ Y) [Mono i] |
| 17 | (U : Y.Opens) (s : U.toScheme ⟶ X) (hs : s ≫ i = U.ι) : pullback i U.ι ≅ U.toScheme := by |
| 18 | let t : U.toScheme ⟶ pullback i U.ι := pullback.lift s (𝟙 _) (hs.trans (Category.id_comp _).symm) |
| 19 | have ht : t ≫ pullback.snd i U.ι = 𝟙 _ := pullback.lift_snd _ _ _ |
| 20 | refine ⟨pullback.snd i U.ι, t, ?_, ht⟩ |
| 21 | apply (cancel_mono (pullback.snd i U.ι)).mp |
| 22 | rw [Category.assoc, ht, Category.comp_id, Category.id_comp] |
| 23 | |
| 24 | theorem monomorphism_restrict_open_of_section {X Y : Scheme.{u}} (i : X ⟶ Y) [Mono i] |
| 25 | (U : Y.Opens) (s : U.toScheme ⟶ X) (hs : s ≫ i = U.ι) : IsOpenImmersion (i ∣_ U) := by |
| 26 | have : IsIso (pullback.snd i U.ι) := (monomorphismPullbackSectionIso i U s hs).isIso_hom |
| 27 | exact (Cartesian.PropertyComparison.property_cartesian_iff_pullback (@IsOpenImmersion : MorphismProperty Scheme.{u}) |
| 28 | _ _ i U.ι (isPullback_morphismRestrict i U).flip).mpr inferInstance |
| 29 | |
| 30 | theorem monomorphism_open_of_local_sections {X Y : Scheme.{u}} (i : X ⟶ Y) [Mono i] |
| 31 | (h : ∀ x : X, ∃ U : Y.Opens, i x ∈ U ∧ ∃ s : U.toScheme ⟶ X, s ≫ i = U.ι) : |
| 32 | IsOpenImmersion i := by |
| 33 | choose U hx s hs using h |
| 34 | apply IsZariskiLocalAtTarget.of_range_subset_iSup (P := @IsOpenImmersion) U |
| 35 | · rintro y ⟨x, rfl⟩ |
| 36 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨x, hx x⟩ |
| 37 | · intro x |
| 38 | exact monomorphism_restrict_open_of_section i (U x) (s x) (hs x) |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MonomorphismLocalSections |