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