lean2/tests/lua/env4.lua
Leonardo de Moura 4d1fecb21d refactor(library/kernel_bindings): rename empty_environment ==> bare_environment in the Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-21 11:24:24 -07:00

6 lines
221 B
Lua

local env = bare_environment()
env = add_decl(env, mk_var_decl("A", Bool))
local c1 = type_check(env, mk_axiom("p", Const("A")))
local c2 = type_check(env, mk_axiom("q", Const("A")))
env = env:add(c1)
env = env:add(c2)