Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(algebra/category/*): forget reflects isos (#3600)
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
- Loading branch information
1 parent
d76c75e
commit 6394e4d
Showing
15 changed files
with
244 additions
and
114 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
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
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
43 changes: 43 additions & 0 deletions
43
src/category_theory/concrete_category/reflects_isomorphisms.lean
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,43 @@ | ||
/- | ||
Copyright (c) 2020 Scott Morrison. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Scott Morrison | ||
-/ | ||
import category_theory.concrete_category.basic | ||
import category_theory.reflects_isomorphisms | ||
|
||
/-! | ||
A `forget₂ C D` forgetful functor between concrete categories `C` and `D` | ||
whose forgetful functors both reflect isomorphisms, itself reflects isomorphisms. | ||
-/ | ||
|
||
universes u | ||
|
||
open category_theory | ||
|
||
instance : reflects_isomorphisms (forget (Type u)) := | ||
{ reflects := λ X Y f i, i } | ||
|
||
variables (C : Type (u+1)) [large_category C] [concrete_category C] | ||
variables (D : Type (u+1)) [large_category D] [concrete_category D] | ||
|
||
/-- | ||
A `forget₂ C D` forgetful functor between concrete categories `C` and `D` | ||
where `forget C` reflects isomorphisms, itself reflects isomorphisms. | ||
-/ | ||
@[priority 50] -- Even lower than the instance from `full` and `faithful`. | ||
instance [has_forget₂ C D] [reflects_isomorphisms (forget C)] : | ||
reflects_isomorphisms (forget₂ C D) := | ||
{ reflects := λ X Y f i, | ||
begin | ||
resetI, | ||
haveI i' : is_iso ((forget D).map ((forget₂ C D).map f)) := functor.map_is_iso (forget D) _, | ||
haveI : is_iso ((forget C).map f) := | ||
begin | ||
have := has_forget₂.forget_comp, | ||
dsimp at this, | ||
rw ←this, | ||
exact i', | ||
end, | ||
apply is_iso_of_reflects_iso f (forget C), | ||
end } |
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
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
Oops, something went wrong.