Skip to content

Commit 8413643

Browse files
committed
fix
1 parent ef6303b commit 8413643

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Mathlib/CategoryTheory/Localization/LocallySmall.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ 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
4446
/-- If `L : C ⥤ D` is a localization functor for a class of morphisms
4547
`W : MorphismProperty C`, and `D` is locally `w`-small, we may obtain
4648
a `HasLocalization.{w} W` instance. This should be used only in the
4749
unlikely situation where the types of objects of `C` and `D` are in
4850
different universes. Otherwise, use `hasLocalizationOfLocallySmall`. -/
49-
@[implicit_reducible]
5051
noncomputable irreducible_def hasLocalizationOfLocallySmall'
5152
{D : Type u₂} [Category.{v₂} D] [LocallySmall.{w} D]
5253
(L : C ⥤ D) [L.IsLocalization W] :

Mathlib/Combinatorics/SimpleGraph/Matching.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ lemma even_card_of_isPerfectMatching [Fintype V] [DecidableEq V] [DecidableRel G
287287
blocked by the discrimination tree. This can be fixed by redeclaring the instance for `X`
288288
using the double coercion but the proper fix seems to avoid the double coercion. -/
289289
letI : DecidablePred fun x ↦ x ∈ (M.induce c.supp).verts := fun a ↦ G.instDecidableMemSupp c a
290-
simpa using (hM.induce_connectedComponent_isMatching c).even_card
290+
have := (hM.induce_connectedComponent_isMatching c).even_card
291+
simp only [Subgraph.induce_verts, Set.toFinset_card] at this
292+
exact this
291293

292294
set_option backward.isDefEq.respectTransparency false in
293295
lemma odd_matches_node_outside [Finite V] {u : Set V}

Mathlib/Combinatorics/SimpleGraph/StronglyRegular.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ theorem IsSRGWith.matrix_eq {α : Type*} [Semiring α] (h : G.IsSRGWith n k ℓ
197197
ext v w
198198
simp only [adjMatrix_pow_apply_eq_card_walk, Set.coe_setOf, Matrix.add_apply, Matrix.smul_apply,
199199
adjMatrix_apply, compl_adj]
200-
rw [Fintype.card_congr (G.walkLengthTwoEquivCommonNeighbors v w)]
200+
erw [Fintype.card_congr (G.walkLengthTwoEquivCommonNeighbors v w)]
201201
obtain rfl | hn := eq_or_ne v w
202202
· rw [← Set.toFinset_card]
203203
simp [commonNeighbors, ← neighborFinset_def, h.regular v]

0 commit comments

Comments
 (0)