Commit graph

5709 commits

Author SHA1 Message Date
Gabriel Ebner
c06bef0505 fix(library/aux_definition): also zeta expand the local context
@leodemoura The forced zeta-expansion in mk_aux_definition might
cause problems if we use tactic.abstract without zeta-reduction.
However, we never use the non-zeta mode, and it already fails right now
if you accidentally use zeta-expansion in the proof we want to abstract.
2017-04-04 09:04:37 +02:00
Leonardo de Moura
a007c93280 feat(library/tactic/dsimplify): replace assigned metavariables 2017-04-02 12:49:29 -07:00
Leonardo de Moura
6dbf53f195 fix(library/type_context): fixes #1502 2017-04-02 12:49:06 -07:00
Leonardo de Moura
b42ae2cf54 fix(library/type_context): fixes #1500 2017-03-31 19:19:44 -07:00
Leonardo de Moura
6c68aeee01 feat(library/system/io): add io.iterate primitive 2017-03-31 11:34:09 -07:00
Sebastian Ullrich
3f98eb84c5 fix(library/print): consider constant roots in is_used_name 2017-03-31 09:40:49 -07:00
Sebastian Ullrich
3f87755a2a fix(frontends/lean/pp): qualify constant shadowed by local 2017-03-31 09:40:49 -07:00
Sebastian Ullrich
cd013f22c0 chore(*): replace "'^.' notation" with "field notation", pretty print using "." 2017-03-31 09:40:49 -07:00
Sebastian Ullrich
b2dfae8a67 chore(tests/lean/caching_user_attribute): fix flaky test 2017-03-30 06:04:00 +02:00
Sebastian Ullrich
4a33045b84 chore(tests/lean,shell/lean): run leantests and leanruntests in parallel 2017-03-30 06:04:00 +02:00
Jared Roesch
dc4086d0ed feat(library/vm/process): add basic process support 2017-03-28 18:08:06 -07:00
Leonardo de Moura
07c29c0779 chore(library/abstract_parser,frontends/lean/parser): remove dead code 2017-03-28 11:51:50 -07:00
Leonardo de Moura
36c7d46c34 feat(library/tactic): add options trace.rewrite and trace.kabstract for debugging rewrite tactic
See #1480

@semorrison We can now use the following commands to trace the rewrite
tactic
```lean
set_option trace.rewrite true
set_option trace.kabstract true
```

