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.AbelianModuli.HilbertConstruction.Ample.LineBundles |
| 2 | |
| 3 | /-! # Nonvanishing -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.Nonvanishing |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Nonvanishing of sections and its behavior under restriction to open subschemes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X Y Z : Scheme.{u}} |
| 16 | |
| 17 | private theorem isIso_map_of_natIso {C D : Type*} [Category* C] [Category* D] |
| 18 | {F G : C ⥤ D} (e : F ≅ G) {M N : C} (s : M ⟶ N) [IsIso (F.map s)] : |
| 19 | IsIso (G.map s) := by |
| 20 | have h : e.inv.app M ≫ F.map s ≫ e.hom.app N = G.map s := by |
| 21 | rw [e.hom.naturality] |
| 22 | simp |
| 23 | rw [← h] |
| 24 | infer_instance |
| 25 | |
| 26 | private theorem isIso_map_iff_of_natIso {C D : Type*} [Category* C] [Category* D] |
| 27 | {F G : C ⥤ D} (e : F ≅ G) {M N : C} (s : M ⟶ N) : |
| 28 | IsIso (F.map s) ↔ IsIso (G.map s) := by |
| 29 | constructor |
| 30 | · intro h |
| 31 | let := h |
| 32 | exact isIso_map_of_natIso e s |
| 33 | · intro h |
| 34 | let := h |
| 35 | exact isIso_map_of_natIso e.symm s |
| 36 | |
| 37 | /-- Pullback along a scheme isomorphism reflects invertible module-sheaf maps. -/ |
| 38 | theorem isIso_pullback_map_iff (f : X ⟶ Y) [IsIso f] {M N : Y.Modules} (s : M ⟶ N) : |
| 39 | IsIso ((Scheme.Modules.pullback f).map s) ↔ IsIso s := by |
| 40 | constructor |
| 41 | · intro h |
| 42 | let := h |
| 43 | have : IsIso ((Scheme.Modules.pullback f ⋙ Scheme.Modules.pullback (inv f)).map s) := |
| 44 | inferInstanceAs (IsIso ((Scheme.Modules.pullback (inv f)).map |
| 45 | ((Scheme.Modules.pullback f).map s))) |
| 46 | exact isIso_map_of_natIso |
| 47 | (Scheme.Modules.pullbackComp (inv f) f ≪≫ |
| 48 | Scheme.Modules.pullbackCongr (IsIso.inv_hom_id f) ≪≫ Scheme.Modules.pullbackId Y) s |
| 49 | · intro h |
| 50 | let := h |
| 51 | infer_instance |
| 52 | |
| 53 | /-- The choice of the structure-module comparison does not affect invertibility of a section. -/ |
| 54 | theorem isIso_pullbackSection_iff (f : X ⟶ Y) {M : Y.Modules} (s : Line.Bundles.structureModule Y ⟶ M) : |
| 55 | IsIso (Ample.LineBundles.pullbackSection f s) ↔ IsIso ((Scheme.Modules.pullback f).map s) := |
| 56 | isIso_comp_left_iff (Line.Bundles.structureModulePullbackIso f).inv ((Scheme.Modules.pullback f).map s) |
| 57 | |
| 58 | /-- A local frame remains a local frame under any pullback. -/ |
| 59 | instance pullbackSection_isIso (f : X ⟶ Y) {M : Y.Modules} |
| 60 | (s : Line.Bundles.structureModule Y ⟶ M) [IsIso s] : IsIso (Ample.LineBundles.pullbackSection f s) := |
| 61 | (isIso_pullbackSection_iff f s).mpr inferInstance |
| 62 | |
| 63 | /-- Successive section pullbacks and composite pullback have the same invertibility condition. -/ |
| 64 | theorem isIso_pullbackSection_comp_iff (f : Y ⟶ Z) (h : X ⟶ Y) {M : Z.Modules} |
| 65 | (s : Line.Bundles.structureModule Z ⟶ M) : |
| 66 | IsIso (Ample.LineBundles.pullbackSection h (Ample.LineBundles.pullbackSection f s)) ↔ IsIso (Ample.LineBundles.pullbackSection (h ≫ f) s) := by |
| 67 | simp only [Ample.LineBundles.pullbackSection, Functor.map_comp, isIso_comp_left_iff] |
| 68 | exact isIso_map_iff_of_natIso (Scheme.Modules.pullbackComp h f) s |
| 69 | |
| 70 | /-- Precomposition by an isomorphism does not change the local-frame condition. -/ |
| 71 | theorem isIso_pullbackSection_comp_iso_iff (f : Y ⟶ Z) (h : X ⟶ Y) [IsIso h] |
| 72 | {M : Z.Modules} (s : Line.Bundles.structureModule Z ⟶ M) : |
| 73 | IsIso (Ample.LineBundles.pullbackSection (h ≫ f) s) ↔ IsIso (Ample.LineBundles.pullbackSection f s) := |
| 74 | (isIso_pullbackSection_comp_iff f h s).symm.trans |
| 75 | ((isIso_pullbackSection_iff h (Ample.LineBundles.pullbackSection f s)).trans |
| 76 | (isIso_pullback_map_iff h (Ample.LineBundles.pullbackSection f s))) |
| 77 | |
| 78 | /-- Frames on an open part of an open subscheme are exactly frames on its image open. -/ |
| 79 | theorem isIso_pullbackSection_image_iff (f : X ⟶ Y) [IsOpenImmersion f] |
| 80 | {M : Y.Modules} (s : Line.Bundles.structureModule Y ⟶ M) (U : X.Opens) : |
| 81 | IsIso (Ample.LineBundles.pullbackSection U.ι (Ample.LineBundles.pullbackSection f s)) ↔ |
| 82 | IsIso (Ample.LineBundles.pullbackSection (f ''ᵁ U).ι s) := |
| 83 | (isIso_pullbackSection_comp_iff f U.ι s).trans |
| 84 | ((congrArg (fun a : U.toScheme ⟶ Y => IsIso (Ample.LineBundles.pullbackSection a s)) |
| 85 | (f.isoImage_hom_ι U).symm).to_iff.trans |
| 86 | (isIso_pullbackSection_comp_iso_iff (f ''ᵁ U).ι (f.isoImage U).hom s)) |
| 87 | |
| 88 | /-- A frame on an open of the target pulls back to a frame on its preimage. -/ |
| 89 | theorem isIso_pullbackSection_preimage (f : X ⟶ Y) {M : Y.Modules} |
| 90 | (s : Line.Bundles.structureModule Y ⟶ M) (V : Y.Opens) [IsIso (Ample.LineBundles.pullbackSection V.ι s)] : |
| 91 | IsIso (Ample.LineBundles.pullbackSection (f ⁻¹ᵁ V).ι (Ample.LineBundles.pullbackSection f s)) := by |
| 92 | apply (isIso_pullbackSection_comp_iff f (f ⁻¹ᵁ V).ι s).mpr |
| 93 | have h : IsIso (Ample.LineBundles.pullbackSection ((f ∣_ V) ≫ V.ι) s) := |
| 94 | (isIso_pullbackSection_comp_iff V.ι (f ∣_ V) s).mp inferInstance |
| 95 | exact (congrArg (fun a : (f ⁻¹ᵁ V).toScheme ⟶ Y => IsIso (Ample.LineBundles.pullbackSection a s)) |
| 96 | (morphismRestrict_ι f V)).mp h |
| 97 | |
| 98 | /-- Restricting a section pulls back its nonvanishing open. -/ |
| 99 | theorem sectionNonvanishing_pullback (f : X ⟶ Y) [IsOpenImmersion f] |
| 100 | {M : Y.Modules} (s : Line.Bundles.structureModule Y ⟶ M) : |
| 101 | Ample.LineBundles.sectionNonvanishing (Ample.LineBundles.pullbackSection f s) = f ⁻¹ᵁ Ample.LineBundles.sectionNonvanishing s := by |
| 102 | ext x |
| 103 | change x ∈ Ample.LineBundles.sectionNonvanishing (Ample.LineBundles.pullbackSection f s) ↔ f x ∈ Ample.LineBundles.sectionNonvanishing s |
| 104 | simp only [Ample.LineBundles.sectionNonvanishing, TopologicalSpace.Opens.mem_sSup, Set.mem_ofPred_eq] |
| 105 | constructor |
| 106 | · rintro ⟨U, hU, hx⟩ |
| 107 | exact ⟨f ''ᵁ U, (isIso_pullbackSection_image_iff f s U).mp hU, ⟨x, hx, rfl⟩⟩ |
| 108 | · rintro ⟨V, hV, hx⟩ |
| 109 | let := hV |
| 110 | exact ⟨f ⁻¹ᵁ V, isIso_pullbackSection_preimage f s V, hx⟩ |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.Nonvanishing |