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

[derive.param1] Add some missing universe constraints #759

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/derive/elpi/param1.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ dispatch (const GR) Prefix Clauses :- !, do! [
reali V VR,
reali Ty TyR,
coq.mk-app TyR [Term] TyRV,
% coq.typecheck is needed to add universe constraints
std.assert-ok! (coq.typecheck TyRV _) "param1: illtyped param type",
% apparently calling the type checker with the expected type is weaker in this case
std.assert-ok! (coq.typecheck VR VRTy) "param1: illtyped constant",
std.assert-ok! (coq.unify-leq VRTy TyRV) "param1: constant does not have the right type",
Expand Down
Loading