When these options are used, Lean will pretty print the subterm selected
by the rewrite tactic. That is, the subterm that will be rewritten.
This option may help you diagnose what is going on.
2017-03-27 18:18:20 -07:00
Leonardo de Moura
09867fcfe0 fix(library/tactic/simplify): assertion violation 2017-03-27 18:04:57 -07:00
Leonardo de Moura
1cef8af1be feat(library/tactic/simplify): add eta := tt to simp 2017-03-27 17:38:40 -07:00
Leonardo de Moura
eea46610ea fix(library/tactic/simplify): missing projection reduction, add proj := tt to simp 2017-03-27 17:38:40 -07:00
Leonardo de Moura
b09968a37b feat(library/tactic/simplify): add beta := tt to simp 2017-03-27 17:38:31 -07:00
Leonardo de Moura
34f6a92e24 fix(library/tactic/simplify): simp default behavior should eliminate annotations 2017-03-27 15:10:47 -07:00
Gabriel Ebner
8c1136c1b6 fix(library/module_mgr): get_first_diff_pos: handle newlines correctly 2017-03-27 14:01:04 -07:00
Gabriel Ebner
318910f99b refactor(frontends/lean/parser): store snapshots in a lazy async list 2017-03-27 14:00:53 -07:00
Sebastian Ullrich
ecd208af0b fix(library/module): unfold untrusted macros in imported intro rules 2017-03-27 13:42:08 -07:00
Sebastian Ullrich
a50398f837 fix(library/tactic/eval,kernel/kernel_exception): hide internal definition name on eval_expr type error 2017-03-27 13:42:08 -07:00
Sebastian Ullrich
186fe1b792 fix(library/unfold_macros): recursively unfold macros 2017-03-27 13:42:08 -07:00
Leonardo de Moura
70e6c380ed fix(library/vm/vm_io): fix io_monad
see #1485
2017-03-27 13:42:08 -07:00
Sebastian Ullrich
c7b47c7b7f fix(system/io): try to fix io monad 2017-03-27 13:42:08 -07:00
Sebastian Ullrich
83511bdae1 feat(library/tactic/elaborator_exception): show context of failed placeholders 2017-03-27 13:42:08 -07:00
Leonardo de Moura
900c56be05 feat(frontends/lean,library/equations_compiler): abstract proofs in equations and regular definitions 2017-03-25 14:22:52 -07:00
Leonardo de Moura
0890ae5c01 fix(library/type_context): When synthesizing subsingleton instances, we should not assign universe metavariables
fixes #1487
2017-03-25 10:54:12 -07:00
Leonardo de Moura
8cf43e1b30 feat(library/tactic/tactic_state): add tactic.run_io 2017-03-23 18:17:53 -07:00
Leonardo de Moura
7db44ce403 chore(library/vm/vm_io): style 2017-03-23 16:58:28 -07:00
Leonardo de Moura
fe3875a103 feat(library/system/io): add stdin, stdout and stderr 2017-03-23 16:49:39 -07:00
Leonardo de Moura
82748a61b7 feat(library/system/io): basic file system API 2017-03-23 16:30:16 -07:00
Leonardo de Moura
527c8851a8 refactor(library/system/io): use type classes 2017-03-23 14:29:07 -07:00
Gabriel Ebner
0d4f829ada fix(library/mt_task_queue): fix abort 2017-03-23 15:37:52 +01:00
Gabriel Ebner
a6f7f31e85 refactor(shell,emacs): handle different checking modes in server 2017-03-23 09:07:09 +01:00
Gabriel Ebner
c7ca21625c feat(util/log_tree): annotate nodes with detail levels 2017-03-23 09:03:43 +01:00
Gabriel Ebner
098d6f8f2a refactor(init/meta/tactic): remove report_errors argument from to_expr 2017-03-23 09:03:42 +01:00
Gabriel Ebner
7f1569535b feat(library/messages): clamp message position to current location 2017-03-23 09:01:00 +01:00
Gabriel Ebner
feb13c47f8 perf(util/task_builder): speed up traverse 2017-03-23 09:00:59 +01:00
Gabriel Ebner
677bf43da3 fix(library): fix various leaks 2017-03-23 09:00:59 +01:00
Gabriel Ebner
f85468159d fix(library/module): prevent reference to previous versions 2017-03-23 09:00:59 +01:00
Gabriel Ebner
28c71d7dba fix(library/mt_task_queue): do not wait on freed condition_variables 2017-03-23 09:00:59 +01:00
Gabriel Ebner
fa19b3c94d fix(library/vm/vm): prevent segfault in out-of-memory conditions 2017-03-23 09:00:59 +01:00
Gabriel Ebner
901cef6629 refactor(util/thread): simplify thread life-cycle 2017-03-23 09:00:59 +01:00
Gabriel Ebner
7fc190c730 fix(mt_task_queue): fix reference cycle between closure and lthread 2017-03-23 09:00:59 +01:00
Gabriel Ebner
667d06108a chore(*): fix clang warnings 2017-03-23 09:00:58 +01:00
Gabriel Ebner
d22bfbd12a feat(util/debug): add version of lean_assert that also works in non-debug builds 2017-03-23 08:57:56 +01:00
Gabriel Ebner
5e94f63b3e feat(library/mt_task_queue): kill all idle workers 2017-03-23 08:57:56 +01:00
Gabriel Ebner
667381b8bd fix(library/mt_task_queue): bump_prio: handle unsubmitted tasks 2017-03-23 08:57:56 +01:00
Gabriel Ebner
56aceae435 fix(library/mt_task_queue): ensure precondition for execute 2017-03-23 08:57:56 +01:00