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 Mathlib.AlgebraicGeometry.Properties |
| 2 | import Mathlib.AlgebraicGeometry.Fiber |
| 3 | import Mathlib.Topology.KrullDimension |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Integral |
| 5 | |
| 6 | /-! # Integral Dimension -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.IntegralDimension.Dimension |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Dimension invariance for integral surjective morphisms and algebraic field extensions. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | /-- Specialization order computes the actual topological dimension of a scheme. -/ |
| 19 | theorem topologicalKrullDim_eq_specialization_krullDim (X : Scheme) : |
| 20 | topologicalKrullDim X = Order.krullDim X := |
| 21 | Order.krullDim_eq_of_orderIso (irreducibleSetEquivPoints (α := X)) |
| 22 | |
| 23 | /-- An integral scheme over a field has closed points only. -/ |
| 24 | theorem t1Space_of_integral_over_field |
| 25 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 26 | (f : X ⟶ Spec (.of K)) [IsIntegralHom f] : T1Space X := by |
| 27 | have : IsAffine X := isAffine_of_isAffineHom f |
| 28 | let φ := Spec.preimage (X.isoSpec.inv ≫ f) |
| 29 | let : Algebra K Γ(X, ⊤) := φ.hom.toAlgebra |
| 30 | have : IsIntegralHom (Spec.map φ) := by |
| 31 | dsimp [φ] |
| 32 | rw [Spec.map_preimage] |
| 33 | infer_instance |
| 34 | have : Algebra.IsIntegral K Γ(X, ⊤) := |
| 35 | ⟨IsIntegralHom.SpecMap_iff.mp inferInstance⟩ |
| 36 | have : T1Space (Spec (.of Γ(X, ⊤))) := by |
| 37 | constructor |
| 38 | intro p |
| 39 | apply p.isClosed_singleton_iff_isMaximal.mpr |
| 40 | have : p.asIdeal.IsPrime := p.isPrime |
| 41 | apply Ideal.IsIntegral.isMaximal_of_isMaximal_under (R := K) p.asIdeal |
| 42 | have : (p.asIdeal.comap (algebraMap K Γ(X, ⊤))).IsPrime := inferInstance |
| 43 | simpa only [Ideal.eq_bot_of_prime] using (Ideal.bot_isMaximal : |
| 44 | (⊥ : Ideal K).IsMaximal) |
| 45 | exact X.isoSpec.inv.homeomorph.t1Space |
| 46 | |
| 47 | /-- Fibers of an integral morphism are T1 spaces. -/ |
| 48 | theorem t1Space_preimage_singleton_of_isIntegral |
| 49 | {X Y : Scheme} (f : X ⟶ Y) [IsIntegralHom f] (y : Y) : |
| 50 | T1Space (f ⁻¹' {y}) := by |
| 51 | have : IsIntegralHom (f.fiberToSpecResidueField y) := by |
| 52 | change IsIntegralHom (pullback.snd f (Y.fromSpecResidueField y)) |
| 53 | infer_instance |
| 54 | have : T1Space (f.fiber y) := |
| 55 | @t1Space_of_integral_over_field (Y.residueField y) _ _ (f.fiberToSpecResidueField y) ‹_› |
| 56 | exact (f.fiberHomeo y).t1Space |
| 57 | |
| 58 | /-- Integral morphisms do not identify distinct comparable points. -/ |
| 59 | theorem strictMono_of_isIntegral |
| 60 | {X Y : Scheme} (f : X ⟶ Y) [IsIntegralHom f] : StrictMono f := by |
| 61 | intro x y hxy |
| 62 | have hle : f x ≤ f y := |
| 63 | Scheme.le_iff_specializes.mpr ((Scheme.le_iff_specializes.mp hxy.le).map f.continuous) |
| 64 | apply lt_iff_le_not_ge.mpr |
| 65 | refine ⟨hle, ?_⟩ |
| 66 | intro hge |
| 67 | have heq : f x = f y := ((Scheme.le_iff_specializes.mp hge).antisymm |
| 68 | (Scheme.le_iff_specializes.mp hle)).eq |
| 69 | have : T1Space (f ⁻¹' {f x}) := t1Space_preimage_singleton_of_isIntegral f (f x) |
| 70 | have hspec : (⟨y, heq.symm⟩ : f ⁻¹' {f x}) ⤳ ⟨x, rfl⟩ := |
| 71 | Topology.IsEmbedding.subtypeVal.specializes_iff.mp |
| 72 | (Scheme.le_iff_specializes.mp hxy.le) |
| 73 | have hxy' : y = x := congrArg Subtype.val hspec.eq |
| 74 | exact hxy.not_ge (le_of_eq hxy') |
| 75 | |
| 76 | /-- Integral morphisms preserve specialization heights, by incomparability |
| 77 | and lifting of specializations along their closed underlying maps. -/ |
| 78 | theorem height_eq_of_isIntegral |
| 79 | {X Y : Scheme} (f : X ⟶ Y) [IsIntegralHom f] (x : X) : |
| 80 | Order.height x = Order.height (f x) := by |
| 81 | apply Order.height_eq_of_strictMono f (strictMono_of_isIntegral f) |
| 82 | intro a b hba |
| 83 | obtain ⟨a', haa', ha'⟩ := f.isClosedMap.specializingMap |
| 84 | (Scheme.le_iff_specializes.mp hba.le) |
| 85 | refine ⟨a', lt_iff_le_not_ge.mpr ⟨Scheme.le_iff_specializes.mpr haa', ?_⟩, ha'⟩ |
| 86 | intro hge |
| 87 | have : f a ≤ b := ha' ▸ Scheme.le_iff_specializes.mpr |
| 88 | ((Scheme.le_iff_specializes.mp hge).map f.continuous) |
| 89 | exact hba.not_ge this |
| 90 | |
| 91 | /-- Integral surjective scheme morphisms preserve topological Krull dimension. -/ |
| 92 | theorem topologicalKrullDim_eq_of_integral_surjective |
| 93 | {X Y : Scheme} (f : X ⟶ Y) [IsIntegralHom f] [Surjective f] : |
| 94 | topologicalKrullDim X = topologicalKrullDim Y := by |
| 95 | rw [topologicalKrullDim_eq_specialization_krullDim, |
| 96 | topologicalKrullDim_eq_specialization_krullDim, |
| 97 | Order.krullDim_eq_iSup_height, Order.krullDim_eq_iSup_height] |
| 98 | simp_rw [height_eq_of_isIntegral f] |
| 99 | exact (f.surjective.iSup_comp (fun y : Y => (Order.height y : WithBot ℕ∞))) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.IntegralDimension.Dimension |