Commit graph

9121 commits

Author SHA1 Message Date
Leonardo de Moura
75eab6471d fix(library/init/meta/relation_tactics): typo 2016-06-29 07:25:58 +01:00
Leonardo de Moura
3963fa7cad feat(library/init/meta/base_tactic): rename repeat ==> foreach, add new repeat 2016-06-29 07:20:05 +01:00
Leonardo de Moura
3b6b487e43 feat(library/init/meta/tactic): add 'focus', 'first', 'solve' and LCF-style AND_THEN tactical 2016-06-29 01:07:41 +01:00
Daniel Selsam
f273ccb077 feat(meta/lean/tactic): dsimp_at 2016-06-28 23:52:45 +01:00
Leonardo de Moura
f64db53751 refactor(library/init/meta/tactic): simplify 'simp' tactic 2016-06-28 17:51:22 +01:00
Leonardo de Moura
1c2804256e fix(library/tactic/tactic_state): do not assume combinator.K is in the environment 2016-06-28 16:48:53 +01:00
Leonardo de Moura
9d7a75d0e2 refactor(library/init): move option (inhabited, decidable_eq and monad) instances to init 2016-06-28 16:37:10 +01:00
Leonardo de Moura
f1986b57e9 feat(library/init/meta/tactic): 'revert' tactic returns the number of actually reverted hypothesis 2016-06-28 15:36:50 +01:00
Leonardo de Moura
bd69aacfa8 chore(frontends/lean): remove old '#simplify' command
We can use the new tactic framework for testing the simplifier.
2016-06-28 11:55:02 +01:00
Leonardo de Moura
e16dbac0db feat(frontends/lean): add declare_trace command
It allows users to define their own tracing classes.
2016-06-28 11:45:56 +01:00
Leonardo de Moura
48d6319c1c feat(library/init/meta/tactic): add 'when_tracing' tactical 2016-06-28 11:29:39 +01:00
Leonardo de Moura
dbeb0fec16 feat(library/init/meta): export reducible and semireducible to tactic namespace 2016-06-28 10:31:01 +01:00
Leonardo de Moura
d524ab013f refactor(library/init/meta): make sure 'transparency' is the first argument 2016-06-28 10:25:38 +01:00
Leonardo de Moura
5d225b7056 feat(frontends/lean): 'example's don't need to be trusted 2016-06-28 10:06:15 +01:00
Leonardo de Moura
7e5681c9db feat(tests/lean/run/match_pattern2): add another match_pattern test 2016-06-27 17:21:28 +01:00
Leonardo de Moura
4d32a8a4f8 feat(library/init/meta): add helper functions 2016-06-27 17:19:22 +01:00
Leonardo de Moura
9d8d62a983 test(tests/lean/run/do_match_else): improve test 2016-06-27 16:17:31 +01:00
Leonardo de Moura
fbec9053dc feat(frontends/lean/builtin_exprs): add 'else case' for do-match notation 2016-06-27 15:28:17 +01:00
Leonardo de Moura
23565ff43c fix(library/tactic/match_tactic): check whether all meta-variables have been assigned 2016-06-27 14:53:42 +01:00
Leonardo de Moura
d487a59c23 chore(library/init/meta/match_tactic): document match_pattern tactic 2016-06-27 14:49:32 +01:00
Leonardo de Moura
6893ddc11c chore(tests/lean/interactive/alias): fix test expected output 2016-06-27 14:37:18 +01:00
Leonardo de Moura
669f8fc9df feat(library/init/meta/tactic): make sure to_format ==> to_tactic_format has higher priority 2016-06-27 14:34:55 +01:00
Leonardo de Moura
afffd31a7b feat(library/tactic): add match_pattern tactic 2016-06-27 14:26:31 +01:00
Leonardo de Moura
dea0374055 feat(library/init/meta/tactic): add has_to_tactic_format instance for list 2016-06-27 14:06:18 +01:00
Leonardo de Moura
ea51e77b4b refactor(library): format concatentation as instance of has_append instead of has_add 2016-06-27 08:12:26 +01:00
Leonardo de Moura
9aa6ac62ec refactor(library): add has_append type class, string concatenation is now an instance of has_append instead of has_add 2016-06-27 08:04:47 +01:00
Leonardo de Moura
f3803c6ee4 refactor(frontends/lean/elaborator_context): remove io_state from elaborator_context 2016-06-27 06:29:54 +01:00
Leonardo de Moura
2ea8b26c4f refactor(library/io_state): move get_global_ios to io_state module 2016-06-25 20:59:52 -07:00
Leonardo de Moura
7e759e6773 refactor(library/io_state_stream): avoid references in io_state_stream object 2016-06-25 20:16:58 -07:00
Leonardo de Moura
4f3ce09b57 fix(library/type_context,library/lazy_abstraction): bug in lazy_abstraction, and handle lazy_abstraction in type inference 2016-06-25 14:47:30 -07:00
Leonardo de Moura
6f032dc35f chore(src/emacs/lean-input): make sure '\l' default is the left arrow 2016-06-25 13:54:50 -07:00
Leonardo de Moura
2b35b0056a chore(library/metavar_closure): remove dead code 2016-06-25 13:29:59 -07:00
Leonardo de Moura
fb836d2d75 chore(library/old_tactic/tactic): remove old tactics that have already been ported to new tactic framework 2016-06-25 13:21:07 -07:00
Leonardo de Moura
1590807762 chore(src/runtime/cpp): remove cpp runtime, we are going to use library/vm instead 2016-06-25 13:15:40 -07:00
Leonardo de Moura
51a449e3c4 chore(library): remove dead code 2016-06-25 13:12:24 -07:00
Leonardo de Moura
59f2b9e8c2 refactor(library/type_context): "metavar_context & m_mctx" ==> "metavar_context m_mctx" 2016-06-25 13:08:03 -07:00
Leonardo de Moura
583a55c7c3 refactor(library): move 'none', 'some', 'tt', 'ff' to top-level 2016-06-25 12:39:19 -07:00
Leonardo de Moura
77286e6abb fix(frontends/lean): replay exported decls in imported files 2016-06-25 12:13:36 -07:00
Leonardo de Moura
aa1dbccf26 chore(library/init/meta/injection_tactic): cleanup 2016-06-25 12:03:14 -07:00
Leonardo de Moura
9e60d553e0 feat(library/init/meta): add match_eq and match_heq 2016-06-25 08:07:48 -07:00
Leonardo de Moura
c624c2d932 feat(frontends/lean): allow patterns in 'do' notation 2016-06-24 19:28:48 -07:00
Leonardo de Moura
51b3ddb274 chore(frontends/lean/decl_cmds): use 'pattern' instead of recursive equation 2016-06-24 16:31:06 -07:00
Leonardo de Moura
3a21c9127f chore(frontends/lean): removed dead tokens 2016-06-24 16:10:18 -07:00
Leonardo de Moura
72606479ec feat(library/tactic/tactic_state): add get_tactic_vm_state 2016-06-24 15:56:19 -07:00
Leonardo de Moura
d604cb8b4e feat(library/vm/vm): add friendly invoke method 2016-06-24 15:49:40 -07:00
Daniel Selsam
3915af9592 fix(library/tactic/simplifier): freset cache when adding to context 2016-06-24 15:29:28 -07:00
Leonardo de Moura
77fb7dfd1c chore(library/tactic/simplifier): move tactic_simp to simplifier module 2016-06-24 15:28:05 -07:00
Leonardo de Moura
a3ba032b0d fix(library/type_context): potential memory access violation 2016-06-24 15:24:24 -07:00
Daniel Selsam
e1bc0a68e6 refactor(simplifier): port skeleton to new tactic framework
Conflicts:
	library/init/meta/tactic.lean
	src/library/tactic/tactic_state.cpp
2016-06-24 15:20:40 -07:00
Leonardo de Moura
490a116baa refactor(library): remove abstract_expr and abstract_expr_manager modules 2016-06-24 15:16:57 -07:00