Commit graph

10326 commits

Author SHA1 Message Date
Daniel Selsam
05add2ea02 fix(library/tactic/simplify.cpp): fix debug tracing names 2016-11-02 10:23:38 -07:00
Leonardo de Moura
b22192eee1 fix(library/equations_compiler/elim_match): fixes #1171
We should not use value-transition (based on if-then-else) when there
are dependencies.
2016-10-31 17:42:39 +08:00
Gabriel Ebner
08f7e56b66 fix(vim/syntax): update to lean 3 syntax 2016-10-30 08:42:05 +08:00
Gabriel Ebner
1227e01dd2 fix(emacs): faster lean-info updates 2016-10-30 08:42:05 +08:00
Gabriel Ebner
e18370585d fix(frontends/lean/server): fix relative dependency lookups 2016-10-30 08:42:05 +08:00
Gabriel Ebner
7cff9c4498 fix(emacs): clear error messages in next-error-mode 2016-10-30 08:42:05 +08:00
Gabriel Ebner
d071594b8e refactor(emacs): use lean info buffer for next-error-mode 2016-10-30 08:42:05 +08:00
Gabriel Ebner
7d5c20c885 fix(emacs): show "no goal found" message in same buffer as goals 2016-10-30 08:42:05 +08:00
Leonardo de Moura
a77e4b5abf fix(library/compiler/erase_irrelevant): bug at is_comp_irrelevant 2016-10-27 11:51:37 +08:00
Leonardo de Moura
ea3adf4a7c feat(library/init/meta/tactic): universe polymorphic tactics 2016-10-25 03:42:55 +08:00
Leonardo de Moura
e358a15dd4 fix(frontends/lean/elaborator): show-goal-at-pos after last tactic
See issue #1169
2016-10-25 02:40:24 +08:00
Gabriel Ebner
5f803c0353 feat(frontends/lean/elaborator): make show-goal-at-pos work on
by-tactics
2016-10-21 15:42:29 -07:00
Gabriel Ebner
1c8b4515be chore(emacs): fix cask warnings 2016-10-21 15:42:29 -07:00
Gabriel Ebner
9a175b9b19 chore(emacs): remove unused code 2016-10-21 15:42:29 -07:00
Gabriel Ebner
e6f75f2e0f feat(shell/server,emacs/lean-mode): show-goal-at-pos 2016-10-21 15:42:29 -07:00
Gabriel Ebner
3833a60b7c fix(emacs/lean-server): recognize error messages 2016-10-21 15:42:29 -07:00
Gabriel Ebner
47e6fd091f refactor(frontends/lean): implement show goal function using exceptions 2016-10-21 15:42:29 -07:00
Leonardo de Moura
fa3475fa66 fix(library/type_context): allow assigned regular meta-variables to be "read" in tmp-mode
This commit also removes a "hack" that tried to fix this problem for
universe meta-variables only. Moreover, the hack was incomplete, since
it would not consider nested metavars.
2016-10-21 13:33:07 -07:00
Leonardo de Moura
a9fe684f26 chore(library/tactic/simplify): fix warning in release mode 2016-10-21 13:28:12 -07:00
Leonardo de Moura
2da0b1398c chore(emacs/lean-company): disable async auto-completion 2016-10-19 19:47:57 -07:00
Sebastian Ullrich
989761045b fix(src/emacs/lean-server): revert 133b70c0 for emacs < 25 2016-10-19 19:47:36 -07:00
Leonardo de Moura
99299d1915 feat(library/tactic/simplify): use propext in rewriting rules when simplify_config.use_axioms is tt 2016-10-19 17:59:01 -07:00
Leonardo de Moura
6edec4c4e9 feat(library/init/meta/converter): implement conversionals using ext_simplify_core 2016-10-19 17:23:32 -07:00
Leonardo de Moura
a4ef8f385d feat(library/tactic/simplify): add basic support for lambda-expressions 2016-10-19 14:15:56 -07:00
Leonardo de Moura
205d524409 refactor(library/tactic/simplify): delete old simplifier 2016-10-19 14:03:14 -07:00
Joe Hendrix
8ceada5555 feat(frontends/lean): support binary, octal and hex literals
Scanner will interpret numeric literals prefixed with '0b', '0o', and
'0x' as binary, octal, and hex decimal values respectively.  The prefix
character ('b', 'o', 'x') may be upper or lower case.
2016-10-19 10:13:24 -07:00
Sebastian Ullrich
f10d5e4d8c fix(library/vm/vm_io): disable get_line in server mode 2016-10-19 10:02:58 -07:00
Sebastian Ullrich
044b989679 fix(library/vm/vm_io): capture put_str/put_nat output in server mode 2016-10-19 10:02:58 -07:00
Sebastian Ullrich
133b70c0e3 fix(emacs): don't try to parse server stderr as json, instead notify on server crash 2016-10-19 10:02:58 -07:00
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