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

Constructor checking mode #424

Merged

Conversation

Projects
None yet
1 participant
@andrejbauer
Copy link
Collaborator

commented Apr 5, 2019

This PR implements the checking mode for arguments of TT formers.

Implementing it also shows how we need to fix the infer/checking algorithm. Traditionally, we have

  • infer mode, which calculates the type of a term
  • check mode, which checks that a term has a given type

Because we have four judgement forms, we shall instead have:

  • infer mode, which calculates a judgement
  • check mode, which checks that a judgement has the required boundary

So in fact there will be four possible ways to check against. Consequently, we need to introduce boundaries into the absract syntax, namely in the form of patterns on handlers.

@andrejbauer andrejbauer merged commit df10ab8 into Andromedans:master Apr 5, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.