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.ArithmeticGeometry.OrdinaryLocus.Openness.PicardPullback |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | import Mathlib.Topology.Sheaves.SheafCondition.Sites |
| 4 | |
| 5 | /-! # Flat Base Change Functions -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FlatBaseChangeFunctions.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A quasi-compact quasi-separated map preserving functions continues to do so after flat base change. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {X Y Z S : Scheme.{u}} (f : X ⟶ S) (g : Y ⟶ S) (p : Z ⟶ X) (q : Z ⟶ Y) |
| 18 | variable (H : IsPullback p q f g) [QuasiCompact f] [QuasiSeparated f] [Flat g] |
| 19 | variable (hf : ∀ U : S.Opens, IsIso (f.app U)) |
| 20 | |
| 21 | include H hf |
| 22 | |
| 23 | theorem isIso_app_flat_baseChange_of_affine |
| 24 | (U : Y.Opens) (V : S.Opens) (hU : IsAffineOpen U) (hV : IsAffineOpen V) (hUV : U ≤ g ⁻¹ᵁ V) : |
| 25 | IsIso (q.app U) := by |
| 26 | have hZ : q ⁻¹ᵁ U = p ⁻¹ᵁ (f ⁻¹ᵁ V) ⊓ q ⁻¹ᵁ U := by |
| 27 | simp_rw [← Scheme.Hom.comp_preimage, H.w, Scheme.Hom.comp_preimage, |
| 28 | ← Scheme.Hom.preimage_inf, inf_eq_right.mpr hUV] |
| 29 | have hT := isIso_pushoutSection_of_isQuasiSeparated_of_flat_right H hUV le_rfl hZ hV hU |
| 30 | (f.isCompact_preimage hV.isCompact) (f.isQuasiSeparated_preimage hV.isQuasiSeparated) |
| 31 | have hP := (isIso_pushoutSection_iff H hUV le_rfl hZ).mp hT |
| 32 | have : IsIso (f.appLE V (f ⁻¹ᵁ V) le_rfl) := by rw [Scheme.Hom.appLE_eq_app]; exact hf V |
| 33 | have hi := hP.isIso_inr_of_isIso |
| 34 | change IsIso (q.appLE U (q ⁻¹ᵁ U) le_rfl) at hi |
| 35 | rw [Scheme.Hom.appLE_eq_app] at hi |
| 36 | exact hi |
| 37 | |
| 38 | def flatBaseChangeStructureSheafIso : |
| 39 | LineBundle.Construction.structureSheafModule Y ≅ (Scheme.Modules.pushforward q).obj (LineBundle.Construction.structureSheafModule Z) := by |
| 40 | let B : Set Y.Opens := {U | IsAffineOpen U ∧ ∃ V : S.Opens, IsAffineOpen V ∧ U ≤ g ⁻¹ᵁ V} |
| 41 | have hB : Opens.IsBasis B := by |
| 42 | rw [Opens.isBasis_iff_nbhd] |
| 43 | intro W y hy |
| 44 | obtain ⟨V, hV, hyV, _⟩ := exists_isAffineOpen_mem_and_subset |
| 45 | (show g y ∈ (⊤ : S.Opens) from trivial) |
| 46 | obtain ⟨U, hU, hyU, hUW⟩ := exists_isAffineOpen_mem_and_subset |
| 47 | (show y ∈ W ⊓ g ⁻¹ᵁ V from ⟨hy, hyV⟩) |
| 48 | exact ⟨U, ⟨hU, V, hV, hUW.trans inf_le_right⟩, hyU, hUW.trans inf_le_left⟩ |
| 49 | let e : LineBundle.Construction.structureSheafModule Y ⟶ (Scheme.Modules.pushforward q).obj (LineBundle.Construction.structureSheafModule Z) := |
| 50 | SheafOfModules.unitToPushforwardObjUnit q.toRingCatSheafHom |
| 51 | have : IsIso ((SheafOfModules.toSheaf Y.ringCatSheaf).map e) := by |
| 52 | apply TopCat.Sheaf.isIso_iff_isIso_basis (B := fun U : B ↦ U.1) |
| 53 | (by simpa only [Subtype.range_val] using hB) |
| 54 | intro U |
| 55 | obtain ⟨V, hV, hUV⟩ := U.2.2 |
| 56 | have := isIso_app_flat_baseChange_of_affine f g p q H hf U.1 V U.2.1 hV hUV |
| 57 | exact (ConcreteCategory.isIso_iff_bijective _).mpr (ConcreteCategory.bijective_of_isIso (q.app U.1)) |
| 58 | have : IsIso ((Scheme.Modules.toPresheaf Y).map e) := |
| 59 | inferInstanceAs (IsIso ((sheafToPresheaf _ _).map ((SheafOfModules.toSheaf Y.ringCatSheaf).map e))) |
| 60 | have : IsIso e := isIso_of_reflects_iso e (Scheme.Modules.toPresheaf Y) |
| 61 | exact asIso e |
| 62 | |
| 63 | theorem isIso_app_flat_baseChange (U : Y.Opens) : IsIso (q.app U) := by |
| 64 | let e := flatBaseChangeStructureSheafIso f g p q H hf |
| 65 | exact (ConcreteCategory.isIso_iff_bijective _).mpr (ConcreteCategory.bijective_of_isIso (e.hom.app U)) |
| 66 | |
| 67 | theorem picardPullback_flat_baseChange_injective : Function.Injective (PicardPullback.Construction.picardPullback q) := |
| 68 | PicardPullback.Construction.picardPullback_injective_of_app q (isIso_app_flat_baseChange f g p q H hf) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FlatBaseChangeFunctions.Construction |