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 Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 2 | |
| 3 | /-! # Finite Closed Fibers -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.FiniteClosedFibers |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A proper map to a Jacobson scheme is finite when its fibers over closed points have finite support. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X Y : Scheme.{u}} |
| 16 | |
| 17 | theorem proper_isFinite_of_finite_closedFibers (f : X ⟶ Y) [IsProper f] [JacobsonSpace Y] |
| 18 | (h : ∀ y : Y, IsClosed ({y} : Set Y) → (f ⁻¹' {y}).Finite) : IsFinite f := by |
| 19 | let I := {U : Y.Opens // IsFinite (f ∣_ U)} |
| 20 | let V : Y.Opens := ⨆ U : I, U.val |
| 21 | have hclosed (y : Y) (hy : IsClosed ({y} : Set Y)) : y ∈ V := by |
| 22 | obtain ⟨U, hyU, hU⟩ := exists_isFinite_morphismRestrict_of_finite_preimage_singleton f y (h y hy) |
| 23 | exact (le_iSup (fun U : I => U.val) ⟨U, hU⟩) hyU |
| 24 | have hV : V = ⊤ := by |
| 25 | apply top_unique |
| 26 | intro y _ |
| 27 | by_contra hy |
| 28 | obtain ⟨z, hz, hzc⟩ := nonempty_inter_closedPoints |
| 29 | (show ((V : Set Y)ᶜ).Nonempty from ⟨y, hy⟩) V.isOpen.isClosed_compl.isLocallyClosed |
| 30 | exact hz (hclosed z hzc) |
| 31 | have hQ : f.quasiFiniteLocus = ⊤ := by |
| 32 | apply top_unique |
| 33 | intro x _ |
| 34 | have hm : f x ∈ V := hV.symm ▸ (show f x ∈ (⊤ : Y.Opens) from trivial) |
| 35 | change f x ∈ (⨆ U : I, U.val) at hm |
| 36 | obtain ⟨U, hU⟩ := TopologicalSpace.Opens.mem_iSup.mp hm |
| 37 | let : IsFinite (f ∣_ U.val) := U.property |
| 38 | let xU : (f ⁻¹ᵁ U.val).toScheme := ⟨x, hU⟩ |
| 39 | have hxU : (f ∣_ U.val).QuasiFiniteAt xU := (f ∣_ U.val).quasiFiniteAt xU |
| 40 | have hc : ((f ∣_ U.val) ≫ U.val.ι).QuasiFiniteAt xU := |
| 41 | Scheme.Hom.quasiFiniteAt_comp_iff.mpr hxU |
| 42 | have hc' : ((f ⁻¹ᵁ U.val).ι ≫ f).QuasiFiniteAt xU := (morphismRestrict_ι f U.val) ▸ hc |
| 43 | exact Scheme.Hom.quasiFiniteAt_comp_iff_of_isOpenImmersion.mp hc' |
| 44 | have : LocallyQuasiFinite f := f.quasiFiniteLocus_eq_top_iff.mp hQ |
| 45 | exact IsFinite.of_isProper_of_locallyQuasiFinite f |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.FiniteClosedFibers |