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

Add top-down tail-recursive mergesort #25

Merged
merged 3 commits into from
Jun 7, 2024
Merged

Add top-down tail-recursive mergesort #25

merged 3 commits into from
Jun 7, 2024

Conversation

pi8027
Copy link
Owner

@pi8027 pi8027 commented May 14, 2024

It is intended to serve just as an example of our verification technique and is not considered part of the stable sort library. This example corresponds to Sections 4.1 and 4.4.1 of the paper (arXiv:2403.08173v1).

It is intended to serve just as an example of our verification technique and is
not a part of the stablesort library (therefore placed in misc/). This example
corresponds to Sections 4.1 and 4.4.1 of the paper (arXiv:2403.08173v1).
@pi8027
Copy link
Owner Author

pi8027 commented May 15, 2024

Makefile now uses coq_makefile three times to provide several build targets and exclude some files from installation. I wish to find an easy way to do this—maybe Dune?

@pi8027 pi8027 force-pushed the topdown-tailrec branch from 0857d74 to 4589976 Compare May 28, 2024 14:52
@pi8027 pi8027 force-pushed the topdown-tailrec branch from 4589976 to b54814d Compare May 28, 2024 15:00
@pi8027
Copy link
Owner Author

pi8027 commented May 28, 2024

Paramcoq seems broken only in Coq 8.17, but I'm not motivated to investigate it.

@pi8027 pi8027 force-pushed the topdown-tailrec branch 2 times, most recently from 5a3e927 to b333d40 Compare June 4, 2024 09:10
@@ -52,11 +52,14 @@ In addition, each of the above two kinds of mergesort functions has a smooth
slices in the input."""

build: [make "-j%{jobs}%"]
run-test: [ [make "-j%{jobs}%" "build-misc" ] { coq:version < "8.17" | "8.18" <= coq:version } ]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the end, I had to edit the OPAM file by hand to exclude the test suite only from Coq 8.17. I request a feature for writing a filter like this to Coq-community templates.

@pi8027 pi8027 marked this pull request as ready for review June 4, 2024 09:40
@pi8027 pi8027 force-pushed the topdown-tailrec branch from b333d40 to 6890eee Compare June 6, 2024 11:02
@pi8027 pi8027 merged commit d86a047 into master Jun 7, 2024
43 checks passed
@pi8027 pi8027 deleted the topdown-tailrec branch June 7, 2024 12:34
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.

1 participant