Commit graph

481 commits

Author SHA1 Message Date
Leonardo de Moura
f461b53a7f refactor(library): remove eq.ops namespace 2016-07-31 12:50:11 -07:00
Leonardo de Moura
fafea473b8 feat(frontends/lean/elaborator): coercions to sort 2016-07-30 19:47:04 -07:00
Leonardo de Moura
32eb37472f feat(library/init/coe): make sure base case is tried before transitive case, add (decidable (coe b)) instance 2016-07-30 11:44:05 -07:00
Leonardo de Moura
2ad5c2ab73 feat(library/init): add has_lift has_coe has_coe_to_fun type classes 2016-07-30 10:11:30 -07:00
Sebastian Ullrich
e090326f98 fix(library): remove classical instances from global scope 2016-07-29 23:44:23 -04:00
Sebastian Ullrich
c4edad0372 feat(frontends/lean, library): remove attribute and metaclass scoping
All data is now part of either a global, permanent scope or a local,
temporary one
2016-07-29 23:44:21 -04:00
Leonardo de Moura
de237fa6e4 chore(library/coercion): disable coercion attribute 2016-07-29 13:15:10 -07:00
Leonardo de Moura
7ddf1e817b chore(frontends/lean): coercions are disabled by default 2016-07-29 13:03:23 -07:00
Daniel Selsam
1b7f70dde9 feat(simplifier): expose simp_lemmas data structure 2016-07-29 10:44:44 -07:00
Daniel Selsam
75145c29ef refactor(library/smt): move smt files from algebra 2016-07-29 10:44:44 -07:00
Leonardo de Moura
14ac5fb25a fix(library/init/meta/mk_measurable_instance) : add 1 for each constructor 2016-07-23 13:01:09 -07:00
Leonardo de Moura
e0e5a84f84 chore(tests/lean): adjust tests 2016-07-23 12:48:35 -07:00
Leonardo de Moura
b5cddede6b feat(library/init/meta): add mk_measurable_instance tactic 2016-07-23 12:30:41 -07:00
Leonardo de Moura
bdc93cb7f4 refactor(library/init): change subtype notation and put it on the top-level 2016-07-23 12:30:11 -07:00
Leonardo de Moura
85e3f51fd5 feat(library/bin_app): uniform foldr, add helper methods for synthesizing recursive functions
foldr combinator is used to define brec_on recursor.
It is easier to access the brec_on "dictionary" if the representation is
uniform.
2016-07-23 12:11:18 -07:00
Leonardo de Moura
0db1f3a9d1 feat(library/init/meta): add helper functions 2016-07-23 11:39:11 -07:00
Leonardo de Moura
212d222047 feat(frontends/lean): quoted names 2016-07-22 19:06:57 -07:00
Leonardo de Moura
39b93f3776 refactor(library/init/functor): better signature 2016-07-22 16:43:54 -07:00
Leonardo de Moura
2bcd5c8379 feat(library/init): add state monad and stateT monad transformer 2016-07-22 15:42:29 -07:00
Leonardo de Moura
62e6179106 feat(library/init/option): show that optionT is an instance of alternative 2016-07-22 15:39:03 -07:00
Leonardo de Moura
9aebb168a3 chore(library/init/option): remove bad comment 2016-07-22 11:36:33 -07:00
Leonardo de Moura
989e20a5d3 feat(library/init/option): add optionT monad transformer 2016-07-22 11:34:04 -07:00
Leonardo de Moura
fa04e5f36f refactor(library/init/meta): move set/get option tactics to separate file 2016-07-21 17:10:38 -07:00
Leonardo de Moura
ada260309e refactor(library/init/meta): move defeq simplifier related tactics to separate file 2016-07-21 17:07:09 -07:00
Leonardo de Moura
d70bf2f04e refactor(library/init/meta): move simplifier related tactics to separate file 2016-07-21 17:03:19 -07:00
Leonardo de Moura
1b55507971 refactor(library/init/meta): rename C++ intro to intro_core, and define smarter intro in C++ 2016-07-21 16:54:23 -07:00
Leonardo de Moura
90eb79a295 feat(library/init/meta): add mk_inhabited_instance tactic 2016-07-20 21:01:50 -04:00
Leonardo de Moura
9beacebf33 doc(library/init/meta/mk_dec_eq_instance): missing documentation 2016-07-20 20:30:02 -04:00
Leonardo de Moura
0163c1aa5b feat(library/init): use mk_dec_eq_instance in the init folder
We cannot mk_dec_eq_instance everywhere in the init folder because some
dec_eq instances are used to define the tactic mk_dec_eq_instance.
2016-07-20 20:21:58 -04:00
Leonardo de Moura
40b3410ede feat(library/init/meta): add tactic mk_dec_eq_instance 2016-07-20 19:57:12 -04:00
Leonardo de Moura
2580b40dc1 feat(library/init/meta/tactic): add helper tactic whnf_target 2016-07-20 19:29:22 -04:00
Leonardo de Moura
f0f927919d feat(library/init/meta/expr): add get_app_args 2016-07-20 19:28:36 -04:00
Leonardo de Moura
7f0b4b4573 feat(library/init/meta/environment): add is_recursive API 2016-07-20 19:27:43 -04:00
Leonardo de Moura
3dccaa8e39 feat(library/init/string): add utf8_length 2016-07-19 14:22:37 -04:00
Leonardo de Moura
7597952bad fix(library/tactic/unfold_tactic): should use type_context locals 2016-07-18 19:08:31 -04:00
Leonardo de Moura
5a96237989 refactor(library/data/list): move dropn to init 2016-07-18 18:14:21 -04:00
Leonardo de Moura
0d8213cf92 feat(library/tactic): add unfold tactic 2016-07-18 15:46:56 -04:00
Leonardo de Moura
3218f91e35 feat(frontends/lean): add support for character literals 2016-07-18 14:07:10 -04:00
Leonardo de Moura
a20abd61e8 feat(library/tactic): implement rewrite and kabstract using occurrences object 2016-07-18 10:10:37 -04:00
Leonardo de Moura
3e6b4577e2 feat(library/tactic): add occurrences object 2016-07-18 09:49:49 -04:00
Leonardo de Moura
7f0276f592 feat(library/tactic): add 'rewrite' tactic and variants 2016-07-17 16:08:11 -04:00
Leonardo de Moura
393f926563 refactor(library): move head to init folder 2016-07-16 16:27:30 -04:00
Leonardo de Moura
0b5668ebf3 feat(library/init/char): add inhabited instance for char 2016-07-16 16:24:11 -04:00
Leonardo de Moura
26177995c2 feat(library/tactic): add 'generalize' tactic 2016-07-16 15:41:32 -04:00
Leonardo de Moura
a5307a34bc feat(library/tactic): add 'cases' tactic skeleton 2016-07-12 14:05:03 -04:00
Leonardo de Moura
5f2591b3a3 feat(library/init/meta/backward): expose back_lemmas (index)
Motivation: the user can create the index once and use it many times.
2016-07-10 17:11:24 -07:00
Leonardo de Moura
e48fa15b71 feat(library/tactic/backward/backward_chaining): add 'pre_tactic' to backward_chaining_core 2016-07-10 16:11:13 -07:00
Leonardo de Moura
7c8d0f444f feat(library/tactic/backward): finish backward chaining tactic 2016-07-10 13:49:28 -07:00
Leonardo de Moura
af9c7148b3 feat(library/tactic/backward): add backward_chaining skeleton tactic 2016-07-10 11:45:25 -07:00
Leonardo de Moura
aacd812cc8 feat(library/init/meta/tactic): add 'by_contradiction' tactic 2016-07-09 19:14:36 -07:00