(!more_to_be_restricted, res)
let rec restrict subst to_be_restricted metasenv =
+ if to_be_restricted = [] then (metasenv,subst) else
let names_of_context_indexes context indexes =
String.concat ", "
(List.map
let rec deliftaux k =
let module C = Cic in
function
- C.Rel m ->
+ | C.Rel m as t->
if m <=k then
- C.Rel m
+ t
else
(try
match List.nth context (m-k-1) with
let rec liftaux subst metasenv k =
let module C = Cic in
function
- C.Rel m ->
+ C.Rel m as t ->
if m < k then
- C.Rel m, subst, metasenv
+ t, subst, metasenv
else if m < k + n then
raise DeliftingARelWouldCaptureAFreeVariable
else