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.Finite.PrimeLocalization |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Approximation |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizationDivisor |
| 4 | |
| 5 | /-! # Normal Affine Approximation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalAffineApproximation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Arbitrary integer orders can be prescribed at finitely many distinct |
| 12 | codimension-one points of a normal Noetherian affine scheme, in any dimension. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry IsDedekindDomain |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R] |
| 21 | |
| 22 | theorem exists_orders {ι : Type v} [Fintype ι] (x : ι → Spec (.of R)) |
| 23 | (hx : ∀ i, Order.coheight (x i) = 1) (hinj : Function.Injective x) (e : ι → ℤ) : |
| 24 | ∃ f : (Spec (.of R)).functionField, f ≠ 0 ∧ ∀ i, (Spec (.of R)).ord f (x i) = e i := by |
| 25 | classical |
| 26 | by_cases hι : Nonempty ι |
| 27 | · let := hι |
| 28 | let P : ι → PrimeSpectrum R := x |
| 29 | let M := Finite.PrimeLocalization.denominators R P |
| 30 | let A := Localization M |
| 31 | have hP (i : ι) : (P i).asIdeal.height = 1 := by |
| 32 | rw [idealHeight_eq_coheight] |
| 33 | exact hx i |
| 34 | let : IsDedekindDomain A := Finite.PrimeLocalization.dedekind R P A hP |
| 35 | have hp (i : ι) : (Ideal.map (algebraMap R A) (P i).asIdeal).IsPrime := |
| 36 | IsLocalization.isPrime_of_isPrime_disjoint M A (P i).asIdeal (P i).isPrime |
| 37 | (Finite.PrimeLocalization.disjoint_denominators R P i) |
| 38 | let Q : ι → HeightOneSpectrum A := fun i => |
| 39 | ⟨Ideal.map (algebraMap R A) (P i).asIdeal, hp i, by |
| 40 | apply Ideal.ne_bot_of_height_eq_one |
| 41 | let := hp i |
| 42 | rw [← IsLocalization.height_under M, |
| 43 | Finite.PrimeLocalization.under_map R P A, hP]⟩ |
| 44 | let j := Spec.map (CommRingCat.ofHom (algebraMap R A)) |
| 45 | have hQ (i : ι) : j (Affine.Order.branchPoint A (Q i)) = x i := by |
| 46 | apply PrimeSpectrum.ext |
| 47 | exact Finite.PrimeLocalization.under_map R P A i |
| 48 | have hQinj : Function.Injective Q := by |
| 49 | intro i k hik |
| 50 | apply hinj |
| 51 | rw [← hQ i, ← hQ k, hik] |
| 52 | obtain ⟨g, hg, he⟩ := Affine.Approximation.exists_scheme_orders A Q hQinj e |
| 53 | let f := (LocalizationDivisor.localizationFieldIso R A M).inv g |
| 54 | have hfg : LocalizationDivisor.localizationFieldMap R A M f = g := |
| 55 | ConcreteCategory.congr_hom (LocalizationDivisor.localizationFieldIso R A M).inv_hom_id g |
| 56 | refine ⟨f, ?_, fun i => ?_⟩ |
| 57 | · intro hf |
| 58 | apply hg |
| 59 | rw [← hfg, hf, map_zero] |
| 60 | · rw [← hQ i, ← LocalizationDivisor.ord_localization R A M, hfg, he] |
| 61 | · let : IsEmpty ι := not_nonempty_iff.mp hι |
| 62 | exact ⟨1, one_ne_zero, fun i => isEmptyElim i⟩ |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalAffineApproximation |