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

Coq definitions: Prop or Set? #45

Open
liyishuai opened this issue Feb 20, 2019 · 0 comments
Open

Coq definitions: Prop or Set? #45

liyishuai opened this issue Feb 20, 2019 · 0 comments

Comments

@liyishuai
Copy link

From the untyped lambda calculus example, suppose I want to compute whether a reduction is beta:

Definition is_beta {t t' : term} (r : reduce t t') : bool :=
  match r with
  | ax_app _ _ _ _ => true
  | _ => false
  end.

Coq complains that:

Error:
Incorrect elimination of "r" in the inductive type "reduce":
the return type has sort "Set" while it should be "Prop".
Elimination of an inductive object of sort Prop is not allowed on a predicate in sort Set
because proofs can be eliminated only to build proofs.

Is there a specific reason to represent definitions with Prop rather than Set?

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

No branches or pull requests

1 participant