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.NormalSurfaceOrderSum |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.EulerTransport |
| 3 | |
| 4 | /-! # Surface Reciprocity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.SurfaceReciprocity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Local reciprocity on any Noetherian local surface domain, including |
| 11 | nonnormal surfaces. Native Tor symmetry retains the embedded-point |
| 12 | correction terms and removes any regularity assumption on the pair. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory IsLocalRing |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsLocalRing R] |
| 21 | |
| 22 | theorem exists_euler_sum (hdim : (maximalIdeal R).height = 2) |
| 23 | (f g : R) (hf : f ≠ 0) (hg : g ≠ 0) |
| 24 | (havoid : ∀ (p : Ideal R) [p.IsPrime], p.height = 1 → f ∈ p → g ∉ p) : |
| 25 | ∃ S : Finset (PrimeSpectrum R), |
| 26 | (∀ p ∈ S, p.asIdeal.height = 1 ∧ f ∈ p.asIdeal) ∧ |
| 27 | (∀ p : PrimeSpectrum R, p.asIdeal.height = 1 → p ∉ S → |
| 28 | Ring.ord (Localization.AtPrime p.asIdeal) |
| 29 | (algebraMap R (Localization.AtPrime p.asIdeal) f) = 0) ∧ |
| 30 | Tor.Euler.euler R (.of R (QuotSMulTop f R)) (.of R (QuotSMulTop g R)) 1 = |
| 31 | ∑ p ∈ S, ((Ring.ord (Localization.AtPrime p.asIdeal) |
| 32 | (algebraMap R (Localization.AtPrime p.asIdeal) f)).toNat : ℚ) * |
| 33 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal g)).toNat : ℚ) := by |
| 34 | let N := ModuleCat.of R (QuotSMulTop g R) |
| 35 | let : HasProjectiveDimensionLE N 1 := |
| 36 | Regular.LocalTwoBound.quotient_bound R (.of R R) g (IsSMulRegular.of_ne_zero hg) 0 |
| 37 | have hisolated : Module.support R (QuotSMulTop f R) ∩ Module.support R N ⊆ {closedPoint R} := by |
| 38 | intro p hp |
| 39 | have hfp : f ∈ p.asIdeal := by |
| 40 | have h := hp.1 |
| 41 | rw [Module.support_quotSMulTop] at h |
| 42 | exact h.2 (Set.mem_singleton f) |
| 43 | have hgp : g ∈ p.asIdeal := by |
| 44 | have h := hp.2 |
| 45 | change p ∈ Module.support R (QuotSMulTop g R) at h |
| 46 | rw [Module.support_quotSMulTop] at h |
| 47 | exact h.2 (Set.mem_singleton g) |
| 48 | have hp₀ : p.asIdeal ≠ ⊥ := by |
| 49 | intro hz |
| 50 | exact hf (by simpa only [hz, Submodule.mem_bot] using hfp) |
| 51 | rcases SurfacePrimeEuler.prime_height_one_or_maximal R hdim p hp₀ with hh | hh |
| 52 | · exact (havoid p.asIdeal hh hfp hgp).elim |
| 53 | · exact Set.mem_singleton_iff.mpr (PrimeSpectrum.ext hh) |
| 54 | have hN : ∀ x : N, ∃ a : R, a ≠ 0 ∧ a • x = 0 := by |
| 55 | intro x |
| 56 | refine ⟨g, hg, ?_⟩ |
| 57 | let e := NormalSurfaceOrderSum.principalQuotientEquiv R g |
| 58 | apply e.injective |
| 59 | rw [map_smul, map_zero] |
| 60 | exact PrimeQuotientLocalization.annihilated R (Ideal.span {g}) g |
| 61 | (Ideal.subset_span (Set.mem_singleton g)) (e x) |
| 62 | obtain ⟨S, hS, hout, he⟩ := |
| 63 | WeightedDivisorEuler.exists_order_sum R hdim f hf N 1 hN hisolated |
| 64 | refine ⟨S, hS, hout, he.trans ?_⟩ |
| 65 | apply Finset.sum_congr rfl |
| 66 | intro p hp |
| 67 | congr 1 |
| 68 | exact Principal.Order.euler_eq_order R (R ⧸ p.asIdeal) |
| 69 | Ideal.Quotient.mk_surjective g (IsSMulRegular.of_ne_zero hg) |
| 70 | (Ideal.Quotient.eq_zero_iff_mem.not.mpr (havoid p.asIdeal (hS p hp).1 (hS p hp).2)) 1 |
| 71 | |
| 72 | theorem order_sums_eq (hdim : (maximalIdeal R).height = 2) |
| 73 | (f g : R) (hf : f ≠ 0) (hg : g ≠ 0) |
| 74 | (havoid : ∀ (p : Ideal R) [p.IsPrime], p.height = 1 → f ∈ p → g ∉ p) : |
| 75 | ∃ S T : Finset (PrimeSpectrum R), |
| 76 | (∀ p ∈ S, p.asIdeal.height = 1 ∧ f ∈ p.asIdeal) ∧ |
| 77 | (∀ p ∈ T, p.asIdeal.height = 1 ∧ g ∈ p.asIdeal) ∧ |
| 78 | (∀ p : PrimeSpectrum R, p.asIdeal.height = 1 → p ∉ S → |
| 79 | Ring.ord (Localization.AtPrime p.asIdeal) |
| 80 | (algebraMap R (Localization.AtPrime p.asIdeal) f) = 0) ∧ |
| 81 | (∀ p : PrimeSpectrum R, p.asIdeal.height = 1 → p ∉ T → |
| 82 | Ring.ord (Localization.AtPrime p.asIdeal) |
| 83 | (algebraMap R (Localization.AtPrime p.asIdeal) g) = 0) ∧ |
| 84 | (∑ p ∈ S, ((Ring.ord (Localization.AtPrime p.asIdeal) |
| 85 | (algebraMap R (Localization.AtPrime p.asIdeal) f)).toNat : ℚ) * |
| 86 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal g)).toNat : ℚ)) = |
| 87 | ∑ p ∈ T, ((Ring.ord (Localization.AtPrime p.asIdeal) |
| 88 | (algebraMap R (Localization.AtPrime p.asIdeal) g)).toNat : ℚ) * |
| 89 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal f)).toNat : ℚ) := by |
| 90 | obtain ⟨S, hS, houtS, heS⟩ := exists_euler_sum R hdim f g hf hg havoid |
| 91 | obtain ⟨T, hT, houtT, heT⟩ := exists_euler_sum R hdim g f hg hf |
| 92 | (fun p _ hp hgp hfp => havoid p hp hfp hgp) |
| 93 | refine ⟨S, T, hS, hT, houtS, houtT, heS.symm.trans ?_⟩ |
| 94 | rw [Tor.EulerTransport.comm R (.of R (QuotSMulTop f R)) (.of R (QuotSMulTop g R)) 1] |
| 95 | exact heT |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.SurfaceReciprocity |