lean2/tests/lua/order.lua
Leonardo de Moura 0d5e346143 fix(library/expr_lt): make sure the builtin order is AC-compatible
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-04 15:51:10 -07:00

8 lines
211 B
Lua

local mul = Const("mul")
local div = Const("div")
local z = Const("z")
local x = Const("x")
local y = Const("y")
local t1 = mul(z, mul(div(x, y), y))
local t2 = mul(div(x, y), mul(z, y))
assert(t1 < t2)