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.RationalDivisorRestriction |
| 2 | import Mathlib.RingTheory.Ideal.Height |
| 3 | |
| 4 | /-! # Localization Stalks -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizationStalks.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: actual stalks and codimensions under arbitrary localization |
| 12 | |
| 13 | Localizing a ring and then localizing at a source prime gives the same |
| 14 | local ring as localizing the original ring at its contracted prime. |
| 15 | The comparison is the actual scheme stalk map, and prime heights are |
| 16 | preserved. These comparisons use the same localization construction as |
| 17 | ProjectionFormula's stalk calculation, with the default elaborator settings. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 21 | |
| 22 | universe u |
| 23 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 24 | variable (M : Submonoid R) [IsLocalization M S] |
| 25 | |
| 26 | include M |
| 27 | |
| 28 | theorem localizationLocalRingHom_bijective (q : PrimeSpectrum S) : |
| 29 | Function.Bijective (Localization.localRingHom (q.asIdeal.under R) q.asIdeal |
| 30 | (algebraMap R S) rfl) := by |
| 31 | let A := Localization.AtPrime (q.asIdeal.under R) |
| 32 | let B := Localization.AtPrime q.asIdeal |
| 33 | let : IsLocalization.AtPrime B (q.asIdeal.under R) := |
| 34 | IsLocalization.isLocalization_isLocalization_atPrime_isLocalization M B q.asIdeal |
| 35 | let e : A ≃ₐ[R] B := IsLocalization.algEquiv (q.asIdeal.under R).primeCompl A B |
| 36 | have he : Localization.localRingHom (q.asIdeal.under R) q.asIdeal |
| 37 | (algebraMap R S) rfl = e.toRingHom := by |
| 38 | apply IsLocalization.ringHom_ext (q.asIdeal.under R).primeCompl |
| 39 | ext r |
| 40 | change Localization.localRingHom _ _ _ rfl (algebraMap R A r) = e (algebraMap R A r) |
| 41 | rw [Localization.localRingHom_to_map, AlgEquiv.commutes, ← IsScalarTower.algebraMap_apply] |
| 42 | rw [he] |
| 43 | exact e.bijective |
| 44 | |
| 45 | theorem localizationStalkMap_isIso (q : Spec (CommRingCat.of S)) : |
| 46 | IsIso ((Spec.map (CommRingCat.ofHom (algebraMap R S))).stalkMap q) := by |
| 47 | let f : CommRingCat.of R ⟶ CommRingCat.of S := CommRingCat.ofHom (algebraMap R S) |
| 48 | let q' : PrimeSpectrum (CommRingCat.of S) := q |
| 49 | let p := q'.comap f.hom |
| 50 | let j := CommRingCat.ofHom (Localization.localRingHom p.asIdeal q'.asIdeal f.hom rfl) |
| 51 | have hj : IsIso j := |
| 52 | (ConcreteCategory.isIso_iff_bijective j).mpr (localizationLocalRingHom_bijective R S M q) |
| 53 | let e := (Spec.stalkIso (CommRingCat.of R) p) ≪≫ (@asIso _ _ _ _ j hj) ≪≫ |
| 54 | (Spec.stalkIso (CommRingCat.of S) q').symm |
| 55 | have he : e.hom = (Spec.map f).stalkMap q := Scheme.localRingHom_comp_stalkIso f q' |
| 56 | exact (congrArg (fun k => IsIso k) he).mp e.isIso_hom |
| 57 | |
| 58 | theorem localization_coheight (q : Spec (CommRingCat.of S)) : |
| 59 | Order.coheight ((Spec.map (CommRingCat.ofHom (algebraMap R S))) q) = Order.coheight q := by |
| 60 | rw [← idealHeight_eq_coheight, ← idealHeight_eq_coheight] |
| 61 | exact IsLocalization.height_under M q.asIdeal |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizationStalks.BundleCycles |