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

🧊 Use forall_cof from Kado #362

Merged
merged 1 commit into from
Apr 21, 2022
Merged

🧊 Use forall_cof from Kado #362

merged 1 commit into from
Apr 21, 2022

Conversation

favonia
Copy link
Collaborator

@favonia favonia commented Apr 17, 2022

@favonia favonia requested review from jonsterling and TOTBWF April 17, 2022 02:54
let forall sym =
let i = Dim.DimProbe sym in
extend @@
function
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am still a tiny bit concerned about the invariants here. But I do not have a counterexample... @favonia Can you perhaps explain why you are mostly certain this is OK?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe I did not change the functionality of the code---that is, it is wrong iff it was wrong. Notice that there are two forall now---one is syntactic (cheap) and one is semantic (expensive), and it is the semantic (expensive) one used here. I am worried about the invariant but I was already worried before this PR. Does this answer your question?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Where is the expensive one located now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh cool!! Sorry for my 🌰 🧠

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Where is the expensive one located now?

RedPRL/kado#6

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Where is the expensive one located now?

RedPRL/kado#6

Most relevant code (but I also changed other parts to make it work): https://github.com/RedPRL/kado/blob/b23ff87cfbaab6a5d35019f49da69227a252dcc6/src/Theory.ml#L392-L414

Copy link
Collaborator

@jonsterling jonsterling left a comment

Choose a reason for hiding this comment

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

Full 🚂 ahead!

@favonia favonia merged commit 2b57288 into main Apr 21, 2022
@favonia favonia deleted the forall_cof branch April 21, 2022 14:41
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