Skip to content

feat: generalize String.Slice.Pos.cast#12771

Merged
TwoFX merged 2 commits intoleanprover:masterfrom
TwoFX:generalize-slice-pos-cast
Mar 3, 2026
Merged

feat: generalize String.Slice.Pos.cast#12771
TwoFX merged 2 commits intoleanprover:masterfrom
TwoFX:generalize-slice-pos-cast

Conversation

@TwoFX
Copy link
Copy Markdown
Member

@TwoFX TwoFX commented Mar 3, 2026

This PR generalizes String.Slice.Pos.cast, which turns an s.Pos into a t.Pos, to no longer require s = t, but merely s.copy = t.copy.

This is a breaking change, but one that is easy to adapt to, by replacing proof with congrArg Slice.copy proof where required.

@TwoFX TwoFX requested a review from kim-em as a code owner March 3, 2026 09:09
@TwoFX TwoFX added the changelog-library Library label Mar 3, 2026
@TwoFX TwoFX enabled auto-merge March 3, 2026 09:09
@TwoFX TwoFX added this pull request to the merge queue Mar 3, 2026
Merged via the queue into leanprover:master with commit 03a5db3 Mar 3, 2026
21 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