Skip to content

Conversation

@TwoFX
Copy link
Member

@TwoFX TwoFX commented Dec 4, 2025

This PR marks Char -> Bool patterns as default instances for string search. This means that things like " ".find (·.isWhitespace) can now be elaborated without error.

Previously, it was necessary to write " ".find Char.isWhitespace.

Thank you to David Christiansen for the idea of using a default instance.

@TwoFX TwoFX requested a review from kim-em as a code owner December 4, 2025 09:15
@TwoFX TwoFX added the changelog-library Library label Dec 4, 2025
@TwoFX TwoFX enabled auto-merge December 4, 2025 09:15
@TwoFX TwoFX added this pull request to the merge queue Dec 4, 2025
Merged via the queue into leanprover:master with commit e548fa4 Dec 4, 2025
19 checks passed
algebraic-dev pushed a commit that referenced this pull request Dec 8, 2025
This PR marks `Char -> Bool` patterns as default instances for string
search. This means that things like `" ".find (·.isWhitespace)` can now
be elaborated without error.

Previously, it was necessary to write `" ".find Char.isWhitespace`.

Thank you to David Christiansen for the idea of using a default
instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant