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.Smooth.LocalEquations |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.ThroughSupport |
| 3 | |
| 4 | /-! # Affine Factorial -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.AffineFactorial |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Factoriality in localizations of affine charts in every smooth dimension, |
| 11 | including charts on disconnected presentations. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 18 | [SmoothOfRelativeDimension m X.structureMap] |
| 19 | |
| 20 | include m |
| 21 | |
| 22 | theorem factorial (U : X.carrier.Opens) (hU : IsAffineOpen U) (x : U) : |
| 23 | UniqueFactorizationMonoid (Localization.AtPrime (hU.primeIdealOf x).asIdeal) := by |
| 24 | let q := hU.primeIdealOf x |
| 25 | let S := X.carrier.presheaf.stalk (hU.fromSpec q) |
| 26 | let : IsDomain S := X.stalk_isDomain _ |
| 27 | let : UniqueFactorizationMonoid S := LocalEquations.stalk_factorial X m _ |
| 28 | let e : S ≃+* Localization.AtPrime q.asIdeal := |
| 29 | (asIso (hU.fromSpec.stalkMap q)).commRingCatIsoToRingEquiv.trans |
| 30 | (Spec.stalkIso Γ(X.carrier, U) q).commRingCatIsoToRingEquiv |
| 31 | let : IsDomain (Localization.AtPrime q.asIdeal) := e.symm.injective.isDomain e.symm.toRingHom |
| 32 | exact e.toMulEquiv.uniqueFactorizationMonoid inferInstance |
| 33 | |
| 34 | theorem height_one_principal (U : X.carrier.Opens) (hU : IsAffineOpen U) (x : U) (p : PrimeSpectrum Γ(X.carrier, U)) |
| 35 | (hp : p.asIdeal.height = 1) : |
| 36 | (p.asIdeal.map (algebraMap Γ(X.carrier, U) |
| 37 | (Localization.AtPrime (hU.primeIdealOf x).asIdeal))).IsPrincipal := by |
| 38 | let R := Γ(X.carrier, U) |
| 39 | let q := hU.primeIdealOf x |
| 40 | let T := Localization.AtPrime q.asIdeal |
| 41 | let : IsNoetherianRing R := IsLocallyNoetherian.component_noetherian ⟨U, hU⟩ |
| 42 | let : UniqueFactorizationMonoid T := factorial X m U hU x |
| 43 | let : IsDomain T := by |
| 44 | let e := (asIso (hU.fromSpec.stalkMap q)).commRingCatIsoToRingEquiv.trans |
| 45 | (Spec.stalkIso Γ(X.carrier, U) q).commRingCatIsoToRingEquiv |
| 46 | let := X.stalk_isDomain (hU.fromSpec q) |
| 47 | exact e.symm.injective.isDomain e.symm.toRingHom |
| 48 | by_cases hle : p.asIdeal ≤ q.asIdeal |
| 49 | · let : (p.asIdeal.map (algebraMap R T)).IsPrime := |
| 50 | Ideal.isPrime_map_of_isLocalizationAtPrime q.asIdeal hle |
| 51 | apply UniqueFactorizationMonoid.isPrincipal_of_height_eq_one |
| 52 | rw [← IsLocalization.height_under q.asIdeal.primeCompl, |
| 53 | Ideal.under_map_of_isLocalizationAtPrime q.asIdeal hle, hp] |
| 54 | · obtain ⟨a, ha, haq⟩ := SetLike.not_le_iff_exists.mp hle |
| 55 | have ht : p.asIdeal.map (algebraMap R T) = ⊤ := |
| 56 | Ideal.eq_top_of_isUnit_mem _ (Ideal.mem_map_of_mem _ ha) |
| 57 | (IsLocalization.map_units T (⟨a, haq⟩ : q.asIdeal.primeCompl)) |
| 58 | rw [ht] |
| 59 | infer_instance |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.AffineFactorial |