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.FlatBaseChange |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Blowup.Complement |
| 4 | |
| 5 | /-! # Blowup Complement -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Affine.BlowupComplement.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual affine blowup is an isomorphism off its center, without |
| 12 | domain or nonzero-ideal assumptions. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | |
| 20 | theorem affineBlowupToSpec_unitIdeal_isIso : |
| 21 | IsIso (ReesGrading.Construction.affineBlowupToSpec (⊤ : Ideal R)) := by |
| 22 | apply PrincipalBlowup.Construction.affineBlowupToSpec_isIso_of_principal (⊤ : Ideal R) ⟨1, trivial⟩ |
| 23 | · exact (Ideal.span_singleton_one : Ideal.span {(1 : R)} = ⊤).symm |
| 24 | · exact isRegular_one |
| 25 | |
| 26 | theorem affineBlowup_localized_structure_isIso (I : Ideal R) (g : R) (hg : g ∈ I) : |
| 27 | IsIso (ReesGrading.Construction.affineBlowupToSpec (I.map (algebraMap R (Localization.Away g)))) := by |
| 28 | have hmap : I.map (algebraMap R (Localization.Away g)) = ⊤ := |
| 29 | Ideal.eq_top_of_isUnit_mem _ (Ideal.mem_map_of_mem _ hg) |
| 30 | (IsLocalization.Away.algebraMap_isUnit g) |
| 31 | rw [hmap] |
| 32 | exact affineBlowupToSpec_unitIdeal_isIso |
| 33 | |
| 34 | theorem isIso_pullback_snd_of_isPullback |
| 35 | {X' X Y' Y : Scheme.{u}} (i : X' ⟶ X) (f' : X' ⟶ Y') (f : X ⟶ Y) (j : Y' ⟶ Y) |
| 36 | (hpb : IsPullback i f' f j) [IsIso f'] : IsIso (pullback.snd f j) := by |
| 37 | let : IsIso (hpb.isoPullback.hom ≫ pullback.snd f j) := hpb.isoPullback_hom_snd.symm ▸ inferInstance |
| 38 | exact IsIso.of_isIso_comp_left hpb.isoPullback.hom _ |
| 39 | |
| 40 | theorem affineBlowup_localization_pullback_isIso (I : Ideal R) (g : R) (hg : g ∈ I) : |
| 41 | IsIso (pullback.snd (ReesGrading.Construction.affineBlowupToSpec I) |
| 42 | (Spec.map (CommRingCat.ofHom (algebraMap R (Localization.Away g))))) := by |
| 43 | let : IsIso (ReesGrading.Construction.affineBlowupToSpec (I.map (algebraMap R (Localization.Away g)))) := |
| 44 | affineBlowup_localized_structure_isIso I g hg |
| 45 | exact isIso_pullback_snd_of_isPullback _ _ _ _ |
| 46 | (Blowup.FlatBaseChange.Construction.affineBlowup_flat_isPullback (S := Localization.Away g) I) |
| 47 | |
| 48 | theorem isIso_restrict_opensRange_of_pullback_snd |
| 49 | {X Y Y' : Scheme.{u}} (f : X ⟶ Y) (j : Y' ⟶ Y) [IsOpenImmersion j] |
| 50 | [IsIso (pullback.snd f j)] : IsIso (f ∣_ j.opensRange) := by |
| 51 | exact ((MorphismProperty.isomorphisms Scheme).arrow_mk_iso_iff |
| 52 | (morphismRestrictOpensRange f j)).mpr (inferInstance : IsIso (pullback.snd f j)) |
| 53 | |
| 54 | /-- On every basic open cut out by an element of the center ideal, |
| 55 | the actual blowup is an isomorphism. -/ |
| 56 | theorem affineBlowup_basicOpen_isIso (I : Ideal R) (g : R) (hg : g ∈ I) : |
| 57 | IsIso (ReesGrading.Construction.affineBlowupToSpec I ∣_ PrimeSpectrum.basicOpen g) := by |
| 58 | let j := Spec.map (CommRingCat.ofHom (algebraMap R (Localization.Away g))) |
| 59 | let : IsOpenImmersion j := IsOpenImmersion.of_isLocalization g |
| 60 | let : IsIso (pullback.snd (ReesGrading.Construction.affineBlowupToSpec I) j) := |
| 61 | affineBlowup_localization_pullback_isIso I g hg |
| 62 | have h := isIso_restrict_opensRange_of_pullback_snd (ReesGrading.Construction.affineBlowupToSpec I) j |
| 63 | have hrange : j.opensRange = PrimeSpectrum.basicOpen g := |
| 64 | Scheme.Hom.opensRange_localizationAway (R := CommRingCat.of R) g |
| 65 | rw [hrange] at h |
| 66 | exact h |
| 67 | |
| 68 | /-- The complement of the actual affine closed center. -/ |
| 69 | def affineCenterComplement (I : Ideal R) : (Spec (CommRingCat.of R)).Opens := |
| 70 | ⟨(PrimeSpectrum.zeroLocus (I : Set R))ᶜ, (PrimeSpectrum.isClosed_zeroLocus (I : Set R)).isOpen_compl⟩ |
| 71 | |
| 72 | /-- The entire complement of the center is unchanged by the blowup. -/ |
| 73 | theorem affineBlowup_centerComplement_isIso (I : Ideal R) : |
| 74 | IsIso (ReesGrading.Construction.affineBlowupToSpec I ∣_ affineCenterComplement I) := by |
| 75 | apply Blowup.Complement.Construction.isIso_restrict_of_local_restrictions |
| 76 | intro q hq |
| 77 | have hn : ¬ I ≤ q.asIdeal := hq |
| 78 | obtain ⟨g, hgI, hgq⟩ := SetLike.not_le_iff_exists.mp hn |
| 79 | refine ⟨PrimeSpectrum.basicOpen g, hgq, ?_, affineBlowup_basicOpen_isIso I g hgI⟩ |
| 80 | intro p hp |
| 81 | change ¬ I ≤ p.asIdeal |
| 82 | intro hIp |
| 83 | exact hp (hIp hgI) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.Resolution.Blowups.Affine.BlowupComplement.Construction |