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.CycleClass.Thom.Scheme.RegularOrder |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.RationalOrderTransport |
| 3 | |
| 4 | /-! # Principal Scheme Order -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Affine.PrincipalSchemeOrder.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! On an arbitrary integral Noetherian affine scheme, the order of |
| 11 | the actual rational function coming from a ring element is its native |
| 12 | localized principal-quotient length. Normality is not required. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 20 | |
| 21 | local instance : Algebra R (Spec (CommRingCat.of R)).functionField := |
| 22 | (StructureSheaf.toStalk R (genericPoint (Spec (CommRingCat.of R)))).hom.toAlgebra |
| 23 | |
| 24 | local instance (p : Spec (CommRingCat.of R)) : Algebra R ((Spec (CommRingCat.of R)).presheaf.stalk p) := |
| 25 | StructureSheaf.stalkAlgebra R p |
| 26 | |
| 27 | local instance (p : Spec (CommRingCat.of R)) : p.asIdeal.IsPrime := |
| 28 | (show PrimeSpectrum R from p).isPrime |
| 29 | |
| 30 | def affineFunction (a : R) : (Spec (CommRingCat.of R)).functionField := |
| 31 | algebraMap R (Spec (CommRingCat.of R)).functionField a |
| 32 | |
| 33 | omit [IsNoetherianRing R] in |
| 34 | theorem stalkField_tower (p : Spec (CommRingCat.of R)) : |
| 35 | IsScalarTower R ((Spec (CommRingCat.of R)).presheaf.stalk p) (Spec (CommRingCat.of R)).functionField := by |
| 36 | apply IsScalarTower.of_algebraMap_eq' |
| 37 | exact (congrArg CommRingCat.Hom.hom |
| 38 | (StructureSheaf.toStalk_stalkSpecializes |
| 39 | ((genericPoint_spec (Spec (CommRingCat.of R))).specializes trivial))).symm |
| 40 | |
| 41 | theorem schemeOrder_eq_localOrder (p : Spec (CommRingCat.of R)) (hp : p.asIdeal.height = 1) |
| 42 | (a : R) (ha : a ≠ 0) : |
| 43 | (Spec (CommRingCat.of R)).ord (affineFunction R a) p = |
| 44 | ((Ring.ord (Localization.AtPrime p.asIdeal) (algebraMap R (Localization.AtPrime p.asIdeal) a)).toNat : ℤ) := by |
| 45 | let := stalkField_tower R p |
| 46 | have hheight : Order.coheight (show Spec (CommRingCat.of R) from p) = 1 := |
| 47 | (idealHeight_eq_coheight (CommRingCat.of R) p).symm.trans hp |
| 48 | let e : Localization.AtPrime p.asIdeal ≃ₐ[R] ((Spec (CommRingCat.of R)).presheaf.stalk p) := |
| 49 | StructureSheaf.stalkIso R (show PrimeSpectrum R from p) |
| 50 | have hne : algebraMap R ((Spec (CommRingCat.of R)).presheaf.stalk p) a ≠ 0 := by |
| 51 | rw [← e.commutes a] |
| 52 | exact (map_ne_zero_iff _ e.injective).mpr |
| 53 | ((map_ne_zero_iff _ (IsLocalization.injective (Localization.AtPrime p.asIdeal) |
| 54 | p.asIdeal.primeCompl_le_nonZeroDivisors)).mpr ha) |
| 55 | rw [affineFunction, IsScalarTower.algebraMap_apply R ((Spec (CommRingCat.of R)).presheaf.stalk p) |
| 56 | (Spec (CommRingCat.of R)).functionField, |
| 57 | Scheme.RegularOrder.Constructions.ord_algebraMap_stalk _ p hheight _ hne] |
| 58 | have he := RationalOrderTransport.Constructions.ringOrder_equiv e.toRingEquiv |
| 59 | (algebraMap R (Localization.AtPrime p.asIdeal) a) |
| 60 | change Ring.ord _ (e (algebraMap R (Localization.AtPrime p.asIdeal) a)) = _ at he |
| 61 | rw [AlgEquiv.commutes] at he |
| 62 | exact congrArg (fun l : ℕ∞ => (l.toNat : ℤ)) he |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.CycleClass.Thom.Affine.PrincipalSchemeOrder.Constructions |