Skip to content

Add tests for SequencesExt SelectInSubSeq and SelectLastInSubSeq - #132

Merged
lemmy merged 2 commits into
masterfrom
sequencesext-selectinsubseq-pure-tests
Oct 3, 2026
Merged

lemmy merged 2 commits into
masterfrom
sequencesext-selectinsubseq-pure-tests

Conversation

@lemmy

@lemmy lemmy commented Oct 3, 2026

Copy link
Copy Markdown
Member

Check the TLC overrides exhaustively against pure TLA+ definitions over all sequences in BoundedSeq(1..3, 4) and all ranges from..to, including empty ones (from > to). The overrides return an index into seq whereas the TLA+ definitions return an index into SubSeq(seq, from, to), so the tests fail whenever from > 1.

Related to Github issue #131
#131

[Tests]

Check the TLC overrides exhaustively against pure TLA+ definitions over
all sequences in BoundedSeq(1..3, 4) and all ranges from..to, including
empty ones (from > to).  The overrides return an index into seq whereas
the TLA+ definitions return an index into SubSeq(seq, from, to), so the
tests fail whenever from > 1.

Related to Github issue #131
#131

[Tests]

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
@lemmy lemmy self-assigned this Oct 3, 2026
@lemmy lemmy added the bug Something isn't working label Oct 3, 2026
The TLA+ definitions returned an index into SubSeq(seq, from, to),
whereas the doc comments and the TLC overrides return an index into seq.
Align the definitions with the overrides, which most users rely on.

This is a breaking change for users of the plain TLA+ definitions, but
no other operator in the module and no proof depends on them.

Fixes Github issue #131
#131

[Bug]

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
@lemmy
lemmy marked this pull request as ready for review October 3, 2026 20:46
@lemmy
lemmy merged commit 409cf09 into master Oct 3, 2026
4 of 6 checks passed
@lemmy
lemmy deleted the sequencesext-selectinsubseq-pure-tests branch October 3, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

1 participant