Leonardo de Moura
30cea2dceb
fix(frontends/lean): auxiliary bind-application in do-notation was not allowing us to obtain type information for the monadic actions.
...
The new test exposes the problem.
2017-01-12 18:38:31 -08:00
Gabriel Ebner
b5ac381a5e
chore(frontends/lean/print_cmd): update print command to keyword changes
2017-01-12 12:04:37 -08:00
Leonardo de Moura
3967cd28fa
fix(library/vm/vm): curr_fn() may not be available
2017-01-12 11:47:45 -08:00
Leonardo de Moura
cdfa9e655c
test(tests/lean/vm_let_expr): add regression test for bugs fixed in the previous two commits
2017-01-12 11:18:16 -08:00
Leonardo de Moura
7e1db95c79
fix(frontends/lean): doc strings after constants and axioms
2017-01-12 00:22:37 -08:00
Gabriel Ebner
db81e4b5b8
feat(frontends/lean/parser): gracefully handle scanner exceptions in imports
2017-01-11 23:49:44 -08:00
Leonardo de Moura
df91ae3738
fix(library/string,library/init/data/to_string): handle ASCII control characters
2017-01-11 23:44:33 -08:00
Leonardo de Moura
acef1efb86
fix(frontends/lean/pp,library/equations_compiler,library/tactic/smt/congruence_closure): bug at to_char function
2017-01-11 23:44:25 -08:00
Leonardo de Moura
d0c86f13bb
chore(library/init/data/nat): rename nat.less_than to nat.less_than_or_equal as suggested by Rob
2017-01-11 17:47:49 -08:00
Leonardo de Moura
ae56c6d322
feat(frontends/lean/builtin_cmds): improve error message when import is used in the middle of the file
2017-01-11 11:15:29 -08:00
Leonardo de Moura
2df280431a
fix(library/compiler/comp_irrelevant): fix #1302
2017-01-11 11:10:17 -08:00
Sebastian Ullrich
83bddce900
feat(frontends/lean/info_manager,shell/server,emacs/lean-type): info: provide more metadata
...
* docs: attributes, options, identifiers
* location: attributes, imports
2017-01-11 15:29:14 +01:00
Leonardo de Moura
19e20f7e1a
fix(frontends/lean/elaborator): universe elaboration issue
2017-01-10 22:35:12 -08:00
Leonardo de Moura
e256022746
chore(library/init/meta/tactic): avoid the weird 'command' type when auto completing tactics
2017-01-10 14:59:10 -08:00
Sebastian Ullrich
e0ebe9f4a8
fix(frontends/lean/tactic_evaluator): show VM errors on tactic
2017-01-10 14:42:48 -08:00
Sebastian Ullrich
ed4275ae17
fix(frontends/lean/builtin_cmds): do not complete after namespace
...
Most identifiers used with the command are not namespaces yet
2017-01-10 14:42:48 -08:00
Sebastian Ullrich
8eb39bb982
fix(frontends/lean/parser): catch exceptions thrown by sync_command
2017-01-10 14:42:48 -08:00
Leonardo de Moura
00c89f209c
fix(frontends/lean/definition_cmds): fix #1299
2017-01-10 14:38:46 -08:00
Leonardo de Moura
e96bbaee3f
fix(library/type_context): fix #1295
2017-01-10 11:54:38 -08:00
Leonardo de Moura
8e26d200b0
test(tests/lean/run/smt_facts_as_hinst_lemmas): add test for facts as hinst_lemmas
2017-01-10 11:27:22 -08:00
Gabriel Ebner
a586cadfa1
chore(tests/lean/run/super_examples): clean up
2017-01-10 09:07:37 -08:00
Gabriel Ebner
890ba702e6
feat(tools/super/demod): demodulation
2017-01-10 09:07:37 -08:00
Gabriel Ebner
244e061f76
refactor(tools/super/simp): do not enable simp by default
...
simp interacts badly with super's term ordering. I believe a better
approach is to pick the term ordering according to the available simp
rules, as in "More SPASS with Isabelle".
2017-01-10 09:07:37 -08:00
Leonardo de Moura
4f0f989e6f
fix(tests/lean/interactive): expected output
...
@kha The following three tests were broken on my machine. The new
produced output looked correct. So, I updated the expected output files.
Is this ok?
see #1296
2017-01-10 09:05:44 -08:00
Sebastian Ullrich
cc3126e944
feat(frontends/lean,library/scoped_ext,shell): complete namespaces
2017-01-10 12:25:33 +01:00
Sebastian Ullrich
b04df04120
feat(frontends/lean): rework and simplify completion parsing, enabling completion of empty prefixes
2017-01-10 12:25:33 +01:00
Sebastian Ullrich
7ef1bd1a15
chore(tests/lean/interactive): simplify input format and test full completion output
2017-01-10 12:25:33 +01:00
Leonardo de Moura
30a962d5e0
test(tests/lean/run): add more tests for the smt_tactic framework
2017-01-09 19:26:29 -08:00
Leonardo de Moura
b1c1d2dfa4
feat(library/init/meta): improve dsimp tactic notation
2017-01-09 17:31:35 -08:00
Leonardo de Moura
5d750ba0a4
fix(library/tactic/tactic_state): closes #1293
2017-01-09 16:23:02 -08:00
Leonardo de Moura
7a150b41b9
fix(frontends/lean): fixes #1292
2017-01-09 15:53:37 -08:00
Leonardo de Moura
b89b1dd4c7
chore(tests/lean/run/nested_common_subexpr_issue): typo
2017-01-09 15:36:49 -08:00
Leonardo de Moura
7d540b6d02
fix(frontends/lean/parser): fixes #1290
2017-01-09 15:35:25 -08:00
Leonardo de Moura
b526e30c55
fix(library/compiler/cse): common subexpressions inside common subexpressions were not being eliminated
2017-01-09 11:11:55 -08:00
Leonardo de Moura
0a6a09fb3a
fix(library/tactic/smt/hinst_lemmas): pattern normalization issue
2017-01-08 23:35:39 -08:00
Leonardo de Moura
5ba414700f
fix(library/tactic/smt/smt_state): canonize at intros
2017-01-08 19:31:04 -08:00
Leonardo de Moura
347981097a
chore(tests/lean/run/heap): fix travis build, profiler option is not available in single threaded build
2017-01-08 10:53:34 -08:00
Leonardo de Moura
26949db4f1
fix(library/tactic/smt/smt_state): remove auxiliary hypotheses added by the equation compiler
2017-01-08 10:36:38 -08:00
Leonardo de Moura
a1a5a9ab96
test(tests/lean/run/smt_ematch2): add ematching tests
2017-01-08 10:07:15 -08:00
Leonardo de Moura
9d273d924f
fix(library/tactic/smt/congruence_closure): must check whether constructors have the same type or not
2017-01-08 00:36:57 -08:00
Leonardo de Moura
299751982b
fix(frontends/lean/tactic_evaluator): 'begin [smt] ... end' block nested in regular one
2017-01-07 13:35:43 -08:00
Leonardo de Moura
8069872861
fix(library/tactic/backward/backward_chaining): bug in back_chaining tactic
2017-01-07 11:19:03 -08:00
Leonardo de Moura
b0bcb4af57
chore(tests/lean/run/listex2): fix issue at travis, profiler option is not available in single thread build
2017-01-07 10:39:57 -08:00
Leonardo de Moura
94f16d1e44
refactor(library/tactic): move defeq_canonizer::state to tactic_state
...
It was being stored in the environment before. This was very hackish,
and it was producing a series of unnecessary environment updates, and
thread local caches invalidations.
The new test tests/lean/run/heap.lean is 5x-6x faster after this commit.
2017-01-07 10:17:51 -08:00
Leonardo de Moura
9026b1c57b
chore(tests/lean): fix tests output
2017-01-06 20:30:11 -08:00
Leonardo de Moura
d81acfc44a
feat(library/tactic/smt/smt_state): use eta reduction in the smt preprocessor
2017-01-06 20:23:41 -08:00
Leonardo de Moura
c29a2bdac9
feat(library/init/meta/tactic): add eta reduction tactic
2017-01-06 19:56:10 -08:00
Leonardo de Moura
d333c444cd
test(tests/lean/run): add tactic examples
2017-01-06 18:48:03 -08:00
Sebastian Ullrich
7040844f9a
feat(frontends/lean/parser,shell): complete imports
2017-01-06 14:02:31 -08:00
Sebastian Ullrich
3136f36ed6
fix(frontends/lean/parser): complete after periods trailing identifiers
2017-01-06 14:02:31 -08:00