Commit graph

26741 commits

Author SHA1 Message Date
Leonardo de Moura
25f1980ddd fix: fixes #345 2021-03-11 18:59:39 -08:00
Leonardo de Moura
865316bbf9 feat: improve error message when stuck solving universe constraints
closes #343
2021-03-11 17:46:44 -08:00
Sebastian Ullrich
03af37c29d doc: lean4-mode: update keybindings 2021-03-11 21:20:36 +01:00
Leonardo de Moura
dc87bef04c fix: error message
This is a fix for bug reported by @JasonGross at Zulip
2021-03-11 12:16:15 -08:00
Leonardo de Moura
be841a7cad chore: throwError! => throwError, throwErrorAt! => throwErrorAt
@Kha I marked the corresponding methods as `protected`.
I currently can't stand `throw_error`, and I am optimistic about
server highlighting feature you are working on :)
2021-03-11 11:59:45 -08:00
Leonardo de Moura
03bd608b00 chore: fix doc 2021-03-11 11:40:39 -08:00
Leonardo de Moura
d46cb80362 chore: fix tests 2021-03-11 11:35:51 -08:00
Leonardo de Moura
40426f8b5f chore: update stage0 2021-03-11 11:26:35 -08:00
Leonardo de Moura
ffb57e661f chore: remove old notation 2021-03-11 11:24:52 -08:00
Leonardo de Moura
2b19ff16d9 chore: update stage0 2021-03-11 11:20:22 -08:00
Leonardo de Moura
1112ab6eff chore: use new notation 2021-03-11 11:19:33 -08:00
Leonardo de Moura
63b898364c chore: update stage0 2021-03-11 11:00:58 -08:00
Leonardo de Moura
ca0baf12b6 chore: avoid ! suffix in builtin notation 2021-03-11 10:58:06 -08:00
Leonardo de Moura
656b7a8d87 chore: fix tests 2021-03-11 10:51:11 -08:00
Leonardo de Moura
a818478e37 chore: update stage0 2021-03-11 10:45:50 -08:00
Leonardo de Moura
5049d92968 chore: remove let! and let* notation 2021-03-11 10:42:50 -08:00
Leonardo de Moura
2d1c19b8e6 chore: update stage0 2021-03-11 10:41:18 -08:00
Leonardo de Moura
e7140959c4 chore: add elaborator for let_fun and let_delayed 2021-03-11 10:40:25 -08:00
Leonardo de Moura
90abace21a chore: update stage0 2021-03-11 10:32:19 -08:00
Leonardo de Moura
a97bdd6a67 chore: add let_delayed and let_fun notation
They will replace `let*` and `let!`
2021-03-11 10:31:04 -08:00
Leonardo de Moura
8188789cf4 chore: fix test 2021-03-11 10:16:37 -08:00
Leonardo de Moura
55c5234100 chore: update stage0 2021-03-11 09:39:40 -08:00
Leonardo de Moura
164577d94e chore: remove parser! and tparser!
The new macros are called "leading_parser` and `trailing_parser`.

cc @Kha
2021-03-11 09:36:58 -08:00
Leonardo de Moura
96e580a653 chore: update stage0 2021-03-11 09:19:49 -08:00
Leonardo de Moura
0af0957af4 chore: add leading_parser and trailing_parser elaborator 2021-03-11 09:19:10 -08:00
Leonardo de Moura
a50042dcde chore: update stage0 2021-03-11 09:13:03 -08:00
Leonardo de Moura
327717ade8 chore: add leading_parser and trailing_parser notation
It will replace `parser!` and `tparser!`
2021-03-11 09:08:35 -08:00
Leonardo de Moura
3b6ec3bfcc chore: fix doc 2021-03-11 09:06:33 -08:00
Leonardo de Moura
fda7055c1a chore: update stage0 2021-03-11 08:07:11 -08:00
Leonardo de Moura
9f88ea8047 chore: remove old decide!, nativeRefl!, and nativeDecide! 2021-03-11 08:06:20 -08:00
Leonardo de Moura
1e0109f321 chore: update stage0 2021-03-11 07:56:29 -08:00
Leonardo de Moura
babdde9068 chore: activate decide and nativeDecide 2021-03-11 07:54:54 -08:00
Leonardo de Moura
b419427e90 chore: update stage0 2021-03-11 07:54:33 -08:00
Leonardo de Moura
90c5f35702 refactor: implement decide and nativeDecide as tactics
TODO: update stage0 and activate
2021-03-11 07:50:54 -08:00
Leonardo de Moura
35b2f596f1 test: use decide and nativeDecide
They are not active yet.
2021-03-11 07:46:33 -08:00
Sebastian Ullrich
7b9f9e806f feat: Syntax.topDown 2021-03-11 13:22:18 +01:00
Sebastian Ullrich
75d87f34a6 chore: lean4-mode: do not re-request goal on each flycheck change 2021-03-11 10:45:04 +01:00
Sebastian Ullrich
f4ed9686aa feat: lean4-mode: show all errors not strictly above in info view 2021-03-11 10:25:49 +01:00
Sebastian Ullrich
bd004b4681 chore: update stage0 2021-03-11 10:20:13 +01:00
Leonardo de Moura
48b855bfe5 chore: fix tests 2021-03-10 18:45:22 -08:00
Leonardo de Moura
68143ca8ba chore: trace[...]! ==> trace[...]
@Kha I think this one is a good change, there is no real reason for
using the `!` suffix here.
2021-03-10 18:44:43 -08:00
Leonardo de Moura
55157a3108 chore: fix test 2021-03-10 14:51:24 -08:00
Leonardo de Moura
30ba56126b fix: missing case
Lean should not get stuck at universe constraints such as `?u =?= ?u + 1`.
2021-03-10 14:48:02 -08:00
Leonardo de Moura
a3923eecc8 feat: filter duplicate universe constraints at error message 2021-03-10 14:40:25 -08:00
Leonardo de Moura
847f95021a fix: losing postponed universe constraints
This bug was exposed by #342
2021-03-10 14:18:03 -08:00
Leonardo de Moura
904c23e901 chore: add annotations
We need these extra annotations after we fix a bug a `commitWhen`.
In the `commitWhen` bug, we were "losing" postponed constraints.
2021-03-10 14:11:03 -08:00
Sebastian Ullrich
0bc6043903 fix: lean4-mode: more fixes, maybe 2021-03-10 18:34:24 +01:00
Sebastian Ullrich
06813e8186 doc: new lean4-mode dependency 2021-03-10 18:12:42 +01:00
Sebastian Ullrich
64bfd803fe chore: lean4-mode: avoid cl 2021-03-10 18:10:06 +01:00
Sebastian Ullrich
31d5f9fa51 fix: lean4-mode: coercion at info view 2021-03-10 17:49:35 +01:00