Commit graph

10297 commits

Author SHA1 Message Date
Sebastian Ullrich
87f2f5397f feat(emacs): lean-server-restart: interrupt flycheck and bring back keybinding 2016-10-19 10:02:58 -07:00
Leonardo de Moura
64c3927e0b feat(library/equations_compiler/elim_match): report unused equations
closes #1162
2016-10-19 09:58:08 -07:00
Leonardo de Moura
e74cfa9db7 fix(library/equations_compiler/elim_match): bug at complete transition
It also updates the condition for triggering the inaccessible
transition. Before this commit, we would only perform this kind
of transition if *all* terms were marked inaccessible. Now,
we perform it if *some* are marked inaccessible. Reason:
when we perform the complete transition we don't have enought
information for deciding whether an argument should be marked as
inaccessible or not. If this decision creates confusion for users,
we may try to mark them with an "maybe-inaccessible" annotation, and
then enforce that the inaccessible transition is performed onlty if
*all* terms are marked as inaccessible or *maybe-inaccessible"
2016-10-19 09:10:19 -07:00
Leonardo de Moura
053389b70b feat(library/init/meta/simp_tactic): add new simp primitives 2016-10-19 08:41:25 -07:00
Leonardo de Moura
1185799b1f feat(frontends/lean/elaborator): more detailed error message for a^.f notation 2016-10-18 16:22:05 -07:00
Leonardo de Moura
4d52de6f33 refactor(library/tactic/simplify): add simplify subclasses, and use new simplifier at nested 2016-10-18 16:18:25 -07:00
Leonardo de Moura
fa01e062ef feat(library/tactic/simplifier): add simplify_core_fn
TODO: remove dead code from old simplifier
2016-10-17 09:51:49 -07:00
Sebastian Ullrich
ce28e1aedb fix(shell/server): let completion fall back to first (imports) snapshot 2016-10-16 22:13:44 -07:00
Sebastian Ullrich
7f4cbdf402 fix(frontends/lean/parser): create snapshot even after prelude-only import 2016-10-16 22:13:44 -07:00
Leonardo de Moura
7b806755d9 chore(library/tactic/simplify): remove subsingleton support
It is left over from the blast tactic.
Moreover, it is incomplete.
2016-10-16 22:11:12 -07:00
Leonardo de Moura
835c888936 feat(library/tactic/simplify): simplify cache 2016-10-16 16:39:33 -07:00
Leonardo de Moura
bd8478bb25 chore(library/tactic/simplify): remove m_ctx_slss 2016-10-16 16:28:50 -07:00
Leonardo de Moura
aee951af9b chore(library/tactic): move simplifier to tactic folder 2016-10-16 16:25:14 -07:00
Leonardo de Moura
f833736e35 chore(library/tactic/simplifier): remove unnecessary file 2016-10-16 16:19:01 -07:00
Leonardo de Moura
9810a5f941 refactor(library/tactic/simplifier): simplify simplifier 2016-10-16 15:55:30 -07:00
Gabriel Ebner
888609013f feat(tests): run tests in emscripten build 2016-10-16 14:41:35 -07:00
Gabriel Ebner
2d1d1570d3 feat(util/debug): emscripten support 2016-10-16 14:41:35 -07:00
Gabriel Ebner
80cd6205d7 fix(util/file_lock): disable file locks in emscripten 2016-10-16 14:41:35 -07:00
Gabriel Ebner
9f1c2a050c fix(tests): update to name hashing changes 2016-10-16 14:41:35 -07:00
Gabriel Ebner
db766b2f5a chore(shell/lean): fix coding style 2016-10-16 14:41:35 -07:00
Gabriel Ebner
6d7cf7bace fix(tests/shell): fix build 2016-10-16 14:41:35 -07:00
Gabriel Ebner
a7fe8cf15c fix(bin/linja): support files with spaces 2016-10-16 14:41:35 -07:00
Gabriel Ebner
067484a3e5 chore(CMakeLists): bump dependency versions for emscripten build 2016-10-16 14:41:35 -07:00
Gabriel Ebner
ec0aa6d248 refactor(*): integrate emscripten build 2016-10-16 14:41:35 -07:00
Leonardo de Moura
0f72de217a chore(library/tactic/simplifier): simplify simplifier 2016-10-15 18:14:59 -07:00
Leonardo de Moura
4500c3ecfe feat(library/init/logic): lemmas for rewriting let-exprs 2016-10-15 17:23:18 -07:00
Leonardo de Moura
6126969879 fix(shell/server): missing include for std::setlocale 2016-10-15 17:14:34 -07:00
Sebastian Ullrich
87ec1e0ac5 fix(shell/server): last snapshot may not be valid any more 2016-10-15 13:42:40 -07:00
Leonardo de Moura
9b84db083d fix(frontends/lean): error localization bugs 2016-10-15 13:40:57 -07:00
Leonardo de Moura
c3861c7ab3 fix(frontends/lean/elaborator): bug when creating error message 2016-10-15 13:30:26 -07:00
Leonardo de Moura
5318b0cf39 fix(library/tactic/backward/backward_lemmas): uninitialized value 2016-10-15 13:21:46 -07:00
Leonardo de Moura
a5029ab5d2 fix(frontends/lean): improve error localization 2016-10-15 10:43:33 -07:00
Leonardo de Moura
27bca9c3dc chore(emacs/lean-server): force utf8 2016-10-14 18:45:31 -07:00
Leonardo de Moura
6c3d55ff7f chore(util/json): workaround for mingw 2016-10-14 17:24:47 -07:00
Sebastian Ullrich
71e01d2f89 fix(emacs): actually initialize lean-company 2016-10-14 17:52:21 -04:00
Leonardo de Moura
541e9010e1 fix(shell/lean): disable initialize/finalize server when -DSERVER=OFF is used 2016-10-14 12:56:50 -07:00
Leonardo de Moura
39dba8f5e5 chore(shell/server): make sure "make style" works 2016-10-14 11:58:10 -07:00
Sebastian Ullrich
8f71f4c82d fix(emacs): void-function in lean-debug-mode 2016-10-14 11:53:00 -07:00
Sebastian Ullrich
7e570d7777 feat(shell/server, emacs): bring back basic completion 2016-10-14 11:53:00 -07:00
Leonardo de Moura
2a5616d2b9 fix(shell/json): typos 2016-10-14 11:51:00 -07:00
Leonardo de Moura
936eb76466 feat(CMakeFiles): add -DSERVER=OFF cmake option
Motivation: we can disable lean-server and the json dependency when compiling lean.js.
2016-10-14 11:48:02 -07:00
Leonardo de Moura
0bb155a427 chore(*): remove .clean support
In Lean2, we used to cache elaborated definitions in .clean files. The
main goal was to optimize each flycheck invocation produced by Emacs.

The Lean3 definition package was not updating this cache. Moreover, it
is not necessary because the new compilation server subsumes it.
2016-10-13 19:58:58 -07:00
Leonardo de Moura
b9e62a982f chore(shell/server): fix 'make style' 2016-10-13 19:35:50 -07:00
Leonardo de Moura
0ee1eed751 chore(library/type_context): comment assertion violated by the pretty printer 2016-10-13 19:34:58 -07:00
Leonardo de Moura
3162bac4e7 feat(shell/lean): disable assertion violation dialog in server mode 2016-10-13 18:56:10 -07:00
Gabriel Ebner
b24291fc99 fix(shell/server): remove static integer underflow 2016-10-13 18:49:10 -07:00
Gabriel Ebner
a4d8ae2e30 fix(frontends/lean/parser): fix snapshots in prelude files 2016-10-13 18:49:10 -07:00
Sebastian Ullrich
42af889159 refactor(emacs): parse response as plist 2016-10-13 18:49:10 -07:00
Gabriel Ebner
ba74530cc0 chore(*): remove legacy flycheck support 2016-10-13 18:49:10 -07:00
Gabriel Ebner
6da53bf87e fix(shell/emscripten): reenable flycheck output 2016-10-13 18:49:10 -07:00