diff options
Diffstat (limited to 'tactics/setoid_replace.ml')
| -rw-r--r-- | tactics/setoid_replace.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tactics/setoid_replace.ml b/tactics/setoid_replace.ml index be49e06d0a..f147e569e7 100644 --- a/tactics/setoid_replace.ml +++ b/tactics/setoid_replace.ml @@ -637,7 +637,8 @@ let morphism_theory_id_of_morphism_proof_id id = (* apply_to_rels c [l1 ; ... ; ln] returns (c Rel1 ... reln) *) let apply_to_rels c l = - applistc c (Util.list_map_i (fun i _ -> mkRel i) 1 l) + let len = List.length l in + applistc c (Util.list_map_i (fun i _ -> mkRel (len - i)) 0 l) let add_morphism lemma_infos mor_name (m,quantifiers_rev,args,output) = let env = Global.env() in |
