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

[WIP] implement a PriorityQueue #272

Merged
merged 6 commits into from
Aug 21, 2021

Conversation

dvberkel
Copy link
Contributor

The priority queue is described in Okasaki's "Purely Functional Data structures". It is based on leftist trees.

The priority queue is described in Okasaki Purely Functional Data structures

it is based on leftist trees
@dvberkel
Copy link
Contributor Author

I started a discussion to give feedback

This function returns the root value with from a non empty tree
This relies on PriorityQueue.Tree.peek by lifting a proof of non-emptyness of the queue to a proof of non-emptyness of the tree the queue is made from.
This is with gracious help from @regille.

During the development a bug was caught in the desugaring of terms that was reported in issue HigherOrderCO#281
@VictorTaelin
Copy link
Member

Amazing

@VictorTaelin VictorTaelin merged commit 2bec13e into HigherOrderCO:master Aug 21, 2021
@dvberkel
Copy link
Contributor Author

Thanks for merging.

I am still working on various proofs. But I will send separate pull-requests for them

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