lean2/src
Leonardo de Moura d79a626523 fix(kernel/type_checker): Pi with metavariables case
The type checker (and type inferer) were not handling correctly Pi expressions where the type universe cannot be established due to the occurrence of metavariables. In this case, a max-constraint is created. The problem is that the domain and body of the Pi are in different contexts. The constrain generated before this commit was incorrect, it could contain a free variable. This commit fix the issue by using the context of the body, and lifting the free variables in the domain by 1.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-06 13:07:59 -08:00
..
cmake feat(shell/lean): add git hash to executable 2013-12-04 11:23:15 -08:00
extra feat(extra): add extension that demonstrates how to parse 'templates' 2013-11-19 15:56:44 -08:00
frontends fix(frontends/lean/parser): display failed state in noninteractive mode, stop processing tactic commands when a Lean command is found 2013-12-06 05:13:29 -08:00
kernel fix(kernel/type_checker): Pi with metavariables case 2013-12-06 13:07:59 -08:00
library fix(kernel/type_checker): Pi with metavariables case 2013-12-06 13:07:59 -08:00
shell fix(examples/lean): add all examples to test suite 2013-12-05 21:54:55 -08:00
tests feat(library/elaborator): add special treatment for constraints of the form ?m[inst:i v] << t, where t is a proposition 2013-12-06 04:51:07 -08:00
util fix(util/stackinfo): compilation warning on cygwin/mingw 2013-12-04 11:32:39 -08:00
CMakeLists.txt feat(shell/lean): add git hash to executable 2013-12-04 11:23:15 -08:00
CTestConfig.cmake chore(ctest): fix typo in CTEST_DROP_LOCATION 2013-11-25 03:14:35 -05:00
CTestCustom.cmake.in Exclude 'style_check' from MemCheck list 2013-09-13 20:27:35 -07:00
Doxyfile Add EXCLUDE_PATTERNS to src/Doxyfile 2013-09-15 20:31:15 -07:00
memcheck.supp chore(memcheck): add another suppression for LuaJIT 2013-12-04 08:32:44 -08:00