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.Generic.Residual |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.ImageBounds |
| 3 | |
| 4 | /-! # Residual Intersection -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResidualIntersection |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The off-diagonal incidence image contains every residual |
| 13 | intersection point outside the original support and obeys its dimension bound. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | |
| 20 | namespace IncidenceImage |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Pair OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.Finite.Projection |
| 23 | |
| 24 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W Z : IrreducibleCloseds X.carrier) |
| 25 | |
| 26 | abbrev secondMap : Support.Pair.space X W Z ⟶ X.carrier := (Support.Pair.second X W Z).left |
| 27 | |
| 28 | instance second_proper : IsProper (secondMap X W Z) := |
| 29 | inferInstanceAs (IsProper (pullback.snd (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ X.structureMap) |
| 30 | (CycleClass.Geometric.GenericPoint.reducedSupportι Z ≫ X.structureMap) ≫ CycleClass.Geometric.GenericPoint.reducedSupportι Z)) |
| 31 | |
| 32 | theorem second_over : secondMap X W Z ≫ X.structureMap = Support.Pair.base X W Z := (Support.Pair.second X W Z).w |
| 33 | |
| 34 | variable {m : ℕ} (π : X.toOver ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase m)) |
| 35 | |
| 36 | def removed : Closeds (Support.Pair.space X W Z) := ClosedDifferenceDimension.away |
| 37 | (Generic.Finite.Projection.coincidence X W Z π) (Support.PairIncidenceStep.diagonal X W Z) |
| 38 | |
| 39 | def image : Closeds X.carrier := Proper.ImageBounds.image X (secondMap X W Z) (removed X W Z π) |
| 40 | |
| 41 | theorem bound (d : ℕ) |
| 42 | (hI : ∀ C : IrreducibleCloseds (Support.Pair.space X W Z), (C : Set (Support.Pair.space X W Z)) ⊆ Generic.Finite.Projection.coincidence X W Z π → |
| 43 | ¬ (C : Set (Support.Pair.space X W Z)) ⊆ Support.PairIncidenceStep.diagonal X W Z → |
| 44 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension C (Support.Pair.base X W Z) + m ≤ d) : |
| 45 | ∀ C : IrreducibleCloseds X.carrier, (C : Set X.carrier) ⊆ image X W Z π → |
| 46 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension C X.structureMap + m ≤ d := by |
| 47 | apply Proper.ImageBounds.bound X (secondMap X W Z) (removed X W Z π) m d |
| 48 | rw [second_over] |
| 49 | exact ClosedDifferenceDimension.bound (Generic.Finite.Projection.coincidence X W Z π) |
| 50 | (Support.PairIncidenceStep.diagonal X W Z) (Support.Pair.base X W Z) m d hI |
| 51 | |
| 52 | variable [IsFinite π.left] |
| 53 | |
| 54 | theorem mem_image (y : X.carrier) (hy : IsClosed {y}) (hyZ : y ∈ Z) (hyW : y ∉ W) |
| 55 | (hyπ : π.left y ∈ π.left '' (W : Set X.carrier)) : y ∈ image X W Z π := by |
| 56 | obtain ⟨w, hwW, hwy⟩ := hyπ |
| 57 | have hπy : IsClosed ({π.left y} : Set (Foundations.Scheme.ProjectiveSpace.projectiveSpace m)) := by |
| 58 | simpa only [Set.image_singleton] using π.left.isClosedMap _ hy |
| 59 | have hw : IsClosed ({w} : Set X.carrier) := Closed.FiberPoints.closed π.left w (hwy.symm ▸ hπy) |
| 60 | obtain ⟨a, ha, haw, hay⟩ := Support.PairClosedPoints.exists_pair X W Z w y hw hy hwW hyZ |
| 61 | have heq : (Support.Pair.first X W Z ≫ π).left a = (Support.Pair.second X W Z ≫ π).left a := by |
| 62 | change π.left ((Support.Pair.first X W Z).left a) = π.left ((Support.Pair.second X W Z).left a) |
| 63 | rw [haw, hay] |
| 64 | exact hwy |
| 65 | have haI : a ∈ Generic.Finite.Projection.coincidence X W Z π := |
| 66 | Closed.Equalizer.mem_of_closed (Support.Pair.first X W Z ≫ π) (Support.Pair.second X W Z ≫ π) a ha heq |
| 67 | have haD : a ∉ Support.PairIncidenceStep.diagonal X W Z := by |
| 68 | intro hd |
| 69 | have he := Closed.Equalizer.eq_of_mem (Support.Pair.first X W Z) (Support.Pair.second X W Z) a hd |
| 70 | have hwy' : w = y := haw.symm.trans (he.trans hay) |
| 71 | exact hyW (hwy' ▸ hwW) |
| 72 | have har : a ∈ removed X W Z π := by |
| 73 | change a ∈ (ClosedDifferenceDimension.away (Generic.Finite.Projection.coincidence X W Z π) |
| 74 | (Support.PairIncidenceStep.diagonal X W Z) : Set (Support.Pair.space X W Z)) |
| 75 | rw [ClosedDifferenceDimension.away_coe] |
| 76 | exact subset_closure ⟨haI, haD⟩ |
| 77 | exact ⟨a, har, hay⟩ |
| 78 | |
| 79 | theorem residual_subset : |
| 80 | (ResidualAvoidance.Projection.residual (Generic.Residual.Projection.map π) W : Set X.carrier) ⊆ |
| 81 | π.left ⁻¹' (π.left '' (W : Set X.carrier)) := by |
| 82 | apply closure_minimal Set.sdiff_subset |
| 83 | exact (π.left.isClosedMap _ W.isClosed).preimage π.left.continuous |
| 84 | |
| 85 | theorem residual_inter_subset : |
| 86 | ResidualAvoidance.Projection.residual (Generic.Residual.Projection.map π) W ⊓ ⟨Z, Z.isClosed⟩ ≤ |
| 87 | image X W Z π ⊔ ⟨W, W.isClosed⟩ := by |
| 88 | apply Projection.ProjectionCoincidence.closed_subset X.structureMap |
| 89 | intro y hy hc |
| 90 | by_cases hw : y ∈ W |
| 91 | · exact Or.inr hw |
| 92 | · exact Or.inl (mem_image X W Z π y hc hy.2 hw (residual_subset X W π hy.1)) |
| 93 | |
| 94 | theorem support_bound_outside (d : ℕ) |
| 95 | (hI : ∀ C : IrreducibleCloseds (Support.Pair.space X W Z), (C : Set (Support.Pair.space X W Z)) ⊆ Generic.Finite.Projection.coincidence X W Z π → |
| 96 | ¬ (C : Set (Support.Pair.space X W Z)) ⊆ Support.PairIncidenceStep.diagonal X W Z → |
| 97 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension C (Support.Pair.base X W Z) + m ≤ d) |
| 98 | (C : IrreducibleCloseds X.carrier) |
| 99 | (hC : (C : Set X.carrier) ⊆ |
| 100 | (ResidualAvoidance.Projection.residual (Generic.Residual.Projection.map π) W : Set X.carrier) ∩ |
| 101 | (Z : Set X.carrier)) |
| 102 | (hCW : ¬ (C : Set X.carrier) ⊆ W) : Foundations.Scheme.SupportDimension.supportTranscendenceDimension C X.structureMap + m ≤ d := by |
| 103 | have hu : (C : Set X.carrier) ⊆ (image X W Z π : Set X.carrier) ∪ W := |
| 104 | hC.trans (residual_inter_subset X W Z π) |
| 105 | rcases isPreirreducible_iff_isClosed_union_isClosed.mp C.isIrreducible.isPreirreducible |
| 106 | (image X W Z π) W (image X W Z π).isClosed W.isClosed hu with hi | hw |
| 107 | · exact bound X W Z π d hI C hi |
| 108 | · exact (hCW hw).elim |
| 109 | |
| 110 | end IncidenceImage |
| 111 | |
| 112 | end |
| 113 | |
| 114 | section |
| 115 | |
| 116 | /-! A generic finite projection improves every excess intersection |
| 117 | of its residuals by one, simultaneously for a finite family of support pairs. -/ |
| 118 | |
| 119 | set_option backward.isDefEq.respectTransparency false |
| 120 | set_option backward.isDefEq.respectTransparency.types false |
| 121 | |
| 122 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 123 | |
| 124 | namespace Step |
| 125 | |
| 126 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports |
| 127 | |
| 128 | def intersection (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W Z : IrreducibleCloseds X.carrier) : Closeds X.carrier := |
| 129 | ⟨(W : Set X.carrier) ∩ (Z : Set X.carrier), W.isClosed.inter Z.isClosed⟩ |
| 130 | |
| 131 | theorem exists_projection (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 132 | [SmoothOfRelativeDimension m X.structureMap] |
| 133 | {τ : Type} [Finite τ] (W Z : τ → IrreducibleCloseds X.carrier) |
| 134 | (hW : ∀ t, 1 ≤ X.supportCodimension (W t)) (k : τ → ℕ) |
| 135 | (hbound : ∀ t, ∀ C : IrreducibleCloseds X.carrier, |
| 136 | (C : Set X.carrier) ⊆ intersection X (W t) (Z t) → k t ≤ X.supportCodimension C) : |
| 137 | ∃ π : X.toOver ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase m), IsFinite π.left ∧ |
| 138 | ∀ t, ∀ C : IrreducibleCloseds X.carrier, |
| 139 | (C : Set X.carrier) ⊆ |
| 140 | (ResidualAvoidance.Projection.residual (Generic.Residual.Projection.map π) (W t) : Set X.carrier) ∩ |
| 141 | (Z t : Set X.carrier) → |
| 142 | min (X.supportCodimension (W t) + X.supportCodimension (Z t)) (k t + 1) ≤ X.supportCodimension C := by |
| 143 | classical |
| 144 | let : JacobsonSpace X.carrier := LocallyOfFiniteType.jacobsonSpace X.structureMap |
| 145 | let S t := intersection X (W t) (Z t) |
| 146 | let (t : τ) : NoetherianSpace (S t) := NoetherianSpace.set (S t : Set X.carrier) |
| 147 | let (t : τ) : Finite (irreducibleComponents (S t)) := |
| 148 | (NoetherianSpace.finite_irreducibleComponents (α := S t)).to_subtype |
| 149 | let J := Σ t : τ, irreducibleComponents (S t) |
| 150 | have hpoints : ∀ j : J, ∃ x : X.carrier, |
| 151 | x ∈ CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier (S j.1) j.2 ∧ IsClosed {x} := by |
| 152 | intro j |
| 153 | let D := CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier (S j.1) j.2 |
| 154 | obtain ⟨x, hxD, hxc⟩ := nonempty_inter_closedPoints D.isIrreducible.nonempty D.isClosed.isLocallyClosed |
| 155 | exact ⟨x, hxD, hxc⟩ |
| 156 | choose x hxD hxc using hpoints |
| 157 | obtain ⟨π, hfinite, havoid, hI⟩ := Generic.Residual.Projection.exists_projection X m W Z |
| 158 | (fun j : J => W j.1) (fun j => hW j.1) x hxc |
| 159 | let := hfinite |
| 160 | refine ⟨π, hfinite, ?_⟩ |
| 161 | intro t C hC |
| 162 | by_cases hCW : (C : Set X.carrier) ⊆ W t |
| 163 | · have hCS : (C : Set X.carrier) ⊆ S t := fun y hy => ⟨hCW hy, (hC hy).2⟩ |
| 164 | obtain ⟨b, hb⟩ := Supports.closedComponentSupport_covers X.carrier (S t) C hCS |
| 165 | let D := CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier (S t) b |
| 166 | have hne : C ≠ D := by |
| 167 | intro he |
| 168 | exact havoid ⟨t, b⟩ ((hC (he ▸ hxD ⟨t, b⟩)).1) |
| 169 | have hlt := Supports.codimension_strictAnti X m (lt_of_le_of_ne hb hne) |
| 170 | change X.supportCodimension D < X.supportCodimension C at hlt |
| 171 | have hk := hbound t D (Supports.closedComponentSupport_subset X.carrier (S t) b) |
| 172 | omega |
| 173 | · have hd := IncidenceImage.support_bound_outside X (W t) (Z t) π |
| 174 | (Foundations.Scheme.SupportDimension.supportTranscendenceDimension (W t) X.structureMap + Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Z t) X.structureMap) |
| 175 | (hI t) C hC hCW |
| 176 | have hdimW := Grading.supportDimension_add_codimension X m (W t) |
| 177 | have hdimZ := Grading.supportDimension_add_codimension X m (Z t) |
| 178 | have hdimC := Grading.supportDimension_add_codimension X m C |
| 179 | omega |
| 180 | |
| 181 | end Step |
| 182 | |
| 183 | end |
| 184 | |
| 185 | /-! The residual improvement criterion for a fixed projection, |
| 186 | using its actual incidence bound and avoided component witnesses. -/ |
| 187 | |
| 188 | set_option backward.isDefEq.respectTransparency false |
| 189 | set_option backward.isDefEq.respectTransparency.types false |
| 190 | |
| 191 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 192 | |
| 193 | namespace Criterion |
| 194 | |
| 195 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Pair OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.Finite.Projection |
| 196 | |
| 197 | theorem bound (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 198 | [SmoothOfRelativeDimension m X.structureMap] |
| 199 | (π : X.toOver ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase m)) [IsFinite π.left] |
| 200 | (W Z : IrreducibleCloseds X.carrier) (k : ℕ) |
| 201 | (hbound : ∀ C : IrreducibleCloseds X.carrier, |
| 202 | (C : Set X.carrier) ⊆ Step.intersection X W Z → k ≤ X.supportCodimension C) |
| 203 | (hI : ∀ C : IrreducibleCloseds (Support.Pair.space X W Z), |
| 204 | (C : Set (Support.Pair.space X W Z)) ⊆ Generic.Finite.Projection.coincidence X W Z π → |
| 205 | ¬ (C : Set (Support.Pair.space X W Z)) ⊆ Support.PairIncidenceStep.diagonal X W Z → |
| 206 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension C (Support.Pair.base X W Z) + m ≤ |
| 207 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension W X.structureMap + Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z X.structureMap) |
| 208 | (hcut : ∀ D : irreducibleComponents (Step.intersection X W Z), |
| 209 | ∃ x ∈ CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier (Step.intersection X W Z) D, |
| 210 | x ∉ ResidualAvoidance.Projection.residual (Generic.Residual.Projection.map π) W) |
| 211 | (C : IrreducibleCloseds X.carrier) |
| 212 | (hC : (C : Set X.carrier) ⊆ |
| 213 | (ResidualAvoidance.Projection.residual (Generic.Residual.Projection.map π) W : Set X.carrier) ∩ (Z : Set X.carrier)) : |
| 214 | min (X.supportCodimension W + X.supportCodimension Z) (k + 1) ≤ X.supportCodimension C := by |
| 215 | by_cases hCW : (C : Set X.carrier) ⊆ W |
| 216 | · have hCS : (C : Set X.carrier) ⊆ Step.intersection X W Z := |
| 217 | fun y hy => ⟨hCW hy, (hC hy).2⟩ |
| 218 | obtain ⟨b, hb⟩ := Supports.closedComponentSupport_covers X.carrier |
| 219 | (Step.intersection X W Z) C hCS |
| 220 | let D := CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier (Step.intersection X W Z) b |
| 221 | obtain ⟨x, hxD, hxR⟩ := hcut b |
| 222 | have hne : C ≠ D := by |
| 223 | intro he |
| 224 | exact hxR ((hC (he ▸ hxD)).1) |
| 225 | have hlt := Supports.codimension_strictAnti X m (lt_of_le_of_ne hb hne) |
| 226 | change X.supportCodimension D < X.supportCodimension C at hlt |
| 227 | have hk := hbound D (Supports.closedComponentSupport_subset X.carrier (Step.intersection X W Z) b) |
| 228 | omega |
| 229 | · have hd := IncidenceImage.support_bound_outside X W Z π _ hI C hC hCW |
| 230 | have hdimW := Grading.supportDimension_add_codimension X m W |
| 231 | have hdimZ := Grading.supportDimension_add_codimension X m Z |
| 232 | have hdimC := Grading.supportDimension_add_codimension X m C |
| 233 | omega |
| 234 | |
| 235 | end Criterion |
| 236 | |
| 237 | end |
| 238 | |
| 239 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResidualIntersection |