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.Cycles.Functoriality.GenericFiber |
| 2 | import OAI.AlgebraicGeometry.Cycles.Functoriality.EtaleLocus |
| 3 | import OAI.AlgebraicGeometry.Cycles.Functoriality.SupportFields |
| 4 | import Mathlib.Analysis.Complex.Basic |
| 5 | import Mathlib.RingTheory.Unramified.LocalStructure |
| 6 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SmoothStratum |
| 7 | |
| 8 | /-! # Generic Etale -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.GenericEtale.Construction |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | section |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | |
| 18 | variable {S T : Scheme} [IsIntegral S] [IsIntegral T] |
| 19 | |
| 20 | /-- Characteristic zero makes the finite generic extension separable, |
| 21 | so the actual stalk map is formally etale at the generic point. -/ |
| 22 | theorem generic_stalk_formallyEtale (i : S ⟶ T) (g : T ⟶ Spec (.of ℂ)) |
| 23 | [LocallyOfFiniteType i] [LocallyOfFiniteType g] |
| 24 | (hη : i (genericPoint S) = genericPoint T) |
| 25 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 26 | (i.stalkMap (genericPoint S)).hom.FormallyEtale := by |
| 27 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra g |
| 28 | let : CharZero T.functionField := Algebra.charZero_of_charZero ℂ T.functionField |
| 29 | let := (FunctionFields.Construction.genericFieldMap i hη).hom.toAlgebra |
| 30 | let := FunctionFields.Construction.genericField_extension_finite i hη g hdim |
| 31 | let : Algebra.IsSeparable T.functionField S.functionField := inferInstance |
| 32 | have h : (FunctionFields.Construction.genericFieldMap i hη).hom.FormallyEtale := |
| 33 | Algebra.FormallyEtale.of_isSeparable T.functionField S.functionField |
| 34 | exact (EtaleLocus.Construction.formallyEtale_respectsIso.cancel_left_isIso |
| 35 | (T.presheaf.stalkCongr (Inseparable.of_eq hη.symm)).hom |
| 36 | (i.stalkMap (genericPoint S))).mp h |
| 37 | |
| 38 | /-- A proper map that is formally etale at its unique point above the |
| 39 | target generic point is etale over a target Zariski-open neighborhood. -/ |
| 40 | theorem exists_etale_target_neighborhood (i : S ⟶ T) |
| 41 | [IsProper i] [LocallyOfFinitePresentation i] |
| 42 | (hη : i (genericPoint S) = genericPoint T) |
| 43 | (hfiber : i ⁻¹' {genericPoint T} = {genericPoint S}) |
| 44 | (het : (i.stalkMap (genericPoint S)).hom.FormallyEtale) : |
| 45 | ∃ W : T.Opens, genericPoint T ∈ W ∧ Etale (i ∣_ W) := by |
| 46 | obtain ⟨U, V, hVU, hηV, he⟩ := EtaleLocus.Construction.exists_etale_neighborhood i (genericPoint S) het |
| 47 | let W : T.Opens := U ⊓ |
| 48 | ⟨(i '' (V : Set S)ᶜ)ᶜ, (i.isClosedMap _ V.isOpen.isClosed_compl).isOpen_compl⟩ |
| 49 | have hηW : genericPoint T ∈ W := by |
| 50 | refine ⟨?_, ?_⟩ |
| 51 | · rw [← hη] |
| 52 | exact hVU hηV |
| 53 | · rintro ⟨x, hxV, hx⟩ |
| 54 | have hxη : x = genericPoint S := by |
| 55 | have hxmem : x ∈ i ⁻¹' {genericPoint T} := hx |
| 56 | rw [hfiber] at hxmem |
| 57 | exact hxmem |
| 58 | exact hxV (hxη ▸ hηV) |
| 59 | have hpre : i ⁻¹ᵁ W ≤ V := by |
| 60 | intro x hx |
| 61 | by_contra hxV |
| 62 | exact hx.2 ⟨x, hxV, rfl⟩ |
| 63 | refine ⟨W, hηW, ?_⟩ |
| 64 | let : Etale (i.resLE U V hVU) := he |
| 65 | let : Etale (V.ι ≫ i) := by |
| 66 | rw [← Scheme.Hom.resLE_comp_ι i hVU] |
| 67 | infer_instance |
| 68 | let : Etale ((i ⁻¹ᵁ W).ι ≫ i) := by |
| 69 | rw [← S.homOfLE_ι hpre, Category.assoc] |
| 70 | infer_instance |
| 71 | let : Etale ((i ∣_ W) ≫ W.ι) := by |
| 72 | rw [morphismRestrict_ι] |
| 73 | infer_instance |
| 74 | exact Etale.of_comp (i ∣_ W) W.ι |
| 75 | |
| 76 | /-- A dimension-preserving proper morphism of integral complex varieties |
| 77 | is etale over a neighborhood of the target generic point. -/ |
| 78 | theorem exists_generic_etale_open (i : S ⟶ T) (g : T ⟶ Spec (.of ℂ)) |
| 79 | [IsProper i] [LocallyOfFinitePresentation i] [LocallyOfFiniteType g] |
| 80 | (hη : i (genericPoint S) = genericPoint T) |
| 81 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 82 | ∃ W : T.Opens, genericPoint T ∈ W ∧ Etale (i ∣_ W) := |
| 83 | exists_etale_target_neighborhood i hη (GenericFiber.Construction.genericFiber_eq_singleton i g hη hdim) |
| 84 | (generic_stalk_formallyEtale i g hη hdim) |
| 85 | |
| 86 | theorem etale_locallyQuasiFinite {A B : Scheme} (f : A ⟶ B) [Etale f] : |
| 87 | LocallyQuasiFinite f where |
| 88 | quasiFinite_appLE {U} hU {V} hV e := by |
| 89 | let := (f.appLE U V e).hom.toAlgebra |
| 90 | let : Algebra.Etale Γ(B, U) Γ(A, V) := f.etale_appLE hU hV e |
| 91 | exact inferInstanceAs (Algebra.QuasiFinite Γ(B, U) Γ(A, V)) |
| 92 | |
| 93 | theorem exists_generic_finiteEtale_open (i : S ⟶ T) (g : T ⟶ Spec (.of ℂ)) |
| 94 | [IsProper i] [LocallyOfFinitePresentation i] [LocallyOfFiniteType g] |
| 95 | (hη : i (genericPoint S) = genericPoint T) |
| 96 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 97 | ∃ W : T.Opens, genericPoint T ∈ W ∧ IsFinite (i ∣_ W) ∧ Etale (i ∣_ W) := by |
| 98 | obtain ⟨W, hW, he⟩ := exists_generic_etale_open i g hη hdim |
| 99 | let : Etale (i ∣_ W) := he |
| 100 | let : LocallyQuasiFinite (i ∣_ W) := etale_locallyQuasiFinite _ |
| 101 | exact ⟨W, hW, IsFinite.of_isProper_of_locallyQuasiFinite _, he⟩ |
| 102 | |
| 103 | /-- The actual proper map of supports appearing in Functoriality is finite etale |
| 104 | over a Zariski-open neighborhood of the image support's generic point. -/ |
| 105 | theorem supportImageMap_exists_finiteEtale_open |
| 106 | {X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 107 | (f : X.toOver ⟶ Y.toOver) (hf : IsProper f.left) |
| 108 | {p : ℕ} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport X p) |
| 109 | (hdim : Foundations.Scheme.SupportDimension.supportTranscendenceDimension (UnitCap.imageSupport f Z) Y.structureMap = |
| 110 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z.1 X.structureMap) : |
| 111 | ∃ W : (CycleClass.Geometric.GenericPoint.reducedSupportScheme (UnitCap.imageSupport f Z)).Opens, |
| 112 | genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme (UnitCap.imageSupport f Z)) ∈ W ∧ |
| 113 | IsFinite (SupportMap.Construction.supportImageMap f hf Z ∣_ W) ∧ Etale (SupportMap.Construction.supportImageMap f hf Z ∣_ W) := by |
| 114 | let i := SupportMap.Construction.supportImageMap f hf Z |
| 115 | let g := CycleClass.Geometric.SupportFiniteType.supportStructureMap (UnitCap.imageSupport f Z) Y.structureMap |
| 116 | let : IsProper i := SupportMap.Construction.supportImageMap_isProper f hf Z |
| 117 | let : IsProper g := |
| 118 | (Y.presentation.projective.reducedSupport (UnitCap.imageSupport f Z)).isProper |
| 119 | let : IsNoetherian (CycleClass.Geometric.GenericPoint.reducedSupportScheme (UnitCap.imageSupport f Z)) := |
| 120 | Foundations.Scheme.ClosedProjective.isNoetherian_of_isProper_toSpec g |
| 121 | apply exists_generic_finiteEtale_open i g (SupportMap.Construction.supportImageMap_genericPoint f hf Z) |
| 122 | change Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension |
| 123 | (SupportMap.Construction.supportImageMap f hf Z ≫ CycleClass.Geometric.SupportFiniteType.supportStructureMap (UnitCap.imageSupport f Z) Y.structureMap) |
| 124 | rw [SupportMap.Construction.supportImageMap_over] |
| 125 | exact hdim |
| 126 | |
| 127 | end |
| 128 | |
| 129 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 130 | |
| 131 | /-- The finite etale generic open can be chosen inside the target smooth |
| 132 | locus. Its entire inverse image is then smooth as well. -/ |
| 133 | theorem exists_generic_smooth_finiteEtale_open |
| 134 | {S T : Scheme} [IsIntegral S] [IsIntegral T] |
| 135 | (i : S ⟶ T) (g : T ⟶ Spec (.of ℂ)) |
| 136 | [IsProper i] [LocallyOfFinitePresentation i] [LocallyOfFinitePresentation g] |
| 137 | (hη : i (genericPoint S) = genericPoint T) |
| 138 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 139 | ∃ W : T.Opens, genericPoint T ∈ W ∧ |
| 140 | IsFinite (i ∣_ W) ∧ Etale (i ∣_ W) ∧ |
| 141 | Smooth (W.ι ≫ g) ∧ Smooth ((i ⁻¹ᵁ W).ι ≫ (i ≫ g)) := by |
| 142 | obtain ⟨U, hU, hfin, het⟩ := exists_generic_finiteEtale_open i g hη hdim |
| 143 | let : IsFinite (i ∣_ U) := hfin |
| 144 | let : Etale (i ∣_ U) := het |
| 145 | let W := U ⊓ g.smoothLocus |
| 146 | have hW : U.ι ''ᵁ (U.ι ⁻¹ᵁ g.smoothLocus) = W := by |
| 147 | simp only [Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι, W] |
| 148 | let e := morphismRestrictRestrict i U (U.ι ⁻¹ᵁ g.smoothLocus) ≪≫ morphismRestrictEq i hW |
| 149 | let : MorphismProperty.RespectsIso (@IsFinite.{0} : MorphismProperty Scheme.{0}) := by |
| 150 | apply MorphismProperty.RespectsIso.mk |
| 151 | · intro A B C e f hf |
| 152 | let : IsFinite f := hf |
| 153 | infer_instance |
| 154 | · intro A B C e f hf |
| 155 | let : IsFinite f := hf |
| 156 | infer_instance |
| 157 | let : MorphismProperty.RespectsIso (@Etale.{0} : MorphismProperty Scheme.{0}) := by |
| 158 | apply MorphismProperty.RespectsIso.mk |
| 159 | · intro A B C e f hf |
| 160 | let : Etale f := hf |
| 161 | infer_instance |
| 162 | · intro A B C e f hf |
| 163 | let : Etale f := hf |
| 164 | infer_instance |
| 165 | let : IsFinite (i ∣_ W) := (MorphismProperty.arrow_mk_iso_iff |
| 166 | (@IsFinite.{0} : MorphismProperty Scheme.{0}) e).mp inferInstance |
| 167 | let : Etale (i ∣_ W) := (MorphismProperty.arrow_mk_iso_iff |
| 168 | (@Etale.{0} : MorphismProperty Scheme.{0}) e).mp inferInstance |
| 169 | let : Smooth (g.smoothLocus.ι ≫ g) := CycleClass.Geometric.SmoothStratum.smoothStratumToBase_isSmooth g |
| 170 | have hle : W ≤ g.smoothLocus := inf_le_right |
| 171 | let : Smooth (W.ι ≫ g) := by |
| 172 | rw [← T.homOfLE_ι hle, Category.assoc] |
| 173 | infer_instance |
| 174 | refine ⟨W, ⟨hU, g.genericPoint_mem_smoothLocus_of_perfectField⟩, |
| 175 | inferInstance, inferInstance, inferInstance, ?_⟩ |
| 176 | rw [← Category.assoc, ← morphismRestrict_ι, Category.assoc] |
| 177 | infer_instance |
| 178 | |
| 179 | end |
| 180 | |
| 181 | end OAI.AlgebraicGeometry.Cycles.Functoriality.GenericEtale.Construction |