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.Picard.Homomorphisms.OpenFrameDescent |
| 2 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.CommonLineFrames |
| 3 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.PullbackHomRestriction |
| 4 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.DescentMatching |
| 5 | |
| 6 | /-! # Line Hom Descent -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LineHomDescent.Construction.LineDescent |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # CartierDuality: global descent of morphisms of actual line bundles |
| 14 | |
| 15 | Local framed descent is glued through the internal Hom sheaf. The |
| 16 | compatibility is retained on every test scheme throughout the proof. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Geometric.KernelLinearization |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | /-- Morphisms of module sheaves are determined on an open cover. -/ |
| 25 | theorem hom_ext_open_cover {X : Scheme.{u}} (L M : X.Modules) |
| 26 | {ι : Type v} (U : ι → X.Opens) (hU : ∀ x : X, ∃ i, x ∈ U i) |
| 27 | (a b : L ⟶ M) |
| 28 | (h : ∀ i, (Scheme.Modules.pullback (U i).ι).map a = |
| 29 | (Scheme.Modules.pullback (U i).ι).map b) : a = b := by |
| 30 | apply (Picard.Homomorphisms.GlobalHomSections.Construction.moduleHomGlobalSectionEquiv L M).injective |
| 31 | let H := Picard.Homomorphisms.InternalHom.Construction.moduleInternalHom L M |
| 32 | let F : TopCat.Sheaf AddCommGrpCat X := ⟨H.presheaf, H.isSheaf⟩ |
| 33 | apply F.eq_of_locally_eq' U ⊤ (fun i => (U i).leTop) |
| 34 | (fun x _ => Opens.mem_iSup.mpr (hU x)) |
| 35 | intro i |
| 36 | exact (Picard.Homomorphisms.PullbackHomGluing.Construction.pullbackHomOnOpenEquiv_map L M (U i) a).symm.trans |
| 37 | ((congrArg (Picard.Homomorphisms.PullbackHomGluing.Construction.pullbackHomOnOpenEquiv L M (U i)) (h i)).trans |
| 38 | (Picard.Homomorphisms.PullbackHomGluing.Construction.pullbackHomOnOpenEquiv_map L M (U i) b)) |
| 39 | |
| 40 | /-- Transport of a map pulled back from the base is its direct pullback. -/ |
| 41 | theorem transport_map {X Y T : Scheme.{u}} (f : X ⟶ Y) {L M : Y.Modules} |
| 42 | (a : L ⟶ M) (t : T ⟶ X) (q : T ⟶ Y) (ht : t ≫ f = q) : |
| 43 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport f ((Scheme.Modules.pullback f).map a) t q ht = |
| 44 | (Scheme.Modules.pullback q).map a := by |
| 45 | rw [Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport_native] |
| 46 | exact NatIso.naturality_1 (Scheme.Modules.pullbackComp t f ≪≫ Scheme.Modules.pullbackCongr ht) a |
| 47 | |
| 48 | /-- Equality of transported maps detects equality after pullback. -/ |
| 49 | theorem map_eq_of_transport_eq {X Y T : Scheme.{u}} (f : X ⟶ Y) {L M : Y.Modules} |
| 50 | (a b : (Scheme.Modules.pullback f).obj L ⟶ (Scheme.Modules.pullback f).obj M) |
| 51 | (t : T ⟶ X) (q : T ⟶ Y) (ht : t ≫ f = q) |
| 52 | (h : Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport f a t q ht = Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport f b t q ht) : |
| 53 | (Scheme.Modules.pullback t).map a = (Scheme.Modules.pullback t).map b := by |
| 54 | let e := Scheme.Modules.pullbackComp t f ≪≫ Scheme.Modules.pullbackCongr ht |
| 55 | have he : e.inv.app L ≫ (Scheme.Modules.pullback t).map a ≫ e.hom.app M = |
| 56 | e.inv.app L ≫ (Scheme.Modules.pullback t).map b ≫ e.hom.app M := |
| 57 | (Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport_native f a t q ht).symm.trans |
| 58 | (h.trans (Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport_native f b t q ht)) |
| 59 | exact (cancel_mono (e.hom.app M)).mp |
| 60 | ((cancel_epi (e.inv.app L)).mp (by simpa only [Category.assoc] using he)) |
| 61 | |
| 62 | /-- Faithfully flat quasi-compact pullback detects line-bundle maps, |
| 63 | by the framed calculation on an open cover. -/ |
| 64 | theorem pullbackHom_injective_lines {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 65 | [Flat f] [Surjective f] [QuasiCompact f] (L M : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle Y) : |
| 66 | Function.Injective ((Scheme.Modules.pullback f).map : (L.sheaf ⟶ M.sheaf) → _) := by |
| 67 | intro a b hab |
| 68 | choose U hU e d using Picard.Homomorphisms.CommonLineFrames.Construction.common_line_frame_neighborhood L M |
| 69 | apply hom_ext_open_cover L.sheaf M.sheaf U (fun y => ⟨y, hU y⟩) a b |
| 70 | intro y |
| 71 | have : Surjective (f ∣_ U y) := MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 72 | (isPullback_morphismRestrict f (U y)).flip (inferInstanceAs (Surjective f)) |
| 73 | apply Picard.Homomorphisms.FramedModuleHomDescent.Construction.pullbackHom_injective_of_frames (f ∣_ U y) (Classical.choice (e y)) (Classical.choice (d y)) |
| 74 | apply map_eq_of_transport_eq (U y).ι _ _ (f ∣_ U y) ((f ⁻¹ᵁ U y).ι ≫ f) |
| 75 | (morphismRestrict_ι f (U y)) |
| 76 | rw [transport_map, transport_map] |
| 77 | rw [← transport_map f a (f ⁻¹ᵁ U y).ι ((f ⁻¹ᵁ U y).ι ≫ f) rfl, |
| 78 | ← transport_map f b (f ⁻¹ᵁ U y).ι ((f ⁻¹ᵁ U y).ι ≫ f) rfl, hab] |
| 79 | |
| 80 | /-- Match a descent morphism in a general commuting square before |
| 81 | specializing the schemes and comparison maps to open restrictions. -/ |
| 82 | theorem square_matching {X Y U XU : Scheme.{u}} |
| 83 | (f : X ⟶ Y) (g : XU ⟶ U) (s : U ⟶ Y) (t : XU ⟶ X) |
| 84 | (w : t ≫ f = g ≫ s) {L M : Y.Modules} |
| 85 | (b : (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj L ⟶ |
| 86 | (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj M) |
| 87 | (a : (Scheme.Modules.pullback s).obj L ⟶ (Scheme.Modules.pullback s).obj M) |
| 88 | (ha : (Scheme.Modules.pullback g).map a = |
| 89 | (Picard.Homomorphisms.ModuleHomBaseChange.Construction.baseChangedDescentHom f g s t w b).hom PUnit.unit) : |
| 90 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport s a g (t ≫ f) w.symm = |
| 91 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport f (Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b) t (t ≫ f) rfl := |
| 92 | Picard.Homomorphisms.DescentMatching.Construction.moduleHom_matching_of_square f g s t w (Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b) a |
| 93 | (ha.trans (Picard.Homomorphisms.ModuleHomBaseChange.Construction.baseChangedDescentHom_native f g s t w b)) |
| 94 | |
| 95 | /-- Framed descent in a commuting square supplies a matching map |
| 96 | without expanding the specialized open-descent object. -/ |
| 97 | theorem exists_descent_on_square {X Y U XU : Scheme.{u}} |
| 98 | (f : X ⟶ Y) (g : XU ⟶ U) (s : U ⟶ Y) (t : XU ⟶ X) |
| 99 | (w : t ≫ f = g ≫ s) [Flat g] [Surjective g] [QuasiCompact g] {L M : Y.Modules} |
| 100 | (e : (Scheme.Modules.pullback s).obj L ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule U) |
| 101 | (d : (Scheme.Modules.pullback s).obj M ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule U) |
| 102 | (b : (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj L ⟶ |
| 103 | (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj M) : |
| 104 | ∃ a : (Scheme.Modules.pullback s).obj L ⟶ (Scheme.Modules.pullback s).obj M, |
| 105 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport s a g (t ≫ f) w.symm = |
| 106 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport f (Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b) t (t ≫ f) rfl := by |
| 107 | let c := Picard.Homomorphisms.ModuleHomBaseChange.Construction.baseChangedDescentHom f g s t w b |
| 108 | obtain ⟨a, ha, _⟩ := Picard.Homomorphisms.FramedModuleHomDescent.Construction.existsUnique_framed_moduleHom_descent g e d (Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom g c) |
| 109 | (fun q x y hx hy => Picard.Homomorphisms.OpenFrameDescent.Construction.nativeDescentHom_compatible g c q x y hx hy) |
| 110 | exact ⟨a, square_matching f g s t w b a ha⟩ |
| 111 | |
| 112 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) {L M : Y.Modules} |
| 113 | |
| 114 | /-- Restricting a descended map keeps its matching equation with the cover. -/ |
| 115 | theorem open_matching_restrict {U V : Y.Opens} (h : V ≤ U) |
| 116 | (b : (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj L ⟶ |
| 117 | (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj M) |
| 118 | (a : (Scheme.Modules.pullback U.ι).obj L ⟶ (Scheme.Modules.pullback U.ι).obj M) |
| 119 | (ha : Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport U.ι a (f ∣_ U) ((f ⁻¹ᵁ U).ι ≫ f) (morphismRestrict_ι f U) = |
| 120 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport f (Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b) (f ⁻¹ᵁ U).ι ((f ⁻¹ᵁ U).ι ≫ f) rfl) : |
| 121 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport V.ι (Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport U.ι a (Y.homOfLE h) V.ι (Y.homOfLE_ι h)) |
| 122 | (f ∣_ V) ((f ⁻¹ᵁ V).ι ≫ f) (morphismRestrict_ι f V) = |
| 123 | Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport f (Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b) (f ⁻¹ᵁ V).ι ((f ⁻¹ᵁ V).ι ≫ f) rfl := |
| 124 | Picard.Homomorphisms.DescentMatching.Construction.moduleHom_matching_baseChange f (f ∣_ U) U.ι (f ⁻¹ᵁ U).ι |
| 125 | (morphismRestrict_ι f U).symm (Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b) a ha |
| 126 | (Y.homOfLE h) (X.homOfLE (f.preimage_mono h)) (f ∣_ V) |
| 127 | (morphismRestrict_homOfLE f V U h).symm V.ι (Y.homOfLE_ι h) |
| 128 | (f ⁻¹ᵁ V).ι (X.homOfLE_ι (f.preimage_mono h)) (morphismRestrict_ι f V).symm |
| 129 | |
| 130 | /-- Compatible morphisms of line bundles descend globally through a |
| 131 | faithfully flat quasi-compact cover of an arbitrary scheme. -/ |
| 132 | theorem existsUnique_lineHom_descent [Flat f] [Surjective f] [QuasiCompact f] |
| 133 | (L M : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle Y) |
| 134 | (b : (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj L.sheaf ⟶ |
| 135 | (Picard.PoincareBundle.Geometric.KernelLinearization.modulePullbacks.toDescentData (fun (_ : PUnit.{1}) => f)).obj M.sheaf) : |
| 136 | ∃! a : L.sheaf ⟶ M.sheaf, (Scheme.Modules.pullback f).map a = Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b := by |
| 137 | choose U hU e d using Picard.Homomorphisms.CommonLineFrames.Construction.common_line_frame_neighborhood L M |
| 138 | have hsurj (x : Y) : Surjective (f ∣_ U x) := |
| 139 | MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 140 | (isPullback_morphismRestrict f (U x)).flip (inferInstanceAs (Surjective f)) |
| 141 | choose a ha using fun x => |
| 142 | exists_descent_on_square f (f ∣_ U x) (U x).ι (f ⁻¹ᵁ U x).ι |
| 143 | (morphismRestrict_ι f (U x)).symm (Classical.choice (e x)) (Classical.choice (d x)) b |
| 144 | have hcover : ∀ y : Y, ∃ x, y ∈ U x := fun y => ⟨y, hU y⟩ |
| 145 | have hab : ∀ x y, |
| 146 | (Picard.Homomorphisms.InternalHom.Construction.moduleInternalHom L.sheaf M.sheaf).presheaf.map |
| 147 | (homOfLE (show U x ⊓ U y ≤ U x from inf_le_left)).op |
| 148 | (Picard.Homomorphisms.PullbackHomGluing.Construction.pullbackHomOnOpenEquiv L.sheaf M.sheaf (U x) (a x)) = |
| 149 | (Picard.Homomorphisms.InternalHom.Construction.moduleInternalHom L.sheaf M.sheaf).presheaf.map |
| 150 | (homOfLE (show U x ⊓ U y ≤ U y from inf_le_right)).op |
| 151 | (Picard.Homomorphisms.PullbackHomGluing.Construction.pullbackHomOnOpenEquiv L.sheaf M.sheaf (U y) (a y)) := by |
| 152 | intro x y |
| 153 | rw [← Picard.Homomorphisms.PullbackHomRestriction.Construction.pullbackHomOnOpenEquiv_restrict, ← Picard.Homomorphisms.PullbackHomRestriction.Construction.pullbackHomOnOpenEquiv_restrict] |
| 154 | apply congrArg (Picard.Homomorphisms.PullbackHomGluing.Construction.pullbackHomOnOpenEquiv L.sheaf M.sheaf (U x ⊓ U y)) |
| 155 | let V := U x ⊓ U y |
| 156 | have hs : Surjective (f ∣_ V) := MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 157 | (isPullback_morphismRestrict f V).flip (inferInstanceAs (Surjective f)) |
| 158 | apply Picard.Homomorphisms.ModuleHomTransport.Construction.moduleHomTransport_injective V.ι (f ∣_ V) ((f ⁻¹ᵁ V).ι ≫ f) |
| 159 | (morphismRestrict_ι f V) |
| 160 | (Picard.Homomorphisms.FramedModuleHomDescent.Construction.pullbackHom_injective_of_frames (f ∣_ V) |
| 161 | (L.frameRestrict inf_le_left (Classical.choice (e x))) |
| 162 | (M.frameRestrict inf_le_left (Classical.choice (d x)))) |
| 163 | exact (open_matching_restrict f inf_le_left b (a x) (ha x)).trans |
| 164 | (open_matching_restrict f inf_le_right b (a y) (ha y)).symm |
| 165 | obtain ⟨a₀, ha₀, _⟩ := Picard.Homomorphisms.PullbackHomGluing.Construction.pullbackModuleHom_glue L.sheaf M.sheaf U hcover a hab |
| 166 | have hfinal : (Scheme.Modules.pullback f).map a₀ = Picard.Homomorphisms.ModuleHomBaseChange.Construction.canonicalDescentModuleHom f b := by |
| 167 | apply hom_ext_open_cover _ _ (fun x => f ⁻¹ᵁ U x) |
| 168 | (fun z => ⟨f z, hU (f z)⟩) |
| 169 | intro x |
| 170 | apply map_eq_of_transport_eq f _ _ (f ⁻¹ᵁ U x).ι ((f ⁻¹ᵁ U x).ι ≫ f) rfl |
| 171 | rw [transport_map] |
| 172 | have hm := ha x |
| 173 | rw [← ha₀ x, transport_map] at hm |
| 174 | exact hm |
| 175 | exact ⟨a₀, hfinal, fun a' ha' => |
| 176 | pullbackHom_injective_lines f L M (ha'.trans hfinal.symm)⟩ |
| 177 | |
| 178 | end |
| 179 | |
| 180 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.LineHomDescent.Construction.LineDescent |