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 Mathlib.AlgebraicGeometry.Normalization |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 3 | |
| 4 | /-! # Normalization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Proper.Normalization.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: the relative normalization of a proper morphism |
| 12 | |
| 13 | Properness makes every section over an affine base open integral. The |
| 14 | relative normalization therefore has precisely those sections as its |
| 15 | coordinate algebra. The map to the normalization is proper and surjective. |
| 16 | Geometric connectedness of its fibers is a further obligation. |
| 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 | |
| 24 | universe u |
| 25 | |
| 26 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 27 | |
| 28 | /-- Over any affine base open, properness makes the map on sections integral. -/ |
| 29 | theorem universallyClosed_app_isIntegral [UniversallyClosed f] |
| 30 | (U : Y.Opens) (hU : IsAffineOpen U) : (f.app U).hom.IsIntegral := by |
| 31 | have : IsAffine U.toScheme := hU |
| 32 | have h := isIntegral_appTop_of_universallyClosed (f ∣_ U) |
| 33 | rw [morphismRestrict_appTop, CommRingCat.hom_comp, |
| 34 | RingHom.isIntegral_respectsIso.cancel_right_isIso] at h |
| 35 | have h' : (Scheme.Hom.app f (U.ι ''ᵁ ⊤)).hom.IsIntegral := h |
| 36 | rw [Scheme.Opens.ι_image_top] at h' |
| 37 | exact h' |
| 38 | |
| 39 | variable [IsProper f] |
| 40 | |
| 41 | /-- The first factor of the actual relative normalization remains proper. -/ |
| 42 | theorem proper_toNormalization : IsProper f.toNormalization := by |
| 43 | have : IsProper (f.toNormalization ≫ f.fromNormalization) := by |
| 44 | rwa [Scheme.Hom.toNormalization_fromNormalization] |
| 45 | exact IsProper.of_comp f.toNormalization f.fromNormalization |
| 46 | |
| 47 | /-- The proper dominant first factor is surjective. -/ |
| 48 | theorem proper_toNormalization_surjective : Surjective f.toNormalization := by |
| 49 | let := proper_toNormalization f |
| 50 | constructor |
| 51 | exact Set.range_eq_univ.mp (by |
| 52 | rw [← f.toNormalization.isClosedMap.isClosed_range.closure_eq] |
| 53 | exact f.toNormalization.denseRange.closure_range) |
| 54 | |
| 55 | /-- The integral closure defining the proper normalization is the whole section ring. -/ |
| 56 | theorem proper_normalization_integralClosure_eq_top (U : Y.Opens) (hU : IsAffineOpen U) : |
| 57 | letI := (f.app U).hom.toAlgebra |
| 58 | integralClosure Γ(Y, U) Γ(X, f ⁻¹ᵁ U) = ⊤ := by |
| 59 | let := (f.app U).hom.toAlgebra |
| 60 | rw [integralClosure_eq_top_iff, ← algebraMap_isIntegral_iff, RingHom.algebraMap_toAlgebra] |
| 61 | exact universallyClosed_app_isIntegral f U hU |
| 62 | |
| 63 | /-- The relative normalization's coordinate algebra is the original section ring. -/ |
| 64 | def properNormalizationSectionIso (U : Y.Opens) (hU : IsAffineOpen U) : |
| 65 | Γ(f.normalization, f.fromNormalization ⁻¹ᵁ U) ≅ Γ(X, f ⁻¹ᵁ U) := by |
| 66 | letI := (f.app U).hom.toAlgebra |
| 67 | refine f.normalizationObjIso hU ≪≫ |
| 68 | (RingEquiv.ofBijective |
| 69 | (integralClosure Γ(Y, U) Γ(X, f ⁻¹ᵁ U)).val.toRingHom ?_).toCommRingCatIso |
| 70 | refine ⟨Subtype.val_injective, fun s => ⟨⟨s, ?_⟩, rfl⟩⟩ |
| 71 | rw [proper_normalization_integralClosure_eq_top f U hU] |
| 72 | trivial |
| 73 | |
| 74 | /-- The coordinate-ring identification is the actual map of the normalization factor. -/ |
| 75 | theorem properNormalizationSectionIso_hom (U : Y.Opens) (hU : IsAffineOpen U) : |
| 76 | (properNormalizationSectionIso f U hU).hom = |
| 77 | f.toNormalization.appLE (f.fromNormalization ⁻¹ᵁ U) (f ⁻¹ᵁ U) |
| 78 | (by simp [← Scheme.Hom.comp_preimage]) := by |
| 79 | exact f.normalizationObjIso_hom_val hU |
| 80 | |
| 81 | /-- Over an affine base, the map to the normalization induces an isomorphism on |
| 82 | the actual global section rings. -/ |
| 83 | theorem proper_toNormalization_appTop_isIso [IsAffine Y] : IsIso f.toNormalization.appTop := by |
| 84 | have h := (properNormalizationSectionIso f ⊤ (isAffineOpen_top Y)).isIso_hom |
| 85 | rw [properNormalizationSectionIso_hom] at h |
| 86 | simpa only [Scheme.Hom.appTop, Scheme.Hom.app_eq_appLE, |
| 87 | TopologicalSpace.Opens.map_top] using h |
| 88 | |
| 89 | /-- When a proper map to an affine scheme already has the base's global functions, |
| 90 | its relative normalization is the base itself. -/ |
| 91 | theorem proper_fromNormalization_isIso_of_appTop [IsAffine Y] [IsIso f.appTop] : |
| 92 | IsIso f.fromNormalization := by |
| 93 | have : IsAffine f.normalization := isAffine_of_isAffineHom f.fromNormalization |
| 94 | have := proper_toNormalization_appTop_isIso f |
| 95 | have : IsIso f.fromNormalization.appTop := by |
| 96 | rw [← isIso_comp_right_iff _ f.toNormalization.appTop] |
| 97 | rw [← Scheme.Hom.comp_appTop, Scheme.Hom.toNormalization_fromNormalization] |
| 98 | infer_instance |
| 99 | apply (HasAffineProperty.iff_of_isAffine (P := MorphismProperty.isomorphisms Scheme)).mpr |
| 100 | exact ⟨inferInstance, inferInstance⟩ |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Proper.Normalization.Construction |