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 Image Neighborhood -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteImageNeighborhood.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite images of proper fibers persist over a neighborhood in the base. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem finite_image_fiber_neighborhood |
| 16 | {X Y S : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ S) (s : S) |
| 17 | (hs : (f '' ((f ≫ g) ⁻¹' {s})).Finite) |
| 18 | [IsProper (f ≫ g)] [IsSeparated g] [LocallyOfFiniteType g] : |
| 19 | ∃ U : S.Opens, s ∈ U ∧ ∀ x : U.toScheme, (g ⁻¹' {x.1} ∩ Set.range f).Finite := by |
| 20 | have : IsProper f := .of_comp f g |
| 21 | obtain ⟨U, hsU, hU⟩ := |
| 22 | exists_finite_imageι_comp_morphismRestrict_of_finite_image_preimage f g s hs |
| 23 | refine ⟨U, hsU, fun x ↦ ?_⟩ |
| 24 | refine ((((f.imageι ≫ g) ∣_ U).finite_preimage_singleton x).image |
| 25 | (Scheme.Opens.ι _ ≫ f.imageι)).subset ?_ |
| 26 | rintro y ⟨hy, z, rfl⟩ |
| 27 | have ht : (f.imageι ≫ g) (f.toImage z) = x.1 := by |
| 28 | change (f.toImage ≫ f.imageι ≫ g) z = x.1 |
| 29 | rw [Scheme.Hom.toImage_imageι_assoc] |
| 30 | exact hy |
| 31 | let a : ((f.imageι ≫ g) ⁻¹ᵁ U).toScheme := |
| 32 | ⟨f.toImage z, by change (f.imageι ≫ g) (f.toImage z) ∈ U; rw [ht]; exact x.2⟩ |
| 33 | refine ⟨a, ?_, ?_⟩ |
| 34 | · change ((f.imageι ≫ g) ∣_ U) a = x |
| 35 | apply Subtype.ext |
| 36 | exact (congrArg (fun q : ((f.imageι ≫ g) ⁻¹ᵁ U).toScheme ⟶ S ↦ q a) |
| 37 | (morphismRestrict_ι (f.imageι ≫ g) U)).trans ht |
| 38 | · change (f.toImage ≫ f.imageι) z = f z |
| 39 | rw [Scheme.Hom.toImage_imageι] |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteImageNeighborhood.Construction |