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.ProjectiveSpectrum.Functor |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 3 | |
| 4 | /-! # Surjective Graded Projective Map -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SurjectiveGradedProjectiveMap |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A surjective graded ring map is surjective in every homogeneous |
| 11 | degree and induces a closed immersion of projective spectra. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.HomogeneousLocalization |
| 13 | open scoped Classical |
| 14 | universe u |
| 15 | variable {R A B : Type u} [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 16 | variable (g : ℕ → Submodule R A) (h : ℕ → Submodule R B) [GradedAlgebra g] [GradedAlgebra h] |
| 17 | variable (f : g →+*ᵍ h) (hf : Function.Surjective f) |
| 18 | |
| 19 | include hf |
| 20 | |
| 21 | theorem surjectiveGradedMap_homogeneous_lift {d : ℕ} {b : B} (hb : b ∈ h d) : |
| 22 | ∃ a : A, a ∈ g d ∧ f a = b := by |
| 23 | obtain ⟨a, ha⟩ := hf b |
| 24 | refine ⟨(DirectSum.decompose g a d).val, (DirectSum.decompose g a d).property, ?_⟩ |
| 25 | rw [f.map_directSumDecompose, ha, DirectSum.decompose_of_mem_same h hb] |
| 26 | |
| 27 | theorem surjectiveGradedMap_irrelevant : |
| 28 | HomogeneousIdeal.irrelevant h ≤ (HomogeneousIdeal.irrelevant g).map f := by |
| 29 | apply (HomogeneousIdeal.irrelevant_le h).mpr |
| 30 | intro d hd b hb |
| 31 | obtain ⟨a, ha, rfl⟩ := surjectiveGradedMap_homogeneous_lift g h f hf hb |
| 32 | exact Ideal.mem_map_of_mem f.toRingHom (HomogeneousIdeal.mem_irrelevant_of_mem g hd ha) |
| 33 | |
| 34 | theorem surjectiveGradedMap_away_surjective {d : ℕ} (s : A) (hs : s ∈ g d) : |
| 35 | Function.Surjective (HomogeneousLocalization.Away.map f s) := by |
| 36 | intro z |
| 37 | obtain ⟨k, b, hb, rfl⟩ := HomogeneousLocalization.Away.mk_surjective h (f.map_mem hs) z |
| 38 | obtain ⟨a, ha, rfl⟩ := surjectiveGradedMap_homogeneous_lift g h f hf hb |
| 39 | refine ⟨HomogeneousLocalization.Away.mk g hs k a ha, ?_⟩ |
| 40 | rw [HomogeneousLocalization.Away.map_mk] |
| 41 | |
| 42 | theorem surjectiveGradedMap_restrict_closed {d : ℕ} (hd : 0 < d) (s : A) (hs : s ∈ g d) : |
| 43 | IsClosedImmersion (Proj.map f (surjectiveGradedMap_irrelevant g h f hf) ∣_ Proj.basicOpen g s) := by |
| 44 | let src := Proj.basicOpenIsoSpec h (f s) (f.map_mem hs) hd |
| 45 | let tgt := Proj.basicOpenIsoSpec g s hs hd |
| 46 | let a := Spec.map (CommRingCat.ofHom (HomogeneousLocalization.Away.map f s)) |
| 47 | have ha : IsClosedImmersion a := IsClosedImmersion.spec_of_surjective _ |
| 48 | (surjectiveGradedMap_away_surjective g h f hf s hs) |
| 49 | have hdiag : src.inv ≫ (Proj.map f (surjectiveGradedMap_irrelevant g h f hf) ∣_ Proj.basicOpen g s) = |
| 50 | a ≫ tgt.inv := by |
| 51 | apply (cancel_mono (Proj.basicOpen g s).ι).mp |
| 52 | erw [Category.assoc, morphismRestrict_ι] |
| 53 | exact Proj.awayι_comp_map f (surjectiveGradedMap_irrelevant g h f hf) hd s hs |
| 54 | apply (MorphismProperty.cancel_left_of_respectsIso (P := @IsClosedImmersion) src.inv _).mp |
| 55 | rw [hdiag] |
| 56 | exact IsClosedImmersion.comp a tgt.inv |
| 57 | |
| 58 | theorem surjectiveGradedMap_closed : |
| 59 | IsClosedImmersion (Proj.map f (surjectiveGradedMap_irrelevant g h f hf)) := by |
| 60 | let Index := Σ d : PNat, g d |
| 61 | let U (s : Index) := Proj.basicOpen g s.2.val |
| 62 | have hcover : iSup U = ⊤ := by |
| 63 | apply Proj.iSup_basicOpen_eq_top |
| 64 | apply (HomogeneousIdeal.toIdeal_irrelevant_le g).mpr |
| 65 | intro d hd a ha |
| 66 | exact Ideal.subset_span ⟨(⟨⟨d, hd⟩, ⟨a, ha⟩⟩ : Index), rfl⟩ |
| 67 | apply (IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @IsClosedImmersion) U hcover).mpr |
| 68 | intro s |
| 69 | exact surjectiveGradedMap_restrict_closed g h f hf s.1.property s.2.val s.2.property |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SurjectiveGradedProjectiveMap |