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.HilbertScheme.Presentations.Proper.RelativeFiberIsomorphismNeighborhood |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.OnOpenBaseChange |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 4 | |
| 5 | /-! # Relative Isomorphism Open -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.RelativeIsomorphismOpen |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! For a proper morphism with parameter-flat source and proper target, |
| 12 | the parameters with isomorphic fibers form an actual open subscheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {X Y B : Scheme.{u}} |
| 18 | variable (f : X ⟶ Y) (q : Y ⟶ B) [IsProper q] |
| 19 | |
| 20 | def properRelativeIsomorphismOpen : B.Opens := |
| 21 | ⟨(q '' (MaximalIsomorphismOpen.maximalIsomorphismOpen f : Set Y)ᶜ)ᶜ, |
| 22 | (q.isClosedMap _ (MaximalIsomorphismOpen.maximalIsomorphismOpen f).isOpen.isClosed_compl).isOpen_compl⟩ |
| 23 | |
| 24 | theorem mem_properRelativeIsomorphismOpen (b : B) : |
| 25 | b ∈ properRelativeIsomorphismOpen f q ↔ |
| 26 | ∀ y : Y, q y = b → y ∈ MaximalIsomorphismOpen.maximalIsomorphismOpen f := by |
| 27 | constructor |
| 28 | · intro h y hy |
| 29 | by_contra hn |
| 30 | exact h ⟨y, hn, hy⟩ |
| 31 | · intro h |
| 32 | rintro ⟨y, hy, he⟩ |
| 33 | exact hy (h y he) |
| 34 | |
| 35 | theorem properRelativeIsomorphismOpen_fiber_iff |
| 36 | [IsLocallyNoetherian Y] [IsProper f] [Flat (f ≫ q)] (b : B) : |
| 37 | b ∈ properRelativeIsomorphismOpen f q ↔ |
| 38 | IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange f q (B.fromSpecResidueField b)) := by |
| 39 | constructor |
| 40 | · intro h |
| 41 | rw [Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange_isIso_iff, Relative.SourceIsomorphismTransport.isIso_pullback_snd_iff_fst] |
| 42 | let := MaximalIsomorphismOpen.maximalIsomorphismOpen_restrict_isIso f |
| 43 | apply OnOpenBaseChange.isIso_pullback_fst_of_range_subset_isomorphism_open f |
| 44 | (MaximalIsomorphismOpen.maximalIsomorphismOpen f) |
| 45 | rw [Scheme.Pullback.range_fst, Scheme.range_fromSpecResidueField] |
| 46 | intro y hy |
| 47 | exact (mem_properRelativeIsomorphismOpen f q b).mp h y hy |
| 48 | · intro h |
| 49 | apply (mem_properRelativeIsomorphismOpen f q b).mpr |
| 50 | intro y hy |
| 51 | apply RelativeFiberIsomorphismNeighborhood.mem_maximalIsomorphismOpen_of_relative_fiber f q y |
| 52 | rw [hy] |
| 53 | exact h |
| 54 | |
| 55 | theorem properRelativeIsomorphismOpen_isIso_of_range |
| 56 | {T : Scheme.{u}} (g : T ⟶ B) |
| 57 | (h : Set.range g ⊆ (properRelativeIsomorphismOpen f q : Set B)) : |
| 58 | IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange f q g) := by |
| 59 | rw [Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange_isIso_iff, Relative.SourceIsomorphismTransport.isIso_pullback_snd_iff_fst] |
| 60 | let := MaximalIsomorphismOpen.maximalIsomorphismOpen_restrict_isIso f |
| 61 | apply OnOpenBaseChange.isIso_pullback_fst_of_range_subset_isomorphism_open f |
| 62 | (MaximalIsomorphismOpen.maximalIsomorphismOpen f) |
| 63 | rw [Scheme.Pullback.range_fst] |
| 64 | intro y hy |
| 65 | exact (mem_properRelativeIsomorphismOpen f q (q y)).mp (h hy) y rfl |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Proper.RelativeIsomorphismOpen |