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.Foundations.Scheme.ProjectiveSpace |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 3 | import Mathlib.AlgebraicGeometry.ResidueField |
| 4 | |
| 5 | /-! # Immersion Complex Points -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.ImmersionComplexPoints |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Field-valued points in the image of an immersion |
| 13 | |
| 14 | A morphism surjective on stalks induces isomorphisms on residue fields. Hence |
| 15 | a field-valued point whose underlying point lies in its image lifts through |
| 16 | the morphism: transport the residue-field character through that isomorphism. |
| 17 | This also proves the exact image formula for ordinary relative complex points |
| 18 | of closed immersions, immersions, and preimmersions, without any finite-type |
| 19 | or algebraic-closedness assumption in the field-valued lifting theorem. |
| 20 | |
| 21 | Only algebraic point sets occur here; no analytic topology is imported. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | section ResidueFields |
| 29 | |
| 30 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) [SurjectiveOnStalks f] |
| 31 | |
| 32 | /-- Surjectivity on stalks descends to surjectivity on the actual residue fields. -/ |
| 33 | theorem residueFieldMap_surjective_of_surjectiveOnStalks (x : X) : |
| 34 | Function.Surjective (f.residueFieldMap x) := by |
| 35 | have h : Function.Surjective (f.stalkMap x ≫ X.residue x) := |
| 36 | (X.residue_surjective x).comp (f.stalkMap_surjective x) |
| 37 | rw [← Scheme.residue_residueFieldMap f x] at h |
| 38 | rw [ConcreteCategory.coe_comp] at h |
| 39 | exact Function.Surjective.of_comp h |
| 40 | |
| 41 | /-- The induced residue-field map is an actual isomorphism: injectivity comes |
| 42 | from its field domain and surjectivity from the stalk map. -/ |
| 43 | def residueFieldIsoOfSurjectiveOnStalks (x : X) : |
| 44 | Y.residueField (f x) ≅ X.residueField x := |
| 45 | (RingEquiv.ofBijective (f.residueFieldMap x).hom |
| 46 | ⟨(f.residueFieldMap x).hom.injective, |
| 47 | residueFieldMap_surjective_of_surjectiveOnStalks f x⟩).toCommRingCatIso |
| 48 | |
| 49 | @[simp] |
| 50 | theorem residueFieldIsoOfSurjectiveOnStalks_hom (x : X) : |
| 51 | (residueFieldIsoOfSurjectiveOnStalks f x).hom = f.residueFieldMap x := rfl |
| 52 | |
| 53 | end ResidueFields |
| 54 | |
| 55 | section FieldPoints |
| 56 | |
| 57 | variable {K : Type u} [Field K] {X Y : Scheme.{u}} |
| 58 | |
| 59 | /-- Every field-valued point with underlying point in the image lifts through |
| 60 | a morphism surjective on stalks. The residue-field character is transported |
| 61 | through the inverse of the actual residue-field map. -/ |
| 62 | theorem surjectiveOnStalks_exists_fieldPoint_lift (f : X ⟶ Y) |
| 63 | [SurjectiveOnStalks f] (p : Spec (.of K) ⟶ Y) (z : Spec (.of K)) |
| 64 | (hp : p z ∈ Set.range f) : |
| 65 | ∃ q : Spec (.of K) ⟶ X, q ≫ f = p := by |
| 66 | obtain ⟨⟨y, χ⟩, rfl⟩ := (Scheme.SpecToEquivOfField K Y).symm.surjective p |
| 67 | change (Spec.map χ ≫ Y.fromSpecResidueField y) z ∈ Set.range f at hp |
| 68 | simp only [Scheme.Hom.comp_apply, Scheme.fromSpecResidueField_apply] at hp |
| 69 | obtain ⟨x, hx⟩ := hp |
| 70 | subst y |
| 71 | let : IsIso (f.residueFieldMap x) := |
| 72 | (residueFieldIsoOfSurjectiveOnStalks f x).isIso_hom |
| 73 | refine ⟨Spec.map (inv (f.residueFieldMap x) ≫ χ) ≫ X.fromSpecResidueField x, ?_⟩ |
| 74 | change _ = Spec.map χ ≫ Y.fromSpecResidueField (f x) |
| 75 | rw [Category.assoc, ← f.SpecMap_residueFieldMap_fromSpecResidueField x, |
| 76 | ← Category.assoc, ← Spec.map_comp] |
| 77 | simp |
| 78 | |
| 79 | /-- The field-valued lift respects a prescribed base morphism automatically. -/ |
| 80 | theorem surjectiveOnStalks_relativeFieldPoint_existsLift |
| 81 | {S : Scheme.{u}} {X Y : Over S} (f : X ⟶ Y) [SurjectiveOnStalks f.left] |
| 82 | {b : Spec (.of K) ⟶ S} (p : Over.mk b ⟶ Y) (z : Spec (.of K)) |
| 83 | (hp : p.left z ∈ Set.range f.left) : |
| 84 | ∃ q : Over.mk b ⟶ X, q ≫ f = p := by |
| 85 | obtain ⟨q, hq⟩ := surjectiveOnStalks_exists_fieldPoint_lift f.left p.left z hp |
| 86 | refine ⟨Over.homMk q ?_, ?_⟩ |
| 87 | · rw [← f.w, ← Category.assoc, hq] |
| 88 | exact p.w |
| 89 | · apply Over.OverMorphism.ext |
| 90 | exact hq |
| 91 | |
| 92 | /-- Exact image of the relative field-point map for a morphism surjective |
| 93 | on stalks. -/ |
| 94 | theorem range_surjectiveOnStalks_relativeFieldPointMap |
| 95 | {S : Scheme.{u}} {X Y : Over S} (f : X ⟶ Y) [SurjectiveOnStalks f.left] |
| 96 | (b : Spec (.of K) ⟶ S) (z : Spec (.of K)) : |
| 97 | Set.range (fun q : Over.mk b ⟶ X => q ≫ f) = |
| 98 | {p : Over.mk b ⟶ Y | p.left z ∈ Set.range f.left} := by |
| 99 | ext p |
| 100 | constructor |
| 101 | · rintro ⟨q, rfl⟩ |
| 102 | exact ⟨q.left z, (Scheme.Hom.comp_apply q.left f.left z).symm⟩ |
| 103 | · exact fun hp => surjectiveOnStalks_relativeFieldPoint_existsLift f p z hp |
| 104 | |
| 105 | /-- For a preimmersion the relative field-valued lift is unique. -/ |
| 106 | theorem preimmersion_relativeFieldPoint_existsUnique |
| 107 | {S : Scheme.{u}} {X Y : Over S} (f : X ⟶ Y) [IsPreimmersion f.left] |
| 108 | {b : Spec (.of K) ⟶ S} (p : Over.mk b ⟶ Y) (z : Spec (.of K)) |
| 109 | (hp : p.left z ∈ Set.range f.left) : |
| 110 | ∃! q : Over.mk b ⟶ X, q ≫ f = p := by |
| 111 | let : Mono f := Over.mono_of_mono_left f |
| 112 | obtain ⟨q, hq⟩ := surjectiveOnStalks_relativeFieldPoint_existsLift f p z hp |
| 113 | refine ⟨q, hq, ?_⟩ |
| 114 | intro r hr |
| 115 | exact (cancel_mono f).mp (hr.trans hq.symm) |
| 116 | |
| 117 | end FieldPoints |
| 118 | |
| 119 | variable {X Y : Over ProjectiveSpace.complexBase} |
| 120 | |
| 121 | /-- The precise image of the ordinary relative complex-point map, stated |
| 122 | without importing or changing its analytic topology. -/ |
| 123 | theorem range_surjectiveOnStalks_complexPointMap (f : X ⟶ Y) |
| 124 | [SurjectiveOnStalks f.left] : |
| 125 | Set.range (fun q : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X => q ≫ f) = |
| 126 | {p : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ Y | |
| 127 | p.left (⊥ : PrimeSpectrum ℂ) ∈ Set.range f.left} := |
| 128 | range_surjectiveOnStalks_relativeFieldPointMap f (𝟙 ProjectiveSpace.complexBase) |
| 129 | (⊥ : PrimeSpectrum ℂ) |
| 130 | |
| 131 | /-- Closed immersions have exactly the complex points prescribed by their |
| 132 | underlying scheme image. -/ |
| 133 | theorem range_closedImmersion_complexPointMap (f : X ⟶ Y) |
| 134 | [IsClosedImmersion f.left] : |
| 135 | Set.range (fun q : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X => q ≫ f) = |
| 136 | {p : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ Y | |
| 137 | p.left (⊥ : PrimeSpectrum ℂ) ∈ Set.range f.left} := |
| 138 | range_surjectiveOnStalks_complexPointMap f |
| 139 | |
| 140 | /-- The same image characterization holds for every scheme immersion. -/ |
| 141 | theorem range_immersion_complexPointMap (f : X ⟶ Y) [IsImmersion f.left] : |
| 142 | Set.range (fun q : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X => q ≫ f) = |
| 143 | {p : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ Y | |
| 144 | p.left (⊥ : PrimeSpectrum ℂ) ∈ Set.range f.left} := |
| 145 | range_surjectiveOnStalks_complexPointMap f |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI.AlgebraicGeometry.Foundations.Scheme.ImmersionComplexPoints |