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.Stalk.PrimeOrder |
| 2 | |
| 3 | /-! # Global Parameter Sum -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GlobalParameterSum |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Local parameter orders define weights on global supports, |
| 12 | with zero weight when the parameter vanishes identically there. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | open scoped Classical |
| 19 | |
| 20 | namespace Weights |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 23 | |
| 24 | variable (Z : Scheme) (x : Z) (r : Z.presheaf.stalk x) |
| 25 | |
| 26 | def weight (C : IrreducibleCloseds Z) : ℚ := |
| 27 | if hx : x ∈ (C : Set Z) then |
| 28 | if Local.Principal.supportStalkMap Z C x hx r ≠ 0 then |
| 29 | ((Ring.ord ((CycleClass.Geometric.GenericPoint.reducedSupportScheme C).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage C x hx)) |
| 30 | (Local.Principal.supportStalkMap Z C x hx r)).toNat : ℚ) |
| 31 | else 0 |
| 32 | else 0 |
| 33 | |
| 34 | theorem primeClosure_injective : Function.Injective (Stalk.DivisorSupport.primeClosure Z x) := by |
| 35 | intro p q hpq |
| 36 | apply (Z.fromSpecStalk x).isEmbedding.injective |
| 37 | exact (Stalk.DivisorSupport.primeClosure_point Z x p).symm.trans |
| 38 | ((congrArg CycleClass.Thom.IntersectionGeometry.supportPoint hpq).trans (Stalk.DivisorSupport.primeClosure_point Z x q)) |
| 39 | |
| 40 | theorem primeClosure_kernel (C : IrreducibleCloseds Z) (hx : x ∈ (C : Set Z)) : |
| 41 | Stalk.DivisorSupport.primeClosure Z x (Stalk.PrimeQuotient.kernelPrime Z C x hx) = C := by |
| 42 | apply irreducibleSetEquivPoints.injective |
| 43 | change CycleClass.Thom.IntersectionGeometry.supportPoint (Stalk.DivisorSupport.primeClosure Z x (Stalk.PrimeQuotient.kernelPrime Z C x hx)) = CycleClass.Thom.IntersectionGeometry.supportPoint C |
| 44 | rw [Stalk.DivisorSupport.primeClosure_point, Stalk.PrimeQuotient.kernelPrime_image] |
| 45 | |
| 46 | theorem prime_weight (p : PrimeSpectrum (Z.presheaf.stalk x)) : |
| 47 | weight Z x r (Stalk.DivisorSupport.primeClosure Z x p) = |
| 48 | if r ∉ p.asIdeal then |
| 49 | ((Ring.ord ((Z.presheaf.stalk x) ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℚ) |
| 50 | else 0 := by |
| 51 | rw [weight, dite_eq_left (Stalk.DivisorSupport.point_mem_primeClosure Z x p)] |
| 52 | by_cases hp : r ∉ p.asIdeal |
| 53 | · rw [ite_eq_left hp, ite_eq_left (Stalk.PrimeOrder.image_ne_zero Z x p r hp), |
| 54 | Stalk.PrimeOrder.quotient_order] |
| 55 | · have hz : Local.Principal.supportStalkMap Z (Stalk.DivisorSupport.primeClosure Z x p) x (Stalk.DivisorSupport.point_mem_primeClosure Z x p) r = 0 := by |
| 56 | apply RingHom.mem_ker.mp |
| 57 | rw [Stalk.PrimeQuotient.kernel_eq Z (Stalk.DivisorSupport.primeClosure Z x p) x |
| 58 | (Stalk.DivisorSupport.point_mem_primeClosure Z x p) p (Stalk.DivisorSupport.primeClosure_point Z x p).symm] |
| 59 | exact not_not.mp hp |
| 60 | rw [ite_eq_right hp, ite_eq_right (not_ne_iff.mpr hz)] |
| 61 | |
| 62 | theorem closed_weight (hr : r ∈ IsLocalRing.maximalIdeal (Z.presheaf.stalk x)) : |
| 63 | weight Z x r (Stalk.DivisorSupport.primeClosure Z x (IsLocalRing.closedPoint (Z.presheaf.stalk x))) = 0 := by |
| 64 | rw [prime_weight] |
| 65 | exact ite_eq_right (show ¬r ∉ (IsLocalRing.closedPoint (Z.presheaf.stalk x)).asIdeal from not_not.mpr hr) |
| 66 | |
| 67 | end Weights |
| 68 | |
| 69 | end |
| 70 | |
| 71 | /-! A finite local specialization sum can be rewritten over a |
| 72 | single fixed finite collection of global components. Extra global |
| 73 | components have zero contribution at the chosen endpoint point. -/ |
| 74 | |
| 75 | set_option backward.isDefEq.respectTransparency false |
| 76 | set_option backward.isDefEq.respectTransparency.types false |
| 77 | |
| 78 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 79 | open scoped Classical |
| 80 | |
| 81 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GlobalParameterSum.Weights |
| 82 | |
| 83 | theorem reindex (Z : Scheme) (x : Z) (r : Z.presheaf.stalk x) |
| 84 | (hr : r ∈ IsLocalRing.maximalIdeal (Z.presheaf.stalk x)) |
| 85 | (c : IrreducibleCloseds Z → ℚ) (F : Finset (IrreducibleCloseds Z)) |
| 86 | (T : Finset (PrimeSpectrum (Z.presheaf.stalk x))) |
| 87 | (hT : ∀ p ∈ T, Stalk.DivisorSupport.primeClosure Z x p ∈ F ∧ r ∉ p.asIdeal) |
| 88 | (hout : ∀ p, p ≠ IsLocalRing.closedPoint (Z.presheaf.stalk x) → p ∉ T → c (Stalk.DivisorSupport.primeClosure Z x p) = 0) : |
| 89 | (∑ p ∈ T, c (Stalk.DivisorSupport.primeClosure Z x p) * |
| 90 | ((Ring.ord ((Z.presheaf.stalk x) ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℚ)) = |
| 91 | ∑ C ∈ F, c C * Weights.weight Z x r C := by |
| 92 | have hsub : T.image (Stalk.DivisorSupport.primeClosure Z x) ⊆ F := by |
| 93 | rintro C hC |
| 94 | obtain ⟨p, hp, rfl⟩ := Finset.mem_image.mp hC |
| 95 | exact (hT p hp).1 |
| 96 | have hz (C : IrreducibleCloseds Z) (_ : C ∈ F) (hC : C ∉ T.image (Stalk.DivisorSupport.primeClosure Z x)) : |
| 97 | c C * Weights.weight Z x r C = 0 := by |
| 98 | by_cases hx : x ∈ (C : Set Z) |
| 99 | · let p := Stalk.PrimeQuotient.kernelPrime Z C x hx |
| 100 | have hpC : Stalk.DivisorSupport.primeClosure Z x p = C := Weights.primeClosure_kernel Z x C hx |
| 101 | by_cases hp : p = IsLocalRing.closedPoint (Z.presheaf.stalk x) |
| 102 | · rw [← hpC, hp, Weights.closed_weight Z x r hr, mul_zero] |
| 103 | · have hpT : p ∉ T := fun hpT => hC (Finset.mem_image.mpr ⟨p, hpT, hpC⟩) |
| 104 | have hc : c C = 0 := hpC ▸ hout p hp hpT |
| 105 | rw [hc, zero_mul] |
| 106 | · rw [Weights.weight, dite_eq_right hx, mul_zero] |
| 107 | calc |
| 108 | _ = ∑ p ∈ T, c (Stalk.DivisorSupport.primeClosure Z x p) * Weights.weight Z x r (Stalk.DivisorSupport.primeClosure Z x p) := |
| 109 | Finset.sum_congr rfl (fun p hp => by rw [Weights.prime_weight, ite_eq_left (hT p hp).2]) |
| 110 | _ = ∑ C ∈ T.image (Stalk.DivisorSupport.primeClosure Z x), c C * Weights.weight Z x r C := by |
| 111 | rw [Finset.sum_image] |
| 112 | · rfl |
| 113 | · exact fun p _ q _ hpq => Weights.primeClosure_injective Z x hpq |
| 114 | _ = _ := Finset.sum_subset hsub hz |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GlobalParameterSum |