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.Affine.PrimeOrderApproximation |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Open.FunctionFieldUnits |
| 3 | |
| 4 | /-! # Affine Order Approximation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Open.AffineOrderApproximation.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # LineBundleCycles: rational-order approximation on an actual common affine neighborhood -/ |
| 11 | |
| 12 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 13 | |
| 14 | variable {R : Type} [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 15 | {X : Scheme.{0}} [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 16 | (j : Spec (CommRingCat.of R) ⟶ X) [IsOpenImmersion j] |
| 17 | |
| 18 | theorem exists_openAffine_prescribed_orders {ι : Type*} [Finite ι] |
| 19 | (x : ι → Spec (CommRingCat.of R)) (hx : ∀ i, coheight (j (x i)) = 1) |
| 20 | (hinj : Function.Injective x) [∀ i, IsIntegrallyClosed (X.presheaf.stalk (j (x i)))] |
| 21 | (n : ι → ℤ) : ∃ g : X.functionFieldˣ, ∀ i, X.ord (g : X.functionField) (j (x i)) = n i := by |
| 22 | let : ∀ i, IsIntegrallyClosed ((Spec (CommRingCat.of R)).presheaf.stalk (x i)) := |
| 23 | fun i => IsIntegrallyClosed.of_equiv (asIso (j.stalkMap (x i))).commRingCatIsoToRingEquiv |
| 24 | have hx' : ∀ i, coheight (x i) = 1 := fun i => |
| 25 | (coheight_eq_of_isOpenImmersion j).symm.trans (hx i) |
| 26 | obtain ⟨g, hg⟩ := Affine.PrimeOrderApproximation.BundleCycles.exists_affine_prescribed_orders x hx' hinj n |
| 27 | let a : X.functionFieldˣ := Units.map (RationalDivisorRestriction.BundleCycles.openFunctionFieldIso j).inv.hom.toMonoidHom g |
| 28 | have ha : FunctionFieldUnits.BundleCycles.openFunctionFieldUnits j a = g := by |
| 29 | apply Units.ext |
| 30 | exact Iso.inv_hom_id_apply (RationalDivisorRestriction.BundleCycles.openFunctionFieldIso j) g.val |
| 31 | refine ⟨a, fun i => ?_⟩ |
| 32 | rw [← FunctionFieldUnits.BundleCycles.openFunctionFieldUnits_order j a (x i), ha] |
| 33 | exact hg i |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Open.AffineOrderApproximation.BundleCycles |