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.IntersectionTheory.ProjectionFormula.LocalizationStalks |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.DivisorRestriction |
| 3 | |
| 4 | /-! # Localization Divisor -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizationDivisor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Rational principal divisors restrict through arbitrary localizations, |
| 11 | not only open immersions. This supplies the divisor comparison between a |
| 12 | normalization chart and its localization over a point of the base. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.DivisorRestriction OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizationStalks |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R S : Type u) [CommRing R] [CommRing S] [IsDomain R] [IsDomain S] |
| 23 | [Algebra R S] (M : Submonoid R) [IsLocalization M S] |
| 24 | |
| 25 | include M |
| 26 | |
| 27 | theorem localization_algebraMap_injective : Function.Injective (algebraMap R S) := by |
| 28 | apply IsLocalization.injective S (M := M) |
| 29 | intro m hm |
| 30 | apply mem_nonZeroDivisors_of_ne_zero |
| 31 | intro hz |
| 32 | have hu := IsLocalization.map_units S (⟨m, hm⟩ : M) |
| 33 | change IsUnit (algebraMap R S m) at hu |
| 34 | rw [hz, map_zero] at hu |
| 35 | exact not_isUnit_zero hu |
| 36 | |
| 37 | theorem localization_genericPoint : |
| 38 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) (genericPoint (Spec (.of S))) = |
| 39 | genericPoint (Spec (.of R)) := by |
| 40 | rw [genericPoint_eq_bot_of_affine, genericPoint_eq_bot_of_affine] |
| 41 | apply PrimeSpectrum.ext |
| 42 | exact (RingHom.injective_iff_ker_eq_bot (algebraMap R S)).mp |
| 43 | (localization_algebraMap_injective R S M) |
| 44 | |
| 45 | def localizationFieldMap : (Spec (.of R)).functionField ⟶ (Spec (.of S)).functionField := |
| 46 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 47 | (localization_genericPoint R S M) |
| 48 | |
| 49 | instance : IsIso (localizationFieldMap R S M) := by |
| 50 | let := LocalizationStalks.localization_stalkMap_isIso R S M (genericPoint (Spec (.of S))) |
| 51 | unfold localizationFieldMap Cycles.Functoriality.FunctionFields.Construction.genericFieldMap |
| 52 | infer_instance |
| 53 | |
| 54 | def localizationFieldIso : (Spec (.of R)).functionField ≅ (Spec (.of S)).functionField := |
| 55 | asIso (localizationFieldMap R S M) |
| 56 | |
| 57 | variable [IsNoetherianRing R] [IsNoetherianRing S] |
| 58 | |
| 59 | theorem ord_localization (f : (Spec (.of R)).functionField) (x : Spec (.of S)) : |
| 60 | (Spec (.of S)).ord (localizationFieldMap R S M f) x = |
| 61 | (Spec (.of R)).ord f ((Spec.map (CommRingCat.ofHom (algebraMap R S))) x) := by |
| 62 | let i := Spec.map (CommRingCat.ofHom (algebraMap R S)) |
| 63 | have hc : coheight (i x) = coheight x := LocalizationStalks.localization_coheight R S M x |
| 64 | by_cases hx : coheight x = 1 |
| 65 | · let : Ring.KrullDimLE 1 ((Spec (.of S)).presheaf.stalk x) := |
| 66 | krullDimLE_of_coheight_le hx.le |
| 67 | let : Ring.KrullDimLE 1 ((Spec (.of R)).presheaf.stalk (i x)) := |
| 68 | krullDimLE_of_coheight_le (hc.trans hx).le |
| 69 | let : IsIso (i.stalkMap x) := LocalizationStalks.localization_stalkMap_isIso R S M x |
| 70 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx, |
| 71 | Scheme.ord_eq_ordHom_of_coheight_eq_one (hc.trans hx)] |
| 72 | exact congrArg WithZero.log (OrderQuotientTransport.ordFrac_equiv |
| 73 | (asIso (i.stalkMap x)).commRingCatIsoToRingEquiv |
| 74 | (localizationFieldIso R S M).commRingCatIsoToRingEquiv |
| 75 | (Divisor.DivisorRestriction.genericFieldMap_stalk i (localization_genericPoint R S M) x) f) |
| 76 | · rw [Scheme.ord_eq_zero_of_coheight_neq_one hx, |
| 77 | Scheme.ord_eq_zero_of_coheight_neq_one (fun h => hx (hc.symm.trans h))] |
| 78 | |
| 79 | theorem principalDivisor_localization (f : (Spec (.of R)).functionField) : |
| 80 | Finsupp.comapDomain (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 81 | (Divisors.LineBundles.Ord.BundleCycles.principalDivisor (Spec (.of R)) f) |
| 82 | (PrimeSpectrum.localization_comap_injective S M).injOn = |
| 83 | Divisors.LineBundles.Ord.BundleCycles.principalDivisor (Spec (.of S)) (localizationFieldMap R S M f) := by |
| 84 | ext x |
| 85 | exact (ord_localization R S M f x).symm |
| 86 | |
| 87 | theorem rationalPrincipalDivisor_localization (f : (Spec (.of R)).functionField) : |
| 88 | Finsupp.comapDomain (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 89 | (Affine.DivisorNorm.rationalPrincipalDivisor (Spec (.of R)) f) |
| 90 | (PrimeSpectrum.localization_comap_injective S M).injOn = |
| 91 | Affine.DivisorNorm.rationalPrincipalDivisor (Spec (.of S)) (localizationFieldMap R S M f) := by |
| 92 | ext x |
| 93 | exact congrArg (fun n : ℤ => (n : ℚ)) (ord_localization R S M f x).symm |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizationDivisor |