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

do not crash if the key has no name #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gares
Copy link
Member

@gares gares commented Mar 31, 2021

No description provided.

has-cs-instance (global GR) (cs-instance _ (cs-gref GR) _) :- !.
has-cs-instance (app[global GR|_]) (cs-instance _ (cs-gref GR) _) :- !.
has-cs-instance (prod _ _ _) (cs-instance _ cs-prod _) :- !.
has-cs-instance (sort U) (cs-instance _ (cs-sort U) _) :- !.
Copy link
Member Author

@gares gares Mar 31, 2021

Choose a reason for hiding this comment

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

Suggested change
has-cs-instance (sort U) (cs-instance _ (cs-sort U) _) :- !.
has-cs-instance (sort U) (cs-instance _ (cs-sort U) _) :- !.
has-cs-instance (fun _ _ _) _ :- coq.version _ _ N _, N < 14, coq.error "Coq cannot handle canonical values which are anonymous functions".
has-cs-instance (fun _ _ _) _ :- coq.version _ _ N _, N >= 14, coq.error "NYI: canonical values which are anonymous functions".

Copy link
Member Author

Choose a reason for hiding this comment

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

@CohenCyril is this what you want? It is unclear what to do when we move to Coq 8.14 (assuming it gets support for cs-fun canonical value)

@CohenCyril
Copy link
Member

This PR is still actual, the code for fun should recurse in the body of the function though.

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.

None yet

2 participants