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.Finite.PrimeOrderApproximation |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.PointResidue |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.PrimeSupport |
| 4 | |
| 5 | /-! # Prime Order Approximation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.PrimeOrderApproximation.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # LineBundleCycles: prescribed actual scheme orders at finitely many normal codimension-one affine points -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 14 | |
| 15 | variable {R : Type} [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 16 | |
| 17 | local instance affineApproximation_fieldAlgebra : Algebra R (Spec (CommRingCat.of R)).functionField := |
| 18 | (StructureSheaf.toStalk R (genericPoint (Spec (CommRingCat.of R)))).hom.toAlgebra |
| 19 | |
| 20 | local instance affineApproximation_stalkAlgebra (x : Spec (CommRingCat.of R)) : |
| 21 | Algebra R ((Spec (CommRingCat.of R)).presheaf.stalk x) := StructureSheaf.stalkAlgebra R x |
| 22 | |
| 23 | local instance affineApproximation_pointPrime (x : Spec (CommRingCat.of R)) : x.asIdeal.IsPrime := |
| 24 | (show PrimeSpectrum R from x).isPrime |
| 25 | |
| 26 | local instance affineApproximation_stalkLocalization (x : Spec (CommRingCat.of R)) : |
| 27 | IsLocalization.AtPrime ((Spec (CommRingCat.of R)).presheaf.stalk x) x.asIdeal := |
| 28 | StructureSheaf.IsLocalization.to_stalk R x |
| 29 | |
| 30 | omit [IsNoetherianRing R] in |
| 31 | theorem affineApproximation_stalkField_tower (x : Spec (CommRingCat.of R)) : |
| 32 | IsScalarTower R ((Spec (CommRingCat.of R)).presheaf.stalk x) |
| 33 | (Spec (CommRingCat.of R)).functionField := by |
| 34 | apply IsScalarTower.of_algebraMap_eq' |
| 35 | exact (congrArg CommRingCat.Hom.hom |
| 36 | (StructureSheaf.toStalk_stalkSpecializes |
| 37 | ((genericPoint_spec (Spec (CommRingCat.of R))).specializes trivial))).symm |
| 38 | |
| 39 | omit [IsDomain R] in |
| 40 | theorem affineCodimensionOne_primes_incomparable {ι : Type*} |
| 41 | (x : ι → Spec (CommRingCat.of R)) (hx : ∀ i, coheight (x i) = 1) |
| 42 | (hinj : Function.Injective x) : Pairwise fun i j => ¬ (x i).asIdeal ≤ (x j).asIdeal := by |
| 43 | intro i j hij hle |
| 44 | let : (x i).asIdeal.IsPrime := (show PrimeSpectrum R from x i).isPrime |
| 45 | have hi : (x i).asIdeal.height = 1 := by rw [idealHeight_eq_coheight, hx i] |
| 46 | have hj : (x j).asIdeal.height = 1 := by rw [idealHeight_eq_coheight, hx j] |
| 47 | have he := Ideal.eq_of_le_of_height_le (x i).asIdeal hle (hj.trans hi.symm).le |
| 48 | exact hij (hinj (PrimeSpectrum.ext he)) |
| 49 | |
| 50 | theorem exists_affine_prescribed_orders {ι : Type*} [Finite ι] |
| 51 | (x : ι → Spec (CommRingCat.of R)) (hx : ∀ i, coheight (x i) = 1) |
| 52 | (hinj : Function.Injective x) |
| 53 | [∀ i, IsIntegrallyClosed ((Spec (CommRingCat.of R)).presheaf.stalk (x i))] |
| 54 | (n : ι → ℤ) : |
| 55 | ∃ g : (Spec (CommRingCat.of R)).functionFieldˣ, |
| 56 | ∀ i, (Spec (CommRingCat.of R)).ord (g : (Spec (CommRingCat.of R)).functionField) (x i) = n i := by |
| 57 | let : ∀ i, (x i).asIdeal.IsPrime := fun i => (show PrimeSpectrum R from x i).isPrime |
| 58 | let : ∀ i, IsDiscreteValuationRing ((Spec (CommRingCat.of R)).presheaf.stalk (x i)) := |
| 59 | fun i => Normal.PointResidue.BundleCycles.normal_stalk_isDVR (Spec (CommRingCat.of R)) (x i) (hx i) |
| 60 | let : ∀ i, IsScalarTower R ((Spec (CommRingCat.of R)).presheaf.stalk (x i)) |
| 61 | (Spec (CommRingCat.of R)).functionField := fun i => affineApproximation_stalkField_tower (x i) |
| 62 | obtain ⟨g, hg⟩ := LineBundles.Finite.PrimeOrderApproximation.BundleCycles.exists_prescribed_finitePrimeOrders (fun i => (x i).asIdeal) |
| 63 | (fun i => (Spec (CommRingCat.of R)).presheaf.stalk (x i)) |
| 64 | (affineCodimensionOne_primes_incomparable x hx hinj) (Spec (CommRingCat.of R)).functionField n |
| 65 | refine ⟨g, fun i => ?_⟩ |
| 66 | exact ((Spec (CommRingCat.of R)).ord_eq_ordHom_of_coheight_eq_one (hx i) _).trans (hg i) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.PrimeOrderApproximation.BundleCycles |