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.PELModuli.IntegralModel.Specialization |
| 2 | import Mathlib.NumberTheory.NumberField.Basic |
| 3 | |
| 4 | /-! # Open -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Arithmetic.Open |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | An SpreadingOut model preserves surjectivity of the maps in the original diagram. |
| 12 | The two arithmetic-base structures below reproduce the data in SpreadingOut. No |
| 13 | generation or surjectivity condition is included in them. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | abbrev fieldBase (K : Type u) [Field K] : Scheme.{u} := |
| 21 | Spec (CommRingCat.of K) |
| 22 | |
| 23 | /-- The arithmetic open and its generic point, as specified by SpreadingOut. -/ |
| 24 | structure ArithmeticOpen (K : Type u) [Field K] [NumberField K] where |
| 25 | U : (Spec (CommRingCat.of (NumberField.RingOfIntegers K))).Opens |
| 26 | finite_complement : |
| 27 | ((U : Set (Spec |
| 28 | (CommRingCat.of (NumberField.RingOfIntegers K))))ᶜ).Finite |
| 29 | generic : fieldBase K ⟶ U.toScheme |
| 30 | generic_eq : |
| 31 | generic ≫ U.ι = |
| 32 | Spec.map (CommRingCat.ofHom |
| 33 | (algebraMap (NumberField.RingOfIntegers K) K)) |
| 34 | |
| 35 | /-- A finite extension, retaining the same data as SpreadingOut. -/ |
| 36 | structure FiniteNumberFieldExtension |
| 37 | (K : Type u) [Field K] [NumberField K] where |
| 38 | carrier : Type u |
| 39 | [field : Field carrier] |
| 40 | [algebra : Algebra K carrier] |
| 41 | [finite : FiniteDimensional K carrier] |
| 42 | [numberField : NumberField carrier] |
| 43 | |
| 44 | attribute [instance] FiniteNumberFieldExtension.field |
| 45 | FiniteNumberFieldExtension.algebra FiniteNumberFieldExtension.finite |
| 46 | FiniteNumberFieldExtension.numberField |
| 47 | |
| 48 | /-- The specified generic point is dominant in the arithmetic open. -/ |
| 49 | theorem ArithmeticOpen.generic_dominant |
| 50 | {K : Type u} [Field K] [NumberField K] (B : ArithmeticOpen K) : |
| 51 | IsDominant B.generic := by |
| 52 | have hspec : IsDominant |
| 53 | (Spec.map (CommRingCat.ofHom |
| 54 | (algebraMap (NumberField.RingOfIntegers K) K))) := by |
| 55 | constructor |
| 56 | apply (PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical _).mpr |
| 57 | intro x hx |
| 58 | have hx0 : x = 0 := NumberField.RingOfIntegers.coe_injective |
| 59 | (show algebraMap (NumberField.RingOfIntegers K) K x = |
| 60 | algebraMap (NumberField.RingOfIntegers K) K 0 from |
| 61 | (RingHom.mem_ker.mp hx).trans (map_zero _).symm) |
| 62 | exact hx0 ▸ Ideal.zero_mem _ |
| 63 | let : IsDominant (B.generic ≫ B.U.ι) := B.generic_eq.symm ▸ hspec |
| 64 | exact IsDominant.of_comp_of_isOpenImmersion B.generic B.U.ι |
| 65 | |
| 66 | /-- Surjectivity is unchanged by generic-fiber identifications in a |
| 67 | commuting square, and therefore holds throughout a smooth proper SpreadingOut model. -/ |
| 68 | theorem model_map_surjective |
| 69 | {K : Type u} [Field K] [NumberField K] |
| 70 | (L : FiniteNumberFieldExtension K) (B : ArithmeticOpen L.carrier) |
| 71 | {X Y : Over (fieldBase K)} (f : X ⟶ Y) [Surjective f.left] |
| 72 | {MX MY : Over B.U.toScheme} (fM : MX ⟶ MY) |
| 73 | [IsProper MX.hom] [IsSeparated MY.hom] [Smooth MY.hom] |
| 74 | (eX : (Over.pullback B.generic).obj MX ≅ |
| 75 | (Over.pullback (Spec.map |
| 76 | (CommRingCat.ofHom (algebraMap K L.carrier)))).obj X) |
| 77 | (eY : (Over.pullback B.generic).obj MY ≅ |
| 78 | (Over.pullback (Spec.map |
| 79 | (CommRingCat.ofHom (algebraMap K L.carrier)))).obj Y) |
| 80 | (hcompatible : |
| 81 | (Over.pullback B.generic).map fM ≫ eY.hom = |
| 82 | eX.hom ≫ (Over.pullback (Spec.map |
| 83 | (CommRingCat.ofHom (algebraMap K L.carrier)))).map f) : |
| 84 | Surjective fM.left := by |
| 85 | let k := Spec.map (CommRingCat.ofHom (algebraMap K L.carrier)) |
| 86 | let fb := ((Over.pullback k).map f).left |
| 87 | let fg := ((Over.pullback B.generic).map fM).left |
| 88 | have hfb : Surjective fb := |
| 89 | MorphismProperty.of_isPullback (P := @Surjective) |
| 90 | (Specialization.base_change_square k f) inferInstance |
| 91 | have hleft : fg ≫ eY.hom.left = eX.hom.left ≫ fb := |
| 92 | congrArg (fun h => h.left) hcompatible |
| 93 | let : IsIso eX.hom.left := |
| 94 | inferInstanceAs (IsIso ((Over.forget _).map eX.hom)) |
| 95 | let : IsIso eY.hom.left := |
| 96 | inferInstanceAs (IsIso ((Over.forget _).map eY.hom)) |
| 97 | have hfg : Surjective fg := by |
| 98 | constructor |
| 99 | intro y |
| 100 | obtain ⟨x, hx⟩ := hfb.surj (eY.hom.left y) |
| 101 | obtain ⟨xg, hxg⟩ := eX.hom.left.surjective x |
| 102 | refine ⟨xg, eY.hom.left.isOpenEmbedding.injective ?_⟩ |
| 103 | calc |
| 104 | eY.hom.left (fg xg) = fb (eX.hom.left xg) := |
| 105 | congrArg (fun h => h xg) hleft |
| 106 | _ = eY.hom.left y := by rw [hxg, hx] |
| 107 | have : IsProper (fM.left ≫ MY.hom) := by |
| 108 | rw [fM.w] |
| 109 | infer_instance |
| 110 | have hproper : IsProper fM.left := |
| 111 | IsProper.of_comp fM.left MY.hom |
| 112 | let : IsDominant B.generic := B.generic_dominant |
| 113 | exact Specialization.surjective_of_dominant_base_change B.generic fM hfg |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Arithmetic.Open |