Commit graph

11891 commits

Author SHA1 Message Date
Jeremy Avigad
345defded4 feat(library/init/meta/rb_map): a useful variant of red black maps 2016-08-21 22:31:54 -07:00
Jeremy Avigad
0304d1ceab feat(library/init/monad_combinators): add monad combinators 2016-08-21 22:31:54 -07:00
Jeremy Avigad
766f3f18ee feat(library/init/meta/tactic): generalize first for any return type 2016-08-21 22:31:54 -07:00
Jeremy Avigad
4af0e0a2de fix(library/init/meta/simp_tactic): fix typo 2016-08-21 22:31:54 -07:00
Leonardo de Moura
440d30300f fix(library/tactic/simplifier/simp_lemmas): typo 2016-08-21 22:30:16 -07:00
Leonardo de Moura
e81d92006b feat(library/equations_compiler/elim_match): try to use user-provided names in the variable transition 2016-08-21 22:20:31 -07:00
Leonardo de Moura
038a250798 feat(library/equations_compiler/elim_match): add skip transition for inaccessible terms 2016-08-21 22:11:28 -07:00
Leonardo de Moura
9c55ede671 fix(library/equations_compiler/elim_match): constructor transition 2016-08-21 21:49:45 -07:00
Leonardo de Moura
a4577901e8 fix(library/user_recursors): add support for automatically generated recursors 2016-08-21 17:17:48 -07:00
Leonardo de Moura
67dc68b24d feat(library/equations_compiler/elim_match): add variable/constructor transitions 2016-08-21 15:56:32 -07:00
Leonardo de Moura
6aa2ab6538 chore(tests/lean/run/match2): missing test 2016-08-21 15:55:56 -07:00
Leonardo de Moura
2d90c73546 chore(library/equations_compiler/util): add helper method 2016-08-21 15:55:56 -07:00
Leonardo de Moura
1ea3bc1683 fix(library/tactic/cases_tactic): lowlevel interface that gives access to renamed/introduced hypotheses 2016-08-21 15:55:56 -07:00
Leonardo de Moura
f7b9702438 fix(library/tactic/subst_tactic): typo 2016-08-21 15:55:56 -07:00
Leonardo de Moura
803c956d18 feat(util/sexpr/option_declarations): allow options to be registered after initialization 2016-08-19 16:58:30 -07:00
Sebastian Ullrich
60fa25b665 refactor(library/attribute_manager): remove weakly-typed API
Also reduces number of attribute name literals
2016-08-19 15:02:34 -07:00
Daniel Selsam
4f8db64e23 refactor(simplifier): many fixes, extensions, and tests
fix(simplifier): missing simp rule in prop simplifier
fix(library/unfold_macros): do not look for untrusted macros when using sufficient trust level
2016-08-19 14:57:03 -07:00
Leonardo de Moura
7e4f15b0d8 feat(frontends/lean/elaborator): more inaccessible term validation 2016-08-19 14:52:11 -07:00
Leonardo de Moura
d08920b856 fix(emacs/lean-syntax): syntax highlight for chars, ' can be used in identifiers 2016-08-19 14:15:47 -07:00
Leonardo de Moura
e99eb6d47e feat(frontends/lean): revising inaccessible terms syntax again :( 2016-08-19 13:57:12 -07:00
Leonardo de Moura
ab6ea747ad feat(library/equations_compiler/elim_match): elim_match main recursion skeleton 2016-08-19 09:25:13 -07:00
Leonardo de Moura
ccf0021cff fix(library/equations_compiler/elim_match): cover more cases in value transition 2016-08-19 07:59:17 -07:00
Leonardo de Moura
9f77ca1ab1 feat(library/equations_compiler/elim_match): add is_value_transition 2016-08-18 22:03:01 -07:00
Leonardo de Moura
06b02e4912 chore(library/equations_compiler): test elim_match on nonrec equations 2016-08-18 21:00:57 -07:00
Leonardo de Moura
50c147cd0e feat(frontends/lean/parser): allow string literals in patterns 2016-08-18 21:00:27 -07:00
Leonardo de Moura
e68fbbc12c chore(library/equations_compiler/elim_match): fix style and test output 2016-08-18 18:09:36 -07:00
Leonardo de Moura
22b8cb2777 fix(library/type_context): whnf cache bug 2016-08-18 18:04:19 -07:00
Leonardo de Moura
7cbc178a32 feat(library/equations_compiler): add transition classifiers 2016-08-18 17:55:30 -07:00
Leonardo de Moura
20276f9b93 feat(frontends/lean/pp): pretty print character literals 2016-08-18 17:14:50 -07:00
Leonardo de Moura
ac4b734285 fix(emacs/lean-syntax): syntax highlight for characters 2016-08-18 17:14:22 -07:00
Leonardo de Moura
bd67c9cd9f fix(tests/lean/user_attribute): test output 2016-08-18 15:55:55 -07:00
Sebastian Ullrich
21e8c23ed7 feat(library/vm/user_attribute): use command instead of attribute for registering 2016-08-18 15:51:41 -07:00
Leonardo de Moura
7a0158dcab fix(frontends/lean/elaborator): must take (updated) configuration options into account 2016-08-18 15:47:49 -07:00
Leonardo de Moura
2d15f4335b chore(library/type_context): fix bogus style warning 2016-08-18 15:47:28 -07:00
Leonardo de Moura
ec433a193c feat(library/equations_compiler/elim_match): add primitive for tracing intermediate states when eliminating dependent pattern matching 2016-08-18 15:36:13 -07:00
Leonardo de Moura
e6212469f0 feat(library/type_context): add helper functions for pretty printing 2016-08-18 15:36:01 -07:00
Leonardo de Moura
160632564d fix(frontends/lean/elaborator): prevent unintended copy of type_context 2016-08-18 14:31:18 -07:00
Leonardo de Moura
475b75f661 feat(library/equations_compiler/elim_match): refactor 'program' structure 2016-08-18 14:17:49 -07:00
Sebastian Ullrich
ca8be3857c feat(library/user_attribute): add user-defined attributes and make attribute_manager environment-aware 2016-08-18 12:56:44 -07:00
Leonardo de Moura
cd77f7167e chore(frontends/lean): run_tactic ==> run_command
add `command` as alias for `tactic unit`
2016-08-18 12:53:21 -07:00
Leonardo de Moura
db7b32cf0d fix(library/init/nat): missing annotations 2016-08-18 11:00:31 -07:00
Leonardo de Moura
ddc3789929 feat(frontends/lean): add run_tactic command
This commit also adds the tactic `add_decl`.
2016-08-18 10:56:18 -07:00
Leonardo de Moura
6a880d51a4 feat(library/init): define nat.mod in the init folder too 2016-08-18 10:51:40 -07:00
Leonardo de Moura
93d395ecc7 feat(library/init): make sure nat.div is defined in the init folder 2016-08-18 10:48:47 -07:00
Leonardo de Moura
b37c96d2ea chore(library/init/nat): remove 'local attribute' hack
It is not needed anymore. All attributes are now global.
2016-08-18 10:44:33 -07:00
Leonardo de Moura
05013fb61d feat(library/equations_compiler): add elim_match skeleton 2016-08-17 21:38:23 -07:00
Leonardo de Moura
7ac58c0715 chore(tests/lean/run): fix tests 2016-08-17 15:46:06 -07:00
Leonardo de Moura
423319398d fix(frontends/lean/structure_cmd): compilation warning 2016-08-17 15:42:20 -07:00
Leonardo de Moura
93d48ae620 feat(frontends/lean/parser): revised pattern validation 2016-08-17 15:42:13 -07:00
Leonardo de Moura
5ffa481634 chore(library): remove dead code 2016-08-17 10:45:54 -07:00