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.CycleClass.Geometric.SingularCodimension |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 3 | |
| 4 | /-! # Smooth Stratum -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # The actual smooth stratum of an algebraic cycle support |
| 12 | |
| 13 | The smooth stratum is the open subscheme cut out by the smooth locus of the |
| 14 | actual structure morphism. Its smoothness is proved from restriction of the |
| 15 | smooth locus. For an integral cycle support over a perfect field it is dense, |
| 16 | and its complement has strictly larger ambient codimension. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {X Y : Scheme.{u}} |
| 24 | |
| 25 | /-- The open subscheme consisting of smooth points of an actual morphism. -/ |
| 26 | def CycleClass.Geometric.SmoothStratum.smoothStratum (f : X ⟶ Y) [LocallyOfFinitePresentation f] : Scheme.{u} := |
| 27 | f.smoothLocus.toScheme |
| 28 | |
| 29 | /-- The actual open immersion from the smooth stratum to its source scheme. -/ |
| 30 | def CycleClass.Geometric.SmoothStratum.smoothStratumι (f : X ⟶ Y) [LocallyOfFinitePresentation f] : |
| 31 | CycleClass.Geometric.SmoothStratum.smoothStratum f ⟶ X := |
| 32 | f.smoothLocus.ι |
| 33 | |
| 34 | /-- The restriction of the structure morphism to its smooth stratum. -/ |
| 35 | def CycleClass.Geometric.SmoothStratum.smoothStratumToBase (f : X ⟶ Y) [LocallyOfFinitePresentation f] : |
| 36 | CycleClass.Geometric.SmoothStratum.smoothStratum f ⟶ Y := |
| 37 | CycleClass.Geometric.SmoothStratum.smoothStratumι f ≫ f |
| 38 | |
| 39 | instance CycleClass.Geometric.SmoothStratum.smoothStratumι_isOpenImmersion (f : X ⟶ Y) |
| 40 | [LocallyOfFinitePresentation f] : IsOpenImmersion (CycleClass.Geometric.SmoothStratum.smoothStratumι f) := |
| 41 | inferInstanceAs (IsOpenImmersion f.smoothLocus.ι) |
| 42 | |
| 43 | /-- Smoothness is proved, not included as an assumed field of a stratum. -/ |
| 44 | instance CycleClass.Geometric.SmoothStratum.smoothStratumToBase_isSmooth (f : X ⟶ Y) |
| 45 | [LocallyOfFinitePresentation f] : Smooth (CycleClass.Geometric.SmoothStratum.smoothStratumToBase f) := by |
| 46 | change Smooth (f.smoothLocus.ι ≫ f) |
| 47 | apply Scheme.Hom.smoothLocus_eq_top_iff.mp |
| 48 | rw [← Scheme.Hom.preimage_smoothLocus_eq] |
| 49 | exact Scheme.Opens.ι_preimage_self _ |
| 50 | |
| 51 | @[simp] |
| 52 | theorem CycleClass.Geometric.SmoothStratum.range_smoothStratumι (f : X ⟶ Y) [LocallyOfFinitePresentation f] : |
| 53 | Set.range (CycleClass.Geometric.SmoothStratum.smoothStratumι f) = (f.smoothLocus : Set X) := |
| 54 | Scheme.Opens.range_ι _ |
| 55 | |
| 56 | /-- The omitted points are exactly the previously defined singular locus. -/ |
| 57 | theorem CycleClass.Geometric.SmoothStratum.smoothStratum_complement (f : X ⟶ Y) [LocallyOfFinitePresentation f] : |
| 58 | (Set.range (CycleClass.Geometric.SmoothStratum.smoothStratumι f))ᶜ = CycleClass.Geometric.SingularLocus.singularLocus f := by |
| 59 | rw [CycleClass.Geometric.SmoothStratum.range_smoothStratumι] |
| 60 | rfl |
| 61 | |
| 62 | /-- The smooth open stratum of a reduced support is a locally closed subscheme |
| 63 | of the original ambient scheme. -/ |
| 64 | def CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι (Z : IrreducibleCloseds X) |
| 65 | (f : CycleClass.Geometric.GenericPoint.reducedSupportScheme Z ⟶ Y) [LocallyOfFinitePresentation f] : |
| 66 | CycleClass.Geometric.SmoothStratum.smoothStratum f ⟶ X := |
| 67 | CycleClass.Geometric.SmoothStratum.smoothStratumι f ≫ CycleClass.Geometric.GenericPoint.reducedSupportι Z |
| 68 | |
| 69 | instance CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι_isImmersion (Z : IrreducibleCloseds X) |
| 70 | (f : CycleClass.Geometric.GenericPoint.reducedSupportScheme Z ⟶ Y) [LocallyOfFinitePresentation f] : |
| 71 | IsImmersion (CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι Z f) := by |
| 72 | unfold CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι |
| 73 | infer_instance |
| 74 | |
| 75 | variable {K : Type u} [Field K] [PerfectField K] |
| 76 | |
| 77 | /-- Generic smoothness gives a dense range in every reduced source over a |
| 78 | perfect field. -/ |
| 79 | theorem CycleClass.Geometric.SmoothStratum.smoothStratum_denseRange [IsReduced X] |
| 80 | (f : X ⟶ Spec (.of K)) [LocallyOfFinitePresentation f] : |
| 81 | DenseRange (CycleClass.Geometric.SmoothStratum.smoothStratumι f) := by |
| 82 | change Dense (Set.range (CycleClass.Geometric.SmoothStratum.smoothStratumι f)) |
| 83 | rw [CycleClass.Geometric.SmoothStratum.range_smoothStratumι] |
| 84 | exact f.dense_smoothLocus_of_perfectField |
| 85 | |
| 86 | instance CycleClass.Geometric.SmoothStratum.smoothStratum_nonempty [IsIntegral X] |
| 87 | (f : X ⟶ Spec (.of K)) [LocallyOfFinitePresentation f] : |
| 88 | Nonempty (CycleClass.Geometric.SmoothStratum.smoothStratum f) := |
| 89 | (CycleClass.Geometric.SmoothStratum.smoothStratum_denseRange f).nonempty |
| 90 | |
| 91 | instance CycleClass.Geometric.SmoothStratum.smoothStratum_isIntegral [IsIntegral X] |
| 92 | (f : X ⟶ Spec (.of K)) [LocallyOfFinitePresentation f] : |
| 93 | IsIntegral (CycleClass.Geometric.SmoothStratum.smoothStratum f) := |
| 94 | AlgebraicGeometry.isIntegral_of_isOpenImmersion (CycleClass.Geometric.SmoothStratum.smoothStratumι f) |
| 95 | |
| 96 | /-- The closure of the smooth stratum in the ambient scheme is exactly the |
| 97 | irreducible cycle support from which it was constructed. -/ |
| 98 | theorem CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratum_closure_range (Z : IrreducibleCloseds X) |
| 99 | (f : CycleClass.Geometric.GenericPoint.reducedSupportScheme Z ⟶ Spec (.of K)) [LocallyOfFinitePresentation f] : |
| 100 | closure (Set.range (CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι Z f)) = (Z : Set X) := by |
| 101 | change closure (Set.range ((CycleClass.Geometric.GenericPoint.reducedSupportι Z) ∘ (CycleClass.Geometric.SmoothStratum.smoothStratumι f))) = (Z : Set X) |
| 102 | rw [Set.range_comp, (CycleClass.Geometric.GenericPoint.reducedSupportι Z).isClosedEmbedding.closure_image_eq, |
| 103 | (CycleClass.Geometric.SmoothStratum.smoothStratum_denseRange f).closure_range, Set.image_univ, CycleClass.Geometric.GenericPoint.range_reducedSupportι] |
| 104 | |
| 105 | /-- A point of the support omitted by its actual smooth stratum has ambient |
| 106 | codimension at least p+1. -/ |
| 107 | theorem CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratum_complement_coheight (p : ℕ) |
| 108 | (Z : Foundations.Scheme.CycleSupports.IrreducibleCycleSupport X p) |
| 109 | (f : CycleClass.Geometric.GenericPoint.reducedSupportScheme Z.1 ⟶ Spec (.of K)) [LocallyOfFinitePresentation f] |
| 110 | (y : X) (hy : y ∈ (Z.1 : Set X)) |
| 111 | (homit : y ∉ Set.range (CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι Z.1 f)) : |
| 112 | ((p + 1 : ℕ) : ℕ∞) ≤ Order.coheight y := by |
| 113 | have hyrange : y ∈ Set.range (CycleClass.Geometric.GenericPoint.reducedSupportι Z.1) := by |
| 114 | simpa only [CycleClass.Geometric.GenericPoint.range_reducedSupportι] using hy |
| 115 | obtain ⟨x, rfl⟩ := hyrange |
| 116 | apply CycleClass.Geometric.SingularCodimension.reducedSupport_singular_ambient_coheight p Z f x |
| 117 | change x ∉ f.smoothLocus |
| 118 | intro hx |
| 119 | apply homit |
| 120 | exact ⟨⟨x, hx⟩, rfl⟩ |
| 121 | |
| 122 | /-- The smooth stratum of an actual cycle support in the given complex variety. -/ |
| 123 | def Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation.cycleSupportSmoothStratum (P : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p : ℕ) |
| 124 | (Z : Foundations.Scheme.CycleSupports.IrreducibleCycleSupport P.carrier p) : Scheme := |
| 125 | CycleClass.Geometric.SmoothStratum.smoothStratum (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap) |
| 126 | |
| 127 | /-- Its actual complex structure morphism. -/ |
| 128 | def Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation.cycleSupportSmoothStratumToBase (P : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p : ℕ) |
| 129 | (Z : Foundations.Scheme.CycleSupports.IrreducibleCycleSupport P.carrier p) : |
| 130 | P.cycleSupportSmoothStratum p Z ⟶ Foundations.Scheme.ProjectiveSpace.complexBase := |
| 131 | CycleClass.Geometric.SmoothStratum.smoothStratumToBase (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap) |
| 132 | |
| 133 | instance Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation.cycleSupportSmoothStratumToBase_isSmooth (P : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 134 | (p : ℕ) (Z : Foundations.Scheme.CycleSupports.IrreducibleCycleSupport P.carrier p) : |
| 135 | Smooth (P.cycleSupportSmoothStratumToBase p Z) := |
| 136 | inferInstanceAs (Smooth (CycleClass.Geometric.SmoothStratum.smoothStratumToBase (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap))) |
| 137 | |
| 138 | /-- The smooth locally closed stratum is dense in the actual cycle support. -/ |
| 139 | theorem Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation.cycleSupportSmoothStratum_closure_range (P : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 140 | (p : ℕ) (Z : Foundations.Scheme.CycleSupports.IrreducibleCycleSupport P.carrier p) : |
| 141 | closure (Set.range (CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι Z.1 |
| 142 | (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap))) = (Z.1 : Set P.carrier) := |
| 143 | CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratum_closure_range Z.1 (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap) |
| 144 | |
| 145 | /-- The omitted part of an actual cycle support has larger ambient codimension. -/ |
| 146 | theorem Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation.cycleSupportSmoothStratum_complement_coheight (P : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 147 | (p : ℕ) (Z : Foundations.Scheme.CycleSupports.IrreducibleCycleSupport P.carrier p) |
| 148 | (y : P.carrier) (hy : y ∈ (Z.1 : Set P.carrier)) |
| 149 | (homit : y ∉ Set.range (CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratumι Z.1 |
| 150 | (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap))) : |
| 151 | ((p + 1 : ℕ) : ℕ∞) ≤ Order.coheight y := |
| 152 | CycleClass.Geometric.SmoothStratum.reducedSupportSmoothStratum_complement_coheight p Z |
| 153 | (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap) y hy homit |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.AlgebraicGeometry |