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.Relative.NormalizationCharts |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.ClosureLocalization |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.ResidueDegree |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizationRationalOrder |
| 5 | |
| 6 | /-! # Normalization Stalks -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.NormalizationStalks.BundleCycles.RelativeNormalizationStalks |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Localizing relative normalization at a base point gives the integral |
| 13 | closure of its actual stalk in the extension field, with the entire fiber |
| 14 | and all local rings preserved. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.Normalization.BundleCycles.RelativeNormalization OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.NormalizationCharts.BundleCycles.RelativeNormalizationCharts |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (Y : Scheme.{u}) [IsIntegral Y] (L : Type u) [Field L] [Algebra Y.functionField L] |
| 23 | |
| 24 | abbrev sectionAlgebra (U : Y.Opens) [Nonempty U] : Algebra Γ(Y, U) L := |
| 25 | ((algebraMap Y.functionField L).comp (algebraMap Γ(Y, U) Y.functionField)).toAlgebra |
| 26 | |
| 27 | abbrev stalkAlgebra (y : Y) : Algebra (Y.presheaf.stalk y) L := |
| 28 | ((algebraMap Y.functionField L).comp (algebraMap (Y.presheaf.stalk y) Y.functionField)).toAlgebra |
| 29 | |
| 30 | attribute [local instance] sectionAlgebra stalkAlgebra |
| 31 | |
| 32 | instance sectionFieldTower (U : Y.Opens) [Nonempty U] : |
| 33 | IsScalarTower Γ(Y, U) Y.functionField L := IsScalarTower.of_algebraMap_eq' rfl |
| 34 | |
| 35 | instance stalkFieldTower (y : Y) : IsScalarTower (Y.presheaf.stalk y) Y.functionField L := |
| 36 | IsScalarTower.of_algebraMap_eq' rfl |
| 37 | |
| 38 | theorem sectionStalkTower (U : Y.Opens) [Nonempty U] (y : U) : |
| 39 | letI := TopCat.Presheaf.algebra_section_stalk Y.presheaf y |
| 40 | IsScalarTower Γ(Y, U) (Y.presheaf.stalk y) L := by |
| 41 | let := TopCat.Presheaf.algebra_section_stalk Y.presheaf y |
| 42 | apply IsScalarTower.of_algebraMap_eq |
| 43 | intro a |
| 44 | exact congrArg (algebraMap Y.functionField L) |
| 45 | (Scheme.algebraMap_germ_eq_germToFunctionField Y y.property a).symm |
| 46 | |
| 47 | variable (U : Y.Opens) (hU : IsAffineOpen U) [Nonempty U] (y : U) |
| 48 | |
| 49 | local instance : Algebra Γ(Y, U) (Y.presheaf.stalk y) := |
| 50 | TopCat.Presheaf.algebra_section_stalk Y.presheaf y |
| 51 | |
| 52 | local instance : IsScalarTower Γ(Y, U) (Y.presheaf.stalk y) L := sectionStalkTower Y L U y |
| 53 | |
| 54 | def stalkInclusion : integralClosure Γ(Y, U) L →ₐ[Γ(Y, U)] |
| 55 | integralClosure (Y.presheaf.stalk y) L := by |
| 56 | let := TopCat.Presheaf.algebra_section_stalk Y.presheaf y |
| 57 | let := sectionStalkTower Y L U y |
| 58 | exact Integral.ClosureLocalization.BundleCycles.integralClosureInclusion Γ(Y, U) (Y.presheaf.stalk y) L |
| 59 | |
| 60 | theorem stalk_isLocalization : |
| 61 | letI := (stalkInclusion Y L U y).toRingHom.toAlgebra |
| 62 | IsLocalization |
| 63 | (Algebra.algebraMapSubmonoid (integralClosure Γ(Y, U) L) |
| 64 | (hU.primeIdealOf y).asIdeal.primeCompl) |
| 65 | (integralClosure (Y.presheaf.stalk y) L) := by |
| 66 | let := TopCat.Presheaf.algebra_section_stalk Y.presheaf y |
| 67 | let := sectionStalkTower Y L U y |
| 68 | let := hU.isLocalization_stalk y |
| 69 | exact Integral.ClosureLocalization.BundleCycles.integralClosure_isLocalization Γ(Y, U) (Y.presheaf.stalk y) L |
| 70 | (hU.primeIdealOf y).asIdeal.primeCompl |
| 71 | |
| 72 | def stalkMap : Spec (.of (integralClosure (Y.presheaf.stalk y) L)) ⟶ Normalization.BundleCycles.RelativeNormalization.relativeNormalization Y L := |
| 73 | Spec.map (CommRingCat.ofHom (stalkInclusion Y L U y).toRingHom) ≫ NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU |
| 74 | |
| 75 | theorem stalkMap_comp : RelativeNormalizationStalks.stalkMap Y L U hU y ≫ Normalization.BundleCycles.RelativeNormalization.relativeNormalizationMap Y L = |
| 76 | Spec.map (CommRingCat.ofHom |
| 77 | (algebraMap (Y.presheaf.stalk y) (integralClosure (Y.presheaf.stalk y) L))) ≫ |
| 78 | Y.fromSpecStalk y := by |
| 79 | rw [RelativeNormalizationStalks.stalkMap, Category.assoc, NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap_comp, |
| 80 | ← hU.fromSpecStalk_eq_fromSpecStalk y.property, IsAffineOpen.fromSpecStalk, |
| 81 | ← Category.assoc, ← Category.assoc, ← Spec.map_comp, ← Spec.map_comp] |
| 82 | congr 2 |
| 83 | ext a |
| 84 | exact congrArg (algebraMap Y.functionField L) |
| 85 | (Scheme.algebraMap_germ_eq_germToFunctionField Y y.property a).symm |
| 86 | |
| 87 | theorem stalkMap_stalkMap_isIso (z : Spec (.of (integralClosure (Y.presheaf.stalk y) L))) : |
| 88 | IsIso ((RelativeNormalizationStalks.stalkMap Y L U hU y).stalkMap z) := by |
| 89 | let B := integralClosure Γ(Y, U) L |
| 90 | let D := integralClosure (Y.presheaf.stalk y) L |
| 91 | let := (stalkInclusion Y L U y).toRingHom.toAlgebra |
| 92 | let M := Algebra.algebraMapSubmonoid B (hU.primeIdealOf y).asIdeal.primeCompl |
| 93 | let : IsLocalization M D := stalk_isLocalization Y L U hU y |
| 94 | let l := Spec.map (CommRingCat.ofHom (algebraMap B D)) |
| 95 | let c := NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU |
| 96 | have hl : IsIso (l.stalkMap z) := LocalizationStalks.BundleCycles.localizationStalkMap_isIso B D M z |
| 97 | have hc : IsIso (c.stalkMap (l z)) := inferInstance |
| 98 | let e := (@asIso _ _ _ _ (c.stalkMap (l z)) hc) ≪≫ (@asIso _ _ _ _ (l.stalkMap z) hl) |
| 99 | have he : e.hom = (l ≫ c).stalkMap z := (Scheme.Hom.stalkMap_comp l c z).symm |
| 100 | exact (congrArg (fun k => IsIso k) he).mp e.isIso_hom |
| 101 | |
| 102 | theorem stalkMap_residueDegree (z : Spec (.of (integralClosure (Y.presheaf.stalk y) L))) : |
| 103 | (RelativeNormalizationStalks.stalkMap Y L U hU y).residueDegree z = 1 := by |
| 104 | let := stalkMap_stalkMap_isIso Y L U hU y z |
| 105 | exact IntersectionTheory.ProjectionFormula.Stalk.ResidueDegree.residueDegree_of_isIso_stalkMap _ _ |
| 106 | |
| 107 | theorem stalkMap_coheight (z : Spec (.of (integralClosure (Y.presheaf.stalk y) L))) : |
| 108 | Order.coheight (RelativeNormalizationStalks.stalkMap Y L U hU y z) = Order.coheight z := by |
| 109 | let B := integralClosure Γ(Y, U) L |
| 110 | let D := integralClosure (Y.presheaf.stalk y) L |
| 111 | let := (stalkInclusion Y L U y).toRingHom.toAlgebra |
| 112 | let M := Algebra.algebraMapSubmonoid B (hU.primeIdealOf y).asIdeal.primeCompl |
| 113 | let : IsLocalization M D := stalk_isLocalization Y L U hU y |
| 114 | change Order.coheight (NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU |
| 115 | ((Spec.map (CommRingCat.ofHom (algebraMap B D))) z)) = _ |
| 116 | rw [coheight_eq_of_isOpenImmersion] |
| 117 | exact LocalizationStalks.BundleCycles.localization_coheight B D M z |
| 118 | |
| 119 | theorem stalkMap_genericPoint : |
| 120 | RelativeNormalizationStalks.stalkMap Y L U hU y |
| 121 | (genericPoint (Spec (.of (integralClosure (Y.presheaf.stalk y) L)))) = |
| 122 | genericPoint (Normalization.BundleCycles.RelativeNormalization.relativeNormalization Y L) := by |
| 123 | let B := integralClosure Γ(Y, U) L |
| 124 | let D := integralClosure (Y.presheaf.stalk y) L |
| 125 | let := (stalkInclusion Y L U y).toRingHom.toAlgebra |
| 126 | let M := Algebra.algebraMapSubmonoid B (hU.primeIdealOf y).asIdeal.primeCompl |
| 127 | let : IsLocalization M D := stalk_isLocalization Y L U hU y |
| 128 | change NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU ((Spec.map (CommRingCat.ofHom (algebraMap B D))) |
| 129 | (genericPoint (Spec (.of D)))) = _ |
| 130 | rw [LocalizationRationalOrder.BundleCycles.localization_genericPoint B D M, genericPoint_eq_of_isOpenImmersion] |
| 131 | |
| 132 | theorem stalkMap_injective : Function.Injective (RelativeNormalizationStalks.stalkMap Y L U hU y) := by |
| 133 | let B := integralClosure Γ(Y, U) L |
| 134 | let D := integralClosure (Y.presheaf.stalk y) L |
| 135 | let := (stalkInclusion Y L U y).toRingHom.toAlgebra |
| 136 | let M := Algebra.algebraMapSubmonoid B (hU.primeIdealOf y).asIdeal.primeCompl |
| 137 | let : IsLocalization M D := stalk_isLocalization Y L U hU y |
| 138 | exact (NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU).isOpenEmbedding.injective.comp |
| 139 | (PrimeSpectrum.localization_comap_injective D M) |
| 140 | |
| 141 | theorem stalkMap_covers_fiber (z : Normalization.BundleCycles.RelativeNormalization.relativeNormalization Y L) |
| 142 | (hz : Normalization.BundleCycles.RelativeNormalization.relativeNormalizationMap Y L z = y) : z ∈ Set.range (RelativeNormalizationStalks.stalkMap Y L U hU y) := by |
| 143 | let B := integralClosure Γ(Y, U) L |
| 144 | let D := integralClosure (Y.presheaf.stalk y) L |
| 145 | let := (stalkInclusion Y L U y).toRingHom.toAlgebra |
| 146 | let M := Algebra.algebraMapSubmonoid B (hU.primeIdealOf y).asIdeal.primeCompl |
| 147 | let : IsLocalization M D := stalk_isLocalization Y L U hU y |
| 148 | have hzU : z ∈ Normalization.BundleCycles.RelativeNormalization.relativeNormalizationMap Y L ⁻¹ᵁ U := by |
| 149 | change Normalization.BundleCycles.RelativeNormalization.relativeNormalizationMap Y L z ∈ U |
| 150 | rw [hz] |
| 151 | exact y.property |
| 152 | change z ∈ (Normalization.BundleCycles.RelativeNormalization.relativeNormalizationMap Y L ⁻¹ᵁ U : Set (Normalization.BundleCycles.RelativeNormalization.relativeNormalization Y L)) at hzU |
| 153 | rw [← NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap_range Y L U hU] at hzU |
| 154 | obtain ⟨q, hq⟩ := hzU |
| 155 | have hp : (Spec.map (CommRingCat.ofHom (algebraMap Γ(Y, U) B))) q = hU.primeIdealOf y := by |
| 156 | apply hU.fromSpec.isOpenEmbedding.injective |
| 157 | have hc := congrArg (fun i : Spec (.of B) ⟶ Y => i q) (NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap_comp Y L U hU) |
| 158 | change Normalization.BundleCycles.RelativeNormalization.relativeNormalizationMap Y L (NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU q) = |
| 159 | hU.fromSpec ((Spec.map (CommRingCat.ofHom (algebraMap Γ(Y, U) B))) q) at hc |
| 160 | rw [← hc, hq, hz, hU.fromSpec_primeIdealOf] |
| 161 | have hdisj : Disjoint (M : Set B) (q.asIdeal : Set B) := by |
| 162 | rw [Set.disjoint_left] |
| 163 | intro z hzM hzq |
| 164 | obtain ⟨a, ha, rfl⟩ := hzM |
| 165 | apply ha |
| 166 | have he := congrArg PrimeSpectrum.asIdeal hp |
| 167 | change Ideal.comap (algebraMap Γ(Y, U) B) q.asIdeal = (hU.primeIdealOf y).asIdeal at he |
| 168 | rw [← he] |
| 169 | exact hzq |
| 170 | have hqrange : q ∈ Set.range (PrimeSpectrum.comap (algebraMap B D)) := by |
| 171 | rw [PrimeSpectrum.localization_comap_range D M] |
| 172 | exact hdisj |
| 173 | obtain ⟨w, hw⟩ := hqrange |
| 174 | refine ⟨w, ?_⟩ |
| 175 | change NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU ((Spec.map (CommRingCat.ofHom (algebraMap B D))) w) = z |
| 176 | exact (congrArg (NormalizationCharts.BundleCycles.RelativeNormalizationCharts.chartMap Y L U hU) hw).trans hq |
| 177 | |
| 178 | end |
| 179 | |
| 180 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Relative.NormalizationStalks.BundleCycles.RelativeNormalizationStalks |