Skip to content

Commit 4649517

Browse files
committed
Also add domRestrict_comp_codRestrict to RingHom and FirstOrder.Language.Hom
1 parent 11b6487 commit 4649517

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

Mathlib/Algebra/Module/Submodule/LinearMap.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ theorem subtype_comp_codRestrict (p : Submodule R₂ M₂) (h : ∀ b, f b ∈ p
175175
ext fun _ => rfl
176176

177177
@[simp]
178-
theorem domRestrict_comp_codRestrict (f : M →ₛₗ[σ₁₂] M) (g : M →ₛₗ[σ₂₃] M) (p : Submodule R₂ M₂)
178+
theorem domRestrict_comp_codRestrict (g : M →ₛₗ[σ₂₃] M) (f : M →ₛₗ[σ₁₂] M) (p : Submodule R₂ M₂)
179179
(h : ∀ c, f c ∈ p) :
180180
g.domRestrict p ∘ₛₗ f.codRestrict p h = g ∘ₛₗ f :=
181181
rfl

Mathlib/Algebra/Ring/Subsemiring/Basic.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,12 @@ theorem comp_restrict (f : R →+* S) (s' : σR) (s : σS) (h : ∀ x ∈ s', f
736736
(SubsemiringClass.subtype s).comp (f.restrict s' s h) = f.comp (SubsemiringClass.subtype s') :=
737737
rfl
738738

739+
@[simp]
740+
theorem domRestrict_comp_codRestrict (g : S →+* T) (f : R →+* S) (p : Subsemiring S)
741+
(h : ∀ c, f c ∈ p) :
742+
(g.domRestrict p).comp (f.codRestrict p h) = g.comp f :=
743+
rfl
744+
739745
/-- Restriction of a ring homomorphism to its range interpreted as a subsemiring.
740746
741747
This is the bundled version of `Set.rangeFactorization`. -/

Mathlib/ModelTheory/Substructures.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,12 @@ theorem subtype_comp_codRestrict (f : M →[L] N) (p : L.Substructure N) (h :
783783
p.subtype.toHom.comp (codRestrict p f h) = f :=
784784
ext fun _ => rfl
785785

786+
@[simp]
787+
theorem domRestrict_comp_codRestrict (g : N →[L] P) (f : M →[L] N) (p : L.Substructure N)
788+
(h : ∀ b, f b ∈ p) :
789+
(g.domRestrict p).comp (f.codRestrict p h) = g.comp f :=
790+
rfl
791+
786792
/-- The range of a first-order hom `f : M → N` is a submodule of `N`.
787793
See Note [range copy pattern]. -/
788794
def range (f : M →[L] N) : L.Substructure N :=

0 commit comments

Comments
 (0)