Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0eb498
commit 1989f23
Showing
9 changed files
with
186 additions
and
42 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,23 @@ | ||
import category_theory.functor | ||
|
||
universes u₁ v₁ u₂ | ||
|
||
open category_theory | ||
|
||
variables (C : Sort u₁) [𝒞 : category.{v₁} C] | ||
variables (D : Sort u₂) [𝒟 : category.{0} D] | ||
include 𝒞 𝒟 | ||
|
||
namespace category_theory.functor | ||
|
||
/-- For functors into Prop-level categories, we can use extensionality. -/ | ||
-- Look ma, no `eq.rec`! | ||
@[extensionality] lemma ext (F G : C ⥤ D) (w : ∀ X : C, F.obj X = G.obj X) : F = G := | ||
begin | ||
cases F, cases G, | ||
congr, | ||
funext, | ||
exact w x, | ||
end | ||
|
||
end category_theory.functor |
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
Oops, something went wrong.