-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(category_theory): full subcategories, preorders, Aut, and End
- Loading branch information
1 parent
36dd78e
commit aeea18c
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- Copyright (c) 2017 Scott Morrison. All rights reserved. | ||
-- Released under Apache 2.0 license as described in the file LICENSE. | ||
-- Authors: Scott Morrison | ||
import category_theory.embedding | ||
|
||
namespace category_theory | ||
|
||
universes u v | ||
|
||
section | ||
variables {C : Type u} [𝒞 : category.{u v} C] | ||
include 𝒞 | ||
|
||
instance full_subcategory (Z : C → Prop) : category.{u v} {X : C // Z X} := | ||
{ hom := λ X Y, X.1 ⟶ Y.1, | ||
id := λ X, 𝟙 X.1, | ||
comp := λ _ _ _ f g, f ≫ g } | ||
|
||
def full_subcategory_embedding (Z : C → Prop) : {X : C // Z X} ⥤ C := | ||
{ obj := λ X, X.1, | ||
map' := λ _ _ f, f } | ||
|
||
instance full_subcategory_full (Z : C → Prop) : full (full_subcategory_embedding Z) := by obviously | ||
instance full_subcategory_faithful (Z : C → Prop) : faithful (full_subcategory_embedding Z) := by obviously | ||
end | ||
|
||
end category_theory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters