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.Flat.ClosedSupport |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.DivisorRestriction |
| 3 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 4 | |
| 5 | /-! # Support Closure -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportClosure |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Restricting a reduced integral support along an open immersion |
| 14 | gives an actual open immersion of reduced support schemes, constructed |
| 15 | from the native scheme pullback. -/ |
| 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 | namespace Restriction |
| 23 | |
| 24 | variable {X Y : Scheme} (j : Y ⟶ X) [IsOpenImmersion j] (C : IrreducibleCloseds X) |
| 25 | (h : (j ⁻¹' (C : Set X)).Nonempty) |
| 26 | |
| 27 | abbrev model : Scheme := pullback j (CycleClass.Geometric.GenericPoint.reducedSupportι C) |
| 28 | |
| 29 | omit [IsOpenImmersion j] in |
| 30 | include h in |
| 31 | theorem nonempty : Nonempty (model j C) := by |
| 32 | obtain ⟨y, hy⟩ := h |
| 33 | have hr : y ∈ Set.range (pullback.fst j (CycleClass.Geometric.GenericPoint.reducedSupportι C)) := by |
| 34 | rw [Scheme.Pullback.range_fst, CycleClass.Geometric.GenericPoint.range_reducedSupportι] |
| 35 | exact hy |
| 36 | obtain ⟨z, _⟩ := hr |
| 37 | exact ⟨z⟩ |
| 38 | |
| 39 | include h in |
| 40 | theorem integral : IsIntegral (model j C) := by |
| 41 | let : Nonempty (model j C) := Restriction.nonempty j C h |
| 42 | exact isIntegral_of_isOpenImmersion (pullback.snd j (CycleClass.Geometric.GenericPoint.reducedSupportι C)) |
| 43 | |
| 44 | def support : IrreducibleCloseds Y := |
| 45 | letI := integral j C h |
| 46 | Closed.ImmersionSupport.support (pullback.fst j (CycleClass.Geometric.GenericPoint.reducedSupportι C)) |
| 47 | |
| 48 | theorem support_coe : (support j C h : Set Y) = j ⁻¹' (C : Set X) := by |
| 49 | let := integral j C h |
| 50 | change (Closed.ImmersionSupport.support (pullback.fst j (CycleClass.Geometric.GenericPoint.reducedSupportι C)) : Set Y) = _ |
| 51 | rw [Flat.ClosedSupport.support_range, Scheme.Pullback.range_fst, CycleClass.Geometric.GenericPoint.range_reducedSupportι] |
| 52 | |
| 53 | def iso : CycleClass.Geometric.GenericPoint.reducedSupportScheme (support j C h) ≅ model j C := |
| 54 | letI := integral j C h |
| 55 | (Closed.ImmersionSupport.supportIso (pullback.fst j (CycleClass.Geometric.GenericPoint.reducedSupportι C))).symm |
| 56 | |
| 57 | theorem iso_fst : (iso j C h).hom ≫ pullback.fst j (CycleClass.Geometric.GenericPoint.reducedSupportι C) = |
| 58 | CycleClass.Geometric.GenericPoint.reducedSupportι (support j C h) := by |
| 59 | let := integral j C h |
| 60 | apply (cancel_epi (iso j C h).inv).mp |
| 61 | rw [Iso.inv_hom_id_assoc] |
| 62 | exact (Closed.ImmersionSupport.supportIso_fac (pullback.fst j (CycleClass.Geometric.GenericPoint.reducedSupportι C))).symm |
| 63 | |
| 64 | def map : CycleClass.Geometric.GenericPoint.reducedSupportScheme (support j C h) ⟶ CycleClass.Geometric.GenericPoint.reducedSupportScheme C := |
| 65 | (iso j C h).hom ≫ pullback.snd j (CycleClass.Geometric.GenericPoint.reducedSupportι C) |
| 66 | |
| 67 | instance map_open : IsOpenImmersion (map j C h) := by |
| 68 | unfold map |
| 69 | infer_instance |
| 70 | |
| 71 | theorem map_fac : map j C h ≫ CycleClass.Geometric.GenericPoint.reducedSupportι C = CycleClass.Geometric.GenericPoint.reducedSupportι (support j C h) ≫ j := by |
| 72 | rw [map, Category.assoc, ← pullback.condition, ← Category.assoc, iso_fst] |
| 73 | |
| 74 | theorem map_range : Set.range (map j C h) = (CycleClass.Geometric.GenericPoint.reducedSupportι C) ⁻¹' Set.range j := by |
| 75 | change Set.range (pullback.snd j (CycleClass.Geometric.GenericPoint.reducedSupportι C) ∘ (iso j C h).hom) = _ |
| 76 | rw [Set.range_comp, (iso j C h).hom.surjective.range_eq, Set.image_univ, |
| 77 | Scheme.Pullback.range_snd] |
| 78 | |
| 79 | end Restriction |
| 80 | |
| 81 | end |
| 82 | |
| 83 | section |
| 84 | |
| 85 | /-! An integral closed support in an open scheme maps openly into |
| 86 | its actual reduced closure, preserving its ambient embedding and |
| 87 | function-field dimension. -/ |
| 88 | |
| 89 | set_option backward.isDefEq.respectTransparency false |
| 90 | set_option backward.isDefEq.respectTransparency.types false |
| 91 | |
| 92 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 93 | |
| 94 | variable {X Y : Scheme} (j : Y ⟶ X) [IsOpenImmersion j] (D : IrreducibleCloseds Y) |
| 95 | |
| 96 | def closure : IrreducibleCloseds X := CycleClass.Geometric.StratumClosure.integralImageClosure (CycleClass.Geometric.GenericPoint.reducedSupportι D ≫ j) |
| 97 | |
| 98 | omit [IsOpenImmersion j] in |
| 99 | theorem closure_coe : (SupportClosure.closure j D : Set X) = _root_.closure (j '' (D : Set Y)) := by |
| 100 | rw [SupportClosure.closure, CycleClass.Geometric.StratumClosure.integralImageClosure_coe] |
| 101 | change _root_.closure (Set.range (j ∘ CycleClass.Geometric.GenericPoint.reducedSupportι D)) = _ |
| 102 | rw [Set.range_comp, CycleClass.Geometric.GenericPoint.range_reducedSupportι] |
| 103 | |
| 104 | theorem preimage : j ⁻¹' (SupportClosure.closure j D : Set X) = (D : Set Y) := by |
| 105 | rw [closure_coe] |
| 106 | have h := j.isOpenEmbedding.isEmbedding.closure_eq_preimage_closure_image (D : Set Y) |
| 107 | rw [D.isClosed.closure_eq] at h |
| 108 | exact h.symm |
| 109 | |
| 110 | theorem nonempty : (j ⁻¹' (SupportClosure.closure j D : Set X)).Nonempty := |
| 111 | (preimage j D).symm ▸ D.isIrreducible.nonempty |
| 112 | |
| 113 | theorem source_eq : Restriction.support j (SupportClosure.closure j D) (SupportClosure.nonempty j D) = D := by |
| 114 | apply IrreducibleCloseds.ext |
| 115 | rw [Restriction.support_coe, preimage] |
| 116 | |
| 117 | theorem inclusion_congr {Z : Scheme} (C E : IrreducibleCloseds Z) (h : C = E) : |
| 118 | eqToHom (congrArg CycleClass.Geometric.GenericPoint.reducedSupportScheme h) ≫ CycleClass.Geometric.GenericPoint.reducedSupportι E = CycleClass.Geometric.GenericPoint.reducedSupportι C := by |
| 119 | subst E |
| 120 | simp |
| 121 | |
| 122 | theorem range_eqToHom_comp {A B C : Scheme} (h : A = B) (f : B ⟶ C) : |
| 123 | Set.range (eqToHom h ≫ f) = Set.range f := by |
| 124 | subst B |
| 125 | simp |
| 126 | |
| 127 | def map : CycleClass.Geometric.GenericPoint.reducedSupportScheme D ⟶ CycleClass.Geometric.GenericPoint.reducedSupportScheme (SupportClosure.closure j D) := |
| 128 | eqToHom (congrArg CycleClass.Geometric.GenericPoint.reducedSupportScheme (source_eq j D).symm) ≫ |
| 129 | Restriction.map j (SupportClosure.closure j D) (SupportClosure.nonempty j D) |
| 130 | |
| 131 | instance map_open : IsOpenImmersion (map j D) := by |
| 132 | unfold map |
| 133 | infer_instance |
| 134 | |
| 135 | theorem map_fac : map j D ≫ CycleClass.Geometric.GenericPoint.reducedSupportι (SupportClosure.closure j D) = CycleClass.Geometric.GenericPoint.reducedSupportι D ≫ j := by |
| 136 | rw [map, Category.assoc, Restriction.map_fac, ← Category.assoc, |
| 137 | inclusion_congr D _ (source_eq j D).symm] |
| 138 | |
| 139 | theorem map_range : Set.range (map j D) = (CycleClass.Geometric.GenericPoint.reducedSupportι (SupportClosure.closure j D)) ⁻¹' Set.range j := by |
| 140 | rw [map, range_eqToHom_comp, Restriction.map_range] |
| 141 | |
| 142 | theorem dimension [QuasiCompact j] {k : Type} [Field k] (f : X ⟶ Spec (.of k)) : |
| 143 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension D (j ≫ f) = Foundations.Scheme.SupportDimension.supportTranscendenceDimension (SupportClosure.closure j D) f := by |
| 144 | have h := CycleClass.Geometric.StratumClosure.schemeTranscendenceDimension_eq_imageClosure (CycleClass.Geometric.GenericPoint.reducedSupportι D ≫ j) f |
| 145 | simpa only [SupportClosure.closure, Foundations.Scheme.SupportDimension.supportTranscendenceDimension, CycleClass.Geometric.SupportFiniteType.supportStructureMap, Category.assoc] using h |
| 146 | |
| 147 | end |
| 148 | |
| 149 | /-! In an actual open base-change square, the reduced closure of |
| 150 | a support retains every point over a parameter lying in the open base. -/ |
| 151 | |
| 152 | set_option backward.isDefEq.respectTransparency false |
| 153 | set_option backward.isDefEq.respectTransparency.types false |
| 154 | |
| 155 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 156 | |
| 157 | namespace Pullback |
| 158 | |
| 159 | variable {X Y U B : Scheme} (j : Y ⟶ X) (u : Y ⟶ U) (t : X ⟶ B) (v : U ⟶ B) |
| 160 | (h : IsPullback j u t v) |
| 161 | |
| 162 | include h in |
| 163 | theorem range : Set.range j = t ⁻¹' Set.range v := by |
| 164 | rw [← h.isoPullback_hom_fst] |
| 165 | change Set.range (pullback.fst t v ∘ h.isoPullback.hom) = _ |
| 166 | rw [Set.range_comp, h.isoPullback.hom.surjective.range_eq, Set.image_univ, |
| 167 | Scheme.Pullback.range_fst] |
| 168 | |
| 169 | variable [IsOpenImmersion j] (D : IrreducibleCloseds Y) |
| 170 | |
| 171 | include h in |
| 172 | theorem covers (b : B) (hb : b ∈ Set.range v) |
| 173 | (z : CycleClass.Geometric.GenericPoint.reducedSupportScheme (SupportClosure.closure j D)) |
| 174 | (hz : (CycleClass.Geometric.GenericPoint.reducedSupportι (SupportClosure.closure j D) ≫ t) z = b) : |
| 175 | z ∈ Set.range (map j D) := by |
| 176 | rw [map_range, SupportClosure.Pullback.range j u t v h] |
| 177 | change t (CycleClass.Geometric.GenericPoint.reducedSupportι (SupportClosure.closure j D) z) ∈ Set.range v |
| 178 | rw [show t (CycleClass.Geometric.GenericPoint.reducedSupportι (SupportClosure.closure j D) z) = b from hz] |
| 179 | exact hb |
| 180 | |
| 181 | end Pullback |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportClosure |