Commit graph

26011 commits

Author SHA1 Message Date
Leonardo de Moura
fd542244c0 fix(library/init/meta/tactic): include combinator module since it is required by builtin tactics implemented in C++ 2016-10-03 09:21:13 -07:00
Leonardo de Moura
1baa953b48 feat(frontends/lean/elaborator): improve error localization 2016-10-02 13:33:49 -07:00
Leonardo de Moura
8f27555734 feat(library/init): add order structures 2016-10-02 13:33:25 -07:00
Leonardo de Moura
838b3329ce fix(frontends/lean/elaborator): structure instance update with type classes 2016-10-02 11:36:22 -07:00
Leonardo de Moura
872360db0f feat(util/hash): use #if 2016-10-02 10:46:11 -07:00
Leonardo de Moura
ee3c857c88 fix(util/hash): 32-bit version 2016-10-02 10:03:04 -07:00
Leonardo de Moura
f21f1219d9 fix(frontends/lean/structure_cmd): handle is_one_placeholder 2016-10-02 08:07:19 -07:00
Leonardo de Moura
96538ba899 refactor(library/init): add basic order classes 2016-10-02 07:53:37 -07:00
Leonardo de Moura
28dab58590 chore(library/init/function): make '$' right assoc like Haskell 2016-10-02 07:25:50 -07:00
Leonardo de Moura
d8d70e230a feat(library/init/algebra): make sure abstract instances do not override concrete ones 2016-10-01 13:48:46 -07:00
Leonardo de Moura
4f69fe943a fix(frontends/lean/structure_cmd): make sure structure_cmd takes the option default_priority into account 2016-10-01 13:47:19 -07:00
Leonardo de Moura
9631b70295 fix(library/class): attributes instance and class were not being registered in the attribute_manager when procedures add_instance and add_class were being used directly 2016-10-01 13:45:23 -07:00
Leonardo de Moura
95ffdca3f7 feat(frontends/lean/decl_attributes): add 'default_priority' attribute 2016-10-01 13:27:08 -07:00
Leonardo de Moura
837915f06b fix(frontends/lean/builtin_exprs): bug when parsing in quoted names 2016-10-01 13:19:24 -07:00
Leonardo de Moura
f73506256c chore(tests/lean): adjust tests 2016-10-01 12:57:56 -07:00
Leonardo de Moura
7ab12ed57f feat(library/init/algebra): improve transport_to_additive (copy attributes) 2016-10-01 12:55:17 -07:00
Leonardo de Moura
ab11ff0805 feat(library/init/algebra): tactics for copying multiplicative structures into additive ones 2016-10-01 11:29:02 -07:00
Leonardo de Moura
e8c58cb418 chore(library/init/meta/level): cleanup 2016-10-01 10:07:19 -07:00
Leonardo de Moura
89703ce669 feat(library/vm/vm_expr): expose replace 2016-10-01 09:23:40 -07:00
Leonardo de Moura
6644748d45 fix(library/vm/vm_declaration): is_theorem implies is_definition 2016-10-01 09:22:45 -07:00
Leonardo de Moura
719481588a feat(library/init/meta): add coercion from expr to (expr -> expr) 2016-10-01 09:03:43 -07:00
Leonardo de Moura
8730def4f9 feat(library/init): add basic algebra 2016-09-30 20:51:22 -07:00
Leonardo de Moura
93692d01af feat(library/init/binary): add basic binary properties 2016-09-30 20:26:22 -07:00
Leonardo de Moura
c0022253a7 feat(frontends/lean/tactic_notation): allow lemmas to be removed 2016-09-30 19:53:51 -07:00
Leonardo de Moura
fd6dc8154a feat(library/init/meta/interactive): add interactive tactics 2016-09-30 19:02:45 -07:00
Leonardo de Moura
d627011786 feat(frontends/lean/tactic_notation): do is tactic unit in begin end blocks. 2016-09-30 16:35:45 -07:00
Leonardo de Moura
051b6bd026 feat(frontends/lean/tactic_notation): add notation for entering auto-quotation mode 2016-09-30 16:18:52 -07:00
Leonardo de Moura
9ea858e6fe feat(frontends/lean/tactic_notation): nested interactive tactics 2016-09-30 14:53:07 -07:00
Leonardo de Moura
23ce2b0587 feat(frontends/lean/tactic_notation, library/init/meta/interactive): add "interactive" versions of define/assert/definev/assertv/note tactics 2016-09-29 18:48:32 -07:00
Leonardo de Moura
572751c56e feat(frontends/lean): force user to use meta keyword on meta inductive/structure/class
Before this commit, we were inferring whether an
inductive/structure/class were meta or not. This was bad since the user
had no clue whether the type was trusted (non meta) or not.
Moreover, users could get confused by this behavior and assume the
kernel was allowing trusted code to rely on untrusted one.
2016-09-29 17:56:35 -07:00
Sebastian Ullrich
515da8bbb7 fix(emacs): don't pass --lean option 2016-09-29 15:29:19 -07:00
Sebastian Ullrich
ecb6f56e3f chore(emacs): update README 2016-09-29 15:29:19 -07:00
Sebastian Ullrich
76566adeb5 feat(emacs): integrate lean-next-error-mode 2016-09-29 15:29:19 -07:00
Soonho Kong
b7a95bf16c feat(emacs/lean-input.el): add exclude-list to lean-input-export-translations 2016-09-29 15:29:19 -07:00
Sebastian Ullrich
220fdbe7c6 fix(emacs): set pp.width to column width instead of buffer width of flycheck error list 2016-09-29 15:29:19 -07:00
Jeremy Avigad
2c72bd2dfb chore(README.md): add link to Emacs mode information. Closes #1046. 2016-09-29 15:29:19 -07:00
Jeremy Avigad
66969328a2 feat(src/emacs/README.md): add more information about key bindings and commands 2016-09-29 15:29:18 -07:00
Sebastian Ullrich
e3e4f6d648 fix(emacs/lean-mode.el): invoke lean from project root if existent 2016-09-29 15:29:18 -07:00
Leonardo de Moura
5726d45e7f fix(frontends/lean/elaborator): bad error msg 2016-09-29 15:23:20 -07:00
Leonardo de Moura
f97e238b8e feat(frontends/lean/elaborator): decorate error messages when overloads are used 2016-09-29 15:00:45 -07:00
Leonardo de Moura
f2e8b8794c feat(frontends/lean/elaborator): display error when failed to elaborate using expected type 2016-09-29 11:55:05 -07:00
Leonardo de Moura
ceeebb7e40 feat(frontends/lean/elaborator): improve error messages for eliminators 2016-09-29 11:29:59 -07:00
Leonardo de Moura
c8a720212b feat(frontends/lean): 'by' is now also using interactive mode syntax 2016-09-29 01:57:40 -07:00
Leonardo de Moura
cb248bddb5 feat(library/init/meta/interactive): improve rewrite tactic interface in "interactive" mode 2016-09-28 21:56:11 -07:00
Leonardo de Moura
018d73ce84 feat(library/tactic/rewrite_tactic): improve error message 2016-09-28 21:17:57 -07:00
Leonardo de Moura
84b45b010a feat(frontends/lean/elaborator): improve overloading support 2016-09-28 20:54:11 -07:00
Leonardo de Moura
1f07e87bc2 refactor(frontends/lean/elaborator): add first_pass_info struct 2016-09-28 20:54:10 -07:00
Leonardo de Moura
01aebdf818 fix(tests/lean/ctx_error_msgs): avoid internal ids 2016-09-28 20:54:10 -07:00
Leonardo de Moura
4a5d881c50 feat(library/type_context): better error messages 2016-09-28 15:59:43 -07:00
Leonardo de Moura
92373bb749 feat(library/type_context): universe constraint postponement 2016-09-28 15:30:14 -07:00