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.Resolution.Blowups.GlobalComponent.ChoiceGluing |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Component.ChoiceOpenCover |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Global.MonomialBoundaryAtlas |
| 4 | |
| 5 | /-! # Choice Atlas -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.GlobalComponent.ChoiceAtlas.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite actual affine atlases for the canonical global coefficient-component stage. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | structure GlobalComponentChoiceAtlas {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) |
| 16 | (J : X.IdealSheafData) (n : ℕ) where |
| 17 | indices : Type |
| 18 | finite : Fintype indices |
| 19 | rings : indices → CommRingCat |
| 20 | algebra : ∀ i, Algebra ℂ (rings i) |
| 21 | rational : ∀ i, Algebra ℚ (rings i) |
| 22 | smooth : ∀ i, Algebra.Smooth ℂ (rings i) |
| 23 | map : ∀ i, Spec (rings i) ⟶ X |
| 24 | isOpenImmersion : ∀ i, IsOpenImmersion (map i) |
| 25 | quasiCompact : ∀ i, QuasiCompact (map i) |
| 26 | ground : ∀ i, map i ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure (rings i) |
| 27 | cover : ⨆ i, (map i).opensRange = ⊤ |
| 28 | ideals : ∀ i, Ideal (rings i) |
| 29 | ideal_eq : ∀ i, J.comap (map i) = Affine.QuotientKernel.Construction.affineQuotientKernel (ideals i) |
| 30 | choice : ∀ i, Component.CenterChoice.Construction.ComponentCenterChoice ℂ (rings i) (ideals i) n |
| 31 | |
| 32 | attribute [instance] GlobalComponentChoiceAtlas.finite GlobalComponentChoiceAtlas.algebra |
| 33 | GlobalComponentChoiceAtlas.rational GlobalComponentChoiceAtlas.smooth |
| 34 | GlobalComponentChoiceAtlas.isOpenImmersion GlobalComponentChoiceAtlas.quasiCompact |
| 35 | |
| 36 | theorem GlobalComponentChoiceAtlas.existsUnique_center {X : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 37 | {J : X.IdealSheafData} {n : ℕ} (A : GlobalComponentChoiceAtlas f J n) : |
| 38 | ∃! I : X.IdealSheafData, ∀ i, I.comap (A.map i) = Affine.QuotientKernel.Construction.affineQuotientKernel (A.choice i).center := |
| 39 | ChoiceGluing.Construction.existsUnique_global_component_choice_center ℂ f A.rings A.map A.ground A.cover J |
| 40 | A.ideals A.ideal_eq n A.choice |
| 41 | |
| 42 | theorem exists_finite_native_affine_cover (X : Scheme) [CompactSpace X] : |
| 43 | ∃ s : Finset X.affineOpens, (⨆ U : s, U.val.val) = ⊤ := by |
| 44 | classical |
| 45 | have hcover : Set.univ ⊆ ⋃ U : X.affineOpens, (U.val : Set X) := by |
| 46 | intro x _ |
| 47 | have hx : x ∈ ⨆ U : X.affineOpens, U.val := by rw [iSup_affineOpens_eq_top]; trivial |
| 48 | obtain ⟨U, hU⟩ := TopologicalSpace.Opens.mem_iSup.mp hx |
| 49 | exact Set.mem_iUnion.mpr ⟨U, hU⟩ |
| 50 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover |
| 51 | (fun U : X.affineOpens => (U.val : Set X)) (fun U => U.val.isOpen) hcover |
| 52 | refine ⟨s, top_le_iff.mp ?_⟩ |
| 53 | intro x _ |
| 54 | obtain ⟨U, hU, hx⟩ := Set.mem_iUnion₂.mp (hs (Set.mem_univ x)) |
| 55 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨⟨U, hU⟩, hx⟩ |
| 56 | |
| 57 | theorem exists_global_component_choice_atlas_of_affine_cover |
| 58 | {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [Smooth f] (J : X.IdealSheafData) (n : ℕ) |
| 59 | (hbound : Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf f J (n + 1) = ⊤) |
| 60 | {κ : Type} [Fintype κ] (U : κ → X.affineOpens) (hU : ⨆ i, (U i).val = ⊤) : |
| 61 | Nonempty (GlobalComponentChoiceAtlas f J n) := by |
| 62 | classical |
| 63 | let : ∀ i, Algebra ℂ Γ(X, U i) := fun i => Blowups.Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra f (U i) |
| 64 | let : ∀ i, Algebra.Smooth ℂ Γ(X, U i) := fun i => Blowups.Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra_smooth f (U i) |
| 65 | have hex (i : κ) := Component.ChoiceOpenCover.Construction.exists_finite_component_choice_cover ℂ (J.ideal (U i)) n |
| 66 | (show Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal ℂ (J.ideal (U i)) (n + 1) = ⊤ from |
| 67 | congrArg (fun K : X.IdealSheafData => K.ideal (U i)) hbound) |
| 68 | choose p s hs hc using hex |
| 69 | let ι := (i : κ) × p i |
| 70 | let R (i : ι) : CommRingCat := .of (Localization.Away (s i.1 i.2)) |
| 71 | let : ∀ i : ι, Algebra ℂ (R i) := fun _ => inferInstance |
| 72 | let : ∀ i : ι, Algebra ℚ (R i) := fun i => ((algebraMap ℂ (R i)).comp (algebraMap ℚ ℂ)).toAlgebra |
| 73 | let : ∀ i : ι, Algebra.Smooth ℂ (R i) := fun i => by |
| 74 | let : Algebra.Smooth Γ(X, U i.1) (R i) := Algebra.Smooth.of_isLocalization_Away (s i.1 i.2) |
| 75 | exact Algebra.Smooth.comp ℂ Γ(X, U i.1) (R i) |
| 76 | let : ∀ i : ι, IsNoetherianRing (R i) := fun i => Algebra.FiniteType.isNoetherianRing ℂ (R i) |
| 77 | let j (i : ι) : Spec (R i) ⟶ X := |
| 78 | Spec.map (CommRingCat.ofHom (algebraMap Γ(X, U i.1) (R i))) ≫ (U i.1).2.fromSpec |
| 79 | let : ∀ i, IsOpenImmersion (j i) := fun i => by |
| 80 | let : IsOpenImmersion (U i.1).2.fromSpec := (U i.1).2.isOpenImmersion_fromSpec |
| 81 | let : IsOpenImmersion (Spec.map (CommRingCat.ofHom (algebraMap Γ(X, U i.1) (R i)))) := |
| 82 | IsOpenImmersion.of_isLocalization (s i.1 i.2) |
| 83 | exact inferInstanceAs (IsOpenImmersion (_ ≫ _)) |
| 84 | have hj (i : ι) : j i ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure (R i) := by |
| 85 | dsimp only [j] |
| 86 | rw [Category.assoc, ← Affine.ComplexNaturality.Construction.affineComplexScalars_spec f (U i.1), ← Spec.map_comp] |
| 87 | rfl |
| 88 | have hcover : ⨆ i, (j i).opensRange = ⊤ := by |
| 89 | apply top_le_iff.mp |
| 90 | intro x _ |
| 91 | obtain ⟨i, y, hy⟩ := Global.MonomialBoundaryAtlas.Construction.exists_point_on_chosen_affine_spec U hU x |
| 92 | have hymem : y ∈ ⨆ a : p i, PrimeSpectrum.basicOpen (s i a) := by rw [hs i]; trivial |
| 93 | obtain ⟨a, ha⟩ := TopologicalSpace.Opens.mem_iSup.mp hymem |
| 94 | obtain ⟨q, hq⟩ := Etale.RefinementHelpers.Construction.exists_localization_away_prime (s i a) y ha |
| 95 | apply TopologicalSpace.Opens.mem_iSup.mpr |
| 96 | refine ⟨⟨i, a⟩, ?_⟩ |
| 97 | change x ∈ Set.range (j ⟨i, a⟩) |
| 98 | refine ⟨q, ?_⟩ |
| 99 | change (U i).2.fromSpec (PrimeSpectrum.comap (algebraMap Γ(X, U i) (R ⟨i, a⟩)) q) = x |
| 100 | rw [hq] |
| 101 | exact hy |
| 102 | refine ⟨{ |
| 103 | indices := ι |
| 104 | finite := inferInstance |
| 105 | rings := R |
| 106 | algebra := fun i => inferInstance |
| 107 | rational := fun i => inferInstance |
| 108 | smooth := fun i => inferInstance |
| 109 | map := j |
| 110 | isOpenImmersion := fun i => inferInstance |
| 111 | quasiCompact := fun i => inferInstance |
| 112 | ground := hj |
| 113 | cover := hcover |
| 114 | ideals := fun i => (J.ideal (U i.1)).map (algebraMap Γ(X, U i.1) (R i)) |
| 115 | ideal_eq := fun i => Affine.IdealSheafIdentification.Construction.idealSheaf_comap_affineMap_eq_quotient_kernel J (U i.1) |
| 116 | (algebraMap Γ(X, U i.1) (R i)) |
| 117 | choice := fun i => (hc i.1 i.2).some }⟩ |
| 118 | |
| 119 | theorem exists_global_component_choice_atlas |
| 120 | {X : Scheme} [CompactSpace X] (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [Smooth f] |
| 121 | (J : X.IdealSheafData) (n : ℕ) (hbound : Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf f J (n + 1) = ⊤) : |
| 122 | Nonempty (GlobalComponentChoiceAtlas f J n) := by |
| 123 | classical |
| 124 | obtain ⟨s, hs⟩ := exists_finite_native_affine_cover X |
| 125 | exact exists_global_component_choice_atlas_of_affine_cover f J n hbound (fun U : s => U.val) hs |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.AlgebraicGeometry.Resolution.Blowups.GlobalComponent.ChoiceAtlas.Construction |