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.ValuationBirationalLocal |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.RationalDivisorRestriction |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.BirationalStalk |
| 4 | import Mathlib.RingTheory.Valuation.Discrete.IsDiscreteValuationRing |
| 5 | |
| 6 | /-! # Birational Valuation Of -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.BirationalValuationOf.BundleCycles.BirationalValuationStalk |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A birational scheme map is an isomorphism on a stalk above a valuation |
| 13 | ring. All algebra structures are the actual stalk and generic-field maps. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 20 | (f : X ⟶ Y) (hη : f (genericPoint X) = genericPoint Y) |
| 21 | [IsIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)] (x : X) |
| 22 | |
| 23 | include hη |
| 24 | |
| 25 | theorem stalkMap_isIso_of_valuation [ValuationRing (Y.presheaf.stalk (f x))] : |
| 26 | IsIso (f.stalkMap x) := by |
| 27 | let R := Y.presheaf.stalk (f x) |
| 28 | let A := X.presheaf.stalk x |
| 29 | let K := X.functionField |
| 30 | let : Algebra R A := (f.stalkMap x).hom.toAlgebra |
| 31 | let : Algebra R K := |
| 32 | ((Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.comp (algebraMap R Y.functionField)).toAlgebra |
| 33 | let : IsScalarTower R A K := IsScalarTower.of_algebraMap_eq |
| 34 | (RationalDivisorRestriction.BundleCycles.genericFieldMap_stalk f hη x) |
| 35 | let e : Y.functionField ≃ₐ[R] K := |
| 36 | { (asIso (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη)).commRingCatIsoToRingEquiv with |
| 37 | commutes' := fun _ => rfl } |
| 38 | let : IsFractionRing R K := IsFractionRing.of_algEquiv e |
| 39 | let : IsLocalHom (algebraMap R A) := inferInstanceAs (IsLocalHom (f.stalkMap x).hom) |
| 40 | exact (ConcreteCategory.isIso_iff_bijective (f.stalkMap x)).mpr |
| 41 | (ValuationBirationalLocal.BundleCycles.ValuationBirational.algebraMap_bijective R A K) |
| 42 | |
| 43 | theorem residueDegree_of_valuation [ValuationRing (Y.presheaf.stalk (f x))] : |
| 44 | f.residueDegree x = 1 := by |
| 45 | let := stalkMap_isIso_of_valuation f hη x |
| 46 | exact BirationalStalk.BundleCycles.BirationalStalkResidueDegree.residueDegree_of_isIso_stalkMap f x |
| 47 | |
| 48 | theorem coheight_of_valuation [ValuationRing (Y.presheaf.stalk (f x))] : |
| 49 | Order.coheight (f x) = Order.coheight x := by |
| 50 | let := stalkMap_isIso_of_valuation f hη x |
| 51 | have h := ringKrullDim_eq_of_ringEquiv (asIso (f.stalkMap x)).commRingCatIsoToRingEquiv |
| 52 | rw [ringKrullDim_stalk_eq_coheight, ringKrullDim_stalk_eq_coheight] at h |
| 53 | exact WithBot.coe_eq_coe.mp h |
| 54 | |
| 55 | theorem stalkMap_isIso_of_dvr [IsDiscreteValuationRing (Y.presheaf.stalk (f x))] : |
| 56 | IsIso (f.stalkMap x) := stalkMap_isIso_of_valuation f hη x |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Divisors.LineBundles.BirationalValuationOf.BundleCycles.BirationalValuationStalk |