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.ExpectedComponentCycle |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.PrincipalChartEuler |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.CoverUnits |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartRestrictedCoefficient |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DegreeCast |
| 6 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.General.RestrictedPrincipalCycle |
| 7 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Symmetry |
| 8 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.General.ChowMoving |
| 9 | |
| 10 | /-! # Covered Principal Descent -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CoveredPrincipalDescent |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! A cycle meeting the actual numerator and denominator support |
| 19 | cover properly annihilates the principal-divisor relation. The proof |
| 20 | constructs the restricted principal cycle from expected-dimensional |
| 21 | intersection components, even when the original supports meet improperly. -/ |
| 22 | |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | set_option backward.isDefEq.respectTransparency.types false |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 27 | |
| 28 | namespace Relation |
| 29 | |
| 30 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports.ProperCycle OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts |
| 31 | |
| 32 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 33 | [SmoothOfRelativeDimension m X.structureMap] |
| 34 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 35 | (a : X.RationalDimensionCycle p) |
| 36 | (hp : a ∈ Proper.SupportCycles.submodule X p (Principal.ChartSupportCover.family X m k W g hg)) |
| 37 | (A : X.DimensionCycleSupport p) (hAa : A ∈ a.support) |
| 38 | |
| 39 | abbrev components := ExpectedComponentCycle.cycle X m p k A W |
| 40 | |
| 41 | omit [SmoothOfRelativeDimension m X.structureMap] in |
| 42 | theorem in_W (D : X.DimensionCycleSupport (p + k)) (hD : D ∈ (components X m p k W A).support) : |
| 43 | D.val ≤ W.val := (ExpectedComponentCycle.support_subset X m p k A W D hD).2 |
| 44 | |
| 45 | include hp hAa in |
| 46 | theorem units (D : (components X m p k W A).support) : |
| 47 | ∃ u : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 48 | (NestedGenericRestriction.point X.carrier D.val.val W.val (in_W X m p k W A D.val D.property)), |
| 49 | IsUnit u ∧ algebraMap _ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField u = g := |
| 50 | Principal.CoverUnits.unit X m p k W g hg a hp A hAa D.val |
| 51 | (ExpectedComponentCycle.support_subset X m p k A W D.val D.property).1 |
| 52 | (in_W X m p k W A D.val D.property) |
| 53 | |
| 54 | def cycle : X.RationalDimensionCycle (p + (k + 1)) := |
| 55 | DegreeCast.cycle X (Nat.add_assoc p k 1) |
| 56 | (General.RestrictedPrincipalCycle.cycle X (p + k) W.val (components X m p k W A) |
| 57 | (in_W X m p k W A) g (units X m p k W g hg a hp A hAa)) |
| 58 | |
| 59 | theorem rationally_zero : cycle X m p k W g hg a hp A hAa ∈ CycleClass.Thom.IntersectionGeometry.rationalEquivalences X (p + (k + 1)) := by |
| 60 | apply (DegreeCast.cycle_mem_relations X (Nat.add_assoc p k 1) _).mpr |
| 61 | exact General.RestrictedPrincipalCycle.rationally_zero X (p + k) W.val (components X m p k W A) |
| 62 | (in_W X m p k W A) g (units X m p k W g hg a hp A hAa) |
| 63 | |
| 64 | theorem coefficient (C : X.DimensionCycleSupport (p + (k + 1))) : |
| 65 | cycle X m p k W g hg a hp A hAa C = |
| 66 | ∑ D : (components X m p k W A).support, (components X m p k W A) D.val * |
| 67 | CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient X D.val.val |
| 68 | (NestedGenericRestriction.function X.carrier D.val.val W.val |
| 69 | (in_W X m p k W A D.val D.property) g (units X m p k W g hg a hp A hAa D)) C.val := by |
| 70 | rw [cycle, DegreeCast.cycle_apply, General.RestrictedPrincipalCycle.coefficient] |
| 71 | |
| 72 | theorem in_chart (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val) (A₀ : IrreducibleCloseds (Spec (.of (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)))) |
| 73 | (hA : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 74 | (C : X.DimensionCycleSupport (p + (k + 1))) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)) |
| 75 | (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 76 | (hxA : x ∈ (A₀ : Set (Spec (.of (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i))))) |
| 77 | (hvx : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i).asIdeal ≤ x.asIdeal) : |
| 78 | (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g).sum |
| 79 | (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val) = |
| 80 | cycle X m p k W g hg a hp A hAa C := by |
| 81 | have h₁ := Proper.PrincipalChartEuler.component_sum X m p k W g hg a hp i A hAa A₀ hA C x hx hxA hvx |
| 82 | have h₂ := ExpectedComponentCycle.reindex_at X m p k A W C (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) hx |
| 83 | (Principal.ChartComponentSum.germ X W.val g hg (i, true) x) |
| 84 | (Principal.ChartComponentSum.germ X W.val g hg (i, false) x) |
| 85 | refine (h₁.trans h₂).trans ?_ |
| 86 | rw [coefficient] |
| 87 | let c := components X m p k W A |
| 88 | let w := fun D : X.DimensionCycleSupport (p + k) => |
| 89 | GlobalParameterSum.Weights.weight X.carrier (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) |
| 90 | (Principal.ChartComponentSum.germ X W.val g hg (i, true) x) D.val - |
| 91 | GlobalParameterSum.Weights.weight X.carrier (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) |
| 92 | (Principal.ChartComponentSum.germ X W.val g hg (i, false) x) D.val |
| 93 | refine (Finset.sum_coe_sort c.support (fun D => c D * w D)).symm.trans ?_ |
| 94 | apply Finset.sum_congr rfl |
| 95 | intro D _ |
| 96 | apply congrArg (fun r : ℚ => c D.val * r) |
| 97 | exact Principal.ChartRestrictedCoefficient.coefficient X m p k W g hg a hp i A hAa D.val |
| 98 | (ExpectedComponentCycle.support_subset X m p k A W D.val D.property).1 |
| 99 | (in_W X m p k W A D.val D.property) (units X m p k W g hg a hp A hAa D) C.val x hx |
| 100 | |
| 101 | theorem all_coefficients (C : X.DimensionCycleSupport (p + (k + 1))) : |
| 102 | (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g).sum |
| 103 | (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val) = |
| 104 | cycle X m p k W g hg a hp A hAa C := by |
| 105 | classical |
| 106 | by_cases hpoint : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier) ∧ CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W.val : Set X.carrier) |
| 107 | · obtain ⟨i, hi⟩ := Affine.ChartGerm.FiniteSupportCharts.covers X W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hpoint.2 |
| 108 | rw [← (Affine.ChartGerm.FiniteSupportCharts.affine X W.val i).opensRange_fromSpec] at hi |
| 109 | obtain ⟨x, hx⟩ := hi |
| 110 | obtain ⟨vA, hvA, _, hvAx⟩ := Affine.SupportRepresentative.exists_prime (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) A.val x |
| 111 | (hx.symm ▸ hpoint.1) |
| 112 | have hvx : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i).asIdeal ≤ x.asIdeal := by |
| 113 | apply (Affine.Prime.mem_iff (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) x).mp |
| 114 | have hxW : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x ∈ (W.val : Set X.carrier) := hx.symm ▸ hpoint.2 |
| 115 | exact (congrArg (fun B : IrreducibleCloseds X.carrier => Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x ∈ (B : Set X.carrier)) |
| 116 | (Affine.ChartGerm.FiniteSupportCharts.prime_support X W.val i)).mpr hxW |
| 117 | apply in_chart X m p k W g hg a hp A hAa i |
| 118 | (Affine.SupportStalk.support (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) vA) ?_ C x hx |
| 119 | (Affine.SupportStalk.mem (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) vA x hvAx) hvx |
| 120 | rw [Affine.SupportStalk.point] |
| 121 | exact hvA |
| 122 | · have hleft : (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g).sum |
| 123 | (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val) = 0 := by |
| 124 | apply Finset.sum_eq_zero |
| 125 | intro B hB |
| 126 | have hBW := Support.Principal.subset X k W g B hB |
| 127 | have hz : CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val = 0 := by |
| 128 | apply dite_eq_right |
| 129 | intro h |
| 130 | exact hpoint ⟨h.2, hBW h.1⟩ |
| 131 | exact (congrArg (fun r : ℚ => (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) B * r) hz).trans |
| 132 | (mul_zero _) |
| 133 | have hright : cycle X m p k W g hg a hp A hAa C = 0 := by |
| 134 | rw [coefficient] |
| 135 | apply Finset.sum_eq_zero |
| 136 | intro D _ |
| 137 | have hD := ExpectedComponentCycle.support_subset X m p k A W D.val D.property |
| 138 | have hz : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∉ (D.val.val : Set X.carrier) := fun h => hpoint ⟨hD.1 h, hD.2 h⟩ |
| 139 | rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right hz, mul_zero] |
| 140 | rw [hleft, hright] |
| 141 | |
| 142 | include hp hAa in |
| 143 | theorem intersection_mem |
| 144 | (hproper : CycleClass.Thom.IntersectionGeometry.MeetProperly X p (k + 1) (Finsupp.single A 1) |
| 145 | (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g)) : |
| 146 | Supports.ProperCycle.intersectionBilinear X m p (k + 1) (Finsupp.single A 1) |
| 147 | (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) ∈ CycleClass.Thom.IntersectionGeometry.rationalEquivalences X (p + (k + 1)) := by |
| 148 | have hi := Supports.ProperCycle.intersectionBilinear_isProper X m p (k + 1) (Finsupp.single A 1) |
| 149 | (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) hproper |
| 150 | have hc : Supports.ProperCycle.intersectionBilinear X m p (k + 1) (Finsupp.single A 1) |
| 151 | (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) = cycle X m p k W g hg a hp A hAa := by |
| 152 | ext C |
| 153 | rw [hi.2 C, Finsupp.sum_single_index (by simp)] |
| 154 | simp only [one_mul] |
| 155 | refine Eq.trans ?_ (all_coefficients X m p k W g hg a hp A hAa C) |
| 156 | apply Finset.sum_congr rfl |
| 157 | intro B _ |
| 158 | exact congrArg (fun r : ℚ => (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) B * r) |
| 159 | (Symmetry.multiplicity_comm X A.val B.val C.val) |
| 160 | rw [hc] |
| 161 | exact rationally_zero X m p k W g hg a hp A hAa |
| 162 | |
| 163 | end Relation |
| 164 | |
| 165 | end |
| 166 | |
| 167 | /-! Principal descent for an arbitrary cycle meeting the actual |
| 168 | numerator and denominator support cover. The fixed finite descent |
| 169 | strata contain only that cover and the principal divisor's supports. -/ |
| 170 | |
| 171 | set_option backward.isDefEq.respectTransparency false |
| 172 | set_option backward.isDefEq.respectTransparency.types false |
| 173 | |
| 174 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 175 | open scoped Classical |
| 176 | |
| 177 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports.ProperCycle |
| 178 | |
| 179 | theorem covered (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 180 | [SmoothOfRelativeDimension m X.structureMap] |
| 181 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 182 | (a : X.RationalDimensionCycle p) |
| 183 | (hp : a ∈ Proper.SupportCycles.submodule X p (Principal.ChartSupportCover.family X m k W g hg)) |
| 184 | (hdiv : CycleClass.Thom.IntersectionGeometry.MeetProperly X p (k + 1) a (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g)) : |
| 185 | Supports.ProperCycle.intersectionBilinear X m p (k + 1) a (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) ∈ |
| 186 | CycleClass.Thom.IntersectionGeometry.rationalEquivalences X (p + (k + 1)) := by |
| 187 | let d := Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g |
| 188 | have hsingle (A : X.DimensionCycleSupport p) (hA : A ∈ a.support) : |
| 189 | Supports.ProperCycle.intersectionBilinear X m p (k + 1) (Finsupp.single A 1) d ∈ CycleClass.Thom.IntersectionGeometry.rationalEquivalences X (p + (k + 1)) := by |
| 190 | apply Relation.intersection_mem X m p k W g hg a hp A hA |
| 191 | intro B hB E hE C hC |
| 192 | have hBA : B = A := by |
| 193 | simpa only [Finsupp.support_single A one_ne_zero, Finset.mem_singleton] using hB |
| 194 | subst B |
| 195 | exact hdiv A hA E hE C hC |
| 196 | have hdecomp : a = ∑ A ∈ a.support, a A • Finsupp.single A (1 : ℚ) := by |
| 197 | simp only [Finsupp.smul_single, smul_eq_mul, mul_one] |
| 198 | exact (Finsupp.sum_single a).symm |
| 199 | rw [hdecomp, map_sum, LinearMap.sum_apply] |
| 200 | apply Submodule.sum_mem |
| 201 | intro A hA |
| 202 | rw [map_smul, LinearMap.smul_apply] |
| 203 | exact Submodule.smul_mem _ _ (hsingle A hA) |
| 204 | |
| 205 | theorem exists_strata (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 206 | [SmoothOfRelativeDimension m X.structureMap] |
| 207 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) : |
| 208 | ∃ S : Finset (IrreducibleCloseds X.carrier), ∀ (p : ℕ) (a : X.RationalDimensionCycle p), |
| 209 | a ∈ Proper.SupportCycles.submodule X p (fun B : S => B.val) → |
| 210 | CycleClass.Thom.IntersectionGeometry.MeetProperly X p (k + 1) a (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) ∧ |
| 211 | Supports.ProperCycle.intersectionBilinear X m p (k + 1) a (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g) ∈ |
| 212 | CycleClass.Thom.IntersectionGeometry.rationalEquivalences X (p + (k + 1)) := by |
| 213 | let d := Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g |
| 214 | let J := Principal.ChartSupportCover.Index X m k W g hg ⊕ d.support |
| 215 | let family : J → IrreducibleCloseds X.carrier := |
| 216 | Sum.elim (Principal.ChartSupportCover.family X m k W g hg) (fun B => B.val.val) |
| 217 | let S := (Set.finite_range family).toFinset |
| 218 | refine ⟨S, ?_⟩ |
| 219 | intro p a ha |
| 220 | have hpos : a ∈ Proper.SupportCycles.submodule X p family := by |
| 221 | intro i |
| 222 | exact ha ⟨family i, by simp only [S, Set.Finite.mem_toFinset]; exact ⟨i, rfl⟩⟩ |
| 223 | have hdiv : CycleClass.Thom.IntersectionGeometry.MeetProperly X p (k + 1) a d := by |
| 224 | intro A hA B hB C hC |
| 225 | have h := hpos (.inr ⟨B, hB⟩) A hA C hC |
| 226 | change p + X.supportCodimension B.val ≤ X.supportCodimension C at h |
| 227 | rwa [B.property] at h |
| 228 | exact ⟨hdiv, covered X m p k W g hg a (fun i => hpos (.inl i)) hdiv⟩ |
| 229 | |
| 230 | end |
| 231 | |
| 232 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CoveredPrincipalDescent |