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.LocalizationStalks |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Ord |
| 3 | |
| 4 | /-! # Localization Rational Order -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.LocalizationRationalOrder.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: actual rational orders under arbitrary ring localization |
| 12 | |
| 13 | The localization morphism identifies the generic fields and the local |
| 14 | rings at corresponding points. Consequently it preserves the existing |
| 15 | integer rational order, including poles. The complete finite principal |
| 16 | divisor restricts by the actual injective map on spectrum points. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.CycleClass.Thom.LocalizationStalks.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.RationalOrderTransport.Constructions |
| 22 | |
| 23 | universe u |
| 24 | variable (R S : Type u) [CommRing R] [CommRing S] [IsDomain R] [IsDomain S] |
| 25 | variable [Algebra R S] (M : Submonoid R) [IsLocalization M S] |
| 26 | |
| 27 | include M |
| 28 | |
| 29 | theorem localizationAlgebraMap_injective : Function.Injective (algebraMap R S) := by |
| 30 | apply IsLocalization.injective S (M := M) |
| 31 | intro m hm |
| 32 | apply mem_nonZeroDivisors_of_ne_zero |
| 33 | intro hz |
| 34 | have hu := IsLocalization.map_units S (⟨m, hm⟩ : M) |
| 35 | change IsUnit (algebraMap R S m) at hu |
| 36 | rw [hz, map_zero] at hu |
| 37 | exact not_isUnit_zero hu |
| 38 | |
| 39 | theorem localization_genericPoint : |
| 40 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) (genericPoint (Spec (.of S))) = |
| 41 | genericPoint (Spec (.of R)) := by |
| 42 | rw [genericPoint_eq_bot_of_affine, genericPoint_eq_bot_of_affine] |
| 43 | apply PrimeSpectrum.ext |
| 44 | exact (RingHom.injective_iff_ker_eq_bot (algebraMap R S)).mp (localizationAlgebraMap_injective R S M) |
| 45 | |
| 46 | def localizationFunctionFieldMap : (Spec (.of R)).functionField ⟶ (Spec (.of S)).functionField := |
| 47 | RationalOrderTransport.Constructions.genericFieldMap (Spec.map (CommRingCat.ofHom (algebraMap R S))) (localization_genericPoint R S M) |
| 48 | |
| 49 | instance localizationFunctionFieldMap_isIso : IsIso (localizationFunctionFieldMap R S M) := by |
| 50 | let := LocalizationStalks.Constructions.localizationStalkMap_isIso R S M (genericPoint (Spec (.of S))) |
| 51 | unfold localizationFunctionFieldMap RationalOrderTransport.Constructions.genericFieldMap |
| 52 | infer_instance |
| 53 | |
| 54 | def localizationFunctionFieldIso : (Spec (.of R)).functionField ≅ (Spec (.of S)).functionField := |
| 55 | asIso (localizationFunctionFieldMap R S M) |
| 56 | |
| 57 | variable [IsNoetherianRing R] [IsNoetherianRing S] |
| 58 | |
| 59 | theorem ord_localization (g : (Spec (.of R)).functionField) (x : Spec (.of S)) : |
| 60 | (Spec (.of S)).ord (localizationFunctionFieldMap R S M g) x = |
| 61 | (Spec (.of R)).ord g ((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.Constructions.localization_coheight R S M x |
| 64 | by_cases hx : coheight x = 1 |
| 65 | · let : Ring.KrullDimLE 1 ((Spec (.of S)).presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 66 | let : Ring.KrullDimLE 1 ((Spec (.of R)).presheaf.stalk (i x)) := krullDimLE_of_coheight_le (hc.trans hx).le |
| 67 | let : IsIso (i.stalkMap x) := LocalizationStalks.Constructions.localizationStalkMap_isIso R S M x |
| 68 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx, Scheme.ord_eq_ordHom_of_coheight_eq_one (hc.trans hx)] |
| 69 | exact congrArg (fun z : WithZero (Multiplicative ℤ) => Multiplicative.toAdd (z.unzeroD 1)) |
| 70 | (RationalOrderTransport.Constructions.ringOrderFrac_equiv (asIso (i.stalkMap x)).commRingCatIsoToRingEquiv |
| 71 | (localizationFunctionFieldIso R S M).commRingCatIsoToRingEquiv |
| 72 | (RationalOrderTransport.Constructions.genericFieldMap_stalk i (localization_genericPoint R S M) x) g) |
| 73 | · rw [Scheme.ord_eq_zero_of_coheight_neq_one hx, |
| 74 | Scheme.ord_eq_zero_of_coheight_neq_one (fun h => hx (hc.symm.trans h))] |
| 75 | |
| 76 | theorem principalDivisor_localization (g : (Spec (.of R)).functionField) : |
| 77 | Finsupp.comapDomain (Spec.map (CommRingCat.ofHom (algebraMap R S))) (Divisors.LineBundles.Ord.BundleCycles.principalDivisor (Spec (.of R)) g) |
| 78 | (PrimeSpectrum.localization_comap_injective S M).injOn = |
| 79 | Divisors.LineBundles.Ord.BundleCycles.principalDivisor (Spec (.of S)) (localizationFunctionFieldMap R S M g) := by |
| 80 | ext x |
| 81 | exact (ord_localization R S M g x).symm |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.CycleClass.Thom.LocalizationRationalOrder.Constructions |