-
Notifications
You must be signed in to change notification settings - Fork 380
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
[ new ] Quantity for proof in with-clauses #3415
Conversation
c407589
to
ba57b5b
Compare
ba57b5b
to
980ef1b
Compare
This PR is ready to review. |
8731e10
to
eda38fc
Compare
Happy to merge once the build is successful. |
We can merge both downstream PRs, but this |
eda38fc
to
afea968
Compare
* [ new ] Quantity for proof in with-clauses * [ test ] Add failing tests for quantities of proofs * [ cleanup ] Match on pairs * [ test ] Add test for 0 proof in elaborator script * [ cleanup ] Use `So` and `All` from base in tests
Description
Currently the quantity of proof in with-clause is the same as the quantity of expression. But often proofs are needed only at compile time. Example:
So I suggest adding the ability to separately specify quantities for proofs.
Note that
prf
is currently erased in the following code, but in this version it will now be unrestricted, as will all variables for which multiplicity is not explicitly specified. This may affect existing code and probably requires discussion.Should this change go in the CHANGELOG?
implementation, I have updated
CHANGELOG_NEXT.md
(and potentially alsoCONTRIBUTORS.md
).