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.Curve.CenterPointedFrame |
| 2 | |
| 3 | /-! # Center Finite Frame Cover -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Curve.CenterFiniteFrameCover.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite actual affine open covers carrying local coordinate frames of a curve center. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | /-- An actual affine open chart on which the original center is empty or |
| 16 | has a single coordinate equation with a dual derivation. -/ |
| 17 | structure AffineCenterFrameChart (k R : Type u) [CommRing k] [CommRing R] [Algebra k R] |
| 18 | (I : Ideal R) where |
| 19 | carrier : CommRingCat.{u} |
| 20 | algebra : Algebra k carrier |
| 21 | map : R →ₐ[k] carrier |
| 22 | isOpenImmersion : IsOpenImmersion (Spec.map (CommRingCat.ofHom map.toRingHom)) |
| 23 | smooth : Algebra.Smooth k carrier |
| 24 | center : I.map map.toRingHom = ⊤ ∨ |
| 25 | ∃ (g : carrier) (D : Derivation k carrier carrier), I.map map.toRingHom = Ideal.span {g} ∧ D g = 1 |
| 26 | |
| 27 | attribute [instance] AffineCenterFrameChart.algebra AffineCenterFrameChart.isOpenImmersion |
| 28 | AffineCenterFrameChart.smooth |
| 29 | |
| 30 | def AffineCenterFrameChart.openRange {k R : Type u} [CommRing k] [CommRing R] [Algebra k R] |
| 31 | {I : Ideal R} (C : AffineCenterFrameChart k R I) : TopologicalSpace.Opens (PrimeSpectrum R) := |
| 32 | (Spec.map (CommRingCat.ofHom C.map.toRingHom)).opensRange |
| 33 | |
| 34 | variable (k : Type u) {R : Type u} [Field k] [IsAlgClosed k] [CommRing R] |
| 35 | [Algebra k R] [Algebra.Smooth k R] [Algebra ℚ R] [IsNoetherianRing R] |
| 36 | |
| 37 | theorem curve_center_frame_chart_at (hd : ringKrullDim R ≤ 1) |
| 38 | (I : Ideal R) (hI : Relative.DifferentialBlowup.Construction.firstRelativeDifferentialIdeal k I = ⊤) (p : PrimeSpectrum R) : |
| 39 | ∃ C : AffineCenterFrameChart k R I, p ∈ C.openRange := by |
| 40 | classical |
| 41 | by_cases hIp : I ≤ p.asIdeal |
| 42 | · obtain ⟨S, aS, f, Q, hQ, hQp, hopen, hsmooth, g, D, hgen, hD⟩ := |
| 43 | CenterPointedFrame.Construction.curve_center_pointed_coordinate_neighborhood k hd I p.asIdeal hIp hI |
| 44 | let C : AffineCenterFrameChart k R I := |
| 45 | ⟨S, aS, f, hopen, hsmooth, Or.inr ⟨g, D, hgen, hD⟩⟩ |
| 46 | refine ⟨C, ?_⟩ |
| 47 | change p ∈ Set.range (PrimeSpectrum.comap f.toRingHom) |
| 48 | exact ⟨⟨Q, hQ⟩, PrimeSpectrum.ext hQp⟩ |
| 49 | · obtain ⟨a, haI, hap⟩ : ∃ a ∈ I, a ∉ p.asIdeal := by |
| 50 | by_contra! h |
| 51 | exact hIp h |
| 52 | let S := Localization.Away a |
| 53 | let : Algebra.Smooth R S := Algebra.Smooth.of_isLocalization_Away a |
| 54 | let : Algebra.Smooth k S := Algebra.Smooth.comp k R S |
| 55 | let f : R →ₐ[k] S := IsScalarTower.toAlgHom k R S |
| 56 | let C : AffineCenterFrameChart k R I := |
| 57 | ⟨.of S, inferInstance, f, IsOpenImmersion.of_isLocalization a, inferInstance, |
| 58 | Or.inl (IdempotentQuotientCenter.Construction.center_map_away_member_eq_top I a haI)⟩ |
| 59 | have hdis : Disjoint (Submonoid.powers a : Set R) p.asIdeal := |
| 60 | (Ideal.disjoint_powers_iff_notMem_of_isPrime a).mpr hap |
| 61 | have hQ := IsLocalization.isPrime_of_isPrime_disjoint (Submonoid.powers a) S |
| 62 | p.asIdeal inferInstance hdis |
| 63 | have hQp := IsLocalization.under_map_of_isPrime_disjoint (Submonoid.powers a) S |
| 64 | (I := p.asIdeal) inferInstance hdis |
| 65 | refine ⟨C, ?_⟩ |
| 66 | change p ∈ Set.range (PrimeSpectrum.comap (algebraMap R S)) |
| 67 | exact ⟨⟨p.asIdeal.map (algebraMap R S), hQ⟩, PrimeSpectrum.ext hQp⟩ |
| 68 | |
| 69 | /-- Quasi-compactness turns the actual coordinate neighborhoods into a |
| 70 | finite cover of the entire affine curve, including the complement of the center. -/ |
| 71 | theorem exists_finite_curve_center_frame_cover (hd : ringKrullDim R ≤ 1) |
| 72 | (I : Ideal R) (hI : Relative.DifferentialBlowup.Construction.firstRelativeDifferentialIdeal k I = ⊤) : |
| 73 | ∃ (s : Finset (PrimeSpectrum R)) (C : s → AffineCenterFrameChart k R I), |
| 74 | (⨆ i, (C i).openRange) = ⊤ := by |
| 75 | classical |
| 76 | choose C hC using curve_center_frame_chart_at k hd I hI |
| 77 | have hcover : Set.univ ⊆ ⋃ p, ((C p).openRange : Set (PrimeSpectrum R)) := by |
| 78 | intro p _ |
| 79 | exact Set.mem_iUnion.mpr ⟨p, hC p⟩ |
| 80 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover |
| 81 | (fun p => ((C p).openRange : Set (PrimeSpectrum R))) (fun p => (C p).openRange.isOpen) hcover |
| 82 | refine ⟨s, fun p => C p.val, top_le_iff.mp ?_⟩ |
| 83 | intro p _ |
| 84 | obtain ⟨i, hi, hp⟩ := Set.mem_iUnion₂.mp (hs (Set.mem_univ p)) |
| 85 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨⟨i, hi⟩, hp⟩ |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.Resolution.Blowups.Curve.CenterFiniteFrameCover.Construction |