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.FormalGeometry.Completion.Proper.FlatSections |
| 2 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 3 | import Mathlib.Topology.Sheaves.SheafCondition.Sites |
| 4 | |
| 5 | /-! # Structure Sheaf Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.StructureSheafBaseChange.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Flat base change preserves the actual structure-sheaf isomorphism of a proper morphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {Z A Y : Scheme.{u}} (c : Z ⟶ A) [IsProper c] (a : Y ⟶ A) [Flat a] |
| 22 | (hc : ∀ U : A.Opens, IsAffineOpen U → IsIso (c.app U)) |
| 23 | |
| 24 | include hc in |
| 25 | theorem proper_flat_pullback_app_isIso_on_chart (U : A.Opens) (hU : IsAffineOpen U) |
| 26 | (V : Y.Opens) (hV : IsAffineOpen V) (hVU : V ≤ a ⁻¹ᵁ U) : |
| 27 | IsIso ((pullback.snd c a).app V) := by |
| 28 | let H := IsPullback.of_hasPullback c a |
| 29 | have hW : pullback.snd c a ⁻¹ᵁ V = |
| 30 | pullback.fst c a ⁻¹ᵁ c ⁻¹ᵁ U ⊓ pullback.snd c a ⁻¹ᵁ V := by |
| 31 | simp_rw [← Scheme.Hom.comp_preimage, pullback.condition, Scheme.Hom.comp_preimage, |
| 32 | ← Scheme.Hom.preimage_inf, inf_eq_right.mpr hVU] |
| 33 | have hi := isIso_pushoutSection_of_isQuasiSeparated_of_flat_right H hVU le_rfl hW hU hV |
| 34 | (c.isCompact_preimage hU.isCompact) (c.isQuasiSeparated_preimage hU.isQuasiSeparated) |
| 35 | have hp := (isIso_pushoutSection_iff H hVU le_rfl hW).mp hi |
| 36 | have : IsIso (c.appLE U (c ⁻¹ᵁ U) le_rfl) := by |
| 37 | rw [Scheme.Hom.appLE_eq_app] |
| 38 | exact hc U hU |
| 39 | have ht := hp.isIso_inr_of_isIso |
| 40 | change IsIso ((pullback.snd c a).appLE V (pullback.snd c a ⁻¹ᵁ V) le_rfl) at ht |
| 41 | rw [Scheme.Hom.appLE_eq_app] at ht |
| 42 | exact ht |
| 43 | |
| 44 | include hc in |
| 45 | /-- The full actual ring-sheaf map is an isomorphism after arbitrary flat base change. -/ |
| 46 | theorem proper_flat_pullback_ringSheaf_isIso : IsIso (pullback.snd c a).toRingCatSheafHom := by |
| 47 | let B := {V : Y.Opens // IsAffineOpen V ∧ ∃ U : A.Opens, IsAffineOpen U ∧ V ≤ a ⁻¹ᵁ U} |
| 48 | have hB : Opens.IsBasis (Set.range (fun V : B => V.val)) := by |
| 49 | apply Opens.isBasis_iff_nbhd.mpr |
| 50 | intro W y hy |
| 51 | obtain ⟨_, ⟨U, hU, rfl⟩, hay, _⟩ := |
| 52 | A.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ (a y)) isOpen_univ |
| 53 | have hy' : y ∈ W ⊓ a ⁻¹ᵁ U := ⟨hy, hay⟩ |
| 54 | obtain ⟨_, ⟨V, hV, rfl⟩, hyv, hv⟩ := |
| 55 | Y.isBasis_affineOpens.exists_subset_of_mem_open hy' (W ⊓ a ⁻¹ᵁ U).isOpen |
| 56 | exact ⟨V, ⟨⟨V, hV, U, hU, hv.trans inf_le_right⟩, rfl⟩, hyv, hv.trans inf_le_left⟩ |
| 57 | apply TopCat.Sheaf.isIso_iff_isIso_basis hB |
| 58 | intro V |
| 59 | obtain ⟨U, hU, hVU⟩ := V.property.2 |
| 60 | have hi := proper_flat_pullback_app_isIso_on_chart c a hc U hU V.val V.property.1 hVU |
| 61 | apply (ConcreteCategory.isIso_iff_bijective _).mpr |
| 62 | exact (ConcreteCategory.isIso_iff_bijective ((pullback.snd c a).app V.val)).mp hi |
| 63 | |
| 64 | include hc in |
| 65 | /-- Every actual section map, including global sections, remains an isomorphism. -/ |
| 66 | theorem proper_flat_pullback_app_isIso (V : Y.Opens) : IsIso ((pullback.snd c a).app V) := by |
| 67 | have hs : IsIso (pullback.snd c a).toRingCatSheafHom := |
| 68 | proper_flat_pullback_ringSheaf_isIso c a hc |
| 69 | let e := @asIso _ _ _ _ (pullback.snd c a).toRingCatSheafHom hs |
| 70 | let e' := (sheafToPresheaf _ _).mapIso e |
| 71 | have hi : IsIso ((pullback.snd c a).toRingCatSheafHom.hom.app (op V)) := (e'.app (op V)).isIso_hom |
| 72 | apply (ConcreteCategory.isIso_iff_bijective _).mpr |
| 73 | exact (ConcreteCategory.isIso_iff_bijective |
| 74 | ((pullback.snd c a).toRingCatSheafHom.hom.app (op V))).mp hi |
| 75 | |
| 76 | include hc in |
| 77 | /-- The global-section conclusion applies to any actual pullback square. -/ |
| 78 | theorem proper_flat_isPullback_appTop_isIso {W : Scheme.{u}} |
| 79 | {u : W ⟶ Z} {v : W ⟶ Y} (H : IsPullback u v c a) : IsIso v.appTop := by |
| 80 | have : IsIso (pullback.snd c a).appTop := proper_flat_pullback_app_isIso c a hc ⊤ |
| 81 | rw [← H.isoPullback_hom_snd, Scheme.Hom.comp_appTop] |
| 82 | infer_instance |
| 83 | |
| 84 | include hc in |
| 85 | /-- Flat base change preserves section rings in any actual Cartesian square. -/ |
| 86 | theorem proper_flat_isPullback_app_isIso {W : Scheme.{u}} |
| 87 | {u : W ⟶ Z} {v : W ⟶ Y} (H : IsPullback u v c a) (V : Y.Opens) : |
| 88 | IsIso (v.app V) := by |
| 89 | have : IsIso ((pullback.snd c a).app V) := proper_flat_pullback_app_isIso c a hc V |
| 90 | rw [← H.isoPullback_hom_snd, Scheme.Hom.comp_app] |
| 91 | infer_instance |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.StructureSheafBaseChange.Construction |