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.Finite.PrincipalPrimes |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.SurfaceReciprocity |
| 3 | |
| 4 | /-! # Canonical Surface Reciprocity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CanonicalSurfaceReciprocity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Local reciprocity indexed by all height-one components of the actual |
| 11 | principal divisors. Fixed finite supports allow subtraction of numerator |
| 12 | and denominator formulas. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory IsLocalRing |
| 15 | open scoped Classical |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 20 | |
| 21 | def primes (f : R) (hf : f ≠ 0) : Finset (PrimeSpectrum R) := |
| 22 | (ProjectionFormula.Finite.PrincipalPrimes.finite R f hf).toFinset |
| 23 | |
| 24 | theorem mem_primes (f : R) (hf : f ≠ 0) (p : PrimeSpectrum R) : |
| 25 | p ∈ primes R f hf ↔ p.asIdeal.height = 1 ∧ f ∈ p.asIdeal := |
| 26 | Set.Finite.mem_toFinset _ |
| 27 | |
| 28 | def weight (p : PrimeSpectrum R) (f : R) : ℚ := |
| 29 | (Ring.ord (Localization.AtPrime p.asIdeal) |
| 30 | (algebraMap R (Localization.AtPrime p.asIdeal) f)).toNat |
| 31 | |
| 32 | def restrictedOrder (p : PrimeSpectrum R) (f : R) : ℚ := |
| 33 | (Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal f)).toNat |
| 34 | |
| 35 | theorem weight_eq_zero (f : R) (hf : f ≠ 0) (p : PrimeSpectrum R) |
| 36 | (hp : p.asIdeal.height = 1) (hout : p ∉ primes R f hf) : weight R p f = 0 := by |
| 37 | have hfp : f ∉ p.asIdeal := fun h => hout ((mem_primes R f hf p).mpr ⟨hp, h⟩) |
| 38 | have hu : IsUnit (algebraMap R (Localization.AtPrime p.asIdeal) f) := |
| 39 | IsLocalization.map_units (Localization.AtPrime p.asIdeal) (⟨f, hfp⟩ : p.asIdeal.primeCompl) |
| 40 | simp only [weight, Ring.ord_of_isUnit hu, ENat.toNat_zero, Nat.cast_zero] |
| 41 | |
| 42 | variable [IsLocalRing R] |
| 43 | |
| 44 | theorem euler_eq_sum (hdim : (maximalIdeal R).height = 2) |
| 45 | (f g : R) (hf : f ≠ 0) (hg : g ≠ 0) |
| 46 | (havoid : ∀ (p : Ideal R) [p.IsPrime], p.height = 1 → f ∈ p → g ∉ p) : |
| 47 | Tor.Euler.euler R (.of R (QuotSMulTop f R)) (.of R (QuotSMulTop g R)) 1 = |
| 48 | ∑ p ∈ primes R f hf, weight R p f * restrictedOrder R p g := by |
| 49 | obtain ⟨S, hS, hout, he⟩ := Local.SurfaceReciprocity.exists_euler_sum R hdim f g hf hg havoid |
| 50 | apply he.trans |
| 51 | have hsub : S ⊆ primes R f hf := fun p hp => (mem_primes R f hf p).mpr (hS p hp) |
| 52 | apply Finset.sum_subset hsub |
| 53 | intro p hp hpS |
| 54 | have hz := hout p ((mem_primes R f hf p).mp hp).1 hpS |
| 55 | simp only [hz, ENat.toNat_zero, Nat.cast_zero, zero_mul] |
| 56 | |
| 57 | theorem order_sums_eq (hdim : (maximalIdeal R).height = 2) |
| 58 | (f g : R) (hf : f ≠ 0) (hg : g ≠ 0) |
| 59 | (havoid : ∀ (p : Ideal R) [p.IsPrime], p.height = 1 → f ∈ p → g ∉ p) : |
| 60 | (∑ p ∈ primes R f hf, weight R p f * restrictedOrder R p g) = |
| 61 | ∑ p ∈ primes R g hg, weight R p g * restrictedOrder R p f := by |
| 62 | rw [← euler_eq_sum R hdim f g hf hg havoid, |
| 63 | Tor.EulerTransport.comm R (.of R (QuotSMulTop f R)) (.of R (QuotSMulTop g R)) 1] |
| 64 | exact euler_eq_sum R hdim g f hg hf (fun p _ hp hgp hfp => havoid p hp hfp hgp) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CanonicalSurfaceReciprocity |