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.PrimeEquationOrder |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpecifiedCycle |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.FractionIdentity |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.Integral |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AvoidingDivisorUnit |
| 6 | |
| 7 | /-! # Local Equation -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.General.LocalEquation |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A local equation for a divisor computes the divisor intersection |
| 14 | coefficients along every support through that local point, in any codimension. |
| 15 | The proof compares with the already constructed native principal cycle. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | open scoped Classical |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction.Restriction OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ClosedSectionCycle |
| 23 | |
| 24 | theorem principal_sum (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m q : ℕ) |
| 25 | [SmoothOfRelativeDimension m X.structureMap] [IsIntegral X.carrier] |
| 26 | (D : X.DimensionCycleSupport 1) (W : X.DimensionCycleSupport q) (x : X.carrier) |
| 27 | (hxD : x ∈ (D.val : Set X.carrier)) |
| 28 | (r : X.carrier.presheaf.stalk x) (hr : r ≠ 0) |
| 29 | (he : RingHom.ker (Local.Principal.supportStalkMap X.carrier D.val x hxD).hom = Ideal.span {r}) |
| 30 | (A : X.DimensionCycleSupport (1 + q)) (hxA : x ∈ (A.val : Set X.carrier)) : |
| 31 | (Principal.Integral.Cycle.cycle X (algebraMap (X.carrier.presheaf.stalk x) X.carrier.functionField r)).sum |
| 32 | (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val W.val A.val) = |
| 33 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val W.val A.val := by |
| 34 | let F := algebraMap (X.carrier.presheaf.stalk x) X.carrier.functionField r |
| 35 | let d := Principal.Integral.Cycle.cycle X F |
| 36 | have hD : d D = 1 := by |
| 37 | rw [Principal.Integral.Cycle.cycle_apply, PrimeEquationOrder.geometric X m D D x hxD hxD r hr he, |
| 38 | ite_eq_left rfl, Int.cast_one] |
| 39 | change ∑ B ∈ d.support, d B * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val W.val A.val = _ |
| 40 | rw [Finset.sum_eq_single D] |
| 41 | · rw [hD, one_mul] |
| 42 | · intro B _ hBD |
| 43 | by_cases hi : CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val W.val A.val = 0 |
| 44 | · rw [hi, mul_zero] |
| 45 | · have hzB : CycleClass.Thom.IntersectionGeometry.supportPoint A.val ∈ (B.val : Set X.carrier) := by |
| 46 | by_contra hn |
| 47 | exact hi (dite_eq_right (fun h => hn h.1)) |
| 48 | have hAB : A.val ≤ B.val := |
| 49 | (Supports.supportPoint_mem_iff_subset |
| 50 | (⟨(B.val : Set X.carrier), B.val.isClosed⟩ : Closeds X.carrier) A.val).mp hzB |
| 51 | have hdB : d B = 0 := by |
| 52 | rw [Principal.Integral.Cycle.cycle_apply, |
| 53 | PrimeEquationOrder.geometric X m D B x hxD (hAB hxA) r hr he, |
| 54 | ite_eq_right hBD, Int.cast_zero] |
| 55 | rw [hdB, zero_mul] |
| 56 | · intro hn |
| 57 | exact (hn (Finsupp.mem_support_iff.mpr (hD ▸ one_ne_zero))).elim |
| 58 | |
| 59 | theorem order_eq (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m q : ℕ) |
| 60 | [SmoothOfRelativeDimension m X.structureMap] [IsIntegral X.carrier] |
| 61 | (D : X.DimensionCycleSupport 1) (W : X.DimensionCycleSupport q) (hWD : ¬ W.val ≤ D.val) (x : X.carrier) |
| 62 | (hxD : x ∈ (D.val : Set X.carrier)) (hxW : x ∈ (W.val : Set X.carrier)) |
| 63 | (r : X.carrier.presheaf.stalk x) (hr : r ≠ 0) |
| 64 | (he : RingHom.ker (Local.Principal.supportStalkMap X.carrier D.val x hxD).hom = Ideal.span {r}) |
| 65 | (A : X.DimensionCycleSupport (1 + q)) (hxA : x ∈ (A.val : Set X.carrier)) |
| 66 | (hAW : CycleClass.Thom.IntersectionGeometry.supportPoint A.val ∈ (W.val : Set X.carrier)) : |
| 67 | ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).ord |
| 68 | (algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val x hxW)) |
| 69 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField (Local.Principal.supportStalkMap X.carrier W.val x hxW r)) |
| 70 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) hAW) : ℚ) = |
| 71 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X D.val W.val A.val := by |
| 72 | let F := algebraMap (X.carrier.presheaf.stalk x) X.carrier.functionField r |
| 73 | let d := Principal.Integral.Cycle.cycle X F |
| 74 | have hF : F ≠ 0 := (map_ne_zero_iff _ (IsFractionRing.injective _ _)).mpr hr |
| 75 | have hFW (B : X.DimensionCycleSupport 1) (hWB : W.val ≤ B.val) : |
| 76 | X.carrier.ord F (CycleClass.Thom.IntersectionGeometry.supportPoint B.val) = 0 := by |
| 77 | rw [PrimeEquationOrder.geometric X m D B x hxD (hWB hxW) r hr he, ite_eq_right] |
| 78 | intro hBD |
| 79 | subst B |
| 80 | exact hWD hWB |
| 81 | obtain ⟨u, hu, huF⟩ := AvoidingDivisorUnit.exists_unit X m W.val F hF hFW |
| 82 | have hzW : CycleClass.Thom.IntersectionGeometry.supportPoint W.val ∈ (W.val : Set X.carrier) := |
| 83 | (W.val.isIrreducible.isGenericPoint_genericPoint W.val.isClosed).mem |
| 84 | have hgu := Support.FractionIdentity.eq X.carrier W.val hzW x hxW u hu r 1 |
| 85 | (by rw [map_one]; exact one_ne_zero) (by simpa only [map_one, div_one] using huF) |
| 86 | rw [map_one, div_one] at hgu |
| 87 | have hc := SpecifiedCycle.isProperIntersection X m q W hzW u hu d |
| 88 | (fun B => by rw [huF]; exact Principal.Integral.Cycle.cycle_apply X F B) |
| 89 | have hcoef := hc.2 A |
| 90 | rw [Principal.ClosedSectionCycle.principalCycle_apply, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hAW, hgu] at hcoef |
| 91 | simp only [Finsupp.sum_single_index, mul_zero, zero_mul, mul_one] at hcoef |
| 92 | exact hcoef.trans (principal_sum X m q D W x hxD r hr he A hxA) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.General.LocalEquation |