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.PrincipalBlowup |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.BaseChange |
| 3 | |
| 4 | /-! # Blowup Lift -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.BlowupLift.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Lifts to blowups when the pulled-back center is regular principal. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R S : Type u} [CommRing R] [CommRing S] |
| 17 | variable (I : Ideal R) (φ : R →+* S) |
| 18 | |
| 19 | /-- A morphism of affine bases lifts to the blowup if its extended center |
| 20 | ideal is generated by a non-zero-divisor. -/ |
| 21 | def affineBlowupLift (a : I.map φ) (hI : I.map φ = Ideal.span {a.val}) |
| 22 | (ha : IsRegular a.val) : Spec (.of S) ⟶ ReesGrading.Construction.affineBlowup I := |
| 23 | letI : IsIso (ReesGrading.Construction.affineBlowupToSpec (I.map φ)) := |
| 24 | PrincipalBlowup.Construction.affineBlowupToSpec_isIso_of_principal (I.map φ) a hI ha |
| 25 | inv (ReesGrading.Construction.affineBlowupToSpec (I.map φ)) ≫ ReesMap.Construction.affineBlowupMap I φ |
| 26 | |
| 27 | /-- The constructed lift lies over the original morphism of affine bases. -/ |
| 28 | theorem affineBlowupLift_over (a : I.map φ) (hI : I.map φ = Ideal.span {a.val}) |
| 29 | (ha : IsRegular a.val) : |
| 30 | affineBlowupLift I φ a hI ha ≫ ReesGrading.Construction.affineBlowupToSpec I = Spec.map (CommRingCat.ofHom φ) := by |
| 31 | let : IsIso (ReesGrading.Construction.affineBlowupToSpec (I.map φ)) := |
| 32 | PrincipalBlowup.Construction.affineBlowupToSpec_isIso_of_principal (I.map φ) a hI ha |
| 33 | unfold affineBlowupLift |
| 34 | rw [Category.assoc, BaseOpen.Construction.affineBlowupMap_over, IsIso.inv_hom_id_assoc] |
| 35 | |
| 36 | /-- Two morphisms into a scheme that is an isomorphism over a given base |
| 37 | change agree if they have the same map into that base change. -/ |
| 38 | theorem hom_eq_of_isIso_baseChange |
| 39 | {B Y U T : Scheme.{u}} (p : B ⟶ Y) (j : U ⟶ Y) |
| 40 | [IsIso (pullback.snd p j)] (g₁ g₂ : T ⟶ B) (q : T ⟶ U) |
| 41 | (h₁ : g₁ ≫ p = q ≫ j) (h₂ : g₂ ≫ p = q ≫ j) : g₁ = g₂ := by |
| 42 | have he : pullback.lift g₁ q h₁ = pullback.lift g₂ q h₂ := by |
| 43 | apply (cancel_mono (pullback.snd p j)).mp |
| 44 | simp only [pullback.lift_snd] |
| 45 | simpa only [pullback.lift_fst] using congrArg (fun g => g ≫ pullback.fst p j) he |
| 46 | |
| 47 | /-- A lift into a separated scheme is unique once it is fixed on a dense |
| 48 | open where the structural map is an isomorphism. -/ |
| 49 | theorem hom_eq_of_dense_isIso_baseChange |
| 50 | {B Y U T D : Scheme.{u}} [IsReduced T] |
| 51 | (p : B ⟶ Y) [IsSeparated p] (j : U ⟶ Y) [IsIso (pullback.snd p j)] |
| 52 | (ι : D ⟶ T) [IsDominant ι] (g₁ g₂ : T ⟶ B) |
| 53 | (h : g₁ ≫ p = g₂ ≫ p) (q : D ⟶ U) (hq : ι ≫ g₁ ≫ p = q ≫ j) : |
| 54 | g₁ = g₂ := by |
| 55 | apply ext_of_isDominant_of_isSeparated p h ι |
| 56 | apply hom_eq_of_isIso_baseChange p j (ι ≫ g₁) (ι ≫ g₂) q |
| 57 | · simpa only [Category.assoc] using hq |
| 58 | · simpa only [Category.assoc, ← h] using hq |
| 59 | |
| 60 | /-- The coefficient map between localizations lies over the original affine map. -/ |
| 61 | theorem baseLocalizationMap_naturality (a : R) : |
| 62 | Spec.map (CommRingCat.ofHom |
| 63 | (IsLocalization.Away.map (Localization.Away a) (Localization.Away (φ a)) φ a)) ≫ |
| 64 | Blowup.Localization.Construction.baseLocalizationMap a = |
| 65 | Blowup.Localization.Construction.baseLocalizationMap (φ a) ≫ Spec.map (CommRingCat.ofHom φ) := by |
| 66 | unfold Blowup.Localization.Construction.baseLocalizationMap |
| 67 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 68 | congr 1 |
| 69 | apply CommRingCat.hom_ext |
| 70 | change (IsLocalization.Away.map (Localization.Away a) (Localization.Away (φ a)) φ a).comp |
| 71 | (algebraMap R (Localization.Away a)) = (algebraMap S (Localization.Away (φ a))).comp φ |
| 72 | unfold IsLocalization.Away.map |
| 73 | exact IsLocalization.map_comp _ |
| 74 | |
| 75 | /-- For an integral source and Noetherian integral affine base, lifts to a |
| 76 | blowup are unique whenever some center section remains nonzero on the source. -/ |
| 77 | theorem affineBlowup_hom_ext [IsDomain R] [IsNoetherianRing R] [IsDomain S] |
| 78 | (g₁ g₂ : Spec (.of S) ⟶ ReesGrading.Construction.affineBlowup I) |
| 79 | (h₁ : g₁ ≫ ReesGrading.Construction.affineBlowupToSpec I = Spec.map (CommRingCat.ofHom φ)) |
| 80 | (h₂ : g₂ ≫ ReesGrading.Construction.affineBlowupToSpec I = Spec.map (CommRingCat.ofHom φ)) |
| 81 | (a : I) (ha : φ a.val ≠ 0) : g₁ = g₂ := by |
| 82 | have ha0 : a.val ≠ 0 := by |
| 83 | intro hzero |
| 84 | exact ha (by rw [hzero, map_zero]) |
| 85 | let : IsDomain (Localization.Away (φ a.val)) := Localization.Away.isDomain ha |
| 86 | let : IsIso (pullback.snd (ReesGrading.Construction.affineBlowupToSpec I) (Blowup.Localization.Construction.baseLocalizationMap a.val)) := |
| 87 | Birational.Construction.affineBlowup_localization_isIso I a ha0 |
| 88 | let : IsDominant (Blowup.Localization.Construction.baseLocalizationMap (φ a.val)) := by |
| 89 | constructor |
| 90 | exact (Blowup.Localization.Construction.baseLocalizationMap (φ a.val)).opensRange.isOpen.dense |
| 91 | (Set.range_nonempty (Blowup.Localization.Construction.baseLocalizationMap (φ a.val))) |
| 92 | apply hom_eq_of_dense_isIso_baseChange (ReesGrading.Construction.affineBlowupToSpec I) (Blowup.Localization.Construction.baseLocalizationMap a.val) |
| 93 | (Blowup.Localization.Construction.baseLocalizationMap (φ a.val)) g₁ g₂ (h₁.trans h₂.symm) |
| 94 | (Spec.map (CommRingCat.ofHom |
| 95 | (IsLocalization.Away.map (Localization.Away a.val) (Localization.Away (φ a.val)) φ a.val))) |
| 96 | rw [h₁] |
| 97 | exact (baseLocalizationMap_naturality φ a.val).symm |
| 98 | |
| 99 | /-- A nonzero extended ideal contains the nonzero image of some original section. -/ |
| 100 | theorem exists_ideal_section_image_ne_zero (hI : I.map φ ≠ ⊥) : |
| 101 | ∃ a : I, φ a.val ≠ 0 := by |
| 102 | by_contra h |
| 103 | push Not at h |
| 104 | apply hI |
| 105 | rw [Ideal.map_eq_bot_iff_le_ker] |
| 106 | intro a ha |
| 107 | exact h ⟨a, ha⟩ |
| 108 | |
| 109 | /-- For integral affine schemes, a regular principal pullback of the center |
| 110 | gives a unique lift to the blowup. -/ |
| 111 | theorem affineBlowup_existsUnique_lift |
| 112 | [IsDomain R] [IsNoetherianRing R] [IsDomain S] |
| 113 | (a : I.map φ) (hI : I.map φ = Ideal.span {a.val}) (ha : IsRegular a.val) : |
| 114 | ∃! g : Spec (.of S) ⟶ ReesGrading.Construction.affineBlowup I, |
| 115 | g ≫ ReesGrading.Construction.affineBlowupToSpec I = Spec.map (CommRingCat.ofHom φ) := by |
| 116 | have hIS : I.map φ ≠ ⊥ := by |
| 117 | intro hzero |
| 118 | exact (nonZeroDivisors.ne_zero ha.mem_nonZeroDivisors) |
| 119 | (Ideal.mem_bot.mp (hzero.le a.property)) |
| 120 | obtain ⟨b, hb⟩ := exists_ideal_section_image_ne_zero I φ hIS |
| 121 | refine ⟨affineBlowupLift I φ a hI ha, affineBlowupLift_over I φ a hI ha, ?_⟩ |
| 122 | intro g hg |
| 123 | exact affineBlowup_hom_ext I φ g (affineBlowupLift I φ a hI ha) hg |
| 124 | (affineBlowupLift_over I φ a hI ha) b hb |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.BlowupLift.Construction |