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.ArithmeticGeometry.OrdinaryLocus.Openness.CotangentDimension |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GeometricDimension |
| 3 | |
| 4 | /-! # Smooth Relative Dimension -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SmoothRelativeDimension.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual local dimension of smooth charts of fixed relative dimension. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | /-- A standard smooth algebra of relative dimension n over a perfect field |
| 18 | has local dimension n at every maximal ideal. -/ |
| 19 | theorem ringKrullDim_localization_maximal_of_standardSmooth |
| 20 | (K B : Type*) [Field K] [PerfectField K] [CommRing B] [Algebra K B] |
| 21 | (n : ℕ) [Algebra.IsStandardSmoothOfRelativeDimension n K B] |
| 22 | (p : Ideal B) [p.IsMaximal] : |
| 23 | ringKrullDim (Localization.AtPrime p) = (n : WithBot ℕ∞) := by |
| 24 | have : Nontrivial B := (algebraMap B p.ResidueField).domain_nontrivial |
| 25 | have : Algebra.IsStandardSmooth K B := |
| 26 | Algebra.IsStandardSmoothOfRelativeDimension.isStandardSmooth n |
| 27 | rw [CotangentDimension.Construction.ringKrullDim_localization_maximal_eq_rankAtStalk_kaehler K B p, |
| 28 | Module.rankAtStalk_eq_finrank_of_free] |
| 29 | exact congrArg (fun m : ℕ => (m : WithBot ℕ∞)) |
| 30 | (Module.finrank_eq_of_rank_eq |
| 31 | (Algebra.IsStandardSmoothOfRelativeDimension.rank_kaehlerDifferential n)) |
| 32 | |
| 33 | /-- Smooth relative dimension over a perfect field agrees with local |
| 34 | Krull dimension at closed points. -/ |
| 35 | theorem ringKrullDim_stalk_of_smoothOfRelativeDimension |
| 36 | {K : Type u} [Field K] [PerfectField K] {X : Scheme.{u}} |
| 37 | (n : ℕ) (f : X ⟶ Spec (.of K)) [SmoothOfRelativeDimension n f] |
| 38 | (x : X) (hx : IsClosed {x}) : |
| 39 | ringKrullDim (X.presheaf.stalk x) = (n : WithBot ℕ∞) := by |
| 40 | obtain ⟨U, _, V, hV, hxV, hVU, hstd⟩ := |
| 41 | SmoothOfRelativeDimension.exists_isStandardSmoothOfRelativeDimension (n := n) (f := f) x |
| 42 | have hU : U = ⊤ := by |
| 43 | apply le_antisymm le_top |
| 44 | intro y _ |
| 45 | exact (Subsingleton.elim (f x) y) ▸ hVU hxV |
| 46 | subst U |
| 47 | let R := Γ(Spec (.of K), ⊤) |
| 48 | let B := Γ(X, V) |
| 49 | let e := (Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv |
| 50 | let : Field R := (e.toMulEquiv.isField (Field.toIsField K)).toField |
| 51 | have : PerfectField R := PerfectField.of_ringEquiv e.symm |
| 52 | let : Algebra R B := (f.appLE ⊤ V hVU).hom.toAlgebra |
| 53 | have : Algebra.IsStandardSmoothOfRelativeDimension n R B := hstd |
| 54 | let p := hV.primeIdealOf ⟨x, hxV⟩ |
| 55 | have : p.asIdeal.IsMaximal := hV.primeIdealOf_isMaximal_of_isClosed ⟨x, hxV⟩ hx |
| 56 | let := TopCat.Presheaf.algebra_section_stalk X.presheaf (⟨x, hxV⟩ : V) |
| 57 | have : IsLocalization.AtPrime (X.presheaf.stalk x) p.asIdeal := |
| 58 | hV.isLocalization_stalk ⟨x, hxV⟩ |
| 59 | let e' := (IsLocalization.algEquiv p.asIdeal.primeCompl |
| 60 | (Localization.AtPrime p.asIdeal) (X.presheaf.stalk x)).toRingEquiv |
| 61 | exact (ringKrullDim_eq_of_ringEquiv e').symm.trans |
| 62 | (ringKrullDim_localization_maximal_of_standardSmooth R B n p.asIdeal) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SmoothRelativeDimension.Construction |