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.HilbertScheme.Presentations.LocalizationFamilyEqualityNeighborhood |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.RefinementPoint |
| 3 | |
| 4 | /-! # Spread Parameter Family Refinement -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.SpreadParameterFamilyRefinement.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A parameter extending a correct local Hilbert parameter becomes a |
| 11 | correct family parameter after shrinking its principal neighborhood. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} {A : Type u} [CommRing A] {n : ℕ} |
| 17 | |
| 18 | theorem refine_spread_family_parameter |
| 19 | (a : Spec (.of A) ⟶ S) (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk a)) |
| 20 | (H : Over S) (U : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) H) |
| 21 | (p : PrimeSpectrum A) |
| 22 | (xp : Over.mk (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.AtPrime p.asIdeal))) ≫ a) ⟶ H) |
| 23 | (hxp : Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) xp U = |
| 24 | Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) |
| 25 | (Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap a (algebraMap A (Localization.AtPrime p.asIdeal))) F) |
| 26 | (s : A) (hs : s ∉ p.asIdeal) |
| 27 | (xs : Over.mk (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away s))) ≫ a) ⟶ H) |
| 28 | (hxs : Spec.map (CommRingCat.ofHom (Principal.PrimeLocalization.principalToPrimeMap p.asIdeal s hs)) ≫ xs.left = xp.left) : |
| 29 | ∃ (V : Over S) (b : V ⟶ Over.mk a), IsOpenImmersion b.left ∧ p ∈ Set.range b.left ∧ |
| 30 | ∃ x : V ⟶ H, Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) x U = |
| 31 | Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) b F := by |
| 32 | let As := Localization.Away s |
| 33 | let Ap := Localization.AtPrime p.asIdeal |
| 34 | let aspec : Spec (.of As) ⟶ S := Spec.map (CommRingCat.ofHom (algebraMap A As)) ≫ a |
| 35 | let ap : Spec (.of Ap) ⟶ S := Spec.map (CommRingCat.ofHom (algebraMap A Ap)) ≫ a |
| 36 | let bs := Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap a (algebraMap A As) |
| 37 | let bp := Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap a (algebraMap A Ap) |
| 38 | let q := Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap aspec (Principal.PrimeLocalization.principalToPrimeMap p.asIdeal s hs) |
| 39 | have hbase : Spec.map (CommRingCat.ofHom (Principal.PrimeLocalization.principalToPrimeMap p.asIdeal s hs)) ≫ aspec = ap := by |
| 40 | change _ ≫ (_ ≫ a) = _ ≫ a |
| 41 | rw [← Category.assoc, Principal.RefinementPoint.principalToPrime_spec_comp] |
| 42 | let e : Over.mk (Spec.map (CommRingCat.ofHom (Principal.PrimeLocalization.principalToPrimeMap p.asIdeal s hs)) ≫ aspec) ⟶ Over.mk ap := |
| 43 | Over.homMk (𝟙 (Spec (.of Ap))) ((Category.id_comp _).trans hbase.symm) |
| 44 | have hb : q ≫ bs = e ≫ bp := by |
| 45 | apply Over.OverMorphism.ext |
| 46 | change Spec.map (CommRingCat.ofHom (Principal.PrimeLocalization.principalToPrimeMap p.asIdeal s hs)) ≫ |
| 47 | Spec.map (CommRingCat.ofHom (algebraMap A As)) = (𝟙 _) ≫ Spec.map (CommRingCat.ofHom (algebraMap A Ap)) |
| 48 | rw [Category.id_comp] |
| 49 | exact Principal.RefinementPoint.principalToPrime_spec_comp p.asIdeal s hs |
| 50 | have hx : q ≫ xs = e ≫ xp := by |
| 51 | apply Over.OverMorphism.ext |
| 52 | change Spec.map (CommRingCat.ofHom (Principal.PrimeLocalization.principalToPrimeMap p.asIdeal s hs)) ≫ xs.left = (𝟙 _) ≫ xp.left |
| 53 | rw [Category.id_comp] |
| 54 | exact hxs |
| 55 | let Fs := Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) bs F |
| 56 | let Gs := Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) xs U |
| 57 | have hfg : Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) q Fs = |
| 58 | Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) q Gs := by |
| 59 | dsimp only [Fs, Gs] |
| 60 | rw [← Hilbert.Functor.pullbackFamily_comp, ← Hilbert.Functor.pullbackFamily_comp, hb, hx, |
| 61 | Hilbert.Functor.pullbackFamily_comp, Hilbert.Functor.pullbackFamily_comp, hxp] |
| 62 | let : Algebra As Ap := (Principal.PrimeLocalization.principalToPrimeMap p.asIdeal s hs).toAlgebra |
| 63 | let W := p.asIdeal.primeCompl.map (algebraMap A As) |
| 64 | let : IsLocalization W Ap := Principal.PrimeLocalizationTower.principalToPrime_isLocalization p.asIdeal s hs |
| 65 | obtain ⟨t, ht⟩ := LocalizationFamilyEqualityNeighborhood.GradedHilbert.nativeFamily_equality_localization_neighborhood aspec Fs Gs W Ap hfg |
| 66 | let δ := Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap aspec (algebraMap As (Localization.Away t.val)) |
| 67 | refine ⟨_, δ ≫ bs, ?_, ?_, δ ≫ xs, ?_⟩ |
| 68 | · exact inferInstanceAs (IsOpenImmersion |
| 69 | (Spec.map (CommRingCat.ofHom (algebraMap As (Localization.Away t.val))) ≫ |
| 70 | Spec.map (CommRingCat.ofHom (algebraMap A As)))) |
| 71 | · obtain ⟨y, hy⟩ := Principal.RefinementPoint.principalRefinement_contains_prime p s hs t |
| 72 | exact ⟨y, hy⟩ |
| 73 | · rw [Hilbert.Functor.pullbackFamily_comp, Hilbert.Functor.pullbackFamily_comp] |
| 74 | exact ht.symm |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.SpreadParameterFamilyRefinement.GradedHilbert |