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.Resolution.Blowups.Blowup.BaseChange |
| 2 | import Mathlib.AlgebraicGeometry.IdealSheaf.Basic |
| 3 | import Mathlib.AlgebraicGeometry.RelativeGluing |
| 4 | |
| 5 | /-! # Functor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.Functor.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Functorial affine blowups with specified target ideals, for gluing in Blowups. -/ |
| 12 | |
| 13 | open _root_.Polynomial _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {R S T : Type u} [CommRing R] [CommRing S] [CommRing T] |
| 18 | |
| 19 | /-- Coefficient extension with its target ideal specified separately. -/ |
| 20 | def reesRingMapTo (I : Ideal R) (J : Ideal S) (φ : R →+* S) (h : I.map φ = J) : |
| 21 | reesAlgebra I →+* reesAlgebra J where |
| 22 | toFun p := ⟨p.val.map φ, by |
| 23 | intro n |
| 24 | rw [Polynomial.coeff_map, ← h, ← Ideal.map_pow] |
| 25 | exact Ideal.mem_map_of_mem φ (p.property n)⟩ |
| 26 | map_one' := Subtype.ext (Polynomial.map_one φ) |
| 27 | map_zero' := Subtype.ext (Polynomial.map_zero φ) |
| 28 | map_add' _ _ := Subtype.ext (Polynomial.map_add φ) |
| 29 | map_mul' _ _ := Subtype.ext (Polynomial.map_mul φ) |
| 30 | |
| 31 | /-- The grading-preserving extension map for specified ideals. -/ |
| 32 | def reesGradedMapTo (I : Ideal R) (J : Ideal S) (φ : R →+* S) (h : I.map φ = J) : |
| 33 | ReesGrading.Construction.reesGrade I →+*ᵍ ReesGrading.Construction.reesGrade J where |
| 34 | __ := reesRingMapTo I J φ h |
| 35 | map_mem := by |
| 36 | intro n p hp m hm |
| 37 | change (p.val.map φ).coeff m = 0 |
| 38 | rw [Polynomial.coeff_map, hp m hm, map_zero] |
| 39 | |
| 40 | theorem reesGradedMapTo_irrelevant_le |
| 41 | (I : Ideal R) (J : Ideal S) (φ : R →+* S) (h : I.map φ = J) : |
| 42 | HomogeneousIdeal.irrelevant (ReesGrading.Construction.reesGrade J) ≤ |
| 43 | (HomogeneousIdeal.irrelevant (ReesGrading.Construction.reesGrade I)).map (reesGradedMapTo I J φ h) := by |
| 44 | subst J |
| 45 | exact ReesMap.Construction.reesGradedMap_irrelevant_le I φ |
| 46 | |
| 47 | /-- The affine blowup map for an equality of extended center ideals. -/ |
| 48 | def affineBlowupMapTo (I : Ideal R) (J : Ideal S) (φ : R →+* S) (h : I.map φ = J) : |
| 49 | ReesGrading.Construction.affineBlowup J ⟶ ReesGrading.Construction.affineBlowup I := |
| 50 | Proj.map (reesGradedMapTo I J φ h) (reesGradedMapTo_irrelevant_le I J φ h) |
| 51 | |
| 52 | theorem affineBlowupMapTo_over |
| 53 | (I : Ideal R) (J : Ideal S) (φ : R →+* S) (h : I.map φ = J) : |
| 54 | affineBlowupMapTo I J φ h ≫ ReesGrading.Construction.affineBlowupToSpec I = |
| 55 | ReesGrading.Construction.affineBlowupToSpec J ≫ Spec.map (CommRingCat.ofHom φ) := by |
| 56 | subst J |
| 57 | exact BaseOpen.Construction.affineBlowupMap_over I φ |
| 58 | |
| 59 | @[simp] |
| 60 | theorem reesGradedMapTo_id (I : Ideal R) (h : I.map (RingHom.id R) = I) : |
| 61 | reesGradedMapTo I I (RingHom.id R) h = GradedRingHom.id (ReesGrading.Construction.reesGrade I) := by |
| 62 | ext p : 1 |
| 63 | apply Subtype.ext |
| 64 | exact Polynomial.map_id |
| 65 | |
| 66 | theorem reesGradedMapTo_comp |
| 67 | (I : Ideal R) (J : Ideal S) (K : Ideal T) (φ : R →+* S) (ψ : S →+* T) |
| 68 | (hφ : I.map φ = J) (hψ : J.map ψ = K) (hψφ : I.map (ψ.comp φ) = K) : |
| 69 | reesGradedMapTo I K (ψ.comp φ) hψφ = |
| 70 | (reesGradedMapTo J K ψ hψ).comp (reesGradedMapTo I J φ hφ) := by |
| 71 | ext p : 1 |
| 72 | apply Subtype.ext |
| 73 | exact (Polynomial.map_map φ ψ p.val).symm |
| 74 | |
| 75 | @[simp] |
| 76 | theorem affineBlowupMapTo_id (I : Ideal R) (h : I.map (RingHom.id R) = I) : |
| 77 | affineBlowupMapTo I I (RingHom.id R) h = 𝟙 (ReesGrading.Construction.affineBlowup I) := by |
| 78 | unfold affineBlowupMapTo |
| 79 | simp only [reesGradedMapTo_id, Proj.map_id] |
| 80 | |
| 81 | theorem affineBlowupMapTo_comp |
| 82 | (I : Ideal R) (J : Ideal S) (K : Ideal T) (φ : R →+* S) (ψ : S →+* T) |
| 83 | (hφ : I.map φ = J) (hψ : J.map ψ = K) (hψφ : I.map (ψ.comp φ) = K) : |
| 84 | affineBlowupMapTo I K (ψ.comp φ) hψφ = |
| 85 | affineBlowupMapTo J K ψ hψ ≫ affineBlowupMapTo I J φ hφ := by |
| 86 | unfold affineBlowupMapTo |
| 87 | simpa only [← reesGradedMapTo_comp I J K φ ψ hφ hψ hψφ] using |
| 88 | Proj.map_comp (reesGradedMapTo I J φ hφ) (reesGradedMapTo J K ψ hψ) |
| 89 | (reesGradedMapTo_irrelevant_le I J φ hφ) (reesGradedMapTo_irrelevant_le J K ψ hψ) |
| 90 | |
| 91 | variable {X : Scheme.{u}} |
| 92 | |
| 93 | /-- Restriction of functions between two affine opens in a scheme. -/ |
| 94 | abbrev affineRestriction {U V : X.affineOpens} (h : U ≤ V) : Γ(X, V) →+* Γ(X, U) := |
| 95 | (X.presheaf.map (homOfLE (X := X.Opens) h).op).hom |
| 96 | |
| 97 | @[simp] |
| 98 | theorem affineRestriction_refl (U : X.affineOpens) : |
| 99 | affineRestriction (le_refl U) = RingHom.id Γ(X, U) := by |
| 100 | simp [affineRestriction] |
| 101 | |
| 102 | theorem affineRestriction_trans {U V W : X.affineOpens} (hUV : U ≤ V) (hVW : V ≤ W) : |
| 103 | affineRestriction (hUV.trans hVW) = |
| 104 | (affineRestriction hUV).comp (affineRestriction hVW) := by |
| 105 | change (X.presheaf.map ((homOfLE (X := X.Opens) hUV) ≫ homOfLE hVW).op).hom = _ |
| 106 | rw [op_comp, Functor.map_comp, CommRingCat.hom_comp] |
| 107 | |
| 108 | /-- The ideal sheaf compatibility law expressed through affine restriction. -/ |
| 109 | theorem affineRestriction_ideal (I : X.IdealSheafData) {U V : X.affineOpens} (h : U ≤ V) : |
| 110 | (I.ideal V).map (affineRestriction h) = I.ideal U := |
| 111 | I.map_ideal h |
| 112 | |
| 113 | /-- Blowups of the affine pieces of an ideal sheaf and their restriction maps. -/ |
| 114 | def idealBlowupFunctor (I : X.IdealSheafData) : X.affineOpens ⥤ Scheme.{u} where |
| 115 | obj U := ReesGrading.Construction.affineBlowup (I.ideal U) |
| 116 | map {U V} h := affineBlowupMapTo (I.ideal V) (I.ideal U) |
| 117 | (affineRestriction (leOfHom h)) (affineRestriction_ideal I _) |
| 118 | map_id U := by |
| 119 | simp only [affineRestriction_refl, affineBlowupMapTo_id] |
| 120 | map_comp {U V W} hUV hVW := by |
| 121 | simpa only [← affineRestriction_trans] using |
| 122 | affineBlowupMapTo_comp (I.ideal W) (I.ideal V) (I.ideal U) |
| 123 | (affineRestriction (leOfHom hVW)) (affineRestriction (leOfHom hUV)) |
| 124 | (affineRestriction_ideal I _) (affineRestriction_ideal I _) (by |
| 125 | rw [← affineRestriction_trans] |
| 126 | exact affineRestriction_ideal I _) |
| 127 | |
| 128 | /-- Restriction of affine coordinate rings represents the inclusion of opens. -/ |
| 129 | theorem affineRestriction_over {U V : X.affineOpens} (h : U ≤ V) : |
| 130 | Spec.map (CommRingCat.ofHom (affineRestriction h)) ≫ V.2.isoSpec.inv = |
| 131 | U.2.isoSpec.inv ≫ X.homOfLE h := by |
| 132 | apply (cancel_mono V.1.ι).mp |
| 133 | change Spec.map (X.presheaf.map (homOfLE (X := X.Opens) h).op) ≫ |
| 134 | V.2.isoSpec.inv ≫ V.1.ι = _ |
| 135 | change Spec.map (X.presheaf.map (homOfLE (X := X.Opens) h).op) ≫ V.2.fromSpec = _ |
| 136 | rw [IsAffineOpen.map_fromSpec V.2 U.2] |
| 137 | simp only [Category.assoc, Scheme.homOfLE_ι] |
| 138 | rfl |
| 139 | |
| 140 | /-- The structure maps on affine blowups form a natural map to the affine cover. -/ |
| 141 | def idealBlowupNatTrans (I : X.IdealSheafData) : |
| 142 | idealBlowupFunctor I ⟶ X.directedAffineCover.functorOfLocallyDirected where |
| 143 | app U := ReesGrading.Construction.affineBlowupToSpec (I.ideal U) ≫ U.2.isoSpec.inv |
| 144 | naturality {U V} h := by |
| 145 | change affineBlowupMapTo (I.ideal V) (I.ideal U) |
| 146 | (affineRestriction (leOfHom h)) (affineRestriction_ideal I _) ≫ |
| 147 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal V) ≫ V.2.isoSpec.inv) = |
| 148 | (ReesGrading.Construction.affineBlowupToSpec (I.ideal U) ≫ U.2.isoSpec.inv) ≫ X.homOfLE (leOfHom h) |
| 149 | rw [← Category.assoc, affineBlowupMapTo_over, Category.assoc, affineRestriction_over, |
| 150 | Category.assoc] |
| 151 | |
| 152 | end |
| 153 | |
| 154 | end OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.Functor.Construction |