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.ArithmeticGeometry.Models.SpreadingOut.SchematicClosure |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.SchemeTheoreticallyDominant |
| 4 | |
| 5 | /-! # Image -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.Image.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Reduced schematic images and factorizations through closed subschemes. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem schematic_image_reduced |
| 18 | {X Y : Scheme.{u}} (f : X ⟶ Y) [QuasiCompact f] [IsReduced X] : IsReduced f.image := by |
| 19 | have hred (U : Y.affineOpens) : |
| 20 | _root_.IsReduced (Γ(Y, U) ⧸ f.ker.ideal U) := by |
| 21 | rw [f.ker_apply] |
| 22 | have : _root_.IsReduced (f.app U.1).hom.range := |
| 23 | isReduced_of_injective _ (f.app U.1).hom.range.subtype_injective |
| 24 | exact isReduced_of_injective (RingHom.quotientKerEquivRange (f.app U.1).hom).toRingHom |
| 25 | (RingHom.quotientKerEquivRange (f.app U.1).hom).injective |
| 26 | have (U : f.ker.subschemeCover.openCover.I₀) : |
| 27 | IsReduced (f.ker.subschemeCover.openCover.X U) := by |
| 28 | let V : Y.affineOpens := U |
| 29 | have := hred V |
| 30 | change IsReduced (Spec (.of (Γ(Y, V.1) ⧸ f.ker.ideal V))) |
| 31 | infer_instance |
| 32 | exact IsReduced.of_openCover f.image f.ker.subschemeCover.openCover |
| 33 | |
| 34 | /-- A map from a reduced scheme whose image lies in a closed subscheme |
| 35 | factors uniquely through that closed subscheme. -/ |
| 36 | theorem reduced_factors_through_closed_immersion |
| 37 | {X Y Z : Scheme.{u}} (f : X ⟶ Z) (i : Y ⟶ Z) |
| 38 | [IsReduced X] [IsClosedImmersion i] |
| 39 | (h : Set.range f ⊆ Set.range i) : |
| 40 | ∃ l : X ⟶ Y, l ≫ i = f := by |
| 41 | have hs : Surjective (pullback.snd i f) := by |
| 42 | rw [surjective_iff, ← Set.range_eq_univ, Scheme.Pullback.range_snd] |
| 43 | exact Set.eq_univ_of_forall fun x ↦ h (Set.mem_range_self x) |
| 44 | have := hs |
| 45 | have : IsIso (pullback.snd i f) := |
| 46 | isIso_of_isClosedImmersion_of_surjective (pullback.snd i f) |
| 47 | refine ⟨inv (pullback.snd i f) ≫ pullback.fst i f, ?_⟩ |
| 48 | rw [Category.assoc, pullback.condition, IsIso.inv_hom_id_assoc] |
| 49 | |
| 50 | /-- The schematic closure of an immersion of a reduced scheme contains the |
| 51 | original scheme as a dense open subscheme and is itself reduced. -/ |
| 52 | theorem reduced_immersion_image |
| 53 | {X Y : Scheme.{u}} (f : X ⟶ Y) [IsImmersion f] [QuasiCompact f] [IsReduced X] : |
| 54 | IsReduced f.image ∧ IsOpenImmersion f.toImage ∧ IsDominant f.toImage := |
| 55 | ⟨schematic_image_reduced f, inferInstance, inferInstance⟩ |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.ArithmeticGeometry.Models.SpreadingOut.Image.Construction |