What does 来 mean in 他想一切办法来验证这个理论 and 我们设了个陷阱来抓狐狸? I have come across two sentences independently which seem to use 来 in a similar fashion, but one I am not sure I can identify:

他想一切办法来验证这个理论

我们设了个陷阱来抓狐狸

Is this somewhat similar to 起来, as in describing a resultative state?
Using "lai" to connect two verb phrases


  The word 来 (lái) can be used to connect two verb phrases, relating the actions to each other. It can be translated as "in order to" or "so that," and it can help in explaining reasoning.