Skip to content

Commit

Permalink
fix(algebra/*/colimits): avoid explicit infer_instance (#1430)
Browse files Browse the repository at this point in the history
With an explicit universe level Lean can do it automatically.
  • Loading branch information
urkud authored and mergify[bot] committed Sep 11, 2019
1 parent 45fe081 commit 8a5156f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/algebra/CommRing/colimits.lean
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ def colimit_is_colimit : is_colimit (colimit_cocone F) :=
refl
end }.

-- FIXME why is this infer_instance needed!?
instance has_colimits_CommRing : @has_colimits CommRing.{v} infer_instance :=
instance has_colimits_CommRing : has_colimits.{v} CommRing.{v} :=
{ has_colimits_of_shape := λ J 𝒥,
{ has_colimit := λ F, by exactI
{ cocone := colimit_cocone F,
Expand Down
3 changes: 1 addition & 2 deletions src/algebra/Mon/colimits.lean
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ def colimit_is_colimit : is_colimit (colimit_cocone F) :=
refl
end }.

-- FIXME why is this infer_instance needed!?
instance has_colimits_Mon : @has_colimits Mon.{v} infer_instance :=
instance has_colimits_Mon : has_colimits.{v} Mon.{v} :=
{ has_colimits_of_shape := λ J 𝒥,
{ has_colimit := λ F, by exactI
{ cocone := colimit_cocone F,
Expand Down

0 comments on commit 8a5156f

Please sign in to comment.