aboutsummaryrefslogtreecommitdiffstats
path: root/src/bva/BVList.v
diff options
context:
space:
mode:
authorChantal Keller <Chantal.Keller@lri.fr>2020-07-06 12:42:51 +0200
committerChantal Keller <Chantal.Keller@lri.fr>2020-07-06 12:42:51 +0200
commite638d50326c0af7b64ddb98aeed131c4765f9e4f (patch)
tree3a850b78b395b3cd96c03027efee280c71e080d7 /src/bva/BVList.v
parent52621f58edcabc36e7d1cd10d9b4da8be1a08649 (diff)
parent6ddb77f5f60db1006c95552f893a71dd7571d966 (diff)
downloadsmtcoq-e638d50326c0af7b64ddb98aeed131c4765f9e4f.tar.gz
smtcoq-e638d50326c0af7b64ddb98aeed131c4765f9e4f.zip
Merge branch 'master' of github.com:smtcoq/smtcoq into coq-8.10
Diffstat (limited to 'src/bva/BVList.v')
-rw-r--r--src/bva/BVList.v6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bva/BVList.v b/src/bva/BVList.v
index 6d64190..c9db26b 100644
--- a/src/bva/BVList.v
+++ b/src/bva/BVList.v
@@ -12,6 +12,7 @@
Require Import List Bool NArith Psatz Int63 Nnat ZArith.
Require Import Misc.
+Require Import ProofIrrelevance.
Import ListNotations.
Local Open Scope list_scope.
Local Open Scope N_scope.
@@ -21,9 +22,6 @@ Local Open Scope bool_scope.
Set Implicit Arguments.
Unset Strict Implicit.
-(* We temporarily assume proof irrelevance to handle dependently typed
- bit vectors *)
-Axiom proof_irrelevance : forall (P : Prop) (p1 p2 : P), p1 = p2.
Lemma inj a a' : N.to_nat a = N.to_nat a' -> a = a'.
Proof. intros. lia. Qed.
@@ -303,7 +301,7 @@ Module RAW2BITVECTOR (M:RAWBITVECTOR) <: BITVECTOR.
Proof.
unfold bv_eq. rewrite M.bv_eq_reflect. split.
- revert a b. intros [a Ha] [b Hb]. simpl. intros ->.
- rewrite (proof_irrelevance Ha Hb). reflexivity.
+ rewrite (proof_irrelevance _ Ha Hb). reflexivity.
- intros. case a in *. case b in *. simpl in *.
now inversion H. (* now intros ->. *)
Qed.