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.HomogeneousLocalization |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.OpenImmersion |
| 3 | |
| 4 | /-! # Base Open -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.BaseOpen.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Open restriction maps for the affine blowup construction in Blowups. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | /-- Open immersions on the homogeneous affine charts give an open immersion |
| 17 | of the projective spectra. -/ |
| 18 | theorem projMap_isOpenImmersion_of_awayMaps |
| 19 | {A B σ τ : Type u} [CommRing A] [CommRing B] |
| 20 | [SetLike σ A] [AddSubgroupClass σ A] [SetLike τ B] [AddSubgroupClass τ B] |
| 21 | {𝒜 : ℕ → σ} {ℬ : ℕ → τ} [GradedRing 𝒜] [GradedRing ℬ] |
| 22 | (g : 𝒜 →+*ᵍ ℬ) |
| 23 | (hrel : HomogeneousIdeal.irrelevant ℬ ≤ (HomogeneousIdeal.irrelevant 𝒜).map g) |
| 24 | (haway : ∀ (d : ℕ), 0 < d → ∀ (f : A), f ∈ 𝒜 d → |
| 25 | IsOpenImmersion (Spec.map (CommRingCat.ofHom (HomogeneousLocalization.Away.map g f)))) : |
| 26 | IsOpenImmersion (Proj.map g hrel) := by |
| 27 | apply IsZariskiLocalAtTarget.of_openCover (Proj.affineOpenCover 𝒜).openCover |
| 28 | intro a |
| 29 | change (Σ n : PNat, 𝒜 (n : ℕ)) at a |
| 30 | rcases a with ⟨⟨d, hd⟩, f, hf⟩ |
| 31 | change f ∈ 𝒜 d at hf |
| 32 | change IsOpenImmersion (Limits.pullback.snd (Proj.map g hrel) |
| 33 | (Proj.awayι 𝒜 f hf hd)) |
| 34 | let : IsOpenImmersion (Proj.awayι 𝒜 f hf hd) := by |
| 35 | unfold Proj.awayι |
| 36 | infer_instance |
| 37 | let : IsOpenImmersion |
| 38 | (Proj.awayι ℬ (g f) (g.map_mem hf) hd) := by |
| 39 | unfold Proj.awayι |
| 40 | infer_instance |
| 41 | have hpb : IsPullback |
| 42 | (Spec.map (CommRingCat.ofHom (HomogeneousLocalization.Away.map g f))) |
| 43 | (Proj.awayι ℬ (g f) (g.map_mem hf) hd) |
| 44 | (Proj.awayι 𝒜 f hf hd) (Proj.map g hrel) := by |
| 45 | apply IsOpenImmersion.isPullback |
| 46 | · exact Proj.awayι_comp_map g hrel hd f hf |
| 47 | · rw [Proj.opensRange_awayι, Proj.opensRange_awayι, Proj.map_preimage_basicOpen] |
| 48 | let : IsOpenImmersion |
| 49 | (Spec.map (CommRingCat.ofHom (HomogeneousLocalization.Away.map g f))) := |
| 50 | haway d hd f hf |
| 51 | rw [← hpb.flip.isoPullback_inv_snd] |
| 52 | infer_instance |
| 53 | |
| 54 | /-- The projective-spectrum morphism commutes with its degree-zero base map. -/ |
| 55 | theorem projMap_toSpecZero |
| 56 | {A B σ τ : Type u} [CommRing A] [CommRing B] |
| 57 | [SetLike σ A] [AddSubgroupClass σ A] [SetLike τ B] [AddSubgroupClass τ B] |
| 58 | {𝒜 : ℕ → σ} {ℬ : ℕ → τ} [GradedRing 𝒜] [GradedRing ℬ] |
| 59 | (g : 𝒜 →+*ᵍ ℬ) |
| 60 | (hrel : HomogeneousIdeal.irrelevant ℬ ≤ (HomogeneousIdeal.irrelevant 𝒜).map g) : |
| 61 | Proj.map g hrel ≫ Proj.toSpecZero 𝒜 = |
| 62 | Proj.toSpecZero ℬ ≫ Spec.map (CommRingCat.ofHom g.gradedZeroRingHom) := by |
| 63 | refine (Proj.mapAffineOpenCover g hrel).openCover.hom_ext _ _ (fun a => ?_) |
| 64 | change (Σ n : PNat, 𝒜 (n : ℕ)) at a |
| 65 | rcases a with ⟨⟨d, hd⟩, f, hf⟩ |
| 66 | change f ∈ 𝒜 d at hf |
| 67 | change Proj.awayι ℬ (g f) (g.map_mem hf) hd ≫ (Proj.map g hrel ≫ Proj.toSpecZero 𝒜) = |
| 68 | Proj.awayι ℬ (g f) (g.map_mem hf) hd ≫ |
| 69 | (Proj.toSpecZero ℬ ≫ Spec.map (CommRingCat.ofHom g.gradedZeroRingHom)) |
| 70 | simp only [← Category.assoc] |
| 71 | rw [Proj.awayι_comp_map g hrel hd f hf, Category.assoc, Proj.awayι_toSpecZero, Proj.awayι_toSpecZero, |
| 72 | ← Spec.map_comp, ← Spec.map_comp] |
| 73 | congr 1 |
| 74 | apply CommRingCat.hom_ext |
| 75 | apply RingHom.ext |
| 76 | intro x |
| 77 | exact Blowups.HomogeneousLocalization.Construction.homogeneousAway_map_fromZero g f x |
| 78 | |
| 79 | variable {R S : Type u} [CommRing R] [CommRing S] [Algebra R S] |
| 80 | variable (I : Ideal R) (s : R) [IsLocalization.Away s S] |
| 81 | |
| 82 | /-- On each homogeneous chart, base localization induces an open immersion. -/ |
| 83 | theorem reesAwayMap_isOpenImmersion [IsDomain R] (hs : s ≠ 0) |
| 84 | {f : reesAlgebra I} {d : ℕ} (hf : f ∈ ReesGrading.Construction.reesGrade I d) : |
| 85 | IsOpenImmersion (Spec.map (CommRingCat.ofHom |
| 86 | (HomogeneousLocalization.Away.map (ReesMap.Construction.reesGradedMap I (algebraMap R S)) f))) := by |
| 87 | let : Algebra (HomogeneousLocalization.Away (ReesGrading.Construction.reesGrade I) f) |
| 88 | (HomogeneousLocalization.Away (ReesGrading.Construction.reesGrade (I.map (algebraMap R S))) |
| 89 | (ReesMap.Construction.reesGradedMap I (algebraMap R S) f)) := |
| 90 | (HomogeneousLocalization.Away.map (ReesMap.Construction.reesGradedMap I (algebraMap R S)) f).toAlgebra |
| 91 | let x : HomogeneousLocalization.Away (ReesGrading.Construction.reesGrade I) f := |
| 92 | HomogeneousLocalization.fromZeroRingHom (ReesGrading.Construction.reesGrade I) (Submonoid.powers f) |
| 93 | ⟨algebraMap R (reesAlgebra I) s, SetLike.algebraMap_mem_graded (ReesGrading.Construction.reesGrade I) s⟩ |
| 94 | let : IsLocalization.Away x |
| 95 | (HomogeneousLocalization.Away (ReesGrading.Construction.reesGrade (I.map (algebraMap R S))) |
| 96 | (ReesMap.Construction.reesGradedMap I (algebraMap R S) f)) := Blowups.HomogeneousLocalization.Construction.reesAwayMap_isLocalization I s hs hf |
| 97 | exact IsOpenImmersion.of_isLocalization x |
| 98 | |
| 99 | /-- Localizing the base of an affine blowup induces an open immersion of |
| 100 | the actual blowup schemes. -/ |
| 101 | theorem affineBlowupMap_isOpenImmersion [IsDomain R] (hs : s ≠ 0) : |
| 102 | IsOpenImmersion (ReesMap.Construction.affineBlowupMap I (algebraMap R S)) := by |
| 103 | apply projMap_isOpenImmersion_of_awayMaps |
| 104 | intro d _ f hf |
| 105 | exact reesAwayMap_isOpenImmersion I s hs hf |
| 106 | |
| 107 | omit [Algebra R S] in |
| 108 | /-- The affine blowup morphism induced by a coefficient map lies over that |
| 109 | map of affine bases. -/ |
| 110 | theorem affineBlowupMap_over (φ : R →+* S) : |
| 111 | ReesMap.Construction.affineBlowupMap I φ ≫ ReesGrading.Construction.affineBlowupToSpec I = |
| 112 | ReesGrading.Construction.affineBlowupToSpec (I.map φ) ≫ Spec.map (CommRingCat.ofHom φ) := by |
| 113 | unfold ReesMap.Construction.affineBlowupMap ReesGrading.Construction.affineBlowupToSpec |
| 114 | rw [← Category.assoc, projMap_toSpecZero, Category.assoc, ← Spec.map_comp, |
| 115 | Category.assoc, ← Spec.map_comp] |
| 116 | congr 2 |
| 117 | apply CommRingCat.hom_ext |
| 118 | apply RingHom.ext |
| 119 | intro r |
| 120 | apply Subtype.ext |
| 121 | exact ReesMap.Construction.reesRingMap_constants I φ r |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.BaseOpen.Construction |