Skip to content

Commit

Permalink
chore(category_theory/images): fix some minor problems (#2182)
Browse files Browse the repository at this point in the history
* chore(category_theory/images): fix some minor problems

* minor

* oops, misplaced comment

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
semorrison and mergify[bot] committed Mar 19, 2020
1 parent 4bc32ae commit a20f378
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/category_theory/limits/shapes/images.lean
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,12 @@ def image : C := (image.mono_factorisation f).I
def image.ι : image f ⟶ Y := (image.mono_factorisation f).m
@[simp] lemma image.as_ι : (image.mono_factorisation f).m = image.ι f := rfl
instance : mono (image.ι f) := (image.mono_factorisation f).m_mono
/-- The 'corestriction' morphism from the source to the image. -/
def image.c : X ⟶ image f := (image.mono_factorisation f).e
@[simp] lemma image.as_c : (image.mono_factorisation f).e = image.c f := rfl
@[simp] lemma image.c_ι : image.c f ≫ image.ι f = f := by erw (image.mono_factorisation f).fac

/-- The map from the source to the image of a morphism. -/
def factor_thru_image : X ⟶ image f := (image.mono_factorisation f).e
/-- Rewrite in terms of the `factor_thru_image` interface. -/
@[simp]
lemma as_factor_thru_image : (image.mono_factorisation f).e = factor_thru_image f := rfl
@[simp, reassoc]
lemma image.fac : factor_thru_image f ≫ image.ι f = f := (image.mono_factorisation f).fac'

Expand Down

0 comments on commit a20f378

Please sign in to comment.