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.BaseOpen |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 3 | |
| 4 | /-! # Projective Closed Immersion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.ProjectiveClosedImmersion.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Closed projective-spectrum maps for the projective blowup construction. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {A B σ τ : Type u} [CommRing A] [CommRing B] |
| 17 | variable [SetLike σ A] [AddSubgroupClass σ A] [SetLike τ B] [AddSubgroupClass τ B] |
| 18 | variable {𝒜 : ℕ → σ} {ℬ : ℕ → τ} [GradedRing 𝒜] [GradedRing ℬ] |
| 19 | variable (g : 𝒜 →+*ᵍ ℬ) |
| 20 | |
| 21 | /-- A homogeneous element has a homogeneous lift along a surjective graded map. -/ |
| 22 | theorem gradedMap_homogeneous_surjective (hg : Function.Surjective g) |
| 23 | (n : ℕ) (b : B) (hb : b ∈ ℬ n) : |
| 24 | ∃ a : A, a ∈ 𝒜 n ∧ g a = b := by |
| 25 | obtain ⟨a, rfl⟩ := hg b |
| 26 | refine ⟨DirectSum.decompose 𝒜 a n, (DirectSum.decompose 𝒜 a n).property, ?_⟩ |
| 27 | rw [GradedRingHom.map_directSumDecompose, DirectSum.decompose_of_mem _ hb] |
| 28 | simp |
| 29 | |
| 30 | /-- A surjective graded map induces a surjective map on every homogeneous |
| 31 | localization chart. -/ |
| 32 | theorem homogeneousAway_map_surjective (hg : Function.Surjective g) |
| 33 | {f : A} {d : ℕ} (hf : f ∈ 𝒜 d) : |
| 34 | Function.Surjective (HomogeneousLocalization.Away.map g f) := by |
| 35 | intro x |
| 36 | obtain ⟨n, b, hb, rfl⟩ := |
| 37 | HomogeneousLocalization.Away.mk_surjective ℬ (g.map_mem hf) x |
| 38 | obtain ⟨a, ha, hga⟩ := gradedMap_homogeneous_surjective g hg (n • d) b hb |
| 39 | refine ⟨HomogeneousLocalization.Away.mk 𝒜 hf n a ha, ?_⟩ |
| 40 | simp only [HomogeneousLocalization.Away.map_mk, hga] |
| 41 | |
| 42 | /-- Surjectivity makes the projective-spectrum map defined everywhere. -/ |
| 43 | theorem gradedMap_irrelevant_le_of_surjective (hg : Function.Surjective g) : |
| 44 | HomogeneousIdeal.irrelevant ℬ ≤ (HomogeneousIdeal.irrelevant 𝒜).map g := by |
| 45 | change (HomogeneousIdeal.irrelevant ℬ).toIdeal ≤ |
| 46 | (HomogeneousIdeal.irrelevant 𝒜).toIdeal.map g |
| 47 | rw [HomogeneousIdeal.irrelevant_eq_span] |
| 48 | apply Ideal.span_le.mpr |
| 49 | intro b hb |
| 50 | obtain ⟨n, hn, hb⟩ := (by simpa only [Set.mem_iUnion, SetLike.mem_coe] using hb) |
| 51 | obtain ⟨a, ha, rfl⟩ := gradedMap_homogeneous_surjective g hg n b hb |
| 52 | exact Ideal.mem_map_of_mem g (HomogeneousIdeal.mem_irrelevant_of_mem 𝒜 hn ha) |
| 53 | |
| 54 | /-- Surjectivity of a graded map gives a closed immersion of its projective spectra. -/ |
| 55 | theorem projMap_isClosedImmersion_of_surjective |
| 56 | (hrel : HomogeneousIdeal.irrelevant ℬ ≤ (HomogeneousIdeal.irrelevant 𝒜).map g) |
| 57 | (hg : Function.Surjective g) : IsClosedImmersion (Proj.map g hrel) := by |
| 58 | apply IsZariskiLocalAtTarget.of_openCover (Proj.affineOpenCover 𝒜).openCover |
| 59 | intro a |
| 60 | change (Σ n : PNat, 𝒜 (n : ℕ)) at a |
| 61 | rcases a with ⟨⟨d, hd⟩, f, hf⟩ |
| 62 | change f ∈ 𝒜 d at hf |
| 63 | change IsClosedImmersion (CategoryTheory.Limits.pullback.snd (Proj.map g hrel) |
| 64 | (Proj.awayι 𝒜 f hf hd)) |
| 65 | let : IsOpenImmersion (Proj.awayι 𝒜 f hf hd) := by |
| 66 | unfold Proj.awayι |
| 67 | infer_instance |
| 68 | let : IsOpenImmersion (Proj.awayι ℬ (g f) (g.map_mem hf) hd) := by |
| 69 | unfold Proj.awayι |
| 70 | infer_instance |
| 71 | have hpb : IsPullback |
| 72 | (Spec.map (CommRingCat.ofHom (HomogeneousLocalization.Away.map g f))) |
| 73 | (Proj.awayι ℬ (g f) (g.map_mem hf) hd) |
| 74 | (Proj.awayι 𝒜 f hf hd) (Proj.map g hrel) := by |
| 75 | apply IsOpenImmersion.isPullback |
| 76 | · exact Proj.awayι_comp_map g hrel hd f hf |
| 77 | · rw [Proj.opensRange_awayι, Proj.opensRange_awayι, Proj.map_preimage_basicOpen] |
| 78 | let φ : CommRingCat.of (HomogeneousLocalization.Away 𝒜 f) ⟶ |
| 79 | CommRingCat.of (HomogeneousLocalization.Away ℬ (g f)) := |
| 80 | CommRingCat.ofHom (HomogeneousLocalization.Away.map g f) |
| 81 | let : IsClosedImmersion (Spec.map φ) := |
| 82 | IsClosedImmersion.spec_of_surjective φ (homogeneousAway_map_surjective g hg hf) |
| 83 | rw [← hpb.flip.isoPullback_inv_snd] |
| 84 | infer_instance |
| 85 | |
| 86 | /-- The closed projective-spectrum map associated to a surjective graded map. -/ |
| 87 | def projClosedMap (hg : Function.Surjective g) : Proj ℬ ⟶ Proj 𝒜 := |
| 88 | Proj.map g (gradedMap_irrelevant_le_of_surjective g hg) |
| 89 | |
| 90 | instance projClosedMap_isClosedImmersion (hg : Function.Surjective g) : |
| 91 | IsClosedImmersion (projClosedMap g hg) := |
| 92 | projMap_isClosedImmersion_of_surjective g (gradedMap_irrelevant_le_of_surjective g hg) hg |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.Resolution.Blowups.ProjectiveClosedImmersion.Construction |