Refine toplevel API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d002074419
commit
1c30c68d2d
2 changed files with 9 additions and 6 deletions
|
@ -10,11 +10,14 @@ Author: Leonardo de Moura
|
||||||
#include "arith.h"
|
#include "arith.h"
|
||||||
|
|
||||||
namespace lean {
|
namespace lean {
|
||||||
|
void init_toplevel(environment & env) {
|
||||||
|
add_basic_theory(env);
|
||||||
|
add_basic_thms(env);
|
||||||
|
add_int_theory(env);
|
||||||
|
}
|
||||||
environment mk_toplevel() {
|
environment mk_toplevel() {
|
||||||
environment r;
|
environment r;
|
||||||
add_basic_theory(r);
|
init_toplevel(r);
|
||||||
add_basic_thms(r);
|
|
||||||
add_int_theory(r);
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@ Author: Leonardo de Moura
|
||||||
#include "environment.h"
|
#include "environment.h"
|
||||||
|
|
||||||
namespace lean {
|
namespace lean {
|
||||||
/**
|
/** \brief Initialize environment with builtin objects and basic theorems. */
|
||||||
\brief Create top-level environment with builtin objects.
|
void init_toplevel(environment & env);
|
||||||
*/
|
/** \brief Create top-level environment with builtin objects and basic theorems. */
|
||||||
environment mk_toplevel();
|
environment mk_toplevel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue