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.Cartesian.OpenImmersionIsomorphism |
| 2 | |
| 3 | /-! # Immersion Presentation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.ImmersionPresentation |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Every affine open immersion has a finite principal presentation by its actual localized maps. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem exists_finite_principal_openImmersion_presentation |
| 16 | {A B : Type u} [CommRing A] [CommRing B] (φ : A →+* B) |
| 17 | [IsOpenImmersion (Spec.map (CommRingCat.ofHom φ))] : |
| 18 | ∃ (k : ℕ) (f : Fin k → A), |
| 19 | Ideal.span (Set.range (fun i => φ (f i))) = ⊤ ∧ |
| 20 | ∀ i, Function.Bijective (IsLocalization.Away.map |
| 21 | (Localization.Away (f i)) (Localization.Away (φ (f i))) φ (f i)) := by |
| 22 | classical |
| 23 | have ho : IsOpen (Set.range (PrimeSpectrum.comap φ)) := |
| 24 | (Spec.map (CommRingCat.ofHom φ)).isOpenEmbedding.isOpen_range |
| 25 | have hloc (x : PrimeSpectrum B) : ∃ a : A, |
| 26 | PrimeSpectrum.comap φ x ∈ PrimeSpectrum.basicOpen a ∧ |
| 27 | (PrimeSpectrum.basicOpen a : Set (PrimeSpectrum A)) ⊆ Set.range (PrimeSpectrum.comap φ) := by |
| 28 | obtain ⟨_, ⟨a, rfl⟩, hx, ha⟩ := |
| 29 | PrimeSpectrum.isTopologicalBasis_basic_opens.isOpen_iff.mp ho _ ⟨x, rfl⟩ |
| 30 | exact ⟨a, hx, ha⟩ |
| 31 | choose a hx ha using hloc |
| 32 | have hx' (x : PrimeSpectrum B) : x ∈ PrimeSpectrum.basicOpen (φ (a x)) := hx x |
| 33 | obtain ⟨t, ht⟩ := isCompact_univ.elim_finite_subcover |
| 34 | (fun x => (PrimeSpectrum.basicOpen (φ (a x)) : Set (PrimeSpectrum B))) |
| 35 | (fun x => (PrimeSpectrum.basicOpen (φ (a x))).isOpen) |
| 36 | (fun x _ => Set.mem_iUnion.mpr ⟨x, hx' x⟩) |
| 37 | let e := Fintype.equivFin t |
| 38 | let f (i : Fin (Fintype.card t)) := a (e.symm i).val |
| 39 | refine ⟨Fintype.card t, f, ?_, fun i => |
| 40 | Cartesian.OpenImmersionIsomorphism.localizationMap_bijective_of_basicOpen_subset_range φ (f i) (ha _)⟩ |
| 41 | apply PrimeSpectrum.iSup_basicOpen_eq_top_iff.mp |
| 42 | apply TopologicalSpace.Opens.ext |
| 43 | apply Set.ext |
| 44 | intro x |
| 45 | constructor |
| 46 | · intro _ |
| 47 | trivial |
| 48 | · intro _ |
| 49 | obtain ⟨y, hy, hxy⟩ := Set.mem_iUnion₂.mp (ht (Set.mem_univ x)) |
| 50 | apply TopologicalSpace.Opens.mem_iSup.mpr |
| 51 | refine ⟨e ⟨y, hy⟩, ?_⟩ |
| 52 | have he : (e.symm (e ⟨y, hy⟩)).val = y := congrArg Subtype.val (e.symm_apply_apply ⟨y, hy⟩) |
| 53 | exact (congrArg (fun z => x ∈ PrimeSpectrum.basicOpen (φ (a z))) he).mpr hxy |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.ImmersionPresentation |