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