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.Normalization |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.StalkFlat |
| 3 | |
| 4 | /-! # Normalized Local Functions -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.NormalizedLocalFunctions.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: actual global functions of the normalized family over its local base |
| 12 | |
| 13 | The relative normalization's affine coordinate identifications combine |
| 14 | with flat localization at the chosen point. The resulting family over |
| 15 | the actual stalk ring has that base ring as its actual global functions. |
| 16 | The original base need not be affine. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | set_option backward.isDefEq.respectTransparency.types false |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) [IsProper f] |
| 28 | |
| 29 | /-- The first normalization factor induces an isomorphism over the actual normalization affine charts. -/ |
| 30 | theorem proper_toNormalization_app_preimage_isIso (U : Y.Opens) (hU : IsAffineOpen U) : |
| 31 | IsIso (f.toNormalization.app (f.fromNormalization ⁻¹ᵁ U)) := by |
| 32 | have he : f.toNormalization ⁻¹ᵁ f.fromNormalization ⁻¹ᵁ U = f ⁻¹ᵁ U := by |
| 33 | rw [← Scheme.Hom.comp_preimage, Scheme.Hom.toNormalization_fromNormalization] |
| 34 | have h : (Proper.Normalization.Construction.properNormalizationSectionIso f U hU).hom ≫ |
| 35 | X.presheaf.map (eqToHom he).op = f.toNormalization.app (f.fromNormalization ⁻¹ᵁ U) := by |
| 36 | rw [Proper.Normalization.Construction.properNormalizationSectionIso_hom, Scheme.Hom.appLE_map, ← Scheme.Hom.app_eq_appLE] |
| 37 | rw [← h] |
| 38 | infer_instance |
| 39 | |
| 40 | /-- The original normalization map base-changed to the actual local ring of its target. -/ |
| 41 | def normalizedLocalFamily (n : f.normalization) : |
| 42 | pullback f.toNormalization (f.normalization.fromSpecStalk n) ⟶ |
| 43 | Spec (f.normalization.presheaf.stalk n) := |
| 44 | pullback.snd _ _ |
| 45 | |
| 46 | instance normalizedLocalFamily_isProper (n : f.normalization) : |
| 47 | IsProper (normalizedLocalFamily f n) := by |
| 48 | have := Proper.Normalization.Construction.proper_toNormalization f |
| 49 | unfold normalizedLocalFamily |
| 50 | infer_instance |
| 51 | |
| 52 | /-- The actual normalized local family has exactly its base's global functions. -/ |
| 53 | theorem normalizedLocalFamily_appTop_isIso (n : f.normalization) : |
| 54 | IsIso (normalizedLocalFamily f n).appTop := by |
| 55 | let g := f.normalization.fromSpecStalk n |
| 56 | have : Flat g := StalkFlat.Construction.scheme_fromSpecStalk_flat f.normalization n |
| 57 | have : IsProper f.toNormalization := Proper.Normalization.Construction.proper_toNormalization f |
| 58 | obtain ⟨_, ⟨U, hU, rfl⟩, hn, -⟩ := Y.isBasis_affineOpens.exists_subset_of_mem_open |
| 59 | (Set.mem_univ (f.fromNormalization n)) isOpen_univ |
| 60 | let W := f.fromNormalization ⁻¹ᵁ U |
| 61 | have hW : IsAffineOpen W := hU.preimage f.fromNormalization |
| 62 | have hg : g ⁻¹ᵁ W = ⊤ := StalkFlat.Construction.scheme_fromSpecStalk_preimage_eq_top _ n W hn |
| 63 | have hUT : ⊤ ≤ g ⁻¹ᵁ W := hg.ge |
| 64 | have hpre : pullback.fst f.toNormalization g ⁻¹ᵁ f.toNormalization ⁻¹ᵁ W = ⊤ := by |
| 65 | rw [← Scheme.Hom.comp_preimage, pullback.condition, Scheme.Hom.comp_preimage, hg, |
| 66 | TopologicalSpace.Opens.map_top] |
| 67 | have hUY : (⊤ : (pullback f.toNormalization g).Opens) = |
| 68 | pullback.fst f.toNormalization g ⁻¹ᵁ f.toNormalization ⁻¹ᵁ W ⊓ |
| 69 | pullback.snd f.toNormalization g ⁻¹ᵁ ⊤ := by simp [hpre] |
| 70 | have hi := isIso_pushoutSection_of_isQuasiSeparated_of_flat_right |
| 71 | (IsPullback.of_hasPullback f.toNormalization g) hUT le_rfl hUY hW (isAffineOpen_top _) |
| 72 | (f.toNormalization.isCompact_preimage hW.isCompact) |
| 73 | (f.toNormalization.isQuasiSeparated_preimage hW.isQuasiSeparated) |
| 74 | have hs := (isIso_pushoutSection_iff (IsPullback.of_hasPullback f.toNormalization g) |
| 75 | hUT le_rfl hUY).mp hi |
| 76 | have : IsIso (f.toNormalization.appLE W (f.toNormalization ⁻¹ᵁ W) le_rfl) := by |
| 77 | rw [← Scheme.Hom.app_eq_appLE] |
| 78 | exact proper_toNormalization_app_preimage_isIso f U hU |
| 79 | have ht := hs.isIso_inr_of_isIso |
| 80 | simpa only [normalizedLocalFamily, Scheme.Hom.appTop, Scheme.Hom.app_eq_appLE, |
| 81 | TopologicalSpace.Opens.map_top] using ht |
| 82 | |
| 83 | /-- The global-function identification uses the actual local-family structure map. -/ |
| 84 | def normalizedLocalFamilyGlobalFunctionsIso (n : f.normalization) : |
| 85 | f.normalization.presheaf.stalk n ≅ |
| 86 | Γ(pullback f.toNormalization (f.normalization.fromSpecStalk n), ⊤) := by |
| 87 | have := normalizedLocalFamily_appTop_isIso f n |
| 88 | exact (Scheme.ΓSpecIso _).symm ≪≫ asIso (normalizedLocalFamily f n).appTop |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.NormalizedLocalFunctions.Construction |