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.IntersectionTheory.ProjectionFormula.UnramifiedOpenFactor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.FiberPoints |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 5 | |
| 6 | /-! # Residual Graph -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResidualGraph |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! The original support is an open subscheme in the relevant |
| 15 | fiber product over an etale neighborhood. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 21 | |
| 22 | variable {X Y Z : Scheme} (π : X ⟶ Y) (i : Z ⟶ X) (U : X.Opens) |
| 23 | |
| 24 | def graph : ((i ⁻¹ᵁ U) : Scheme) ⟶ pullback (U.ι ≫ π) (i ≫ π) := |
| 25 | pullback.lift (i.resLE U (i ⁻¹ᵁ U) le_rfl) (i ⁻¹ᵁ U).ι |
| 26 | (by rw [← Category.assoc, Scheme.Hom.resLE_comp_ι, Category.assoc]) |
| 27 | |
| 28 | theorem graph_fst : graph π i U ≫ pullback.fst (U.ι ≫ π) (i ≫ π) = |
| 29 | i.resLE U (i ⁻¹ᵁ U) le_rfl := pullback.lift_fst _ _ _ |
| 30 | |
| 31 | theorem graph_snd : graph π i U ≫ pullback.snd (U.ι ≫ π) (i ≫ π) = |
| 32 | (i ⁻¹ᵁ U).ι := pullback.lift_snd _ _ _ |
| 33 | |
| 34 | instance graph_open [Etale (U.ι ≫ π)] : IsOpenImmersion (graph π i U) := by |
| 35 | have hc : IsOpenImmersion (graph π i U ≫ pullback.snd (U.ι ≫ π) (i ≫ π)) := by |
| 36 | rw [graph_snd] |
| 37 | infer_instance |
| 38 | let := hc |
| 39 | exact UnramifiedOpenFactor.factor (graph π i U) (pullback.snd (U.ι ≫ π) (i ≫ π)) |
| 40 | |
| 41 | theorem fst_graph_mem (z : i ⁻¹ᵁ U) : |
| 42 | U.ι (pullback.fst (U.ι ≫ π) (i ≫ π) (graph π i U z)) ∈ Set.range i := by |
| 43 | have he := congrArg (fun f => f z) (graph_fst π i U) |
| 44 | change U.ι ((graph π i U ≫ pullback.fst (U.ι ≫ π) (i ≫ π)) z) ∈ _ |
| 45 | rw [he] |
| 46 | exact ⟨z.val, (Scheme.Hom.coe_resLE_apply i le_rfl z).symm⟩ |
| 47 | |
| 48 | end |
| 49 | |
| 50 | section |
| 51 | |
| 52 | /-! At a point isolated on its support fiber, the entire fiber in |
| 53 | the auxiliary fiber product lies in the open graph of the support. -/ |
| 54 | |
| 55 | set_option backward.isDefEq.respectTransparency false |
| 56 | set_option backward.isDefEq.respectTransparency.types false |
| 57 | |
| 58 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 59 | |
| 60 | namespace FiberAtPoint |
| 61 | |
| 62 | theorem graph_contains_fiber {X Y Z : Scheme} (π : X ⟶ Y) (i : Z ⟶ X) |
| 63 | [IsFinite π] [IsClosedImmersion i] (t : Y ⟶ Spec (.of ℂ)) [LocallyOfFiniteType t] |
| 64 | (U : X.Opens) (x : U) (hx : IsClosed ({x.val} : Set X)) |
| 65 | (hsep : ∀ z : Z, π (i z) = π x.val → i z = x.val) |
| 66 | (v : ↥(pullback (U.ι ≫ π) (i ≫ π))) |
| 67 | (hv : pullback.fst (U.ι ≫ π) (i ≫ π) v = x) : |
| 68 | v ∈ Set.range (graph π i U) := by |
| 69 | let f := U.ι ≫ π |
| 70 | let g := i ≫ π |
| 71 | have hxU : IsClosed ({x} : Set U) := by |
| 72 | have he : U.ι ⁻¹' ({x.val} : Set X) = ({x} : Set U) := by |
| 73 | ext y |
| 74 | exact Subtype.val_inj |
| 75 | rw [← he] |
| 76 | exact hx.preimage U.ι.continuous |
| 77 | have hz : i (pullback.snd f g v) = x.val := by |
| 78 | apply hsep |
| 79 | have he := congrArg (fun a => a v) (pullback.condition (f := f) (g := g)) |
| 80 | change π (U.ι (pullback.fst f g v)) = π (i (pullback.snd f g v)) at he |
| 81 | rw [hv] at he |
| 82 | exact he.symm |
| 83 | let z : i ⁻¹ᵁ U := ⟨pullback.snd f g v, by |
| 84 | change i (pullback.snd f g v) ∈ U |
| 85 | rw [hz] |
| 86 | exact x.property⟩ |
| 87 | let w := graph π i U z |
| 88 | have hfst : pullback.fst f g w = x := by |
| 89 | apply Subtype.ext |
| 90 | have he := congrArg (fun a => a z) (graph_fst π i U) |
| 91 | change (pullback.fst f g w).val = x.val |
| 92 | exact (congrArg (fun u : U => u.val) he).trans |
| 93 | ((Scheme.Hom.coe_resLE_apply i le_rfl z).trans hz) |
| 94 | have hsnd : pullback.snd f g w = pullback.snd f g v := |
| 95 | congrArg (fun a => a z) (graph_snd π i U) |
| 96 | have hvc : IsClosed ({v} : Set _) := |
| 97 | Closed.FiberPoints.closed (pullback.fst f g) v (by rw [hv]; exact hxU) |
| 98 | have hwc : IsClosed ({w} : Set _) := |
| 99 | Closed.FiberPoints.closed (pullback.fst f g) w (by rw [hfst]; exact hxU) |
| 100 | have he : v = w := Closed.FiberPoints.pullback_ext f g t v w hvc hwc |
| 101 | (hv.trans hfst.symm) hsnd.symm |
| 102 | exact ⟨z, he.symm⟩ |
| 103 | |
| 104 | end FiberAtPoint |
| 105 | |
| 106 | end |
| 107 | |
| 108 | /-! Properness of the auxiliary projection excludes the residual |
| 109 | closed set from a neighborhood of a selected etale, isolated support point. -/ |
| 110 | |
| 111 | set_option backward.isDefEq.respectTransparency false |
| 112 | set_option backward.isDefEq.respectTransparency.types false |
| 113 | |
| 114 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 115 | |
| 116 | namespace Neighborhood |
| 117 | |
| 118 | variable {X Y Z : Scheme} (π : X ⟶ Y) (i : Z ⟶ X) |
| 119 | [IsFinite π] [IsClosedImmersion i] |
| 120 | (t : Y ⟶ Spec (.of ℂ)) [LocallyOfFiniteType t] |
| 121 | (U : X.Opens) [Etale (U.ι ≫ π)] |
| 122 | |
| 123 | include t in |
| 124 | theorem exists_open (x : X) (hx : IsClosed ({x} : Set _)) (hxU : x ∈ U) |
| 125 | (hsep : ∀ z : Z, π (i z) = π x → i z = x) : |
| 126 | ∃ V : X.Opens, x ∈ V ∧ |
| 127 | ∀ y ∈ V, π y ∈ Set.range (i ≫ π) → y ∈ Set.range i := by |
| 128 | let f := U.ι ≫ π |
| 129 | let g := i ≫ π |
| 130 | let q := graph π i U |
| 131 | let B : Set U := pullback.fst f g '' (Set.range q)ᶜ |
| 132 | have hB : IsClosed B := |
| 133 | (pullback.fst f g).isClosedMap _ q.isOpenEmbedding.isOpen_range.isClosed_compl |
| 134 | let V' : Opens U := ⟨Bᶜ, hB.isOpen_compl⟩ |
| 135 | let V : X.Opens := ⟨U.ι '' (V' : Set U), U.ι.isOpenEmbedding.isOpenMap _ V'.isOpen⟩ |
| 136 | have hxV : x ∈ V := by |
| 137 | refine ⟨⟨x, hxU⟩, ?_, rfl⟩ |
| 138 | rintro ⟨v, hv, hvx⟩ |
| 139 | exact hv (FiberAtPoint.graph_contains_fiber π i t U ⟨x, hxU⟩ hx hsep v hvx) |
| 140 | refine ⟨V, hxV, ?_⟩ |
| 141 | rintro y ⟨u, hu, rfl⟩ ⟨z, hz⟩ |
| 142 | obtain ⟨v, hvu, hvz⟩ := Scheme.Pullback.exists_preimage_pullback (f := f) (g := g) u z hz.symm |
| 143 | have hvq : v ∈ Set.range q := by |
| 144 | by_contra hn |
| 145 | exact hu ⟨v, hn, hvu⟩ |
| 146 | obtain ⟨w, hw⟩ := hvq |
| 147 | have hm := fst_graph_mem π i U w |
| 148 | rw [show graph π i U w = v from hw, hvu] at hm |
| 149 | exact hm |
| 150 | |
| 151 | include t in |
| 152 | theorem avoids_closure (x : X) (hx : IsClosed ({x} : Set _)) (hxU : x ∈ U) |
| 153 | (hsep : ∀ z : Z, π (i z) = π x → i z = x) : |
| 154 | x ∉ closure (π ⁻¹' Set.range (i ≫ π) \ Set.range i) := by |
| 155 | obtain ⟨V, hxV, hV⟩ := exists_open π i t U x hx hxU hsep |
| 156 | intro hc |
| 157 | obtain ⟨y, hyV, hy, hyn⟩ := mem_closure_iff.mp hc (V : Set X) V.isOpen hxV |
| 158 | exact hyn (hV y hyV hy) |
| 159 | |
| 160 | end Neighborhood |
| 161 | |
| 162 | end |
| 163 | |
| 164 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResidualGraph |