Skip to content

Commit

Permalink
fix(category_theory/types): rename lemma ulift_functor.map (#1133)
Browse files Browse the repository at this point in the history
* fix(category_theory/types): avoid shadowing `ulift_functor.map` by a lemma

Now we can use `ulift_functor.map` in the sense `functor.map ulift_functor`.

* `ulift_functor.map_spec` → `ulift_functor_map`

as suggested by @semorrison in #1133 (review)
  • Loading branch information
urkud authored and mergify[bot] committed Jun 18, 2019
1 parent d8d25e9 commit 235b899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/category_theory/types.lean
Expand Up @@ -55,7 +55,7 @@ def ulift_functor : Type u ⥤ Type (max u v) :=
{ obj := λ X, ulift.{v} X,
map := λ X Y f, λ x : ulift.{v} X, ulift.up (f x.down) }

@[simp] lemma ulift_functor.map {X Y : Type u} (f : X ⟶ Y) (x : ulift.{v} X) :
@[simp] lemma ulift_functor_map {X Y : Type u} (f : X ⟶ Y) (x : ulift.{v} X) :
ulift_functor.map f x = ulift.up (f x.down) := rfl

instance ulift_functor_faithful : fully_faithful ulift_functor :=
Expand Down

0 comments on commit 235b899

Please sign in to comment.