Refine toplevel API

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-08-16 09:02:45 -07:00
parent d002074419
commit 1c30c68d2d
2 changed files with 9 additions and 6 deletions

View file

@ -10,11 +10,14 @@ Author: Leonardo de Moura
#include "arith.h"
namespace lean {
void init_toplevel(environment & env) {
add_basic_theory(env);
add_basic_thms(env);
add_int_theory(env);
}
environment mk_toplevel() {
environment r;
add_basic_theory(r);
add_basic_thms(r);
add_int_theory(r);
init_toplevel(r);
return r;
}
}

View file

@ -8,8 +8,8 @@ Author: Leonardo de Moura
#include "environment.h"
namespace lean {
/**
\brief Create top-level environment with builtin objects.
*/
/** \brief Initialize environment with builtin objects and basic theorems. */
void init_toplevel(environment & env);
/** \brief Create top-level environment with builtin objects and basic theorems. */
environment mk_toplevel();
}