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

Implement Pulse.Lib.SeqMatch #249

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Implement Pulse.Lib.SeqMatch #249

merged 1 commit into from
Nov 12, 2024

Conversation

tahina-pro
Copy link
Member

This PR gives a .fst implementation for Pulse.Lib.SeqMatch.fsti

It is inspired from the existing Steel implementation (cf. https://github.com/FStarLang/steel/blob/92f1f3761373d1c4b8ee91f12bec007515dfce1d/lib/steel/Steel.ST.SeqMatch.fst ), but is tidied up to avoid resource leakage by no longer using drop.

With this PR, the following changes in the interface have become necessary:

  • We lose universe polymorphism. This PR sets everything to universe 0.
  • seq_list_match_nil_elim is strengthened by weakening its precondition
  • to avoid resource leakage, seq_seq_match_item_match_option_upd is split into a _none and a _some cases.

@tahina-pro tahina-pro marked this pull request as ready for review November 12, 2024 06:27
@nikswamy nikswamy merged commit 90fa554 into main Nov 12, 2024
1 check passed
@tahina-pro tahina-pro deleted the _taramana_seq_match branch November 12, 2024 16:49
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