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.Divisors.LineBundles.Normal.BranchPushforward |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.GenericFieldComposition |
| 3 | |
| 4 | /-! # Normalized Local Field -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.NormalizedLocalField.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The normalized-stalk and global-normalization constructions carry the |
| 13 | same rational function. Compatibility is checked on an affine chart's |
| 14 | sections and extended through its actual fraction field. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Fields |
| 19 | |
| 20 | local instance (A : Type) [CommRing A] [IsDomain A] : |
| 21 | Algebra A (Spec (.of A)).functionField := |
| 22 | (StructureSheaf.toStalk A (genericPoint (Spec (.of A)))).hom.toAlgebra |
| 23 | |
| 24 | variable (X : Scheme) [IsIntegral X] |
| 25 | (U : X.Opens) (hU : IsAffineOpen U) [Nonempty U] (x : U) |
| 26 | |
| 27 | omit [IsIntegral X] [Nonempty U] in |
| 28 | theorem fromSpecStalk_preimage : X.fromSpecStalk x ⁻¹ᵁ U = ⊤ := |
| 29 | Scheme.preimage_eq_top_of_closedPoint_mem (X.fromSpecStalk x) |
| 30 | (by simpa only [Scheme.fromSpecStalk_closedPoint] using x.property) |
| 31 | |
| 32 | omit [IsIntegral X] [Nonempty U] in |
| 33 | theorem fromSpecStalk_appLE : |
| 34 | (X.fromSpecStalk x).appLE U ⊤ (le_of_eq (fromSpecStalk_preimage X U x).symm) = |
| 35 | X.presheaf.germ U x x.property ≫ (Scheme.ΓSpecIso (X.presheaf.stalk x)).inv := by |
| 36 | rw [Scheme.Hom.appLE, Scheme.fromSpecStalk_app x.property] |
| 37 | have he (a : Opposite.op (⊤ : (Spec (X.presheaf.stalk x)).Opens) ⟶ |
| 38 | Opposite.op (⊤ : (Spec (X.presheaf.stalk x)).Opens)) : a = 𝟙 _ := |
| 39 | Subsingleton.elim _ _ |
| 40 | simp only [Category.assoc, ← Functor.map_comp, he] |
| 41 | rw [(Spec (X.presheaf.stalk x)).presheaf.map_id, Category.comp_id] |
| 42 | |
| 43 | def stalkBaseMap : |
| 44 | Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField)) ⟶ X := |
| 45 | Spec.map (CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) |
| 46 | (integralClosure (X.presheaf.stalk x) X.functionField))) ≫ X.fromSpecStalk x |
| 47 | |
| 48 | omit [Nonempty U] in |
| 49 | theorem stalkBaseMap_preimage : stalkBaseMap X U x ⁻¹ᵁ U = ⊤ := by |
| 50 | rw [stalkBaseMap, Scheme.Hom.comp_preimage, fromSpecStalk_preimage, TopologicalSpace.Opens.map_top] |
| 51 | |
| 52 | include hU in |
| 53 | theorem stalkBaseMap_genericPoint : |
| 54 | stalkBaseMap X U x |
| 55 | (genericPoint (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField)))) = |
| 56 | genericPoint X := by |
| 57 | change (Spec.map _ ≫ X.fromSpecStalk x) _ = _ |
| 58 | rw [← NormalizationStalkMap.BundleCycles.normalizationStalkMap_comp X U hU x, Scheme.Hom.comp_apply, |
| 59 | NormalizationStalkMap.BundleCycles.normalizationStalkMap_genericPoint, IntersectionTheory.ProjectionFormula.Normalization.Fields.normalizationMap_genericPoint] |
| 60 | |
| 61 | omit [Nonempty U] in |
| 62 | theorem stalkBaseMap_appLE : |
| 63 | (stalkBaseMap X U x).appLE U ⊤ (le_of_eq (stalkBaseMap_preimage X U x).symm) = |
| 64 | X.presheaf.germ U x x.property ≫ |
| 65 | CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) |
| 66 | (integralClosure (X.presheaf.stalk x) X.functionField)) ≫ |
| 67 | (Scheme.ΓSpecIso (.of (integralClosure (X.presheaf.stalk x) X.functionField))).inv := by |
| 68 | let j := Spec.map (CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) |
| 69 | (integralClosure (X.presheaf.stalk x) X.functionField))) |
| 70 | have h := Scheme.Hom.appLE_comp_appLE j (X.fromSpecStalk x) U ⊤ ⊤ |
| 71 | (le_of_eq (fromSpecStalk_preimage X U x).symm) (by simp) |
| 72 | refine h.symm.trans ?_ |
| 73 | rw [fromSpecStalk_appLE] |
| 74 | change (X.presheaf.germ U x x.property ≫ |
| 75 | (Scheme.ΓSpecIso (X.presheaf.stalk x)).inv) ≫ j.appTop = _ |
| 76 | rw [Category.assoc, ← Scheme.ΓSpecIso_inv_naturality] |
| 77 | rfl |
| 78 | |
| 79 | def stalkBaseFieldMap : X.functionField ⟶ |
| 80 | (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField))).functionField := |
| 81 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (stalkBaseMap X U x) (stalkBaseMap_genericPoint X U hU x) |
| 82 | |
| 83 | theorem stalkBaseFieldMap_section (a : Γ(X, U)) : |
| 84 | stalkBaseFieldMap X U hU x (X.germToFunctionField U a) = |
| 85 | StructureSheaf.toStalk (integralClosure (X.presheaf.stalk x) X.functionField) |
| 86 | (genericPoint (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField)))) |
| 87 | (algebraMap (X.presheaf.stalk x) (integralClosure (X.presheaf.stalk x) X.functionField) |
| 88 | (X.presheaf.germ U x x.property a)) := by |
| 89 | let : Nonempty (⊤ : (Spec (.of |
| 90 | (integralClosure (X.presheaf.stalk x) X.functionField))).Opens) := |
| 91 | ⟨⟨genericPoint _, trivial⟩⟩ |
| 92 | have h := GenericFieldComposition.BundleCycles.genericFieldMap_germ_appLE (stalkBaseMap X U x) |
| 93 | (stalkBaseMap_genericPoint X U hU x) U ⊤ |
| 94 | (le_of_eq (stalkBaseMap_preimage X U x).symm) |
| 95 | rw [stalkBaseMap_appLE] at h |
| 96 | exact congrArg (fun h : Γ(X, U) ⟶ |
| 97 | (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField))).functionField => h a) h |
| 98 | |
| 99 | theorem stalkBaseFieldMap_comp : |
| 100 | stalkBaseFieldMap X U hU x = |
| 101 | IntersectionTheory.ProjectionFormula.Normalization.Fields.normalizationFieldMap X ≫ NormalizationLocalDivisor.BundleCycles.normalizationLocalFieldMap X U hU x := by |
| 102 | exact (GenericFieldComposition.BundleCycles.genericFieldMap_congr |
| 103 | (NormalizationStalkMap.BundleCycles.normalizationStalkMap_comp X U hU x).symm |
| 104 | (stalkBaseMap_genericPoint X U hU x) |
| 105 | ((congrArg (IntersectionTheory.ProjectionFormula.Normalization.Scheme.normalizationMap X) (NormalizationStalkMap.BundleCycles.normalizationStalkMap_genericPoint X U hU x)).trans |
| 106 | (IntersectionTheory.ProjectionFormula.Normalization.Fields.normalizationMap_genericPoint X))).trans |
| 107 | (GenericFieldComposition.BundleCycles.genericFieldMap_comp (NormalizationStalkMap.BundleCycles.normalizationStalkMap X U hU x) |
| 108 | (IntersectionTheory.ProjectionFormula.Normalization.Scheme.normalizationMap X) (NormalizationStalkMap.BundleCycles.normalizationStalkMap_genericPoint X U hU x) |
| 109 | (IntersectionTheory.ProjectionFormula.Normalization.Fields.normalizationMap_genericPoint X)) |
| 110 | |
| 111 | end |
| 112 | |
| 113 | /-! |
| 114 | # LineBundleCycles: global and normalized-local divisors use the same rational function |
| 115 | |
| 116 | The comparison is proved on actual affine sections, then extended through |
| 117 | that affine ring's fraction field. No compatibility is assumed. |
| 118 | -/ |
| 119 | |
| 120 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 121 | |
| 122 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Fields |
| 123 | |
| 124 | local instance (S : Type) [CommRing S] [IsDomain S] : Algebra S (Spec (.of S)).functionField := |
| 125 | (StructureSheaf.toStalk S (genericPoint (Spec (.of S)))).hom.toAlgebra |
| 126 | |
| 127 | local instance (S : Type) [CommRing S] [IsDomain S] : IsFractionRing S (Spec (.of S)).functionField := |
| 128 | functionField_isFractionRing_of_affine (CommRingCat.of S) |
| 129 | |
| 130 | variable (X : Scheme) [IsIntegral X] |
| 131 | (U : X.Opens) (hU : IsAffineOpen U) [Nonempty U] (x : U) |
| 132 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] (hx : Order.coheight (x : X) = 1) |
| 133 | |
| 134 | theorem normalizedStalkFieldIso_section (a : Γ(X, U)) : |
| 135 | Normal.BranchPushforward.BundleCycles.normalizedStalkFieldIso X f x hx (X.germToFunctionField U a) = |
| 136 | StructureSheaf.toStalk (integralClosure (X.presheaf.stalk x) X.functionField) |
| 137 | (genericPoint (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField)))) |
| 138 | (algebraMap (X.presheaf.stalk x) (integralClosure (X.presheaf.stalk x) X.functionField) |
| 139 | (X.presheaf.germ U x x.property a)) := by |
| 140 | let R := X.presheaf.stalk x |
| 141 | let D := integralClosure R X.functionField |
| 142 | let : IsDedekindDomain D := IntersectionTheory.ProjectionFormula.Support.Normalization.stalk_normalization_isDedekind f x hx |
| 143 | let : IsFractionRing D X.functionField := |
| 144 | integralClosure.isFractionRing_of_finite_extension X.functionField X.functionField |
| 145 | change Normal.AffineOrder.BundleCycles.normalAffineFieldIso D |
| 146 | ((FractionRing.algEquiv D X.functionField).symm (X.germToFunctionField U a)) = _ |
| 147 | rw [← Scheme.algebraMap_germ_eq_germToFunctionField X x.property a, |
| 148 | IsScalarTower.algebraMap_apply R D X.functionField, AlgEquiv.commutes, AlgEquiv.commutes] |
| 149 | rfl |
| 150 | |
| 151 | /-- The local function used in the normalization divisor formula is the |
| 152 | pullback of the original rational function through the actual scheme map. -/ |
| 153 | theorem stalkBaseFieldMap_eq_normalizedStalkFieldIso (g : X.functionField) : |
| 154 | stalkBaseFieldMap X U hU x g = |
| 155 | Normal.BranchPushforward.BundleCycles.normalizedStalkFieldIso X f x hx g := by |
| 156 | let R := X.presheaf.stalk x |
| 157 | let D := integralClosure R X.functionField |
| 158 | let : IsDedekindDomain D := IntersectionTheory.ProjectionFormula.Support.Normalization.stalk_normalization_isDedekind f x hx |
| 159 | let : IsFractionRing D X.functionField := |
| 160 | integralClosure.isFractionRing_of_finite_extension X.functionField X.functionField |
| 161 | let := functionField_isFractionRing_of_isAffineOpen X U hU |
| 162 | have hs (a : Γ(X, U)) : |
| 163 | stalkBaseFieldMap X U hU x (algebraMap Γ(X, U) X.functionField a) = |
| 164 | Normal.AffineOrder.BundleCycles.normalAffineFieldIso D |
| 165 | ((FractionRing.algEquiv D X.functionField).symm |
| 166 | (algebraMap Γ(X, U) X.functionField a)) := |
| 167 | (stalkBaseFieldMap_section X U hU x a).trans |
| 168 | (normalizedStalkFieldIso_section X U x f hx a).symm |
| 169 | obtain ⟨a, b, _, rfl⟩ := IsFractionRing.div_surjective Γ(X, U) g |
| 170 | change stalkBaseFieldMap X U hU x (_ / _) = |
| 171 | Normal.AffineOrder.BundleCycles.normalAffineFieldIso D ((FractionRing.algEquiv D X.functionField).symm (_ / _)) |
| 172 | rw [map_div₀, map_div₀, map_div₀, hs a, hs b] |
| 173 | |
| 174 | /-- Pulling the global normalization's rational function to the normalized |
| 175 | stalk gives exactly the local function used in the coefficient formula. -/ |
| 176 | theorem normalizationFunction_localRestriction (g : X.functionField) : |
| 177 | NormalizationLocalDivisor.BundleCycles.normalizationLocalFieldMap X U hU x ((IntersectionTheory.ProjectionFormula.Normalization.Fields.normalizationFieldIso X).hom g) = |
| 178 | Normal.BranchPushforward.BundleCycles.normalizedStalkFieldIso X f x hx g := by |
| 179 | exact (congrArg (fun h : X.functionField ⟶ |
| 180 | (Spec (.of (integralClosure (X.presheaf.stalk x) X.functionField))).functionField => h g) |
| 181 | (stalkBaseFieldMap_comp X U hU x)).symm.trans |
| 182 | (stalkBaseFieldMap_eq_normalizedStalkFieldIso X U hU x f hx g) |
| 183 | |
| 184 | end |
| 185 | |
| 186 | end OAI.AlgebraicGeometry.Divisors.LineBundles.NormalizedLocalField.BundleCycles |