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.Albanese.Construction.EtaleGeneric |
| 2 | import OAI.AlgebraicGeometry.Albanese.Construction.GeneratingWords |
| 3 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 4 | import Mathlib.Topology.Separation.Hausdorff |
| 5 | import Mathlib.RingTheory.Unramified.LocalStructure |
| 6 | |
| 7 | /-! # Finite Refinements -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Albanese.Construction.FiniteRefinements |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | open MonoidalCategory CartesianMonoidalCategory MonObj |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false in |
| 19 | /-- Equal-dimensional refinements of generated targets are étale. -/ |
| 20 | theorem refinement_etale (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 21 | (A B : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (a : X.toOver ⟶ A.toOver) (b : X.toOver ⟶ B.toOver) |
| 22 | (φ : A.toOver ⟶ B.toOver) [IsMonHom φ] (hφ : a ≫ φ = b) |
| 23 | (hb : GeneratedClosed.Generates X B b) |
| 24 | (hd : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.variety.structureMap = |
| 25 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension B.variety.structureMap) : Etale φ.left := by |
| 26 | have : IsIntegral A.toOver.left := inferInstanceAs (IsIntegral A.carrier) |
| 27 | have : IsIntegral B.toOver.left := inferInstanceAs (IsIntegral B.carrier) |
| 28 | have : Surjective φ.left := GeneratedClosed.refinement_surjective X A B a b φ hφ hb |
| 29 | have : IsDominant φ.left := ⟨φ.left.surjective.denseRange⟩ |
| 30 | have : Smooth φ.left := DominantSmooth.refinement_smooth X A B a b φ hφ hb |
| 31 | have : LocallyOfFiniteType A.toOver.hom := |
| 32 | inferInstanceAs (LocallyOfFiniteType A.variety.structureMap) |
| 33 | have : LocallyOfFiniteType B.toOver.hom := |
| 34 | inferInstanceAs (LocallyOfFiniteType B.variety.structureMap) |
| 35 | have : LocallyOfFiniteType (φ.left ≫ B.toOver.hom) := by rw [φ.w]; infer_instance |
| 36 | apply EtaleGeneric.smooth_etale_of_dimension_eq φ.left B.toOver.hom |
| 37 | rw [φ.w] |
| 38 | change Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.variety.structureMap = |
| 39 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension B.variety.structureMap |
| 40 | exact hd |
| 41 | |
| 42 | /-- Étale morphisms have quasi-finite fibers. -/ |
| 43 | theorem etale_locallyQuasiFinite {A B : Scheme} (f : A ⟶ B) [Etale f] : |
| 44 | LocallyQuasiFinite f where |
| 45 | quasiFinite_appLE {U} hU {V} hV e := by |
| 46 | have := f.etale_appLE hU hV e |
| 47 | algebraize [(f.appLE _ _ e).hom] |
| 48 | exact inferInstanceAs (Algebra.QuasiFinite Γ(B, U) Γ(A, V)) |
| 49 | |
| 50 | /-- Properness upgrades an equal-dimensional refinement to a finite map. -/ |
| 51 | theorem refinement_finite (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 52 | (A B : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (a : X.toOver ⟶ A.toOver) (b : X.toOver ⟶ B.toOver) |
| 53 | (φ : A.toOver ⟶ B.toOver) [IsMonHom φ] (hφ : a ≫ φ = b) |
| 54 | (hb : GeneratedClosed.Generates X B b) |
| 55 | (hd : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.variety.structureMap = |
| 56 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension B.variety.structureMap) : IsFinite φ.left := by |
| 57 | have : Etale φ.left := refinement_etale X A B a b φ hφ hb hd |
| 58 | have : LocallyQuasiFinite φ.left := etale_locallyQuasiFinite φ.left |
| 59 | have : IsProper A.toOver.hom := A.variety.presentation.projective.isProper |
| 60 | have : IsProper B.toOver.hom := B.variety.presentation.projective.isProper |
| 61 | have : IsProper (φ.left ≫ B.toOver.hom) := by rw [φ.w]; infer_instance |
| 62 | have : IsProper φ.left := IsProper.of_comp _ B.toOver.hom |
| 63 | exact IsFinite.of_isProper_of_locallyQuasiFinite φ.left |
| 64 | |
| 65 | /-- A Hausdorff continuous image has at most as many points as the source has |
| 66 | irreducible components, if there are finitely many such components. -/ |
| 67 | theorem card_le_irreducibleComponents_of_surjective |
| 68 | {Z T : Type*} [TopologicalSpace Z] [TopologicalSpace T] [T2Space T] |
| 69 | [Finite (irreducibleComponents Z)] (f : Z → T) (hf : Continuous f) |
| 70 | (hsurj : Function.Surjective f) : Nat.card T ≤ Nat.card (irreducibleComponents Z) := by |
| 71 | let point (C : irreducibleComponents Z) : Z := |
| 72 | C.property.1.nonempty.choose |
| 73 | have hpoint (C : irreducibleComponents Z) : point C ∈ C.val := |
| 74 | C.property.1.nonempty.choose_spec |
| 75 | apply Nat.card_le_card_of_surjective (fun C => f (point C)) |
| 76 | intro t |
| 77 | obtain ⟨z, rfl⟩ := hsurj t |
| 78 | let C : irreducibleComponents Z := ⟨irreducibleComponent z, irreducibleComponent_mem_irreducibleComponents z⟩ |
| 79 | refine ⟨C, ?_⟩ |
| 80 | exact (C.property.1.image f |
| 81 | hf.continuousOn).isPreirreducible.subsingleton |
| 82 | ⟨point C, hpoint C, rfl⟩ ⟨z, mem_irreducibleComponent, rfl⟩ |
| 83 | |
| 84 | /-- Surjectivity survives taking the fibers of a factorization. -/ |
| 85 | def factorFiberMap {D A B : Scheme.{u}} (a : D ⟶ A) (φ : A ⟶ B) (y : B) : |
| 86 | (a ≫ φ).fiber y ⟶ φ.fiber y := |
| 87 | pullback.map (a ≫ φ) (B.fromSpecResidueField y) φ (B.fromSpecResidueField y) |
| 88 | a (𝟙 _) (𝟙 _) (by simp) (by simp) |
| 89 | |
| 90 | theorem factorFiberMap_surjective {D A B : Scheme.{u}} (a : D ⟶ A) (φ : A ⟶ B) |
| 91 | [Surjective a] (y : B) : Surjective (factorFiberMap a φ y) := by |
| 92 | have : MorphismProperty.IsStableUnderComposition @Surjective.{u} := |
| 93 | ⟨fun _ _ hf hg => ⟨hg.1.comp hf.1⟩⟩ |
| 94 | unfold factorFiberMap |
| 95 | exact MorphismProperty.pullbackMap (P := @Surjective.{u}) |
| 96 | (f := a ≫ φ) (g := B.fromSpecResidueField y) (f' := φ) (g' := B.fromSpecResidueField y) |
| 97 | (inferInstance : Surjective a) |
| 98 | (inferInstance : Surjective (𝟙 (Spec (B.residueField y)))) rfl (by simp) |
| 99 | |
| 100 | /-- Finite-type fiber components bound the size of a quasi-finite target |
| 101 | fiber reached by a surjective factorization. -/ |
| 102 | theorem fiber_card_le_components_of_factor {D A B : Scheme.{u}} |
| 103 | (a : D ⟶ A) (φ : A ⟶ B) [Surjective a] [LocallyQuasiFinite φ] (y : B) |
| 104 | [Finite (irreducibleComponents ((a ≫ φ).fiber y))] : |
| 105 | Nat.card (φ.fiber y) ≤ Nat.card (irreducibleComponents ((a ≫ φ).fiber y)) := by |
| 106 | have := factorFiberMap_surjective a φ y |
| 107 | exact card_le_irreducibleComponents_of_surjective (factorFiberMap a φ y) |
| 108 | (factorFiberMap a φ y).continuous (factorFiberMap a φ y).surjective |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.Albanese.Construction.FiniteRefinements |