2013-11-21 20:34:37 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
2013-11-25 09:06:11 +00:00
|
|
|
#include "util/exception.h"
|
|
|
|
#include "util/sstream.h"
|
2013-11-21 20:34:37 +00:00
|
|
|
#include "library/tactic/proof_builder.h"
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
expr find(proof_map const & m, name const & n) {
|
|
|
|
expr * r = const_cast<proof_map&>(m).splay_find(n);
|
|
|
|
if (r)
|
|
|
|
return *r;
|
2013-11-25 09:06:11 +00:00
|
|
|
throw exception(sstream() << "proof for goal '" << n << "' not found");
|
2013-11-21 20:34:37 +00:00
|
|
|
}
|
|
|
|
}
|