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.Parameter.IsolatedEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.TorOrders |
| 3 | |
| 4 | /-! # Weighted Specialization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.WeightedSpecialization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The isolated parameter-fiber intersection multiplicity is a |
| 11 | finite sum of actual localized family Tor Euler characteristics, |
| 12 | weighted by the parameter orders on the corresponding prime quotients. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory IsLocalRing |
| 17 | open scoped Classical |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsLocalRing R] |
| 22 | (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] (r : R) |
| 23 | |
| 24 | def coefficient (p : PrimeSpectrum R) (d : ℕ) : ℚ := |
| 25 | ProjectionFormula.Tor.Euler.euler (Localization.AtPrime p.asIdeal) |
| 26 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj M) |
| 27 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj N) d |
| 28 | |
| 29 | theorem exists_sum (hr : r ≠ 0) (hrm : r ∈ maximalIdeal R) |
| 30 | (hM : IsSMulRegular M r) (hN : IsSMulRegular N r) |
| 31 | (d : ℕ) [HasProjectiveDimensionLE N d] |
| 32 | (hisolated : (Module.support R M ∩ Module.support R N) ∩ |
| 33 | Module.support R (R ⧸ Ideal.span {r}) ⊆ {closedPoint R}) : |
| 34 | ∃ T : Finset (PrimeSpectrum R), |
| 35 | (∀ p ∈ T, p ∈ Module.support R M ∩ Module.support R N ∧ |
| 36 | p ≠ closedPoint R ∧ r ∉ p.asIdeal) ∧ |
| 37 | (∀ p, p ≠ closedPoint R → p ∉ T → coefficient R M N p d = 0) ∧ |
| 38 | ProjectionFormula.Tor.Euler.euler (ScalarQuotient.Ring R r) |
| 39 | ((ScalarQuotient.quotient R r).obj M) |
| 40 | ((ScalarQuotient.quotient R r).obj N) d = |
| 41 | ∑ p ∈ T, coefficient R M N p d * |
| 42 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℚ) := by |
| 43 | choose U hU hout he using |
| 44 | fun i => TorOrders.exists_sum R M N r hisolated hr hrm i |
| 45 | let T := (Finset.range (d + 1)).biUnion U |
| 46 | have hUT (i : ℕ) (hi : i ∈ Finset.range (d + 1)) : U i ⊆ T := |
| 47 | fun _ hp => Finset.mem_biUnion.mpr ⟨i, hi, hp⟩ |
| 48 | have hT (p : PrimeSpectrum R) (hp : p ∈ T) : |
| 49 | p ∈ Module.support R M ∩ Module.support R N ∧ p ≠ closedPoint R ∧ r ∉ p.asIdeal := by |
| 50 | obtain ⟨i, _, hpi⟩ := Finset.mem_biUnion.mp hp |
| 51 | exact hU i p hpi |
| 52 | refine ⟨T, hT, ?_, ?_⟩ |
| 53 | · intro p hpn hpT |
| 54 | rw [coefficient, LocalizedTorEuler.euler] |
| 55 | apply Finset.sum_eq_zero |
| 56 | intro i hi |
| 57 | rw [hout i p hpn (fun hp => hpT (hUT i hi hp)), ENat.toNat_zero, Nat.cast_zero, mul_zero] |
| 58 | · have hext (i : ℕ) (hi : i ∈ Finset.range (d + 1)) : |
| 59 | ProjectionFormula.Tor.Euler.euler R (((Tor (ModuleCat R) i).obj M).obj N) |
| 60 | (.of R (R ⧸ Ideal.span {r})) 1 = |
| 61 | ∑ p ∈ T, ((FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) |
| 62 | (((Tor (ModuleCat R) i).obj M).obj N)).toNat : ℚ) * |
| 63 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℚ) := by |
| 64 | rw [he i] |
| 65 | apply Finset.sum_subset (hUT i hi) |
| 66 | intro p hpT hpi |
| 67 | rw [hout i p (hT p hpT).2.1 hpi, ENat.toNat_zero, Nat.cast_zero, zero_mul] |
| 68 | rw [IsolatedEuler.euler R r M N (IsSMulRegular.of_ne_zero hr) |
| 69 | hM hN d (closedPoint R) hisolated] |
| 70 | calc |
| 71 | _ = ∑ i ∈ Finset.range (d + 1), ∑ p ∈ T, |
| 72 | (-1 : ℚ) ^ i * |
| 73 | (((FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) |
| 74 | (((Tor (ModuleCat R) i).obj M).obj N)).toNat : ℚ) * |
| 75 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℚ)) := by |
| 76 | apply Finset.sum_congr rfl |
| 77 | intro i hi |
| 78 | rw [hext i hi, Finset.mul_sum] |
| 79 | _ = ∑ p ∈ T, (∑ i ∈ Finset.range (d + 1), |
| 80 | (-1 : ℚ) ^ i * |
| 81 | ((FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) |
| 82 | (((Tor (ModuleCat R) i).obj M).obj N)).toNat : ℚ)) * |
| 83 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℚ) := by |
| 84 | rw [Finset.sum_comm] |
| 85 | apply Finset.sum_congr rfl |
| 86 | intro p _ |
| 87 | rw [Finset.sum_mul] |
| 88 | apply Finset.sum_congr rfl |
| 89 | intro i _ |
| 90 | exact (mul_assoc _ _ _).symm |
| 91 | _ = _ := by |
| 92 | apply Finset.sum_congr rfl |
| 93 | intro p _ |
| 94 | rw [coefficient, LocalizedTorEuler.euler] |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.WeightedSpecialization |