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.Morphisms.Separated |
| 2 | |
| 3 | /-! # Equalizer Fiber Locus -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EqualizerFiberLocus |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The locus where a whole fiber lies in the scheme-theoretic equalizer of two maps. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X S Y : Scheme.{u}} |
| 16 | |
| 17 | def equalizerFiberLocus (p : X ⟶ S) (f g : X ⟶ Y) : Set S := |
| 18 | (p '' (Set.range (equalizer.ι f g))ᶜ)ᶜ |
| 19 | |
| 20 | theorem mem_equalizerFiberLocus_iff (p : X ⟶ S) (f g : X ⟶ Y) (s : S) : |
| 21 | s ∈ equalizerFiberLocus p f g ↔ |
| 22 | ∀ x : X, p x = s → x ∈ Set.range (equalizer.ι f g) := by |
| 23 | constructor |
| 24 | · intro hs x hx |
| 25 | by_contra h |
| 26 | exact hs ⟨x, h, hx⟩ |
| 27 | · intro hs ⟨x, hx, hxs⟩ |
| 28 | exact hx (hs x hxs) |
| 29 | |
| 30 | theorem equalizerFiberLocus_map_eq (p : X ⟶ S) (f g : X ⟶ Y) |
| 31 | (s : S) (hs : s ∈ equalizerFiberLocus p f g) (x : X) (hx : p x = s) : f x = g x := by |
| 32 | obtain ⟨z, rfl⟩ := (mem_equalizerFiberLocus_iff p f g s).mp hs x hx |
| 33 | exact congrArg (fun a : equalizer f g ⟶ Y => a z) (equalizer.condition f g) |
| 34 | |
| 35 | theorem equalizerFiberLocus_isClosed (p : X ⟶ S) (hp : IsOpenMap p) |
| 36 | (f g : X ⟶ Y) [Y.IsSeparated] : IsClosed (equalizerFiberLocus p f g) := |
| 37 | (hp _ (equalizer.ι f g).isClosedEmbedding.isClosed_range.isOpen_compl).isClosed_compl |
| 38 | |
| 39 | theorem restrictionEq_le_equalizerFiberLocus (p : X ⟶ S) (f g : X ⟶ Y) (V : S.Opens) |
| 40 | (h : (p ⁻¹ᵁ V).ι ≫ f = (p ⁻¹ᵁ V).ι ≫ g) : |
| 41 | (V : Set S) ⊆ equalizerFiberLocus p f g := by |
| 42 | intro s hs |
| 43 | apply (mem_equalizerFiberLocus_iff p f g s).mpr |
| 44 | intro x hx |
| 45 | have hpx : p x ∈ V := hx.symm ▸ hs |
| 46 | let z : (p ⁻¹ᵁ V).toScheme := ⟨x, hpx⟩ |
| 47 | refine ⟨equalizer.lift (p ⁻¹ᵁ V).ι h z, ?_⟩ |
| 48 | exact congrArg (fun a : (p ⁻¹ᵁ V).toScheme ⟶ X => a z) (equalizer.lift_ι _ _) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EqualizerFiberLocus |