Skip to content

Commit b8ccc79

Browse files
committed
feat(RingTheory/Ideal/Maps): add comap_finsetInf (leanprover-community#34139)
This PR adds an API lemma specializing `comap_iInf` to the case of finsets, which I've found helpful for working with primary decomposition. Co-authored-by: tb65536 <thomas.l.browning@gmail.com>
1 parent ae6ea95 commit b8ccc79

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Mathlib/Algebra/Module/Submodule/Map.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ theorem comap_iInf [RingHomSurjective σ₁₂] {ι : Sort*} (f : M →ₛₗ[σ
249249
(p : ι → Submodule R₂ M₂) : comap f (⨅ i, p i) = ⨅ i, comap f (p i) :=
250250
(gc_map_comap f).u_iInf
251251

252+
@[simp]
253+
theorem comap_finsetInf [RingHomSurjective σ₁₂] {ι : Type*} (f : M →ₛₗ[σ₁₂] M₂)
254+
(s : Finset ι) (p : ι → Submodule R₂ M₂) : comap f (s.inf p) = s.inf fun i ↦ comap f (p i) := by
255+
simp [Finset.inf_eq_iInf]
256+
252257
@[simp]
253258
theorem comap_zero : comap (0 : M →ₛₗ[σ₁₂] M₂) q = ⊤ :=
254259
ext <| by simp

Mathlib/RingTheory/Ideal/Maps.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ theorem map_iSup (K : ι → Ideal R) : (iSup K).map f = ⨆ i, (K i).map f :=
232232
theorem comap_iInf (K : ι → Ideal S) : (iInf K).comap f = ⨅ i, (K i).comap f :=
233233
(gc_map_comap f : GaloisConnection (map f) (comap f)).u_iInf
234234

235+
theorem comap_finsetInf {ι : Type*} (s : Finset ι) (K : ι → Ideal S) :
236+
(s.inf K).comap f = s.inf fun i ↦ (K i).comap f := by
237+
simp [Finset.inf_eq_iInf, comap_iInf]
238+
235239
theorem map_sSup (s : Set (Ideal R)) : (sSup s).map f = ⨆ I ∈ s, (I : Ideal R).map f :=
236240
(gc_map_comap f : GaloisConnection (map f) (comap f)).l_sSup
237241

0 commit comments

Comments
 (0)