Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repeat lemmas #25

Merged
merged 2 commits into from
Dec 4, 2024
Merged

repeat lemmas #25

merged 2 commits into from
Dec 4, 2024

Conversation

HSMF
Copy link
Contributor

@HSMF HSMF commented Dec 4, 2024

move lemmas from verified_go_stdlib to bytes.

  • the name of LemmaRepeatCommutative could be better, it is not Repeat that is commutative but ++ (with the special arguments b and Repeat(b, n)
  • verified_go_stdlib has a lemma that ensures Repeat(s, a)[: b * len(s)] == Repeat(s, MinInt(a, b)). Should we move this here as well? It depends on a MinInt function that could be replaced by math.Min

jcp19
jcp19 previously approved these changes Dec 4, 2024
bytes/repeat_lemmas.gobra Outdated Show resolved Hide resolved
@jcp19 jcp19 merged commit d2321b9 into viperproject:main Dec 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants