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.Affine.SupportStalk |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilinearLength |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportTor |
| 4 | |
| 5 | /-! # Support Tor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportTor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Native geometric Tor lengths on an affine scheme equal the |
| 12 | actual localized lengths of the Tor modules of its defining prime |
| 13 | quotients. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk |
| 21 | |
| 22 | variable (R : Type) [CommRing R] |
| 23 | |
| 24 | theorem length (q s p : PrimeSpectrum R) (hqp : q.asIdeal ≤ p.asIdeal) (hsp : s.asIdeal ≤ p.asIdeal) |
| 25 | (n : ℕ) : |
| 26 | CycleClass.Thom.IntersectionGeometry.localTorLength (Spec (.of R)) (SupportStalk.support R q) (SupportStalk.support R s) p (SupportStalk.mem R q p hqp) (SupportStalk.mem R s p hsp) n = |
| 27 | FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) |
| 28 | (((Tor (ModuleCat R) n).obj (.of R (R ⧸ q.asIdeal))).obj (.of R (R ⧸ s.asIdeal))) := by |
| 29 | let S := (Spec (.of R)).presheaf.stalk p |
| 30 | let : Algebra R S := (StructureSheaf.toStalk R p).hom.toAlgebra |
| 31 | let : IsLocalization p.asIdeal.primeCompl S := by |
| 32 | change IsLocalization p.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk p) |
| 33 | infer_instance |
| 34 | let : Module.Flat R S := IsLocalization.flat S p.asIdeal.primeCompl |
| 35 | have hnative := Open.SupportTor.length_iso S |
| 36 | (SupportStalk.moduleEquiv R q p hqp).toModuleIso (SupportStalk.moduleEquiv R s p hsp).toModuleIso n |
| 37 | have hquot := (QuotientTorBaseChange.torIso R S q.asIdeal s.asIdeal n).toLinearEquiv.length_eq |
| 38 | have hbase := (ProjectionFormula.Flat.Extension.torBaseChangeIso R S (.of R (R ⧸ q.asIdeal)) |
| 39 | (.of R (R ⧸ s.asIdeal)) n).toLinearEquiv.length_eq |
| 40 | have hmodel := SemilinearLength.baseChange_length R (Localization.AtPrime p.asIdeal) S |
| 41 | (StructureSheaf.stalkIso R p) |
| 42 | (((Tor (ModuleCat R) n).obj (.of R (R ⧸ q.asIdeal))).obj (.of R (R ⧸ s.asIdeal))) |
| 43 | exact hnative.trans (hquot.trans (hbase.trans hmodel.symm)) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportTor |