Skip to content
Snippets Groups Projects
Verified Commit 47755ced authored by Paolo G. Giarrusso's avatar Paolo G. Giarrusso
Browse files

Add `ProofIrrel ()`

This instance might seem odd, but `ProofIrrel` takes a `Type` and not a `Prop`,
and stdpp already has instances for products.
parent e017f040
No related branches found
No related tags found
1 merge request!146Add `ProofIrrel ()`
......@@ -8,6 +8,8 @@ Instance True_pi: ProofIrrel True.
Proof. intros [] []; reflexivity. Qed.
Instance False_pi: ProofIrrel False.
Proof. intros []. Qed.
Instance unit_pi: ProofIrrel ().
Proof. intros [] []; reflexivity. Qed.
Instance and_pi (A B : Prop) :
ProofIrrel A ProofIrrel B ProofIrrel (A B).
Proof. intros ?? [??] [??]. f_equal; trivial. Qed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment