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.AbelianModuli.HilbertConstruction.LocalizationMapCartesian |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.OpenImmersionCriterion |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 4 | |
| 5 | /-! # Open Immersion Isomorphism -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.OpenImmersionIsomorphism |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A pullback of an open immersion over an open inside its image is an isomorphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem isIso_of_cartesian_openImmersion_range |
| 18 | {V U X Y : Scheme.{u}} (p : V ⟶ U) (a : V ⟶ X) (b : U ⟶ Y) (f : X ⟶ Y) |
| 19 | (H : IsPullback p a b f) [IsOpenImmersion f] |
| 20 | (h : Set.range b ⊆ Set.range f) : IsIso p := by |
| 21 | have : IsOpenImmersion p := MorphismProperty.of_isPullback H.flip inferInstance |
| 22 | apply isIso_of_isOpenImmersion_of_opensRange_eq_top p |
| 23 | apply TopologicalSpace.Opens.ext |
| 24 | apply Set.ext |
| 25 | intro y |
| 26 | constructor |
| 27 | · intro _ |
| 28 | trivial |
| 29 | · intro _ |
| 30 | obtain ⟨x, hx⟩ := h ⟨y, rfl⟩ |
| 31 | obtain ⟨v, hv, _⟩ := Scheme.exists_preimage_of_isPullback H y x hx.symm |
| 32 | exact ⟨v, hv⟩ |
| 33 | |
| 34 | theorem localizationMap_bijective_of_basicOpen_subset_range |
| 35 | {A B : Type u} [CommRing A] [CommRing B] (φ : A →+* B) |
| 36 | [IsOpenImmersion (Spec.map (CommRingCat.ofHom φ))] (a : A) |
| 37 | (ha : (PrimeSpectrum.basicOpen a : Set (PrimeSpectrum A)) ⊆ |
| 38 | Set.range (PrimeSpectrum.comap φ)) : |
| 39 | Function.Bijective (IsLocalization.Away.map |
| 40 | (Localization.Away a) (Localization.Away (φ a)) φ a) := by |
| 41 | have h : Set.range (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away a)))) ⊆ |
| 42 | Set.range (Spec.map (CommRingCat.ofHom φ)) := by |
| 43 | intro y hy |
| 44 | apply ha |
| 45 | exact (congrArg (fun S : Set (PrimeSpectrum A) => (y : PrimeSpectrum A) ∈ S) |
| 46 | (PrimeSpectrum.localization_away_comap_range (Localization.Away a) a)).mp hy |
| 47 | have := isIso_of_cartesian_openImmersion_range _ _ _ _ (LocalizationMapCartesian.localizationMap_isPullback φ a) h |
| 48 | exact isIso_SpecMap_iff.mp this |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.OpenImmersionIsomorphism |