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.Local.SupportMultiplicity |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeRatioOrder |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.PrincipalLeft |
| 4 | |
| 5 | /-! # Principal Local Coefficient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.PrincipalLocalCoefficient |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Principal support-cycle coefficients and their divisor intersection |
| 14 | multiplicities are the two factors in local surface reciprocity. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CanonicalSurfaceReciprocity |
| 22 | |
| 23 | theorem principal (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 24 | [SmoothOfRelativeDimension m X.structureMap] |
| 25 | (W : X.DimensionCycleSupport k) (x : X.carrier) (hxW : x ∈ (W.val : Set X.carrier)) |
| 26 | (p : PrimeSpectrum ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW))) |
| 27 | (hp : p.asIdeal.height = 1) |
| 28 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) |
| 29 | (a b : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW)) |
| 30 | (ha : a ≠ 0) (hb : b ≠ 0) |
| 31 | (hab : g = algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW)) |
| 32 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField a / |
| 33 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW)) |
| 34 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField b) : |
| 35 | Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g |
| 36 | ⟨LocalDivisor.support X k W x hxW p, LocalDivisor.codimension X k W x hxW p m hp⟩ = |
| 37 | CanonicalSurfaceReciprocity.weight ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW)) p a - |
| 38 | CanonicalSurfaceReciprocity.weight ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW)) p b := by |
| 39 | let A := LocalDivisor.support X k W x hxW p |
| 40 | have hAW : CycleClass.Thom.IntersectionGeometry.supportPoint A ∈ (W.val : Set X.carrier) := |
| 41 | LocalDivisor.subset X k W x hxW p (A.isIrreducible.isGenericPoint_genericPoint A.isClosed).mem |
| 42 | have hy : CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint A) hAW = |
| 43 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).fromSpecStalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW) p := by |
| 44 | apply (CycleClass.Geometric.GenericPoint.reducedSupportι W.val).isEmbedding.injective |
| 45 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec] |
| 46 | exact LocalDivisor.support_point X k W x hxW p |
| 47 | rw [Principal.ClosedSectionCycle.principalCycle_apply, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hAW, hy, hab] |
| 48 | exact Stalk.PrimeRatioOrder.ambient (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val) (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW) p hp a b ha hb |
| 49 | |
| 50 | theorem multiplicity (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (k : ℕ) |
| 51 | (D : X.DimensionCycleSupport 1) (W : X.DimensionCycleSupport k) (C : X.DimensionCycleSupport (k + 2)) |
| 52 | (hxD : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (D.val : Set X.carrier)) |
| 53 | (hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W.val : Set X.carrier)) |
| 54 | (r : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)) (hr : r ≠ 0) |
| 55 | (he : RingHom.ker (Local.Principal.supportStalkMap X.carrier D.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxD).hom = Ideal.span {r}) |
| 56 | (p : PrimeSpectrum ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 57 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW))) |
| 58 | (hfp : Local.Principal.supportStalkMap X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW r ∉ p.asIdeal) : |
| 59 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val (LocalDivisor.support X k W (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW p) C.val = |
| 60 | CanonicalSurfaceReciprocity.restrictedOrder ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 61 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)) p |
| 62 | (Local.Principal.supportStalkMap X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW r) := by |
| 63 | let x := CycleClass.Thom.IntersectionGeometry.supportPoint C.val |
| 64 | let A := LocalDivisor.support X k W x hxW p |
| 65 | let hAW := LocalDivisor.subset X k W x hxW p |
| 66 | let hxA := LocalDivisor.point_mem X k W x hxW p |
| 67 | let f := Local.Principal.supportStalkMap X.carrier W.val x hxW r |
| 68 | let τ := NestedSupportStalk.stalkMap X.carrier A W.val hAW x hxA hxW |
| 69 | have hk : RingHom.ker τ.hom = p.asIdeal := LocalDivisor.kernel_eq X k W x hxW p |
| 70 | have hτ : τ f ≠ 0 := fun hz => hfp (hk ▸ RingHom.mem_ker.mpr hz) |
| 71 | have hcomp : τ f = Local.Principal.supportStalkMap X.carrier A x hxA r := |
| 72 | NestedSupportStalk.apply_comp X.carrier A W.val hAW x hxA hxW r |
| 73 | have hra : Local.Principal.supportStalkMap X.carrier A x hxA r ≠ 0 := hcomp ▸ hτ |
| 74 | have hord := NestedSupportPrime.order X.carrier A W.val hAW x hxA hxW f |
| 75 | change Ring.ord _ (τ f) = _ at hord |
| 76 | rw [hk, hcomp] at hord |
| 77 | exact (Local.PrincipalLeft.intersectionMultiplicity_eq_order X A D.val C.val hxA hxD r hr he hra).trans |
| 78 | (congrArg (fun n : ℕ∞ => (n.toNat : ℚ)) hord) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | /-! Reindex intersection with an actual support principal divisor by |
| 83 | the finite union of the numerator and denominator primes in its stalk. -/ |
| 84 | |
| 85 | set_option backward.isDefEq.respectTransparency false |
| 86 | set_option backward.isDefEq.respectTransparency.types false |
| 87 | |
| 88 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 89 | open scoped Classical |
| 90 | |
| 91 | namespace Sum |
| 92 | |
| 93 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CanonicalSurfaceReciprocity |
| 94 | |
| 95 | theorem coefficient (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 96 | [SmoothOfRelativeDimension m X.structureMap] |
| 97 | (D : X.DimensionCycleSupport 1) (W : X.DimensionCycleSupport k) (C : X.DimensionCycleSupport (k + 2)) |
| 98 | (hxD : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (D.val : Set X.carrier)) |
| 99 | (hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W.val : Set X.carrier)) |
| 100 | (r : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)) (hr : r ≠ 0) |
| 101 | (he : RingHom.ker (Local.Principal.supportStalkMap X.carrier D.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxD).hom = Ideal.span {r}) |
| 102 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) |
| 103 | (a b : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 104 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)) (ha : a ≠ 0) (hb : b ≠ 0) |
| 105 | (havoid : ∀ p : PrimeSpectrum ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 106 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)), p.asIdeal.height = 1 → |
| 107 | Local.Principal.supportStalkMap X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW r ∈ p.asIdeal → |
| 108 | a ∉ p.asIdeal ∧ b ∉ p.asIdeal) |
| 109 | (hab : g = algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 110 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)) (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField a / |
| 111 | algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 112 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW)) (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField b) : |
| 113 | let R := (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW) |
| 114 | let f := Local.Principal.supportStalkMap X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW r |
| 115 | (Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g).sum |
| 116 | (fun A c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val A.val C.val) = |
| 117 | ∑ p ∈ CanonicalSurfaceReciprocity.primes R a ha ∪ CanonicalSurfaceReciprocity.primes R b hb, |
| 118 | (CanonicalSurfaceReciprocity.weight R p a - CanonicalSurfaceReciprocity.weight R p b) * CanonicalSurfaceReciprocity.restrictedOrder R p f := by |
| 119 | let x := CycleClass.Thom.IntersectionGeometry.supportPoint C.val |
| 120 | let R := (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW) |
| 121 | let f := Local.Principal.supportStalkMap X.carrier W.val x hxW r |
| 122 | let S := CanonicalSurfaceReciprocity.primes R a ha ∪ CanonicalSurfaceReciprocity.primes R b hb |
| 123 | let d := Principal.ClosedSectionCycle.principalCycle X (k + 1) W.val g |
| 124 | let A (p : PrimeSpectrum R) (hp : p.asIdeal.height = 1) : X.DimensionCycleSupport (k + 1) := |
| 125 | ⟨LocalDivisor.support X k W x hxW p, LocalDivisor.codimension X k W x hxW p m hp⟩ |
| 126 | have hS (p : PrimeSpectrum R) (hp : p ∈ S) : p.asIdeal.height = 1 := by |
| 127 | rcases Finset.mem_union.mp hp with h | h |
| 128 | · exact ((CanonicalSurfaceReciprocity.mem_primes R a ha p).mp h).1 |
| 129 | · exact ((CanonicalSurfaceReciprocity.mem_primes R b hb p).mp h).1 |
| 130 | have hfp (p : PrimeSpectrum R) (hp : p ∈ S) : f ∉ p.asIdeal := by |
| 131 | intro h |
| 132 | rcases Finset.mem_union.mp hp with hpa | hpb |
| 133 | · exact (havoid p (hS p hp) h).1 ((CanonicalSurfaceReciprocity.mem_primes R a ha p).mp hpa).2 |
| 134 | · exact (havoid p (hS p hp) h).2 ((CanonicalSurfaceReciprocity.mem_primes R b hb p).mp hpb).2 |
| 135 | have hd (p : PrimeSpectrum R) (hp : p.asIdeal.height = 1) : |
| 136 | d (A p hp) = CanonicalSurfaceReciprocity.weight R p a - CanonicalSurfaceReciprocity.weight R p b := |
| 137 | principal X m k W x hxW p hp g a b ha hb hab |
| 138 | have hi (p : PrimeSpectrum R) (hp : p ∈ S) : |
| 139 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val (A p (hS p hp)).val C.val = CanonicalSurfaceReciprocity.restrictedOrder R p f := |
| 140 | multiplicity X k D W C hxD hxW r hr he p (hfp p hp) |
| 141 | have hterm (p : PrimeSpectrum R) (hp : p ∈ S) : |
| 142 | (CanonicalSurfaceReciprocity.weight R p a - CanonicalSurfaceReciprocity.weight R p b) * CanonicalSurfaceReciprocity.restrictedOrder R p f = |
| 143 | d (A p (hS p hp)) * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val (A p (hS p hp)).val C.val := by |
| 144 | rw [hd p (hS p hp), hi p hp] |
| 145 | change d.sum (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val B.val C.val) = |
| 146 | ∑ p ∈ S, (CanonicalSurfaceReciprocity.weight R p a - CanonicalSurfaceReciprocity.weight R p b) * CanonicalSurfaceReciprocity.restrictedOrder R p f |
| 147 | symm |
| 148 | apply Finset.sum_bij_ne_zero (fun p hp _ => A p (hS p hp)) |
| 149 | · intro p hp hn |
| 150 | exact Finsupp.mem_support_iff.mpr (mul_ne_zero_iff.mp ((hterm p hp) ▸ hn)).1 |
| 151 | · intro p hp _ q hq _ heq |
| 152 | apply DivisorPrime.support_injective X k W x hxW |
| 153 | exact congrArg Subtype.val heq |
| 154 | · intro B hB hn |
| 155 | have hxB : x ∈ (B.val : Set X.carrier) := by |
| 156 | by_contra h |
| 157 | exact (mul_ne_zero_iff.mp hn).2 (dite_eq_right (fun hm => h hm.2)) |
| 158 | have hBWpoint : CycleClass.Thom.IntersectionGeometry.supportPoint B.val ∈ (W.val : Set X.carrier) := by |
| 159 | by_contra h |
| 160 | have hz : d B = 0 := by |
| 161 | rw [Principal.ClosedSectionCycle.principalCycle_apply, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right h] |
| 162 | exact Finsupp.mem_support_iff.mp hB hz |
| 163 | have hBW : B.val ≤ W.val := |
| 164 | (Supports.supportPoint_mem_iff_subset |
| 165 | (⟨(W.val : Set X.carrier), W.val.isClosed⟩ : Closeds X.carrier) B.val).mp hBWpoint |
| 166 | let p := DivisorPrime.prime X k W x hxW B.val hBW hxB |
| 167 | have hp : p.asIdeal.height = 1 := DivisorPrime.height X k W x hxW m B hBW hxB |
| 168 | have him : A p hp = B := Subtype.ext (DivisorPrime.image X k W x hxW B.val hBW hxB) |
| 169 | have hcoeff : d B = CanonicalSurfaceReciprocity.weight R p a - CanonicalSurfaceReciprocity.weight R p b := by |
| 170 | rw [← him] |
| 171 | exact hd p hp |
| 172 | have hpS : p ∈ S := by |
| 173 | by_contra hout |
| 174 | have hpa : p ∉ CanonicalSurfaceReciprocity.primes R a ha := fun h => hout (Finset.mem_union_left _ h) |
| 175 | have hpb : p ∉ CanonicalSurfaceReciprocity.primes R b hb := fun h => hout (Finset.mem_union_right _ h) |
| 176 | have hz : d B = 0 := hcoeff.trans (by |
| 177 | rw [CanonicalSurfaceReciprocity.weight_eq_zero R a ha p hp hpa, CanonicalSurfaceReciprocity.weight_eq_zero R b hb p hp hpb, sub_self]) |
| 178 | exact Finsupp.mem_support_iff.mp hB hz |
| 179 | have hn' : (CanonicalSurfaceReciprocity.weight R p a - CanonicalSurfaceReciprocity.weight R p b) * CanonicalSurfaceReciprocity.restrictedOrder R p f ≠ 0 := by |
| 180 | rw [hterm p hpS, him] |
| 181 | exact hn |
| 182 | exact ⟨p, hpS, hn', him⟩ |
| 183 | · intro p hp _ |
| 184 | exact hterm p hp |
| 185 | |
| 186 | end Sum |
| 187 | |
| 188 | end |
| 189 | |
| 190 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.PrincipalLocalCoefficient |