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.Divisors.LineBundles.Graded.AwayIs |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Graded.AwayPrincipalDenominator |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.OpenImmersion |
| 4 | |
| 5 | /-! # Principal Localization -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Projective.PrincipalLocalization.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual Proj map associated to localization at one degree-zero |
| 12 | element is an open immersion. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.HomogeneousLocalization |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {A B σ τ : Type u} [CommRing A] [CommRing B] |
| 19 | [SetLike σ A] [AddSubgroupClass σ A] [SetLike τ B] [AddSubgroupClass τ B] |
| 20 | (𝒜 : ℕ → σ) (ℬ : ℕ → τ) [GradedRing 𝒜] [GradedRing ℬ] |
| 21 | (f : 𝒜 →+*ᵍ ℬ) |
| 22 | (hf : HomogeneousIdeal.irrelevant ℬ ≤ (HomogeneousIdeal.irrelevant 𝒜).map f) |
| 23 | |
| 24 | theorem projectiveLocalization_injective (D : Submonoid A) |
| 25 | (hlocal : letI := f.toRingHom.toAlgebra; IsLocalization D B) : |
| 26 | Function.Injective (Proj.map f hf) := by |
| 27 | let := f.toRingHom.toAlgebra |
| 28 | let := hlocal |
| 29 | intro p q hpq |
| 30 | apply ProjectiveSpectrum.ext |
| 31 | apply HomogeneousIdeal.ext |
| 32 | let p' : PrimeSpectrum B := ⟨p.asHomogeneousIdeal.toIdeal, p.isPrime⟩ |
| 33 | let q' : PrimeSpectrum B := ⟨q.asHomogeneousIdeal.toIdeal, q.isPrime⟩ |
| 34 | have he : PrimeSpectrum.comap (algebraMap A B) p' = PrimeSpectrum.comap (algebraMap A B) q' := by |
| 35 | apply PrimeSpectrum.ext |
| 36 | exact congrArg (fun z : Proj 𝒜 => z.asHomogeneousIdeal.toIdeal) hpq |
| 37 | exact congrArg PrimeSpectrum.asIdeal (PrimeSpectrum.localization_comap_injective B D he) |
| 38 | |
| 39 | theorem gradedAway_principal_isOpenImmersion (r : A) (hr : r ∈ 𝒜 0) |
| 40 | (hlocal : letI := f.toRingHom.toAlgebra; IsLocalization.Away r B) |
| 41 | (s : A) (k : ℕ) (hs : s ∈ 𝒜 k) : |
| 42 | IsOpenImmersion (Spec.map (CommRingCat.ofHom (Away.map f s))) := by |
| 43 | let := (Away.map f s).toAlgebra |
| 44 | have h := Graded.AwayIs.BundleCycles.gradedAway_isLocalization 𝒜 ℬ f (Submonoid.powers r) |
| 45 | (Graded.AwayPrincipalDenominator.BundleCycles.gradedPowersDegreeZero 𝒜 r hr) hlocal hs |
| 46 | rw [Graded.AwayPrincipalDenominator.BundleCycles.gradedAwayDenominators_powers] at h |
| 47 | let := h |
| 48 | exact IsOpenImmersion.of_isLocalization (fromZeroRingHom 𝒜 (Submonoid.powers s) ⟨r, hr⟩) |
| 49 | |
| 50 | theorem projectivePrincipalLocalization_isOpenImmersion (r : A) (hr : r ∈ 𝒜 0) |
| 51 | (hlocal : letI := f.toRingHom.toAlgebra; IsLocalization.Away r B) : IsOpenImmersion (Proj.map f hf) := by |
| 52 | apply IsOpenImmersion.of_openCover_source (Proj.map f hf) (Proj.mapAffineOpenCover f hf).openCover |
| 53 | (projectiveLocalization_injective 𝒜 ℬ f hf (Submonoid.powers r) hlocal) |
| 54 | intro t |
| 55 | let n : ℕ := t.1.val |
| 56 | let a : A := t.2.val |
| 57 | have hn : 0 < n := t.1.property |
| 58 | have ha : a ∈ 𝒜 n := t.2.property |
| 59 | have he := Proj.awayι_comp_map f hf hn a ha |
| 60 | change IsOpenImmersion (Proj.awayι ℬ (f a) (f.map_mem ha) hn ≫ Proj.map f hf) |
| 61 | rw [he] |
| 62 | let := gradedAway_principal_isOpenImmersion 𝒜 ℬ f r hr hlocal a n ha |
| 63 | infer_instance |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Projective.PrincipalLocalization.BundleCycles |