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.Flat.Extension |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.QuotientComplex |
| 3 | import Mathlib.RingTheory.Regular.Free |
| 4 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 5 | |
| 6 | /-! # Scalar Quotient -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ScalarQuotient |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The parameter quotient functor with values in modules over the |
| 13 | quotient ring. Its projectivity follows from the actual tensor-product |
| 14 | description of the quotient. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] (r : R) |
| 24 | |
| 25 | abbrev Ring := R ⧸ Ideal.span {r} |
| 26 | |
| 27 | def quotient : ModuleCat.{u} R ⥤ ModuleCat.{u} (Ring R r) where |
| 28 | obj M := .of (Ring R r) (QuotSMulTop r M) |
| 29 | map f := ModuleCat.ofHom ((QuotSMulTop.map r f.hom).extendScalarsOfSurjective |
| 30 | Ideal.Quotient.mk_surjective) |
| 31 | map_id M := by |
| 32 | apply ModuleCat.hom_ext |
| 33 | apply LinearMap.ext |
| 34 | intro x |
| 35 | exact LinearMap.congr_fun (QuotSMulTop.map_id r M) x |
| 36 | map_comp f g := by |
| 37 | apply ModuleCat.hom_ext |
| 38 | apply LinearMap.ext |
| 39 | intro x |
| 40 | exact LinearMap.congr_fun (QuotSMulTop.map_comp r g.hom f.hom) x |
| 41 | |
| 42 | instance : (quotient R r).Additive where |
| 43 | map_add := by |
| 44 | intro M N f g |
| 45 | apply ModuleCat.hom_ext |
| 46 | apply LinearMap.ext |
| 47 | intro x |
| 48 | exact LinearMap.congr_fun ((QuotSMulTop.map r).map_add f.hom g.hom) x |
| 49 | |
| 50 | def baseChangeEquiv (M : ModuleCat.{u} R) : |
| 51 | QuotSMulTop r M ≃ₗ[Ring R r] Ring R r ⊗[R] M := |
| 52 | (QuotSMulTop.equivQuotTensor r M).extendScalarsOfSurjective Ideal.Quotient.mk_surjective |
| 53 | |
| 54 | instance : (quotient R r).PreservesProjectiveObjects where |
| 55 | projective_obj {M} hM := by |
| 56 | let : Projective M := hM |
| 57 | let : Module.Projective R M := inferInstance |
| 58 | let : Module.Projective (Ring R r) (QuotSMulTop r M) := |
| 59 | Module.Projective.of_equiv (baseChangeEquiv R r M).symm |
| 60 | exact inferInstanceAs (Projective (ModuleCat.of (Ring R r) (QuotSMulTop r M))) |
| 61 | |
| 62 | def restrictionIso : quotient R r ⋙ ModuleCat.restrictScalars (Ideal.Quotient.mk (Ideal.span {r})) ≅ |
| 63 | QuotientComplex.quotient R r := |
| 64 | NatIso.ofComponents (fun M => (LinearEquiv.refl R (QuotSMulTop r M)).toModuleIso) |
| 65 | (by intro M N f; rfl) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ScalarQuotient |