Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit af6ee09

Browse files
kim-emdigama0
authored andcommitted
fix(category_theory/limits): adding Type annotations in preserves.lean
1 parent 74b65e2 commit af6ee09

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

category_theory/limits/preserves.lean

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ with the above definition of "preserves limits".
4646
4747
-/
4848

49-
class preserves_limit (K : J ⥤ C) (F : C ⥤ D) :=
49+
class preserves_limit (K : J ⥤ C) (F : C ⥤ D) : Type (max u₁ u₂ v) :=
5050
(preserves : Π {c : cone K}, is_limit c → is_limit (F.map_cone c))
51-
class preserves_colimit (K : J ⥤ C) (F : C ⥤ D) :=
51+
class preserves_colimit (K : J ⥤ C) (F : C ⥤ D) : Type (max u₁ u₂ v) :=
5252
(preserves : Π {c : cocone K}, is_colimit c → is_colimit (F.map_cocone c))
5353

54-
@[class] def preserves_limits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) :=
54+
@[class] def preserves_limits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) : Type (max u₁ u₂ v) :=
5555
Π {K : J ⥤ C}, preserves_limit K F
56-
@[class] def preserves_colimits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) :=
56+
@[class] def preserves_colimits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) : Type (max u₁ u₂ v) :=
5757
Π {K : J ⥤ C}, preserves_colimit K F
5858

59-
@[class] def preserves_limits (F : C ⥤ D) :=
59+
@[class] def preserves_limits (F : C ⥤ D) : Type (max u₁ u₂ (v+1)) :=
6060
Π {J : Type v} {𝒥 : small_category J}, by exactI preserves_limits_of_shape J F
61-
@[class] def preserves_colimits (F : C ⥤ D) :=
61+
@[class] def preserves_colimits (F : C ⥤ D) : Type (max u₁ u₂ (v+1)) :=
6262
Π {J : Type v} {𝒥 : small_category J}, by exactI preserves_colimits_of_shape J F
6363

6464
instance preserves_limit_of_preserves_limits_of_shape (F : C ⥤ D)
@@ -122,19 +122,19 @@ Note that again we do not assume a priori that D actually has any
122122
limits.
123123
-/
124124

125-
class reflects_limit (K : J ⥤ C) (F : C ⥤ D) :=
125+
class reflects_limit (K : J ⥤ C) (F : C ⥤ D) : Type (max u₁ u₂ v) :=
126126
(reflects : Π {c : cone K}, is_limit (F.map_cone c) → is_limit c)
127-
class reflects_colimit (K : J ⥤ C) (F : C ⥤ D) :=
127+
class reflects_colimit (K : J ⥤ C) (F : C ⥤ D) : Type (max u₁ u₂ v) :=
128128
(reflects : Π {c : cocone K}, is_colimit (F.map_cocone c) → is_colimit c)
129129

130-
@[class] def reflects_limits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) :=
130+
@[class] def reflects_limits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) : Type (max u₁ u₂ v) :=
131131
Π {K : J ⥤ C}, reflects_limit K F
132-
@[class] def reflects_colimits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) :=
132+
@[class] def reflects_colimits_of_shape (J : Type v) [small_category J] (F : C ⥤ D) : Type (max u₁ u₂ v) :=
133133
Π {K : J ⥤ C}, reflects_colimit K F
134134

135-
@[class] def reflects_limits (F : C ⥤ D) :=
135+
@[class] def reflects_limits (F : C ⥤ D) : Type (max u₁ u₂ (v+1)) :=
136136
Π {J : Type v} {𝒥 : small_category J}, by exactI reflects_limits_of_shape J F
137-
@[class] def reflects_colimits (F : C ⥤ D) :=
137+
@[class] def reflects_colimits (F : C ⥤ D) : Type (max u₁ u₂ (v+1)) :=
138138
Π {J : Type v} {𝒥 : small_category J}, by exactI reflects_colimits_of_shape J F
139139

140140
instance reflects_limit_of_reflects_limits_of_shape (K : J ⥤ C) (F : C ⥤ D)

0 commit comments

Comments
 (0)