lean2/tests/lua/level8.lua
Leonardo de Moura fae07771ec test(lua): add more universe level expression tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-20 11:41:17 -07:00

10 lines
352 B
Lua

local l = max_univ()
assert(l == mk_level_zero())
assert(l == max_univ(l))
local l1 = param_univ("l1")
local l2 = param_univ("l2")
assert(max_univ(l1, l2):is_geq(max_univ(l2, l1)))
assert(max_univ(l1+1, l2+1):is_geq(max_univ(l2, l1)+1))
-- is_geq_core assumes the levels are normalized
assert(not max_univ(l1+1, l2+1):is_geq_core(max_univ(l2, l1)+1))