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

Renaming some of the types in Prims #2461

Merged
merged 11 commits into from
Feb 18, 2022
Merged

Renaming some of the types in Prims #2461

merged 11 commits into from
Feb 18, 2022

Conversation

nikswamy
Copy link
Collaborator

This PR renames

c_False to empty
c_True to trivial
c_and to pair
c_or to sum

matching documentation in doc/book/part2

I tried to further streamline this by making trivial = unit, pair = tuple2 and sum = either, but that is much more difficult, mainly because these types are needed in the very first few lines of Prims, where it is not possible to define the hasEq axioms and discriminators/projectors for a type.

With @aseemr , I discussed addressing that work in the future, where we could introduce these types early in Prims but defer the their hasEq and projectors until GTot is defined.

@nikswamy nikswamy merged commit aae91ef into master Feb 18, 2022
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