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.Regular.SequenceModule |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.ParameterTorReduction |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.PrimeEuler |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.EulerTruncation |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.EulerTransport |
| 6 | |
| 7 | /-! # Sequence Reduction -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceReduction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Removing the first element of a native regular sequence gives |
| 14 | the actual tail quotient over the parameter ring, preserving native |
| 15 | Tor Euler pairings whenever that parameter is regular on the other input. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open _root_.CategoryTheory |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | open RingTheory.Sequence |
| 25 | |
| 26 | variable (R : Type u) [CommRing R] (r : R) |
| 27 | |
| 28 | def quotientEquiv (I : Ideal R) : |
| 29 | (Parameter.ScalarQuotient.quotient R r).obj (.of R (R ⧸ I)) ≃ₗ[Parameter.ScalarQuotient.Ring R r] |
| 30 | Parameter.ScalarQuotient.Ring R r ⧸ I.map (Ideal.Quotient.mk (Ideal.span {r})) := |
| 31 | (Parameter.ScalarQuotient.baseChangeEquiv R r (.of R (R ⧸ I))).trans |
| 32 | (Ideal.qoutMapEquivTensorQout (R := R) (I := I) (Parameter.ScalarQuotient.Ring R r)).symm |
| 33 | |
| 34 | def tailEquiv (rs : List R) : |
| 35 | (Parameter.ScalarQuotient.quotient R r).obj (SequenceModule.quotient R (r :: rs)) ≃ₗ[ |
| 36 | Parameter.ScalarQuotient.Ring R r] |
| 37 | SequenceModule.quotient (Parameter.ScalarQuotient.Ring R r) |
| 38 | (rs.map (Ideal.Quotient.mk (Ideal.span {r}))) := by |
| 39 | have hI : (Ideal.ofList (r :: rs)).map (Ideal.Quotient.mk (Ideal.span {r})) = |
| 40 | Ideal.ofList (rs.map (Ideal.Quotient.mk (Ideal.span {r}))) := by |
| 41 | have hz : Ideal.Quotient.mk (Ideal.span {r}) r = 0 := |
| 42 | (Ideal.Quotient.eq_zero_iff_mem).mpr (Ideal.subset_span (Set.mem_singleton r)) |
| 43 | rw [Ideal.map_ofList, List.map_cons, Ideal.ofList_cons, hz] |
| 44 | simp |
| 45 | exact (quotientEquiv R r (Ideal.ofList (r :: rs))).trans (Submodule.quotEquivOfEq _ _ hI) |
| 46 | |
| 47 | theorem tail_regular (rs : List R) (hreg : IsRegular R (r :: rs)) : |
| 48 | IsRegular (Parameter.ScalarQuotient.Ring R r) (rs.map (Ideal.Quotient.mk (Ideal.span {r}))) := by |
| 49 | let e : QuotSMulTop r R ≃ₗ[Parameter.ScalarQuotient.Ring R r] Parameter.ScalarQuotient.Ring R r := |
| 50 | (Parameter.PrimeEuler.quotientEquiv R r).symm.extendScalarsOfSurjective |
| 51 | (show Function.Surjective (algebraMap R (Parameter.ScalarQuotient.Ring R r)) from Ideal.Quotient.mk_surjective) |
| 52 | exact (e.isRegular_congr _).mp ((isRegular_cons_iff' R r rs).mp hreg).2 |
| 53 | |
| 54 | theorem localRing [IsLocalRing R] (rs : List R) (hreg : IsRegular R (r :: rs)) : |
| 55 | IsLocalRing (Parameter.ScalarQuotient.Ring R r) := by |
| 56 | let : Nontrivial (Parameter.ScalarQuotient.Ring R r) := (tail_regular R r rs hreg).nontrivial |
| 57 | exact IsLocalRing.of_surjective' (Ideal.Quotient.mk (Ideal.span {r})) Ideal.Quotient.mk_surjective |
| 58 | |
| 59 | theorem euler (rs : List R) (hreg : IsRegular R (r :: rs)) |
| 60 | (N : ModuleCat.{u} R) (hN : IsSMulRegular N r) (d : ℕ) : |
| 61 | Tor.Euler.euler (Parameter.ScalarQuotient.Ring R r) |
| 62 | (SequenceModule.quotient (Parameter.ScalarQuotient.Ring R r) |
| 63 | (rs.map (Ideal.Quotient.mk (Ideal.span {r})))) |
| 64 | ((Parameter.ScalarQuotient.quotient R r).obj N) d = |
| 65 | Tor.Euler.euler R (SequenceModule.quotient R (r :: rs)) N d := by |
| 66 | have h := ParameterTorReduction.euler R r ((isRegular_cons_iff R r rs).mp hreg).1 |
| 67 | (SequenceModule.quotient R (r :: rs)) N |
| 68 | (SequenceModule.killed R (r :: rs) r (List.mem_cons_self)) hN d |
| 69 | exact (PrimeFiltrationEuler.euler_iso_left (Parameter.ScalarQuotient.Ring R r) |
| 70 | (tailEquiv R r rs).toModuleIso ((Parameter.ScalarQuotient.quotient R r).obj N) d).symm.trans h |
| 71 | |
| 72 | theorem euler_length [IsNoetherianRing R] [IsLocalRing R] |
| 73 | (rs : List R) (hreg : IsRegular R (r :: rs)) |
| 74 | (N : ModuleCat.{u} R) (hN : IsSMulRegular N r) : |
| 75 | Tor.Euler.euler R N (SequenceModule.quotient R (r :: rs)) (r :: rs).length = |
| 76 | Tor.Euler.euler (Parameter.ScalarQuotient.Ring R r) |
| 77 | ((Parameter.ScalarQuotient.quotient R r).obj N) |
| 78 | (SequenceModule.quotient (Parameter.ScalarQuotient.Ring R r) |
| 79 | (rs.map (Ideal.Quotient.mk (Ideal.span {r})))) rs.length := by |
| 80 | let := localRing R r rs hreg |
| 81 | let A := SequenceModule.quotient (Parameter.ScalarQuotient.Ring R r) |
| 82 | (rs.map (Ideal.Quotient.mk (Ideal.span {r}))) |
| 83 | let : HasProjectiveDimensionLE A rs.length := by |
| 84 | simpa only [List.length_map] using SequenceModule.projectiveDimension |
| 85 | (Parameter.ScalarQuotient.Ring R r) (rs.map (Ideal.Quotient.mk (Ideal.span {r}))) |
| 86 | (tail_regular R r rs hreg) |
| 87 | exact (Tor.EulerTransport.comm R N (SequenceModule.quotient R (r :: rs)) (r :: rs).length).trans |
| 88 | ((euler R r rs hreg N hN (r :: rs).length).symm.trans |
| 89 | ((Tor.EulerTransport.comm (Parameter.ScalarQuotient.Ring R r) A |
| 90 | ((Parameter.ScalarQuotient.quotient R r).obj N) (r :: rs).length).trans |
| 91 | (Tor.EulerTruncation.stable (Parameter.ScalarQuotient.Ring R r) |
| 92 | ((Parameter.ScalarQuotient.quotient R r).obj N) A rs.length (r :: rs).length (by simp)))) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceReduction |