Skip to content

feat: verification of backwards string patterns#13129

Merged
TwoFX merged 9 commits intoleanprover:masterfrom
TwoFX:backwards-patterns
Mar 26, 2026
Merged

feat: verification of backwards string patterns#13129
TwoFX merged 9 commits intoleanprover:masterfrom
TwoFX:backwards-patterns

Conversation

@TwoFX
Copy link
Copy Markdown
Member

@TwoFX TwoFX commented Mar 26, 2026

This PR implements verification infrastructure for backwards patterns that is analogous to the existing infrastructure for forward patterns. Based on this it adds verification for the skipSuffix?, endsWith and dropSuffix? functions on strings.

To enable this, we add some supporting theory about String.slice (that's a lowercase s) and String.Pos.prev.

@TwoFX TwoFX requested a review from kim-em as a code owner March 26, 2026 08:29
@TwoFX TwoFX added the changelog-library Library label Mar 26, 2026
@TwoFX TwoFX enabled auto-merge March 26, 2026 08:35
@TwoFX TwoFX added this pull request to the merge queue Mar 26, 2026
Merged via the queue into leanprover:master with commit 6f2745d Mar 26, 2026
22 of 23 checks passed
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