diff options
| author | ppedrot | 2012-11-25 17:38:55 +0000 |
|---|---|---|
| committer | ppedrot | 2012-11-25 17:38:55 +0000 |
| commit | 1653654a0eba7ecca78e67b4db1f6fa031e7271f (patch) | |
| tree | e5a914ecf08ebddc774216122d3910fb8ecee9b9 /interp/constrintern.ml | |
| parent | 589b1edc7064c2d210cf4786a6e5ed32d8165117 (diff) | |
More equality functions
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15998 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp/constrintern.ml')
| -rw-r--r-- | interp/constrintern.ml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/interp/constrintern.ml b/interp/constrintern.ml index 83e4c44152..57de9da33a 100644 --- a/interp/constrintern.ml +++ b/interp/constrintern.ml @@ -1175,6 +1175,13 @@ let intern_ind_pattern genv env pat = (**********************************************************************) (* Utilities for application *) +let explicitation_eq ex1 ex2 = match ex1, ex2 with +| ExplByPos (i1, id1), ExplByPos (i2, id2) -> + Int.equal i1 i2 && Option.Misc.compare id_eq id1 id2 +| ExplByName id1, ExplByName id2 -> + id_eq id1 id2 +| _ -> false + let merge_impargs l args = List.fold_right (fun a l -> match a with |
