Commit graph

2824 commits

Author SHA1 Message Date
Leonardo de Moura
71cd067e94 feat: add helper command 2021-05-13 22:10:35 -07:00
Leonardo de Moura
f850820029 feat: add mkInjectiveTheorems 2021-05-13 22:09:50 -07:00
Leonardo de Moura
ea45d3bd40 fix: fixes #457 2021-05-12 20:45:54 -07:00
Leonardo de Moura
4db3ccaddb feat: type ascription should disable implicit lambdas 2021-05-12 19:29:36 -07:00
Sebastian Ullrich
8ae726203d fix: plainGoal: consider original positions only when deciding whether a tactic is a combinator 2021-05-12 10:51:42 +02:00
Leonardo de Moura
c9db8619f1 fix: fixes #456 2021-05-11 21:07:21 -07:00
Sebastian Ullrich
1e6dadfa52 fix: documentHighlight on partial input
Fixes #455
2021-05-11 17:03:18 +02:00
Leonardo de Moura
b52edf1259 fix: fixes #452
The new syntax is similar to `matchAlts` and uses `colGe`.
The first `|` is not optional anymore.
2021-05-10 17:28:10 -07:00
Leonardo de Moura
7d39a0d56c chore: prepare to change first syntax 2021-05-10 17:05:31 -07:00
Leonardo de Moura
0e1f645b07 fix: fixes #450 2021-05-10 13:55:06 -07:00
Leonardo de Moura
e49dfccc2a chore: remove dead variable 2021-05-10 13:41:55 -07:00
Leonardo de Moura
2a676b6dfb fix: fixes #449 2021-05-10 13:10:59 -07:00
Leonardo de Moura
89373bd64f fix: fixes #447 2021-05-08 19:04:12 -07:00
Leonardo de Moura
4675817a9e fix: projection of string literals 2021-05-07 14:38:21 -07:00
Leonardo de Moura
5fcd08326f fix: bug at reduceRec 2021-05-07 14:21:37 -07:00
Sebastian Ullrich
05b12e2b61 chore: undo workaround 2021-05-07 16:09:42 +02:00
Sebastian Ullrich
088774536e fix: syntax match: do not discard other patterns after splices 2021-05-07 16:08:10 +02:00
Sebastian Ullrich
6f9b80d91c fix: parenthesizer: avoid panic on partial syntax trees
Fixes #446
2021-05-07 09:42:14 +02:00
Leonardo de Moura
475f5fecaa feat: improve error recovery at Tactic.elabTerm 2021-05-06 20:44:36 -07:00
Leonardo de Moura
8e81f03e3a chore: adjust stdlib to recent changes 2021-05-06 15:43:56 -07:00
Leonardo de Moura
7fc6607611 feat: have ... := ... syntax closer to let 2021-05-06 15:38:57 -07:00
Leonardo de Moura
73b7a754ee fix: let_fun with patterns 2021-05-06 15:11:22 -07:00
Leonardo de Moura
48bffedc74 fix: unresolved holes in the exact tactic, backtracking issues
This commit also adds the `throwAbortTactic` for throwing "silent"
exceptions in `TacticM`.
2021-05-06 13:44:01 -07:00
Sebastian Ullrich
baa2781eb0 chore: remove built-in emptyC syntax/elaborator 2021-05-06 22:07:03 +02:00
Sebastian Ullrich
9ed8db4bc3 feat: add constructor tactic 2021-05-06 10:40:56 -07:00
Sebastian Ullrich
e6132d37a5 fix: induction/cases: accept wildcard alternative even if some (but not all) cases have been excluded 2021-05-06 14:28:00 +02:00
Leonardo de Moura
7eec7b7842 fix: only use .( ... ) when delaborating patterns 2021-05-05 11:12:44 -07:00
Leonardo de Moura
b4a7d28cff fix: inconsistent inaccessible annotations 2021-05-05 10:45:38 -07:00
Leonardo de Moura
660c49840f fix: another instance of the binder cache issue
See issue #439
2021-05-05 10:45:38 -07:00
Sebastian Ullrich
6303c134a9 feat: add term info at resolveId? 2021-05-05 18:54:47 +02:00
Sebastian Ullrich
66c0f6ae9d fix: goal state at induction/cases e with 2021-05-05 15:27:40 +02:00
Sebastian Ullrich
84d3896ea7 chore: fix comment 2021-05-05 15:08:30 +02:00
Sebastian Ullrich
456264bf31 chore: pretty printer: tolerate missing better 2021-05-05 14:46:05 +02:00
Sebastian Ullrich
76c66fc4d4 fix: error message 2021-05-05 14:45:50 +02:00
Leonardo de Moura
a43dca0b9f fix: add basic support for accessing the field of a section variable in the notation prechecker
see #435
2021-05-04 22:41:25 -07:00
Leonardo de Moura
3d829c825c fix: Info nodes for overloaded notation/declarations
See new test to understand the problem that has been fixed.
2021-05-04 22:07:21 -07:00
Leonardo de Moura
ed1eee201a fix: avoid "failed to evaluate" error when extension has sorry
See updated test output.
2021-05-04 20:57:53 -07:00
Leonardo de Moura
164b26bf01 fix: make sure the resulting array size is equal to the number of binders
The following code relies on this property
```lean
       for uid in scope.varUIds, x in xs do
          sectionFVars := sectionFVars.insert uid x
```
2021-05-04 19:46:14 -07:00
Leonardo de Moura
fc96a24d7b chore: improve error message 2021-05-04 19:37:24 -07:00
Leonardo de Moura
dd325cfffc fix: getHeadInfo ==> getHeadInfo?
The generated code was not producing compilation errors because we
have a coercion from `A` to `Option A`
2021-05-04 16:46:41 -07:00
Sebastian Ullrich
5b02254297 fix: rw final goal state 2021-05-04 15:24:42 -07:00
Sebastian Ullrich
aabb4a50aa feat: remove bracket-less rw 2021-05-04 15:24:22 -07:00
Leonardo de Moura
2be1595154 fix: preserve by toke position information during macro expansion 2021-05-04 11:26:34 -07:00
Leonardo de Moura
ac5bb36add fix: save all info nodes during backtracking 2021-05-04 11:05:58 -07:00
Leonardo de Moura
91cf32bf88 chore: display syntax at tactic info nodes 2021-05-04 10:58:54 -07:00
Sebastian Ullrich
c22f4ffaec fix: partial fix of focus goal state 2021-05-04 19:11:05 +02:00
Leonardo de Moura
8102f407b6 fix: take binder information into account when caching results 2021-05-03 21:02:23 -07:00
Leonardo de Moura
1279063e0d fix: fixes #248 2021-05-03 18:20:36 -07:00
Leonardo de Moura
e8aa02cd51 feat: closes #415 2021-05-03 18:04:01 -07:00
Leonardo de Moura
1e41e2eb4a chore: use double backticks 2021-05-03 14:26:27 -07:00