Sebastian Ullrich
2418d851fc
feat: declarative module parser
...
/cc @leodemoura
2020-08-31 14:45:21 +02:00
Sebastian Ullrich
a6d29dbf9e
fix: lookahead.parenthesizer
2020-08-31 14:24:31 +02:00
Sebastian Ullrich
6b1df15518
chore: ignore test output files
2020-08-31 11:09:27 +02:00
Sebastian Ullrich
b624b7d03f
chore: remove obsolete header
2020-08-31 11:09:27 +02:00
Sebastian Ullrich
2215f93d14
chore: update stage0
2020-08-31 11:09:27 +02:00
Sebastian Ullrich
c88784ef9d
refactor: consistent io_result_mk* naming
...
/cc @leodemoura
2020-08-31 11:08:57 +02:00
Leonardo de Moura
48cef717aa
feat: improve tagUntaggedGoals
2020-08-30 16:35:00 -07:00
Leonardo de Moura
6ff03d7301
feat: improve case tactic
2020-08-30 16:27:30 -07:00
Leonardo de Moura
2f4340f63c
feat: refine refine tactic
...
Now `refine stx` reports an error when there are natural unassigned
metavariables after we elaborate syntax `stx`. The idea is that only
synthetic holes `?<hole-name>` become new goals.
The tactic `refine! stx` implements the Lean3 behavior.
2020-08-30 16:14:38 -07:00
Leonardo de Moura
32de5ed627
chore: update stage0
2020-08-30 16:02:47 -07:00
Leonardo de Moura
e3f3a1db8f
feat: add refine! tactic syntax
2020-08-30 16:00:24 -07:00
Leonardo de Moura
7bd1cf718e
feat: improve error location for unassigned holes in the exact tactic
2020-08-30 15:37:11 -07:00
Leonardo de Moura
01afefb5e0
fix: missing stage0 files
2020-08-30 14:31:49 -07:00
Sebastian Ullrich
8ed4d1d7e4
test: test process exit code
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
1fb1a6f913
fix: do not expose invalid process handles when not redirected
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
8b79e0f28c
test: robustly fix test on Windows
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
3546c8c355
chore: always show test diff
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
cc909e20e1
fix: handle SIGPIPE
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
9f40e46043
feat: basic process API
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
00f176de8d
fix: Windows debug build
2020-08-30 14:28:56 -07:00
Leonardo de Moura
35b11d582d
chore: naming convention
2020-08-30 14:26:03 -07:00
Leonardo de Moura
50dcbfc90f
chore: update stage0
2020-08-30 14:18:44 -07:00
Leonardo de Moura
6f0e9452b2
chore: remove begin ... end syntax
...
We should use `by { ... }` from now on.
cc @Kha
2020-08-30 14:15:33 -07:00
Leonardo de Moura
b74741b741
chore: "begin ... end" ==> "by { ... }"
...
cc @Kha
2020-08-30 14:01:27 -07:00
Leonardo de Moura
3a9cfeb9fb
fix: lookahead.formatter
2020-08-30 08:37:51 -07:00
Leonardo de Moura
052e830db7
feat: add have, show, let, let!, and suffices tactic macros
...
They are all simple macros based on: `refine` + syntheticHoles
2020-08-30 08:26:15 -07:00
Leonardo de Moura
0a0ca9f930
fix: funImplicitBinder
2020-08-30 08:10:58 -07:00
Leonardo de Moura
b4f938d859
chore: namedHole => syntheticHole
2020-08-30 08:04:15 -07:00
Leonardo de Moura
89e0fa1488
chore: allow ?_
...
Note that `?_` is not equivalent to `_`. Both do not have a name, but
`?_` is a synthetic metavariable which **cannot** be assigned by typing
constraints, and `_` is a regular metavariable.
We use `?_` to mark an anonymous hole that must be filled using tactics.
@Kha I will rename `namedHole` to `syntheticHole`
2020-08-30 07:54:34 -07:00
Leonardo de Moura
825d9643cd
feat: allow structure instances as fun binder without ()
...
The issue is that `{ x := ... }` was being parsed as an implicit
binder, and we were getting an error at `:=`.
2020-08-30 07:35:41 -07:00
Leonardo de Moura
bd1b65c93d
chore: update stage0
2020-08-30 07:20:25 -07:00
Leonardo de Moura
fc65b76331
feat: lift useful binder term syntax to tactics
2020-08-30 07:15:42 -07:00
Leonardo de Moura
2eb330e36a
feat: improve clear tactic
2020-08-29 20:19:33 -07:00
Leonardo de Moura
9e075e39a5
feat: eval new intro "macro"
...
It is as powerful as the new `fun` term
2020-08-29 17:09:21 -07:00
Leonardo de Moura
3d3238c7fe
fix: typo at introNCoreAux
2020-08-29 17:00:59 -07:00
Leonardo de Moura
52c86e918d
fix: match
2020-08-29 16:38:50 -07:00
Leonardo de Moura
5f8e3b4d0b
chore: update stage0
2020-08-29 15:16:16 -07:00
Leonardo de Moura
a9e70a4d83
feat: intro similar to fun
2020-08-29 15:15:24 -07:00
Leonardo de Moura
1b1c568d89
chore: update stage0
2020-08-29 08:14:02 -07:00
Leonardo de Moura
af86cc801d
feat: add change tactic parser
2020-08-29 08:10:55 -07:00
Leonardo de Moura
0288ed0129
feat: add change and changeHypothesis
2020-08-29 08:10:55 -07:00
Leonardo de Moura
70827cb9af
chore: add throwIllFormedSyntax
2020-08-29 08:10:55 -07:00
Sebastian Ullrich
9c6ff0baac
chore: certainly this one is the right fix
2020-08-29 12:56:37 +02:00
Sebastian Ullrich
0b727a6d78
chore: fix stdlib benchmark once more...
2020-08-29 10:40:21 +02:00
Leonardo de Moura
e5c35d3a4e
feat: add AddMessageDataContext
2020-08-28 18:05:42 -07:00
Leonardo de Moura
38d79d212f
chore: update stage0
2020-08-28 17:37:41 -07:00
Leonardo de Moura
99f3296828
refactor: simplify Util/Trace.lean
2020-08-28 17:36:44 -07:00
Leonardo de Moura
26073c428b
fix: use MonadFinally
2020-08-28 17:06:40 -07:00
Leonardo de Moura
39d456cb09
feat: add polymorphic trace and logTrace
...
This commit also makes sure we always use `withContext` when logging.
2020-08-28 16:49:24 -07:00
Leonardo de Moura
5e582823ec
feat: add MonadLCtx and MonadMCtx helper classes
2020-08-28 16:48:42 -07:00