Skip to content

Commit 46c5d58

Browse files
feat (Small) : Shrink.rec_equivShrink
1 parent b40a064 commit 46c5d58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Mathlib/Logic/Small/Defs.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ protected noncomputable def Shrink.rec {α : Type*} [Small.{w} α] {F : Shrink
5959
(h : ∀ X, F (equivShrink _ X)) : ∀ X, F X :=
6060
fun X => ((equivShrink _).apply_symm_apply X) ▸ (h _)
6161

62+
@[simp]
63+
lemma Shrink.rec_equivShrink {α : Type*} [Small.{w} α] {F : Shrink α → Sort v}
64+
{f : (a : α) → F (equivShrink α a)} (a : α) : Shrink.rec f (equivShrink _ a) = f a := by
65+
simp only [Shrink.rec, eqRec_eq_cast, cast_eq_iff_heq]
66+
rw [Equiv.symm_apply_apply]
67+
6268
instance small_self (α : Type v) : Small.{v} α :=
6369
Small.mk' <| Equiv.refl α
6470

0 commit comments

Comments
 (0)