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.RestrictedDivisorOrder |
| 2 | |
| 3 | /-! # Sum Comparison -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.SumComparison |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Reindex the local prime sum by the actual finite dimension-graded |
| 10 | divisor cycle. Terms outside the stalk's spectrum have zero multiplicity. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | open scoped Classical |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 18 | |
| 19 | theorem sum_eq_local_sum (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 20 | [SmoothOfRelativeDimension m X.structureMap] [IsIntegral X.carrier] |
| 21 | (A : X.DimensionCycleSupport 1) (C : X.DimensionCycleSupport 2) |
| 22 | (f : X.carrier.functionField) (d : X.RationalDimensionCycle 1) |
| 23 | (hd : ∀ B : X.DimensionCycleSupport 1, d B = (X.carrier.ord f (CycleClass.Thom.IntersectionGeometry.supportPoint B.val) : ℚ)) |
| 24 | (S : Finset (Spec (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)))) |
| 25 | (hS : ∀ p ∈ S, p.asIdeal.height = 1 ∧ |
| 26 | X.supportCodimension (Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) = 1) |
| 27 | (hout : ∀ p : Spec (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)), |
| 28 | p.asIdeal.height = 1 → p ∉ S → |
| 29 | X.carrier.ord f (X.carrier.fromSpecStalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) = 0) : |
| 30 | d.sum (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val) = |
| 31 | ∑ p ∈ S, (X.carrier.ord f (X.carrier.fromSpecStalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) : ℚ) * |
| 32 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X (Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) A.val C.val := by |
| 33 | symm |
| 34 | let B (p : Spec (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val))) (hp : p ∈ S) : |
| 35 | X.DimensionCycleSupport 1 := |
| 36 | ⟨Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p, (hS p hp).2⟩ |
| 37 | have hterm (p : Spec (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val))) (hp : p ∈ S) : |
| 38 | (X.carrier.ord f (X.carrier.fromSpecStalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) : ℚ) * |
| 39 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X (Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) A.val C.val = |
| 40 | d (B p hp) * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X (B p hp).val A.val C.val := by |
| 41 | rw [hd, Stalk.DivisorSupport.primeClosure_point] |
| 42 | apply Finset.sum_bij_ne_zero (fun p hp _ => B p hp) |
| 43 | · intro p hp hn |
| 44 | apply Finsupp.mem_support_iff.mpr |
| 45 | exact (mul_ne_zero_iff.mp ((hterm p hp) ▸ hn)).1 |
| 46 | · intro p hp _ q hq _ he |
| 47 | apply (X.carrier.fromSpecStalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)).isEmbedding.injective |
| 48 | have he' := congrArg (fun D : X.DimensionCycleSupport 1 => CycleClass.Thom.IntersectionGeometry.supportPoint D.val) he |
| 49 | simpa only [B, Stalk.DivisorSupport.primeClosure_point] using he' |
| 50 | · intro D hD hn |
| 51 | have hχ : CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val A.val C.val ≠ 0 := (mul_ne_zero_iff.mp hn).2 |
| 52 | have hxD : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (D.val : Set X.carrier) := by |
| 53 | by_contra h |
| 54 | exact hχ (dite_eq_right (fun hm => h hm.1)) |
| 55 | have hspecial : CycleClass.Thom.IntersectionGeometry.supportPoint D.val ⤳ CycleClass.Thom.IntersectionGeometry.supportPoint C.val := |
| 56 | (D.val.isIrreducible.isGenericPoint_genericPoint D.val.isClosed).specializes hxD |
| 57 | have hrange : CycleClass.Thom.IntersectionGeometry.supportPoint D.val ∈ Set.range (X.carrier.fromSpecStalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)) := by |
| 58 | rw [Scheme.range_fromSpecStalk] |
| 59 | exact hspecial |
| 60 | obtain ⟨p, hpD⟩ := hrange |
| 61 | have hp : p.asIdeal.height = 1 := by |
| 62 | rw [Stalk.Localization.height_eq_coheight_image, hpD] |
| 63 | exact CurveSupports.coheight_one X m D |
| 64 | have hpS : p ∈ S := by |
| 65 | by_contra h |
| 66 | have ho := hout p hp h |
| 67 | rw [hpD] at ho |
| 68 | have hd0 := hd D |
| 69 | rw [ho, Int.cast_zero] at hd0 |
| 70 | exact Finsupp.mem_support_iff.mp hD hd0 |
| 71 | have he : B p hpS = D := by |
| 72 | apply Subtype.ext |
| 73 | apply irreducibleSetEquivPoints.injective |
| 74 | exact (Stalk.DivisorSupport.primeClosure_point X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p).trans hpD |
| 75 | have hn' := hn |
| 76 | change d D * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val A.val C.val ≠ 0 at hn' |
| 77 | rw [← he, ← hterm p hpS] at hn' |
| 78 | exact ⟨p, hpS, hn', he⟩ |
| 79 | · intro p hp _ |
| 80 | exact hterm p hp |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.SumComparison |