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.ScalarQuotient |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.QuasiIso |
| 3 | import Mathlib.RingTheory.Flat.TorsionFree |
| 4 | |
| 5 | /-! # Resolution -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.Resolution |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A projective resolution descends to the parameter quotient ring |
| 12 | when the parameter is regular both on the ring and on the resolved |
| 13 | module. The quasi-isomorphism is proved using the homology sequence. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ScalarQuotient |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] (r : R) |
| 24 | |
| 25 | theorem quotient_quasiIso {K L : ChainComplex (ModuleCat.{u} R) ℕ} (φ : K ⟶ L) |
| 26 | (hK : ∀ i, IsSMulRegular (K.X i) r) |
| 27 | (hL : ∀ i, IsSMulRegular (L.X i) r) [QuasiIso φ] : |
| 28 | QuasiIso (((ScalarQuotient.quotient R r).mapHomologicalComplex (ComplexShape.down ℕ)).map φ) := by |
| 29 | apply (HomologicalComplex.quasiIso_map_iff_of_preservesHomology _ |
| 30 | (ModuleCat.restrictScalars (Ideal.Quotient.mk (Ideal.span {r})))).mp |
| 31 | change QuasiIso |
| 32 | (((QuotientComplex.quotient R r).mapHomologicalComplex (ComplexShape.down ℕ)).map φ) |
| 33 | exact Parameter.QuasiIso.quasiIso R r φ hK hL |
| 34 | |
| 35 | theorem projective_regular (hregular : IsSMulRegular R r) (M : ModuleCat.{u} R) |
| 36 | [Projective M] : IsSMulRegular M r := by |
| 37 | let : Module.Projective R M := inferInstance |
| 38 | let : Module.Flat R M := inferInstance |
| 39 | apply Module.Flat.isSMulRegular_of_isRegular |
| 40 | exact (Commute.isRegular_iff (fun b => Commute.all r b)).mpr hregular |
| 41 | |
| 42 | theorem single_regular (M : ModuleCat.{u} R) (hM : IsSMulRegular M r) (i : ℕ) : |
| 43 | IsSMulRegular (((ChainComplex.single₀ (ModuleCat R)).obj M).X i) r := by |
| 44 | cases i with |
| 45 | | zero => exact hM |
| 46 | | succ i => |
| 47 | let : Subsingleton (((ChainComplex.single₀ (ModuleCat R)).obj M).X (i + 1)) := |
| 48 | ModuleCat.subsingleton_of_isZero |
| 49 | (HomologicalComplex.isZero_single_obj_X _ _ _ _ (by omega)) |
| 50 | exact fun _ _ _ => Subsingleton.elim _ _ |
| 51 | |
| 52 | def resolution (hregular : IsSMulRegular R r) (M : ModuleCat.{u} R) |
| 53 | (hM : IsSMulRegular M r) (P : ProjectiveResolution M) : |
| 54 | ProjectiveResolution ((ScalarQuotient.quotient R r).obj M) where |
| 55 | complex := ((ScalarQuotient.quotient R r).mapHomologicalComplex _).obj P.complex |
| 56 | projective n := by |
| 57 | change Projective ((ScalarQuotient.quotient R r).obj (P.complex.X n)) |
| 58 | exact Functor.PreservesProjectiveObjects.projective_obj (P.projective n) |
| 59 | π := ((ScalarQuotient.quotient R r).mapHomologicalComplex _).map P.π ≫ |
| 60 | (HomologicalComplex.singleMapHomologicalComplex _ _ _).hom.app _ |
| 61 | quasiIso := by |
| 62 | let : QuasiIso (((ScalarQuotient.quotient R r).mapHomologicalComplex _).map P.π) := |
| 63 | quotient_quasiIso R r P.π |
| 64 | (fun i => projective_regular R r hregular (P.complex.X i)) |
| 65 | (single_regular R r M hM) |
| 66 | infer_instance |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.Resolution |