lean2/tests/lua
Leonardo de Moura 7c0cc3111a fix(kernel/type_checker): we must use different caches for infer_type and check
The new test tc4.lua exposes the problem being fixed.
We need separate caches otherwise we may mistakenly assume that an expression was already checked by the type checker, while only its type was inferred.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-15 13:53:11 -07:00
..
old test(lua): remove obsolete test 2014-04-29 17:08:50 -07:00
slow perf(lua/name): improve to_name_ext performance 2013-11-14 18:06:09 -08:00
threads test(lua/threads): re-activate Lua thread examples 2014-05-08 18:52:15 -07:00
cnstr1.lua refactor(kernel): remove convertability constraints 2014-05-09 20:25:27 -07:00
def1.lua refactor(kernel): remove level constraints from definitions 2014-05-09 20:11:50 -07:00
env1.lua feat(library/kernel_bindings): add new global level methods to environment Lua API 2014-05-07 16:17:04 -07:00
env2.lua feat(library/kernel_bindings): add optional arguments to empty_environment Lua API 2014-05-07 17:06:27 -07:00
env3.lua feat(library/kernel_bindings): add add_decl and type_check functions to Lua API 2014-05-08 18:08:32 -07:00
env4.lua test(lua): add example for testing is_descendant 2014-05-08 18:50:24 -07:00
env5.lua test(lua): add basic universe level tests 2014-05-12 14:51:18 -07:00
env6.lua test(lua): add replace method test 2014-05-12 15:51:22 -07:00
env7.lua feat(kernel/environment): add forget method 2014-05-13 08:40:46 -07:00
eta.lua refactor(kernel/converter): implement eta in whnf instead of is_def_eq. 2014-05-12 17:49:53 -07:00
expr1.lua feat(kernel/expr): add is_contextual binder info 2014-05-14 14:54:27 -07:00
expr2.lua fix(library/kernel_bindings): bug in mk_app, add expr_lt tests 2014-05-09 19:54:52 -07:00
expr3.lua test(lua): add more expr API unit tests 2014-05-13 09:20:25 -07:00
extra.lua refactor(frontends/lua): replace lean.lua.h with util.lua 2013-12-26 19:49:26 -08:00
format1.lua feat(lua): expose format objects in the Lua bindings 2013-11-07 21:54:42 -08:00
format2.lua feat(lua): add is_* predicates 2013-11-08 12:40:28 -08:00
format3.lua test(lua): add tests for format object 2013-11-11 12:58:47 -08:00
jst1.lua test(lua): add justification API tests 2014-05-02 12:16:24 -07:00
let1.lua test(lua): unit tests for let expressions 2014-05-14 14:29:44 -07:00
level1.lua refactor(kernel): add level normalizer, is_equivalent predicate, switch to is_equivalent in the type checker, fix bugs in is_lt predicate 2014-05-11 18:05:02 -07:00
level2.lua feat(library/kernel_bindings): global level constructor/accessor/recognizer 2014-05-07 16:22:45 -07:00
level4.lua refactor(kernel): add level normalizer, is_equivalent predicate, switch to is_equivalent in the type checker, fix bugs in is_lt predicate 2014-05-11 18:05:02 -07:00
level5.lua test(lua): add more level API unit tests 2014-05-13 09:20:10 -07:00
map2.lua test(lua): reactivate some of the Lua unit tests 2014-04-29 10:36:57 -07:00
mpz1.lua feat(lua): allow Lean to be compiled with Lua 5.1 and LuaJit 2013-11-03 12:40:44 -08:00
mpz2.lua feat(lua): add is_* predicates 2013-11-08 12:40:28 -08:00
n1.lua test(lua): use assertions 2013-11-05 13:21:01 -08:00
n2.lua feat(lua): add is_* predicates 2013-11-08 12:40:28 -08:00
n3.lua feat(lua): add State objects, it allows us to create several Lua State objects in a lua script 2013-11-11 15:05:50 -08:00
n5.lua test(lua): reactivate some of the Lua unit tests 2014-04-29 10:36:57 -07:00
name1.lua test(tests/lua): extra tests for Lua hierachical name API 2014-01-14 11:38:10 -08:00
name_gen1.lua feat(util): name_generator Lua API 2014-05-07 17:28:11 -07:00
ns1.lua feat(util): name_set Lua API 2014-05-07 18:32:53 -07:00
ns2.lua feat(util/name_set): improve name_set Lua API 2014-05-08 17:17:00 -07:00
num1.lua fix(lua/numerics): bug in bindings, add more tests 2013-11-17 11:02:44 -08:00
opt1.lua refactor(lua/options): improve options bindings for Lua 2013-11-04 18:46:58 -08:00
opt2.lua feat(lua): add is_* predicates 2013-11-08 12:40:28 -08:00
opt3.lua test(lua): add tests for options object 2013-11-11 09:42:50 -08:00
opt4.lua feat(bindings/lua/options): improve options Lua API 2013-11-25 21:05:05 -08:00
sexpr1.lua feat(lua): expose s-expressions in the Lua bindings 2013-11-04 19:58:32 -08:00
sexpr2.lua test(lua): add test driver for Lua binding tests 2013-11-05 13:11:34 -08:00
sexpr3.lua feat(lua): add is_* predicates 2013-11-08 12:40:28 -08:00
sexpr4.lua test(lua): add tests for sexpr object 2013-11-11 09:51:07 -08:00
sexpr5.lua feat(lua): add fields method to sexpr Lua API 2013-11-13 12:10:24 -08:00
subst1.lua feat(library/kernel_bindings): substitution Lua API 2014-05-01 15:30:30 -07:00
tag1.lua feat(library/kernel_bindings): expose expression tags in the Lua API 2014-05-12 16:50:43 -07:00
tc1.lua feat(library/kernel_bindings): type_checker Lua API 2014-05-07 19:04:15 -07:00
tc2.lua test(lua): add constraint generation test when type checking with metavars 2014-05-14 11:06:48 -07:00
tc3.lua feat(library/kernel_bindings): expose is_bi_equal predicate in the Lua API 2014-05-14 17:24:49 -07:00
tc4.lua fix(kernel/type_checker): we must use different caches for infer_type and check 2014-05-15 13:53:11 -07:00
test.sh feat(util/options): 'verbose' as a system option, add -q (quiet) option 2014-01-09 15:31:58 -08:00
test_single.sh refactor(frontends/lua): replace lean.lua.h with util.lua 2013-12-26 19:49:26 -08:00