Skip to content

Commit fd4ff1f

Browse files
authored
feat: grind_pattern for Exists.choose_spec (#11316)
This PR adds `grind_pattern Exists.choose_spec => P.choose`.
1 parent 80224c7 commit fd4ff1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Init/Classical.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,5 @@ export Classical (imp_iff_right_iff imp_and_neg_imp_iff and_or_imp not_imp)
205205

206206
/-- Show that an element extracted from `P : ∃ a, p a` using `P.choose` satisfies `p`. -/
207207
theorem Exists.choose_spec {p : α → Prop} (P : ∃ a, p a) : p P.choose := Classical.choose_spec P
208+
209+
grind_pattern Exists.choose_spec => P.choose

0 commit comments

Comments
 (0)