|
| 1 | +/- |
| 2 | +Copyright (c) 2026 Nailin Guan. All rights reserved. |
| 3 | +Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | +Authors: Nailin Guan |
| 5 | +-/ |
| 6 | + |
| 7 | +module |
| 8 | + |
| 9 | +public import Mathlib.Algebra.Category.Grp.Zero |
| 10 | +public import Mathlib.Algebra.Category.ModuleCat.Ext.HasExt |
| 11 | +public import Mathlib.Algebra.Homology.DerivedCategory.Ext.Linear |
| 12 | +public import Mathlib.RingTheory.Ideal.Maps |
| 13 | + |
| 14 | +/-! |
| 15 | +
|
| 16 | +# Some basic lemmas for manipulating `Ext` over `ModuleCat` |
| 17 | +
|
| 18 | +-/ |
| 19 | + |
| 20 | +@[expose] public section |
| 21 | + |
| 22 | +universe v u |
| 23 | + |
| 24 | +open LinearMap CategoryTheory Limits |
| 25 | + |
| 26 | +variable {R : Type u} [CommRing R] |
| 27 | + |
| 28 | +variable {M N : Type v} [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 29 | + |
| 30 | +namespace CategoryTheory.Abelian |
| 31 | + |
| 32 | +variable [Small.{v} R] {M N : ModuleCat.{v} R} |
| 33 | + |
| 34 | +/-- If `r • N = 0`, then `r • 𝟙 M` induces the zero endomorphism on `Ext M N n`. -/ |
| 35 | +lemma Ext.postcomp_smul_id_eq_zero_of_mem_annihilator {r : R} (mem_ann : r ∈ Module.annihilator R N) |
| 36 | + (n : ℕ) : AddCommGrpCat.ofHom ((Ext.mk₀ (r • 𝟙 M)).postcomp N (add_zero n)) = 0 := by |
| 37 | + ext h |
| 38 | + have : r • 𝟙 N = 0 := by |
| 39 | + simp [← ModuleCat.lsmul_eq_smul_id, Module.mem_annihilator_iff_lsmul_eq_zero.mp mem_ann] |
| 40 | + have smul_eq : r • h = (Ext.mk₀ (r • 𝟙 N)).comp h (zero_add n) := by simp [Ext.mk₀_smul] |
| 41 | + simp [Ext.mk₀_smul, this, smul_eq] |
| 42 | + |
| 43 | +/-- `r • 𝟙 M` induces a monomorphism in `Ext M N n` if and only if scalar multiplication by `r` |
| 44 | +is faithful on `Ext M N n`. -/ |
| 45 | +lemma Ext.postcomp_smul_id_mono_iff (r : R) (i : ℕ) : |
| 46 | + Mono (AddCommGrpCat.ofHom ((Ext.mk₀ (r • 𝟙 M)).postcomp N (add_zero i))) ↔ |
| 47 | + IsSMulRegular (Ext N M i) r := by |
| 48 | + simp only [IsSMulRegular, AddCommGrpCat.mono_iff_injective] |
| 49 | + congr! |
| 50 | + ext |
| 51 | + simp [Ext.mk₀_smul] |
| 52 | + |
| 53 | +end CategoryTheory.Abelian |
0 commit comments