Commit graph

9000 commits

Author SHA1 Message Date
Leonardo de Moura
6a0f11f705 feat(library/tactic/tactic_state,library/init/meta/tactic): add mk_meta_univ, mk_meta_var, mk_const
This commit also changes the semantics of the unify tactic.
It fails if the arguments are not unifiable.
2016-06-18 11:12:51 -07:00
Leonardo de Moura
560048c53f feat(library/init/monad): add and_then notation 2016-06-18 11:04:39 -07:00
Leonardo de Moura
f05e0cfa5a fix(library/tactic/apply_tactic): instantiate metavariables before type class resolution 2016-06-18 10:38:54 -07:00
Leonardo de Moura
9cc3fb90ff chore(library/tactic/apply_tactic): remove trace msg 2016-06-18 10:35:12 -07:00
Leonardo de Moura
00717318f0 feat(library/tactic/apply_tactic): add option to disable type class resolution to apply_core 2016-06-18 10:03:38 -07:00
Leonardo de Moura
735aa4ebfa feat(library/tactic/tactic_state): add 'is_class' and 'apply_instance' tactics 2016-06-18 09:51:02 -07:00
Leonardo de Moura
dc2fbe6bfc refacto(library): move prod inhabited and has_decidable_eq instances to init folder 2016-06-18 09:49:22 -07:00
Leonardo de Moura
66c6d3b87a feat(library/tactic/apply_tactic): add remove_redundant_goals 2016-06-17 20:21:17 -07:00
Leonardo de Moura
61a845c005 feat(library/tactic): add 'apply' tactic 2016-06-17 20:11:52 -07:00
Leonardo de Moura
154f02ca32 feat(library/init/meta/contradiction_tactic): add 'exfalso' tactic 2016-06-17 17:35:53 -07:00
Leonardo de Moura
ded1fe74c5 refactor(library/init/meta/tactic): implement num_goals in Lean 2016-06-17 16:18:15 -07:00
Leonardo de Moura
ee888e9872 feat(library/init/meta/tactic): add 'now' tactic 2016-06-17 16:15:32 -07:00
Leonardo de Moura
b21a3376e0 feat(library/init/meta/tactic): add 'focus' and 'all_goals' tacticals 2016-06-17 16:11:40 -07:00
Leonardo de Moura
514c09d7b8 chore(library/data/nat/div): move instances to top-level 2016-06-17 15:36:33 -07:00
Leonardo de Moura
6371a8db38 fix(library/tactic/tactic_state): consume solved goals 2016-06-17 15:19:50 -07:00
Leonardo de Moura
0b2ed21561 feat(library/init/meta/tactic): add rotate_left and rotate_right tactics 2016-06-17 15:11:08 -07:00
Leonardo de Moura
eef3debcf5 fix(library/type_context): bug in revert with let-decls 2016-06-17 14:50:01 -07:00
Leonardo de Moura
c5f92f08b8 feat(library/tactic): add 'assert' tactic
Remark: the new assert tactic does have the problem described in issue #621
2016-06-17 14:42:28 -07:00
Leonardo de Moura
46cf91c969 chore(frontends/lean): remove 'assert' keyword
In Lean3, `assert` was just an alias for `have`.
2016-06-17 14:20:26 -07:00
Leonardo de Moura
1f49d126ed feat(library/init/meta/tactic): add dsimp 2016-06-17 14:04:11 -07:00
Leonardo de Moura
87a5b88f66 fix(library/type_context): typo 2016-06-17 13:57:50 -07:00
Leonardo de Moura
d0afe0aa99 feat(library/tactic): add 'change' tactic 2016-06-17 13:21:52 -07:00
Leonardo de Moura
73b21b9e48 fix(library): assertion violations 2016-06-17 13:16:17 -07:00
Leonardo de Moura
e53ce1828a fix(library/defeq_simplifier): assertion 2016-06-17 12:30:09 -07:00
Leonardo de Moura
2d6742b091 feat(library/tactic): add tactic.defeq_simp 2016-06-17 11:20:15 -07:00
Leonardo de Moura
f36db4085e feat(library/trace): add helper constructor 2016-06-17 11:17:08 -07:00
Leonardo de Moura
1fb8cc0dfd feat(library/defeq_simplifier): move defeq simplifier to new type_context 2016-06-17 10:51:07 -07:00
Leonardo de Moura
8333500457 refactor(library): move try_eta to util 2016-06-17 10:29:02 -07:00
Leonardo de Moura
f4695c4a1d chore(frontends/lean): remove #defeq_simplify command 2016-06-17 10:16:53 -07:00
Leonardo de Moura
7f810d3db5 chore(tests/lean): fix tests output 2016-06-17 09:56:57 -07:00
Leonardo de Moura
c8c43a866b feat(library/tactic): implement assumption tactic in Lean 2016-06-17 09:06:35 -07:00
Leonardo de Moura
b24795b2b1 feat(library/init/meta/expr): mark expr.app as a coercion 2016-06-17 08:50:06 -07:00
Leonardo de Moura
27085c3d16 feat(library/tactic/tactic_state): add tactic.mk_instance 2016-06-17 08:39:18 -07:00
Leonardo de Moura
687746a0f2 chore(tests/lean): fix tests 2016-06-16 18:47:23 -07:00
Leonardo de Moura
84e33f6ae2 feat(library/init/meta/contradiction_tactic): improve contradiction tactic 2016-06-16 18:32:08 -07:00
Leonardo de Moura
469066bd00 feat(library/init/meta/contradiction_tactic): use whnf to be able to handle (a + 1 = 0) 2016-06-16 18:24:19 -07:00
Leonardo de Moura
7f03684d89 fix(library/tactic/tactic_state): forgot to register tactic.whnf 2016-06-16 18:23:57 -07:00
Leonardo de Moura
301f3f93aa feat(library/init/meta): add contradiction tactic 2016-06-16 18:17:14 -07:00
Leonardo de Moura
67aa755a94 feat(library/init/meta): add helper functions 2016-06-16 18:16:35 -07:00
Leonardo de Moura
7e15b114e6 refactor(library/init/list): move list notation to the top-level 2016-06-16 18:15:43 -07:00
Leonardo de Moura
586baa4118 feat(library,frontends/lean): support for quoted expressions in the VM, compiler and frontend
TODO: invoke elaborator at tactic.to_expr
2016-06-15 16:06:39 -07:00
Leonardo de Moura
3996f9db4d feat(frontends/lean): add ( token and remove token 2016-06-15 13:22:31 -07:00
Leonardo de Moura
8f7fa8d4e0 feat(CMakeLists): include shared object and all .h files in the installation package 2016-06-15 11:47:03 -07:00
Leonardo de Moura
579a5a4c71 chore(CMakeLists): bump version number 2016-06-15 09:33:33 -07:00
Leonardo de Moura
0eb42190f0 fix(tests/lean): tests 2016-06-14 21:52:52 -07:00
Leonardo de Moura
6a22c0f771 chore(frontends/lean/old_elaborator): improve error message 2016-06-14 21:47:29 -07:00
Leonardo de Moura
5b8ac6ba30 feat(library/tactic): add 'exact' tactic 2016-06-14 21:30:58 -07:00
Leonardo de Moura
c5ec35ac65 chore(library/init/meta/name): change notation for mk_str_name 2016-06-14 21:09:24 -07:00
Leonardo de Moura
cb9b5650b7 feat(library/tactic): add 'subst' tactic 2016-06-14 21:01:57 -07:00
Daniel Selsam
214e960574 fix(frontends/lean/elaborator): incorrect assertion
Conflicts:
	src/frontends/lean/elaborator.cpp
2016-06-14 18:05:39 -07:00