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.Smooth.OpenSourceCriterion |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 3 | |
| 4 | /-! # Smooth Base Open -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.SmoothBaseOpen |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Removing the proper image of the nonsmooth locus gives an actual open base over which the whole family is smooth. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X S : Scheme.{u}} (f : X ⟶ S) [IsProper f] [LocallyOfFinitePresentation f] |
| 17 | |
| 18 | def properSmoothBaseOpen : S.Opens := |
| 19 | ⟨(f '' (f.smoothLocus : Set X)ᶜ)ᶜ, |
| 20 | (f.isClosedMap _ f.smoothLocus.isOpen.isClosed_compl).isOpen_compl⟩ |
| 21 | |
| 22 | theorem properSmoothBaseOpen_preimage : f ⁻¹ᵁ properSmoothBaseOpen f ≤ f.smoothLocus := by |
| 23 | intro x hx |
| 24 | by_contra h |
| 25 | exact hx ⟨x, h, rfl⟩ |
| 26 | |
| 27 | theorem properSmoothBaseOpen_restrict_smooth : Smooth (f ∣_ properSmoothBaseOpen f) := by |
| 28 | have hs : Smooth ((f ⁻¹ᵁ properSmoothBaseOpen f).ι ≫ f) := |
| 29 | HilbertConstruction.Smooth.OpenSourceCriterion.smooth_open_source_of_le_smoothLocus f _ (properSmoothBaseOpen_preimage f) |
| 30 | have hc : Smooth ((f ∣_ properSmoothBaseOpen f) ≫ (properSmoothBaseOpen f).ι) := by |
| 31 | rw [morphismRestrict_ι] |
| 32 | exact hs |
| 33 | have hpb : IsPullback (𝟙 (f ⁻¹ᵁ properSmoothBaseOpen f).toScheme) |
| 34 | (f ∣_ properSmoothBaseOpen f) |
| 35 | ((f ∣_ properSmoothBaseOpen f) ≫ (properSmoothBaseOpen f).ι) (properSmoothBaseOpen f).ι := |
| 36 | IsPullback.of_horiz_isIso_mono ⟨Category.id_comp _⟩ |
| 37 | exact MorphismProperty.of_isPullback (P := @Smooth) hpb hc |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.SmoothBaseOpen |