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.Tor |
| 2 | import Mathlib.RingTheory.OrderOfVanishing.Basic |
| 3 | |
| 4 | /-! # Order -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.Order |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Intersection against a regular principal quotient has the actual |
| 11 | order of vanishing on an integral closed local subscheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem quotient_length (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 19 | (hA : Function.Surjective (algebraMap R A)) (r : R) : |
| 20 | Module.length R (QuotSMulTop r A) = Ring.ord A (algebraMap R A r) := by |
| 21 | rw [(QuotSMulTop.equivTensorQuot r A).length_eq, |
| 22 | ← ((Ideal.qoutMapEquivTensorQout (R := R) (I := Ideal.span {r}) A).restrictScalars R).length_eq, |
| 23 | Module.length_eq_of_surjective (M := A ⧸ (Ideal.span {r}).map (algebraMap R A)) hA, |
| 24 | Ideal.map_span, Set.image_singleton] |
| 25 | rfl |
| 26 | |
| 27 | theorem euler_eq_order (R A : Type u) [CommRing R] [CommRing A] [IsDomain A] [Algebra R A] |
| 28 | (hA : Function.Surjective (algebraMap R A)) (r : R) (hr : IsSMulRegular R r) |
| 29 | (hra : algebraMap R A r ≠ 0) (d : ℕ) : |
| 30 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 31 | (Module.length R (((Tor (ModuleCat R) i).obj (ModuleCat.of R A)).obj |
| 32 | (ModuleCat.of R (QuotSMulTop r R)))).toNat) = |
| 33 | (Ring.ord A (algebraMap R A r)).toNat := by |
| 34 | have hm : IsSMulRegular (ModuleCat.of R A) r := by |
| 35 | intro x y h |
| 36 | apply mul_left_cancel₀ hra |
| 37 | change r • (x : A) = r • (y : A) at h |
| 38 | simpa only [Algebra.smul_def] using h |
| 39 | rw [Principal.Tor.euler_length R r hr (.of R A) hm, quotient_length R A hA r] |
| 40 | |
| 41 | theorem euler_eq_order_of_equiv (R A : Type u) [CommRing R] [CommRing A] [IsDomain A] |
| 42 | [Algebra R A] (hA : Function.Surjective (algebraMap R A)) (r : R) |
| 43 | (hr : IsSMulRegular R r) (hra : algebraMap R A r ≠ 0) (N : ModuleCat.{u} R) |
| 44 | (e : N ≃ₗ[R] QuotSMulTop r R) (d : ℕ) : |
| 45 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 46 | (Module.length R (((Tor (ModuleCat R) i).obj (ModuleCat.of R A)).obj N)).toNat) = |
| 47 | (Ring.ord A (algebraMap R A r)).toNat := by |
| 48 | have hlen (i : ℕ) : |
| 49 | Module.length R (((Tor (ModuleCat R) i).obj (.of R A)).obj N) = |
| 50 | Module.length R (((Tor (ModuleCat R) i).obj (.of R A)).obj (.of R (QuotSMulTop r R))) := |
| 51 | ((((Tor (ModuleCat R) i).obj (.of R A)).mapIso e.toModuleIso).toLinearEquiv).length_eq |
| 52 | simp_rw [hlen] |
| 53 | exact euler_eq_order R A hA r hr hra d |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.Order |