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.CycleClass.Thom.ProperImage.GenericFiber |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.ProperImage.EtaleLocus |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.ProperImage.SupportFields |
| 4 | import Mathlib.Analysis.Complex.Basic |
| 5 | import Mathlib.RingTheory.Unramified.LocalStructure |
| 6 | |
| 7 | /-! # Generic Etale -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.ProperImage.GenericEtale.Constructions.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | variable {S T : Scheme} [IsIntegral S] [IsIntegral T] |
| 16 | |
| 17 | /-- Characteristic zero makes the finite generic extension separable, |
| 18 | so the actual stalk map is formally etale at the generic point. -/ |
| 19 | theorem generic_stalk_formallyEtale (i : S ⟶ T) (g : T ⟶ Spec (.of ℂ)) |
| 20 | [LocallyOfFiniteType i] [LocallyOfFiniteType g] |
| 21 | (hη : i (genericPoint S) = genericPoint T) |
| 22 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 23 | (i.stalkMap (genericPoint S)).hom.FormallyEtale := by |
| 24 | let := Foundations.Scheme.FunctionFieldScalar.functionFieldScalarAlgebra g |
| 25 | let : CharZero T.functionField := Algebra.charZero_of_charZero ℂ T.functionField |
| 26 | let := (FunctionFields.Constructions.Construction.genericFieldMap i hη).hom.toAlgebra |
| 27 | let := FunctionFields.Constructions.Construction.genericField_extension_finite i hη g hdim |
| 28 | let : Algebra.IsSeparable T.functionField S.functionField := inferInstance |
| 29 | have h : (FunctionFields.Constructions.Construction.genericFieldMap i hη).hom.FormallyEtale := |
| 30 | Algebra.FormallyEtale.of_isSeparable T.functionField S.functionField |
| 31 | exact (EtaleLocus.Constructions.Construction.formallyEtale_respectsIso.cancel_left_isIso |
| 32 | (T.presheaf.stalkCongr (Inseparable.of_eq hη.symm)).hom |
| 33 | (i.stalkMap (genericPoint S))).mp h |
| 34 | |
| 35 | /-- A proper map that is formally etale at its unique point above the |
| 36 | target generic point is etale over a target Zariski-open neighborhood. -/ |
| 37 | theorem exists_etale_target_neighborhood (i : S ⟶ T) |
| 38 | [IsProper i] [LocallyOfFinitePresentation i] |
| 39 | (hη : i (genericPoint S) = genericPoint T) |
| 40 | (hfiber : i ⁻¹' {genericPoint T} = {genericPoint S}) |
| 41 | (het : (i.stalkMap (genericPoint S)).hom.FormallyEtale) : |
| 42 | ∃ W : T.Opens, genericPoint T ∈ W ∧ Etale (i ∣_ W) := by |
| 43 | obtain ⟨U, V, hVU, hηV, he⟩ := EtaleLocus.Constructions.Construction.exists_etale_neighborhood i (genericPoint S) het |
| 44 | let W : T.Opens := U ⊓ |
| 45 | ⟨(i '' (V : Set S)ᶜ)ᶜ, (i.isClosedMap _ V.isOpen.isClosed_compl).isOpen_compl⟩ |
| 46 | have hηW : genericPoint T ∈ W := by |
| 47 | refine ⟨?_, ?_⟩ |
| 48 | · rw [← hη] |
| 49 | exact hVU hηV |
| 50 | · rintro ⟨x, hxV, hx⟩ |
| 51 | have hxη : x = genericPoint S := by |
| 52 | have hxmem : x ∈ i ⁻¹' {genericPoint T} := hx |
| 53 | rw [hfiber] at hxmem |
| 54 | exact hxmem |
| 55 | exact hxV (hxη ▸ hηV) |
| 56 | have hpre : i ⁻¹ᵁ W ≤ V := by |
| 57 | intro x hx |
| 58 | by_contra hxV |
| 59 | exact hx.2 ⟨x, hxV, rfl⟩ |
| 60 | refine ⟨W, hηW, ?_⟩ |
| 61 | let : Etale (i.resLE U V hVU) := he |
| 62 | let : Etale (V.ι ≫ i) := by |
| 63 | rw [← Scheme.Hom.resLE_comp_ι i hVU] |
| 64 | infer_instance |
| 65 | let : Etale ((i ⁻¹ᵁ W).ι ≫ i) := by |
| 66 | rw [← S.homOfLE_ι hpre, Category.assoc] |
| 67 | infer_instance |
| 68 | let : Etale ((i ∣_ W) ≫ W.ι) := by |
| 69 | rw [morphismRestrict_ι] |
| 70 | infer_instance |
| 71 | exact Etale.of_comp (i ∣_ W) W.ι |
| 72 | |
| 73 | /-- A dimension-preserving proper morphism of integral complex varieties |
| 74 | is etale over a neighborhood of the target generic point. -/ |
| 75 | theorem exists_generic_etale_open (i : S ⟶ T) (g : T ⟶ Spec (.of ℂ)) |
| 76 | [IsProper i] [LocallyOfFinitePresentation i] [LocallyOfFiniteType g] |
| 77 | (hη : i (genericPoint S) = genericPoint T) |
| 78 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 79 | ∃ W : T.Opens, genericPoint T ∈ W ∧ Etale (i ∣_ W) := |
| 80 | exists_etale_target_neighborhood i hη (GenericFiber.Constructions.Construction.genericFiber_eq_singleton i g hη hdim) |
| 81 | (generic_stalk_formallyEtale i g hη hdim) |
| 82 | |
| 83 | theorem etale_locallyQuasiFinite {A B : Scheme} (f : A ⟶ B) [Etale f] : |
| 84 | LocallyQuasiFinite f where |
| 85 | quasiFinite_appLE {U} hU {V} hV e := by |
| 86 | let := (f.appLE U V e).hom.toAlgebra |
| 87 | let : Algebra.Etale Γ(B, U) Γ(A, V) := f.etale_appLE hU hV e |
| 88 | exact inferInstanceAs (Algebra.QuasiFinite Γ(B, U) Γ(A, V)) |
| 89 | |
| 90 | theorem exists_generic_finiteEtale_open (i : S ⟶ T) (g : T ⟶ Spec (.of ℂ)) |
| 91 | [IsProper i] [LocallyOfFinitePresentation i] [LocallyOfFiniteType g] |
| 92 | (hη : i (genericPoint S) = genericPoint T) |
| 93 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ g)) : |
| 94 | ∃ W : T.Opens, genericPoint T ∈ W ∧ IsFinite (i ∣_ W) ∧ Etale (i ∣_ W) := by |
| 95 | obtain ⟨W, hW, he⟩ := exists_generic_etale_open i g hη hdim |
| 96 | let : Etale (i ∣_ W) := he |
| 97 | let : LocallyQuasiFinite (i ∣_ W) := etale_locallyQuasiFinite _ |
| 98 | exact ⟨W, hW, IsFinite.of_isProper_of_locallyQuasiFinite _, he⟩ |
| 99 | |
| 100 | /-- The actual proper map of supports appearing in Functoriality is finite etale |
| 101 | over a Zariski-open neighborhood of the image support's generic point. -/ |
| 102 | theorem supportImageMap_exists_finiteEtale_open |
| 103 | {X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 104 | (f : X.toOver ⟶ Y.toOver) (hf : IsProper f.left) |
| 105 | {p : ℕ} (Z : Geometric.DimensionCycles.DimensionCycleSupport X p) |
| 106 | (hdim : Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Reduction.Constructions.imageSupport f Z) Y.structureMap = |
| 107 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z.1 X.structureMap) : |
| 108 | ∃ W : (Geometric.GenericPoint.reducedSupportScheme (Reduction.Constructions.imageSupport f Z)).Opens, |
| 109 | genericPoint (Geometric.GenericPoint.reducedSupportScheme (Reduction.Constructions.imageSupport f Z)) ∈ W ∧ |
| 110 | IsFinite (SupportMap.Constructions.Construction.supportImageMap f hf Z ∣_ W) ∧ Etale (SupportMap.Constructions.Construction.supportImageMap f hf Z ∣_ W) := by |
| 111 | let i := SupportMap.Constructions.Construction.supportImageMap f hf Z |
| 112 | let g := Geometric.SupportFiniteType.supportStructureMap (Reduction.Constructions.imageSupport f Z) Y.structureMap |
| 113 | let : IsProper i := SupportMap.Constructions.Construction.supportImageMap_isProper f hf Z |
| 114 | let : IsProper g := |
| 115 | (Y.presentation.projective.reducedSupport (Reduction.Constructions.imageSupport f Z)).isProper |
| 116 | let : IsNoetherian (Geometric.GenericPoint.reducedSupportScheme (Reduction.Constructions.imageSupport f Z)) := |
| 117 | Foundations.Scheme.ClosedProjective.isNoetherian_of_isProper_toSpec g |
| 118 | apply exists_generic_finiteEtale_open i g (SupportMap.Constructions.Construction.supportImageMap_genericPoint f hf Z) |
| 119 | change Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension g = Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension |
| 120 | (SupportMap.Constructions.Construction.supportImageMap f hf Z ≫ Geometric.SupportFiniteType.supportStructureMap (Reduction.Constructions.imageSupport f Z) Y.structureMap) |
| 121 | rw [SupportMap.Constructions.Construction.supportImageMap_over] |
| 122 | exact hdim |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.CycleClass.Thom.ProperImage.GenericEtale.Constructions.Construction |