Skip to content

Commit

Permalink
feat(category_theory/.../additive_functor): additive functors preserv…
Browse files Browse the repository at this point in the history
…e zero objects (#7463)





Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
  • Loading branch information
semorrison and semorrison committed May 5, 2021
1 parent 25387b6 commit 7794969
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/category_theory/preadditive/additive_functor.lean
Expand Up @@ -83,6 +83,16 @@ lemma map_sum {X Y : C} {α : Type*} (f : α → (X ⟶ Y)) (s : finset α) :
F.map (∑ a in s, f a) = ∑ a in s, F.map (f a) :=
(F.map_add_hom : (X ⟶ Y) →+ _).map_sum f s

open category_theory.limits
local attribute [instance] has_zero_object.has_zero

/-- An additive functor takes the zero object to the zero object (up to isomorphism). -/
@[simps]
def map_zero_object [has_zero_object C] [has_zero_object D] : F.obj 00 :=
{ hom := 0,
inv := 0,
hom_inv_id' := by { rw ←F.map_id, simp, } }

end

section induced_category
Expand Down

0 comments on commit 7794969

Please sign in to comment.