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 Mathlib.AlgebraicGeometry.Properties |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 3 | import Mathlib.AlgebraicGeometry.Noetherian |
| 4 | import Mathlib.RingTheory.Ideal.Quotient.Nilpotent |
| 5 | |
| 6 | /-! # Reduced Closed -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.ReducedClosed |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Reduced induced schemes on arbitrary closed subsets |
| 14 | |
| 15 | This is the reduced induced scheme construction without an irreducibility |
| 16 | hypothesis. The vanishing ideal is genuinely radical on affine opens, and the |
| 17 | resulting closed immersion has precisely the requested underlying image. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {X : Scheme.{u}} |
| 25 | |
| 26 | /-- The radical ideal sheaf vanishing on the specified closed subset. -/ |
| 27 | def reducedClosedIdeal (Z : Closeds X) : X.IdealSheafData := |
| 28 | Scheme.IdealSheafData.vanishingIdeal Z |
| 29 | |
| 30 | /-- The reduced induced scheme on an arbitrary closed subset. -/ |
| 31 | def reducedClosedScheme (Z : Closeds X) : Scheme.{u} := |
| 32 | (reducedClosedIdeal Z).subscheme |
| 33 | |
| 34 | /-- The canonical inclusion of the reduced closed subscheme. -/ |
| 35 | def reducedClosedι (Z : Closeds X) : reducedClosedScheme Z ⟶ X := |
| 36 | (reducedClosedIdeal Z).subschemeι |
| 37 | |
| 38 | instance reducedClosedι_isClosedImmersion (Z : Closeds X) : |
| 39 | IsClosedImmersion (reducedClosedι Z) := |
| 40 | inferInstanceAs (IsClosedImmersion (reducedClosedIdeal Z).subschemeι) |
| 41 | |
| 42 | @[simp] |
| 43 | theorem range_reducedClosedι (Z : Closeds X) : |
| 44 | Set.range (reducedClosedι Z) = (Z : Set X) := by |
| 45 | change Set.range (reducedClosedIdeal Z).subschemeι = (Z : Set X) |
| 46 | rw [Scheme.IdealSheafData.range_subschemeι] |
| 47 | simp [reducedClosedIdeal] |
| 48 | |
| 49 | /-- The canonical inclusion is a genuine topological closed embedding. -/ |
| 50 | theorem reducedClosedι_isClosedEmbedding (Z : Closeds X) : |
| 51 | Topology.IsClosedEmbedding (reducedClosedι Z) := |
| 52 | (reducedClosedι Z).isClosedEmbedding |
| 53 | |
| 54 | instance reducedClosedScheme_isReduced (Z : Closeds X) : |
| 55 | AlgebraicGeometry.IsReduced (reducedClosedScheme Z) := by |
| 56 | let I := reducedClosedIdeal Z |
| 57 | change AlgebraicGeometry.IsReduced I.subscheme |
| 58 | apply (AlgebraicGeometry.IsReduced.iff_of_openCover I.subscheme I.subschemeCover.openCover).2 |
| 59 | intro U |
| 60 | change X.affineOpens at U |
| 61 | change AlgebraicGeometry.IsReduced (Spec (.of (Γ(X, U) ⧸ I.ideal U))) |
| 62 | apply (AlgebraicGeometry.affine_isReduced_iff _).2 |
| 63 | apply (Ideal.isRadical_iff_quotient_reduced _).1 |
| 64 | change (PrimeSpectrum.vanishingIdeal (U.2.fromSpec ⁻¹' (Z : Set X))).IsRadical |
| 65 | exact PrimeSpectrum.isRadical_vanishingIdeal _ |
| 66 | |
| 67 | /-- Nonemptiness of the prescribed closed set gives a point of its induced scheme. -/ |
| 68 | theorem reducedClosedScheme_nonempty (Z : Closeds X) (hZ : (Z : Set X).Nonempty) : |
| 69 | Nonempty (reducedClosedScheme Z) := by |
| 70 | obtain ⟨x, hx⟩ := hZ |
| 71 | have h : x ∈ Set.range (reducedClosedι Z) := by |
| 72 | rw [range_reducedClosedι] |
| 73 | exact hx |
| 74 | obtain ⟨y, _⟩ := h |
| 75 | exact ⟨y⟩ |
| 76 | |
| 77 | /-- The induced structure morphism is the original one composed with inclusion. -/ |
| 78 | def reducedClosedStructureMap (Z : Closeds X) {S : Scheme.{u}} (f : X ⟶ S) : |
| 79 | reducedClosedScheme Z ⟶ S := |
| 80 | reducedClosedι Z ≫ f |
| 81 | |
| 82 | @[simp] |
| 83 | theorem reducedClosedStructureMap_eq (Z : Closeds X) {S : Scheme.{u}} (f : X ⟶ S) : |
| 84 | reducedClosedStructureMap Z f = reducedClosedι Z ≫ f := rfl |
| 85 | |
| 86 | instance reducedClosedStructureMap_locallyOfFiniteType (Z : Closeds X) |
| 87 | {S : Scheme.{u}} (f : X ⟶ S) [LocallyOfFiniteType f] : |
| 88 | LocallyOfFiniteType (reducedClosedStructureMap Z f) := by |
| 89 | dsimp [reducedClosedStructureMap] |
| 90 | infer_instance |
| 91 | |
| 92 | instance reducedClosedStructureMap_locallyOfFinitePresentation (Z : Closeds X) |
| 93 | {S : Scheme.{u}} [IsLocallyNoetherian S] (f : X ⟶ S) [LocallyOfFiniteType f] : |
| 94 | LocallyOfFinitePresentation (reducedClosedStructureMap Z f) := |
| 95 | inferInstance |
| 96 | |
| 97 | instance reducedClosedScheme_isLocallyNoetherian [IsLocallyNoetherian X] (Z : Closeds X) : |
| 98 | IsLocallyNoetherian (reducedClosedScheme Z) := |
| 99 | LocallyOfFiniteType.isLocallyNoetherian (reducedClosedι Z) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.CycleClass.Geometric.ReducedClosed |