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.PrimeFactorSupport |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FactorOrderSum |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.Integral |
| 4 | |
| 5 | /-! # Factor Cycle -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.FactorCycle |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The prime factors of a nonzero stalk element give its actual local |
| 12 | divisor cycle, with coefficients equal to the native principal-divisor orders. -/ |
| 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 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient UniqueFactorizationMonoid |
| 21 | |
| 22 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 23 | [SmoothOfRelativeDimension m X.structureMap] (x : X.carrier) |
| 24 | [UniqueFactorizationMonoid (X.carrier.presheaf.stalk x)] |
| 25 | |
| 26 | local instance : IsDomain (X.carrier.presheaf.stalk x) := X.stalk_isDomain x |
| 27 | |
| 28 | def cycle (a : X.carrier.presheaf.stalk x) : X.RationalDimensionCycle 1 := |
| 29 | ((factors a).attach.map (fun r => Finsupp.single |
| 30 | (PrimeFactorSupport.support X m x r.val (prime_of_factor r.val r.property)) (1 : ℚ))).sum |
| 31 | |
| 32 | theorem apply_cycle (a : X.carrier.presheaf.stalk x) (B : X.DimensionCycleSupport 1) : |
| 33 | cycle X m x a B = ((factors a).attach.map (fun r => |
| 34 | if B = PrimeFactorSupport.support X m x r.val (prime_of_factor r.val r.property) |
| 35 | then (1 : ℚ) else 0)).sum := by |
| 36 | change (Finsupp.applyAddHom B) _ = _ |
| 37 | rw [cycle, map_multiset_sum, Multiset.map_map] |
| 38 | congr 1 |
| 39 | apply Multiset.map_congr rfl |
| 40 | intro r _ |
| 41 | simp only [Function.comp_apply, Finsupp.applyAddHom_apply, Finsupp.single_apply, eq_comm] |
| 42 | |
| 43 | theorem weighted_sum (a : X.carrier.presheaf.stalk x) (v : X.DimensionCycleSupport 1 → ℚ) : |
| 44 | (cycle X m x a).sum (fun D c => c * v D) = |
| 45 | ((factors a).attach.map (fun r => |
| 46 | v (PrimeFactorSupport.support X m x r.val (prime_of_factor r.val r.property)))).sum := by |
| 47 | change (Finsupp.linearCombination ℚ v) (cycle X m x a) = _ |
| 48 | rw [cycle, map_multiset_sum, Multiset.map_map] |
| 49 | congr 1 |
| 50 | apply Multiset.map_congr rfl |
| 51 | intro r _ |
| 52 | simp only [Function.comp_apply, Finsupp.linearCombination_single, one_smul] |
| 53 | |
| 54 | theorem coefficient [IsIntegral X.carrier] |
| 55 | (a : X.carrier.presheaf.stalk x) (ha : a ≠ 0) |
| 56 | (B : X.DimensionCycleSupport 1) (hxB : x ∈ (B.val : Set X.carrier)) : |
| 57 | cycle X m x a B = |
| 58 | (X.carrier.ord (algebraMap (X.carrier.presheaf.stalk x) X.carrier.functionField a) |
| 59 | (CycleClass.Thom.IntersectionGeometry.supportPoint B.val) : ℚ) := by |
| 60 | let R := X.carrier.presheaf.stalk x |
| 61 | let : IsIntegrallyClosed R := Smooth.Normal.stalk_integrallyClosed X.structureMap x |
| 62 | let p : PrimeSpectrum R := Stalk.PrimeQuotient.kernelPrime X.carrier B.val x hxB |
| 63 | let S := Localization.AtPrime p.asIdeal |
| 64 | have hp : p.asIdeal.height = 1 := by |
| 65 | rw [Stalk.Localization.height_eq_coheight_image, Stalk.PrimeQuotient.kernelPrime_image] |
| 66 | exact CurveSupports.coheight_one X m B |
| 67 | let : IsDiscreteValuationRing S := NormalDivisibility.localization_dvr R p.asIdeal hp |
| 68 | have haS : algebraMap R S a ≠ 0 := |
| 69 | (map_ne_zero_iff _ (IsLocalization.injective S p.asIdeal.primeCompl_le_nonZeroDivisors)).mpr ha |
| 70 | have ho := Stalk.DivisorRestriction.order_of_local_element X.carrier x a ha p hp |
| 71 | rw [Stalk.PrimeQuotient.kernelPrime_image] at ho |
| 72 | rw [apply_cycle, ho, Int.cast_natCast, FactorOrderSum.rational_factors R S (algebraMap R S) a ha haS] |
| 73 | have hsum : ((factors a).map (fun r => ((Ring.ord S (algebraMap R S r)).toNat : ℚ))).sum = |
| 74 | ((factors a).attach.map (fun r => ((Ring.ord S (algebraMap R S r.val)).toNat : ℚ))).sum := by |
| 75 | exact congrArg Multiset.sum (Multiset.attach_map_val' (factors a) |
| 76 | (fun r => ((Ring.ord S (algebraMap R S r)).toNat : ℚ))).symm |
| 77 | rw [hsum] |
| 78 | congr 1 |
| 79 | apply Multiset.map_congr rfl |
| 80 | intro r _ |
| 81 | have hr := prime_of_factor r.val r.property |
| 82 | have hgeo := PrimeFactorSupport.geometric_order X m x r.val hr B hxB |
| 83 | have hlocal := Stalk.DivisorRestriction.order_of_local_element X.carrier x r.val hr.ne_zero p hp |
| 84 | rw [Stalk.PrimeQuotient.kernelPrime_image] at hlocal |
| 85 | have h := congrArg (fun n : ℤ => (n : ℚ)) (hlocal.symm.trans hgeo) |
| 86 | simpa only [Int.cast_natCast, apply_ite, Int.cast_one, Int.cast_zero] using h.symm |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.FactorCycle |