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.Stalk.ResidueDegree |
| 2 | import Mathlib.RingTheory.Ideal.Height |
| 3 | |
| 4 | /-! # Localization Stalks -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizationStalks |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Localization preserves the actual scheme stalks, residue degrees, and |
| 11 | codimensions at its source points. These comparisons connect the global |
| 12 | normalization charts with the normalization of a local ring. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 21 | (M : Submonoid R) [IsLocalization M S] |
| 22 | |
| 23 | include M |
| 24 | |
| 25 | theorem localRingHom_bijective (q : PrimeSpectrum S) : |
| 26 | Function.Bijective (Localization.localRingHom (q.asIdeal.under R) q.asIdeal |
| 27 | (algebraMap R S) rfl) := by |
| 28 | let A := Localization.AtPrime (q.asIdeal.under R) |
| 29 | let B := Localization.AtPrime q.asIdeal |
| 30 | let : IsLocalization.AtPrime B (q.asIdeal.under R) := |
| 31 | IsLocalization.isLocalization_isLocalization_atPrime_isLocalization M B q.asIdeal |
| 32 | let e : A ≃ₐ[R] B := IsLocalization.algEquiv (q.asIdeal.under R).primeCompl A B |
| 33 | have he : Localization.localRingHom (q.asIdeal.under R) q.asIdeal |
| 34 | (algebraMap R S) rfl = e.toRingHom := by |
| 35 | apply IsLocalization.ringHom_ext (q.asIdeal.under R).primeCompl |
| 36 | ext r |
| 37 | change Localization.localRingHom _ _ _ rfl (algebraMap R A r) = e (algebraMap R A r) |
| 38 | rw [Localization.localRingHom_to_map, AlgEquiv.commutes, |
| 39 | ← IsScalarTower.algebraMap_apply] |
| 40 | rw [he] |
| 41 | exact e.bijective |
| 42 | |
| 43 | theorem localization_stalkMap_isIso (q : Spec (.of S)) : |
| 44 | IsIso ((Spec.map (CommRingCat.ofHom (algebraMap R S))).stalkMap q) := by |
| 45 | rw [← Scheme.localRingHom_comp_stalkIso] |
| 46 | let : IsIso (CommRingCat.ofHom (Localization.localRingHom |
| 47 | (q.asIdeal.under R) q.asIdeal (algebraMap R S) rfl)) := |
| 48 | (ConcreteCategory.isIso_iff_bijective _).mpr (localRingHom_bijective R S M q) |
| 49 | change IsIso ((Spec.stalkIso (.of R) ⟨q.asIdeal.under R, inferInstance⟩).hom ≫ |
| 50 | CommRingCat.ofHom (Localization.localRingHom (q.asIdeal.under R) q.asIdeal |
| 51 | (algebraMap R S) rfl) ≫ (Spec.stalkIso (.of S) q).inv) |
| 52 | infer_instance |
| 53 | |
| 54 | theorem localization_residueDegree (q : Spec (.of S)) : |
| 55 | (Spec.map (CommRingCat.ofHom (algebraMap R S))).residueDegree q = 1 := by |
| 56 | let := localization_stalkMap_isIso R S M q |
| 57 | exact Stalk.ResidueDegree.residueDegree_of_isIso_stalkMap _ _ |
| 58 | |
| 59 | theorem localization_coheight (q : Spec (.of S)) : |
| 60 | Order.coheight ((Spec.map (CommRingCat.ofHom (algebraMap R S))) q) = |
| 61 | Order.coheight q := by |
| 62 | rw [← idealHeight_eq_coheight, ← idealHeight_eq_coheight] |
| 63 | exact IsLocalization.height_under M q.asIdeal |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizationStalks |