aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Maps.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/Maps.v b/src/common/Maps.v
index 2db5114..21a1d9e 100644
--- a/src/common/Maps.v
+++ b/src/common/Maps.v
@@ -88,4 +88,11 @@ Proof.
- reflexivity.
Qed.
+Definition contains (A: Type) (i: positive) (m: t A) : bool :=
+ match get i m with
+ | Some _ => true
+ | None => false
+ end.
+
+
End PTree.