diff options
| author | Pierre-Marie Pédrot | 2014-03-01 18:26:26 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2014-03-01 22:45:39 +0100 |
| commit | 87b510e5b0f363724eae5db9f177f167a3586015 (patch) | |
| tree | 204c7ad1e1ba38945ab58d74e28d8cf67201fe71 /proofs | |
| parent | bca756eaebf16b6145c65b53629219d2a0a8b1ba (diff) | |
Fixing pervasive comparisons
Diffstat (limited to 'proofs')
| -rw-r--r-- | proofs/clenv.ml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/proofs/clenv.ml b/proofs/clenv.ml index a8bbfe127e..966d247e0e 100644 --- a/proofs/clenv.ml +++ b/proofs/clenv.ml @@ -378,8 +378,13 @@ let clenv_independent clenv = let deps = Metaset.union (dependent_in_type_of_metas clenv mvs) ctyp_mvs in List.filter (fun mv -> not (Metaset.mem mv deps)) mvs +let qhyp_eq h1 h2 = match h1, h2 with +| NamedHyp n1, NamedHyp n2 -> Id.equal n1 n2 +| AnonHyp i1, AnonHyp i2 -> Int.equal i1 i2 +| _ -> false + let check_bindings bl = - match List.duplicates Pervasives.(=) (List.map pi2 bl) with (* FIXME *) + match List.duplicates qhyp_eq (List.map pi2 bl) with | NamedHyp s :: _ -> errorlabstrm "" (str "The variable " ++ pr_id s ++ |
