Skip to content

Commit ef6303b

Browse files
committed
try
1 parent 6bc2280 commit ef6303b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Mathlib/CategoryTheory/Localization/LocallySmall.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ noncomputable def hasLocalizationOfLocallySmall
4141
D := ShrinkHoms D
4242
L := L ⋙ (ShrinkHoms.equivalence D).functor
4343

44-
-- adding `@[implicit_reducible]` causes downstream breakage
45-
set_option warn.classDefReducibility false in
4644
/-- If `L : C ⥤ D` is a localization functor for a class of morphisms
4745
`W : MorphismProperty C`, and `D` is locally `w`-small, we may obtain
4846
a `HasLocalization.{w} W` instance. This should be used only in the
4947
unlikely situation where the types of objects of `C` and `D` are in
5048
different universes. Otherwise, use `hasLocalizationOfLocallySmall`. -/
49+
@[implicit_reducible]
5150
noncomputable irreducible_def hasLocalizationOfLocallySmall'
5251
{D : Type u₂} [Category.{v₂} D] [LocallySmall.{w} D]
5352
(L : C ⥤ D) [L.IsLocalization W] :

Mathlib/Data/Fintype/Defs.lean

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,18 +260,16 @@ instance subsingleton (α : Type*) : Subsingleton (Fintype α) :=
260260

261261
instance (α : Type*) : Lean.Meta.FastSubsingleton (Fintype α) := {}
262262

263-
-- adding `@[implicit_reducible]` causes downstream breakage
264-
set_option warn.classDefReducibility false in
265263
/-- Given a predicate that can be represented by a finset, the subtype
266264
associated to the predicate is a fintype. -/
265+
@[implicit_reducible]
267266
protected def subtype {p : α → Prop} (s : Finset α) (H : ∀ x : α, x ∈ s ↔ p x) :
268267
Fintype { x // p x } :=
269268
⟨⟨s.1.pmap Subtype.mk fun x => (H x).1, s.nodup.pmap fun _ _ _ _ => congr_arg Subtype.val⟩,
270269
fun ⟨x, px⟩ => Multiset.mem_pmap.2 ⟨x, (H x).2 px, rfl⟩⟩
271270

272-
-- adding `@[implicit_reducible]` causes downstream breakage
273-
set_option warn.classDefReducibility false in
274271
/-- Construct a fintype from a finset with the same elements. -/
272+
@[implicit_reducible]
275273
def ofFinset {p : Set α} (s : Finset α) (H : ∀ x, x ∈ s ↔ x ∈ p) : Fintype p :=
276274
Fintype.subtype s H
277275

Mathlib/Data/Fintype/Sets.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,8 @@ theorem Fintype.univ_Prop : (Finset.univ : Finset Prop) = {True, False} :=
264264
instance Subtype.fintype (p : α → Prop) [DecidablePred p] [Fintype α] : Fintype { x // p x } :=
265265
Fintype.subtype (univ.filter p) (by simp)
266266

267-
-- adding `@[implicit_reducible]` causes downstream breakage
268-
set_option warn.classDefReducibility false in
269267
/-- A set on a fintype, when coerced to a type, is a fintype. -/
268+
@[implicit_reducible]
270269
def setFintype [Fintype α] (s : Set α) [DecidablePred (· ∈ s)] : Fintype s :=
271270
Subtype.fintype fun x => x ∈ s
272271

0 commit comments

Comments
 (0)