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.ReferenceFamily.FiberwiseOpenLocus |
| 2 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.OpenImmersion |
| 5 | |
| 6 | /-! # Proper Map Immersion Locus -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ProperMapImmersionLocus |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! An actual proper scheme family has a universal open base locus |
| 15 | where a given morphism factors through a specified open subscheme. |
| 16 | The criterion holds after every actual scheme base change. For an |
| 17 | open family map and a clopen target condition the locus is clopen. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | variable {X S : Scheme.{0}} (p : X ⟶ S) [IsProper p] (U : X.Opens) |
| 22 | |
| 23 | def schemeFiberwiseOpenLocus : S.Opens := FiberwiseOpenLocus.fiberwiseOpenLocus p p.isClosedMap U |
| 24 | |
| 25 | theorem schemeFiberwiseOpenLocus_baseChange |
| 26 | {Z T : Scheme.{0}} (a : Z ⟶ X) (b : Z ⟶ T) (q : T ⟶ S) |
| 27 | (h : IsPullback a b p q) : |
| 28 | Set.range q ⊆ schemeFiberwiseOpenLocus p U ↔ ∀ z, a z ∈ U := |
| 29 | FiberwiseOpenLocus.fiberwiseOpenLocus_baseChange p p.isClosedMap U a b q |
| 30 | (fun z => congrArg (fun m : Z ⟶ S => m z) h.w) |
| 31 | (Scheme.exists_preimage_of_isPullback h) |
| 32 | |
| 33 | variable {Y : Scheme.{0}} (f : X ⟶ Y) (V : Y.Opens) |
| 34 | |
| 35 | def properMapOpenLocus : S.Opens := schemeFiberwiseOpenLocus p (f ⁻¹ᵁ V) |
| 36 | |
| 37 | theorem properMapOpenLocus_isClosed (hp : IsOpenMap p) (hV : IsClosed (V : Set Y)) : |
| 38 | IsClosed (properMapOpenLocus p f V : Set S) := |
| 39 | FiberwiseOpenLocus.fiberwiseOpenLocus_isClosed p p.isClosedMap (f ⁻¹ᵁ V) hp (hV.preimage f.continuous) |
| 40 | |
| 41 | theorem properMapOpenLocus_baseChange_factor |
| 42 | {Z T : Scheme.{0}} (a : Z ⟶ X) (b : Z ⟶ T) (q : T ⟶ S) |
| 43 | (h : IsPullback a b p q) : |
| 44 | Set.range q ⊆ properMapOpenLocus p f V ↔ |
| 45 | ∃! k : Z ⟶ V.toScheme, k ≫ V.ι = a ≫ f := by |
| 46 | refine (schemeFiberwiseOpenLocus_baseChange p (f ⁻¹ᵁ V) a b q h).trans ?_ |
| 47 | constructor |
| 48 | · intro hz |
| 49 | have hr : Set.range (a ≫ f) ⊆ Set.range V.ι := by |
| 50 | rw [Scheme.Opens.range_ι] |
| 51 | rintro _ ⟨z, rfl⟩ |
| 52 | exact hz z |
| 53 | let k := IsOpenImmersion.lift V.ι (a ≫ f) hr |
| 54 | have hk : k ≫ V.ι = a ≫ f := IsOpenImmersion.lift_fac _ _ _ |
| 55 | refine ⟨k, hk, ?_⟩ |
| 56 | intro l hl |
| 57 | exact (cancel_mono V.ι).mp (hl.trans hk.symm) |
| 58 | · rintro ⟨k, hk, _⟩ z |
| 59 | change (a ≫ f) z ∈ V |
| 60 | rw [← hk] |
| 61 | exact (k z).property |
| 62 | |
| 63 | end |
| 64 | |
| 65 | /-! The proper-family open locus classifies factorization through an |
| 66 | actual open immersion. A closed immersion gives a clopen condition |
| 67 | when the family map is open. -/ |
| 68 | |
| 69 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 70 | |
| 71 | variable {X S Y H : Scheme.{0}} (p : X ⟶ S) [IsProper p] |
| 72 | (f : X ⟶ Y) (j : H ⟶ Y) [IsOpenImmersion j] |
| 73 | |
| 74 | def properMapImmersionLocus : S.Opens := |
| 75 | properMapOpenLocus p f ⟨Set.range j, j.isOpenEmbedding.isOpen_range⟩ |
| 76 | |
| 77 | theorem properMapImmersionLocus_isClosed [IsClosedImmersion j] |
| 78 | (hp : IsOpenMap p) : IsClosed (properMapImmersionLocus p f j : Set S) := |
| 79 | properMapOpenLocus_isClosed p f |
| 80 | ⟨Set.range j, j.isOpenEmbedding.isOpen_range⟩ hp j.isClosedMap.isClosed_range |
| 81 | |
| 82 | theorem properMapImmersionLocus_baseChange_factor |
| 83 | {Z T : Scheme.{0}} (a : Z ⟶ X) (b : Z ⟶ T) (q : T ⟶ S) |
| 84 | (h : IsPullback a b p q) : |
| 85 | Set.range q ⊆ properMapImmersionLocus p f j ↔ |
| 86 | ∃! k : Z ⟶ H, k ≫ j = a ≫ f := by |
| 87 | refine (schemeFiberwiseOpenLocus_baseChange p |
| 88 | (f ⁻¹ᵁ ⟨Set.range j, j.isOpenEmbedding.isOpen_range⟩) a b q h).trans ?_ |
| 89 | constructor |
| 90 | · intro hz |
| 91 | have hr : Set.range (a ≫ f) ⊆ Set.range j := by |
| 92 | rintro _ ⟨z, rfl⟩ |
| 93 | exact hz z |
| 94 | let k := IsOpenImmersion.lift j (a ≫ f) hr |
| 95 | have hk : k ≫ j = a ≫ f := IsOpenImmersion.lift_fac _ _ _ |
| 96 | exact ⟨k, hk, fun l hl => (cancel_mono j).mp (hl.trans hk.symm)⟩ |
| 97 | · rintro ⟨k, hk, _⟩ z |
| 98 | exact ⟨k z, congrArg (fun m : Z ⟶ Y => m z) hk⟩ |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ProperMapImmersionLocus |