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.ArithmeticGeometry.Models.SpreadingOut.Base |
| 2 | |
| 3 | /-! # Smooth Shrink -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.SmoothShrink.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Removing the finite smoothness obstruction from an existing proper model. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | /-- An open contained in the smooth locus is smooth over the base. -/ |
| 16 | theorem smooth_on_open_in_smoothLocus |
| 17 | {X Y : Scheme.{u}} (f : X ⟶ Y) [LocallyOfFinitePresentation f] |
| 18 | (U : X.Opens) (hU : U ≤ f.smoothLocus) : Smooth (U.ι ≫ f) := by |
| 19 | apply Scheme.Hom.smoothLocus_eq_top_iff.mp |
| 20 | rw [← Scheme.Hom.preimage_smoothLocus_eq] |
| 21 | apply top_unique |
| 22 | intro x _ |
| 23 | exact hU x.property |
| 24 | |
| 25 | /-- If a proper, finitely presented model is smooth at every point above the |
| 26 | generic point, its nonsmooth fibers disappear after deleting finitely many |
| 27 | primes. This lemma does not assume the existence of a smooth proper model. -/ |
| 28 | theorem proper_model_smooth_after_shrinking |
| 29 | {R : Type u} [CommRing R] [IsDomain R] [Ring.HasFiniteQuotients R] |
| 30 | {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) |
| 31 | [IsProper f] [LocallyOfFinitePresentation f] |
| 32 | (hgeneric : ∀ x, f x = (show PrimeSpectrum R from ⊥) → x ∈ f.smoothLocus) : |
| 33 | ∃ U : (Spec (CommRingCat.of R)).Opens, |
| 34 | ((U : Set (Spec (CommRingCat.of R)))ᶜ).Finite ∧ |
| 35 | (show PrimeSpectrum R from ⊥) ∈ U ∧ |
| 36 | Smooth (f ∣_ U) ∧ IsProper (f ∣_ U) := by |
| 37 | classical |
| 38 | let Z : Set (Spec (CommRingCat.of R)) := f '' (f.smoothLocus : Set X)ᶜ |
| 39 | have hZ : IsClosed Z := f.isClosedMap _ f.smoothLocus.isOpen.isClosed_compl |
| 40 | have hη : (show PrimeSpectrum R from ⊥) ∉ Z := by |
| 41 | rintro ⟨x, hx, heq⟩ |
| 42 | exact hx (hgeneric x heq) |
| 43 | let U : (Spec (CommRingCat.of R)).Opens := ⟨Zᶜ, hZ.isOpen_compl⟩ |
| 44 | have hpre : f ⁻¹ᵁ U ≤ f.smoothLocus := by |
| 45 | intro x hx |
| 46 | by_contra hn |
| 47 | exact hx ⟨x, hn, rfl⟩ |
| 48 | have hs : Smooth ((f ⁻¹ᵁ U).ι ≫ f) := |
| 49 | smooth_on_open_in_smoothLocus f _ hpre |
| 50 | have hscomp : Smooth ((f ∣_ U) ≫ U.ι) := by |
| 51 | rw [morphismRestrict_ι] |
| 52 | exact hs |
| 53 | refine ⟨U, ?_, hη, ?_, inferInstance⟩ |
| 54 | · change (Zᶜᶜ).Finite |
| 55 | rw [compl_compl] |
| 56 | change Set.Finite (α := PrimeSpectrum R) Z |
| 57 | exact Fg.Construction.finite_closed_away_generic Z hZ hη |
| 58 | · have hpb : IsPullback (𝟙 (f ⁻¹ᵁ U).toScheme) (f ∣_ U) |
| 59 | ((f ∣_ U) ≫ U.ι) U.ι := |
| 60 | IsPullback.of_horiz_isIso_mono ⟨by simp⟩ |
| 61 | exact MorphismProperty.of_isPullback hpb hscomp |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.ArithmeticGeometry.Models.SpreadingOut.SmoothShrink.Construction |