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.NumberTheory.PadicHodge.PeriodInvariants.MappingConeQuasiIso |
| 2 | import Mathlib.Algebra.Homology.HomotopyCategory.ShortExact |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | import Mathlib.RingTheory.Regular.RegularSequence |
| 5 | |
| 6 | /-! # Regular Element Koszul -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RegularElementKoszul |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Adjoining a regular element to a module resolution by its actual scalar |
| 13 | multiplication mapping cone. -/ |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | open scoped Pointwise |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {R : Type u} [CommRing R] |
| 24 | |
| 25 | abbrev single := HomologicalComplex.single (ModuleCat.{u} R) (.up ℤ) 0 |
| 26 | |
| 27 | def scalar (K : CochainComplex (ModuleCat.{u} R) ℤ) (r : R) : K ⟶ K where |
| 28 | f n := ModuleCat.ofHom (r • LinearMap.id) |
| 29 | comm' i j _ := by |
| 30 | ext x |
| 31 | exact (K.d i j).hom.map_smul r x |
| 32 | |
| 33 | theorem scalar_naturality {K L : CochainComplex (ModuleCat.{u} R) ℤ} |
| 34 | (f : K ⟶ L) (r : R) : scalar K r ≫ f = f ≫ scalar L r := by |
| 35 | ext n x |
| 36 | exact (f.f n).hom.map_smul r x |
| 37 | |
| 38 | theorem scalar_single (M : ModuleCat.{u} R) (r : R) : |
| 39 | scalar (RegularElementKoszul.single.obj M) r = RegularElementKoszul.single.map (ModuleCat.ofHom (r • (LinearMap.id : M →ₗ[R] M))) := by |
| 40 | apply HomologicalComplex.Hom.ext |
| 41 | funext n |
| 42 | by_cases hn : n = 0 |
| 43 | · subst n |
| 44 | rfl |
| 45 | · exact (HomologicalComplex.isZero_single_obj_X (.up ℤ) 0 M n hn).eq_of_src _ _ |
| 46 | |
| 47 | def sequence (M : ModuleCat.{u} R) (r : R) : ShortComplex (ModuleCat.{u} R) := |
| 48 | ModuleCat.shortComplexOfCompEqZero (r • (LinearMap.id : M →ₗ[R] M)) |
| 49 | (Submodule.mkQ (r • (⊤ : Submodule R M))) (by |
| 50 | ext x |
| 51 | apply (Submodule.Quotient.mk_eq_zero _).mpr |
| 52 | exact Submodule.smul_mem_pointwise_smul x r ⊤ trivial) |
| 53 | |
| 54 | theorem sequence_shortExact (M : ModuleCat.{u} R) (r : R) (hr : IsSMulRegular M r) : |
| 55 | (sequence M r).ShortExact := by |
| 56 | apply ModuleCat.shortComplex_shortExact |
| 57 | · intro x |
| 58 | change Submodule.Quotient.mk x = (0 : QuotSMulTop r M) ↔ |
| 59 | ∃ y : M, r • y = x |
| 60 | rw [Submodule.Quotient.mk_eq_zero, Submodule.mem_smul_pointwise_iff_exists] |
| 61 | simp only [Submodule.mem_top, true_and] |
| 62 | rfl |
| 63 | · exact hr |
| 64 | · exact Submodule.mkQ_surjective _ |
| 65 | |
| 66 | def quotientAugmentation (M : ModuleCat.{u} R) (r : R) : |
| 67 | CochainComplex.mappingCone (scalar (RegularElementKoszul.single.obj M) r) ⟶ |
| 68 | RegularElementKoszul.single.obj (ModuleCat.of R (QuotSMulTop r M)) := |
| 69 | eqToHom (by rw [scalar_single]; rfl) ≫ |
| 70 | CochainComplex.mappingCone.descShortComplex ((sequence M r).map RegularElementKoszul.single) |
| 71 | |
| 72 | theorem quotientAugmentation_quasiIso (M : ModuleCat.{u} R) (r : R) |
| 73 | (hr : IsSMulRegular M r) : QuasiIso (quotientAugmentation M r) := by |
| 74 | have hq : QuasiIso (CochainComplex.mappingCone.descShortComplex ((sequence M r).map RegularElementKoszul.single)) := |
| 75 | CochainComplex.mappingCone.quasiIso_descShortComplex |
| 76 | ((sequence_shortExact M r hr).map_of_exact RegularElementKoszul.single) |
| 77 | unfold quotientAugmentation |
| 78 | exact quasiIso_comp _ _ |
| 79 | |
| 80 | def stepAugmentation {K : CochainComplex (ModuleCat.{u} R) ℤ} (M : ModuleCat.{u} R) |
| 81 | (ε : K ⟶ RegularElementKoszul.single.obj M) (r : R) : |
| 82 | CochainComplex.mappingCone (scalar K r) ⟶ |
| 83 | RegularElementKoszul.single.obj (ModuleCat.of R (QuotSMulTop r M)) := |
| 84 | CochainComplex.mappingCone.map _ _ ε ε (scalar_naturality ε r) ≫ |
| 85 | quotientAugmentation M r |
| 86 | |
| 87 | theorem stepAugmentation_quasiIso {K : CochainComplex (ModuleCat.{u} R) ℤ} |
| 88 | (M : ModuleCat.{u} R) (ε : K ⟶ RegularElementKoszul.single.obj M) (hε : QuasiIso ε) |
| 89 | (r : R) (hr : IsSMulRegular M r) : QuasiIso (stepAugmentation M ε r) := by |
| 90 | have := PeriodInvariants.MappingConeQuasiIso.quasiIso_map (scalar K r) (scalar (RegularElementKoszul.single.obj M) r) |
| 91 | ε ε (scalar_naturality ε r) hε hε |
| 92 | have := quotientAugmentation_quasiIso M r hr |
| 93 | exact quasiIso_comp _ _ |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RegularElementKoszul |