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.Affine.DivisorDimension |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme |
| 3 | |
| 4 | /-! # Curve Local Rings -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CurveLocalRings |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Normal integral curves have valuation rings at every point, including |
| 11 | the generic point. The dimension bound follows from the actual affine |
| 12 | coordinate rings and their proved finite-type dimension formula. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 17 | |
| 18 | theorem coheight_le_dimension {k : Type} [Field k] {X : Scheme.{0}} [IsIntegral X] |
| 19 | (f : X ⟶ Spec (.of k)) [LocallyOfFiniteType f] (x : X) : |
| 20 | coheight x ≤ (Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f : ℕ∞) := by |
| 21 | obtain ⟨U, hU, hxU, _⟩ := exists_isAffineOpen_mem_and_subset (TopologicalSpace.Opens.mem_top x) |
| 22 | let x' : U := ⟨x, hxU⟩ |
| 23 | let : Nonempty U := ⟨x'⟩ |
| 24 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 25 | let := Foundations.Scheme.AffineSectionFiniteType.specSectionScalarAlgebra_finiteType f U hU |
| 26 | have h := (hU.primeIdealOf x').asIdeal.height_le_ringKrullDim_of_isPrime |
| 27 | rw [idealHeight_eq_coheight, ← coheight_eq_of_isOpenImmersion hU.fromSpec, |
| 28 | hU.fromSpec_primeIdealOf, DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg k Γ(X, U), |
| 29 | ← Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension_eq_affineSections f U hU] at h |
| 30 | exact WithBot.coe_le_coe.mp h |
| 31 | |
| 32 | theorem normal_local_valuation (R : Type*) [CommRing R] [IsDomain R] [IsLocalRing R] |
| 33 | [IsNoetherianRing R] [IsIntegrallyClosed R] [Ring.KrullDimLE 1 R] : ValuationRing R := by |
| 34 | let : Ring.DimensionLEOne R := ⟨fun hn hp => hp.isMaximal_of_ne_bot hn⟩ |
| 35 | let : IsDedekindDomain R := |
| 36 | { toIsDomain := inferInstance |
| 37 | toIsDedekindRing := |
| 38 | { toIsNoetherian := inferInstance |
| 39 | toDimensionLEOne := inferInstance |
| 40 | toIsIntegralClosure := inferInstance } } |
| 41 | by_cases hf : IsField R |
| 42 | · let : Field R := hf.toField |
| 43 | infer_instance |
| 44 | · have h : IsDiscreteValuationRing R ↔ IsDedekindDomain R := (IsDiscreteValuationRing.TFAE R hf).out 1 3 |
| 45 | let : IsDiscreteValuationRing R := h.mpr inferInstance |
| 46 | infer_instance |
| 47 | |
| 48 | /-- Every point of a normal curve admits the valuation-ring argument; |
| 49 | the generic-point local ring is included automatically. -/ |
| 50 | theorem stalk_valuation {k : Type} [Field k] {X : Scheme.{0}} [IsIntegral X] |
| 51 | (f : X ⟶ Spec (.of k)) [LocallyOfFiniteType f] |
| 52 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f ≤ 1) (x : X) |
| 53 | [IsIntegrallyClosed (X.presheaf.stalk x)] : ValuationRing (X.presheaf.stalk x) := by |
| 54 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 55 | have hx : coheight x ≤ 1 := (coheight_le_dimension f x).trans (by exact_mod_cast hdim) |
| 56 | let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx |
| 57 | exact normal_local_valuation (X.presheaf.stalk x) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CurveLocalRings |