Sebastian Ullrich
ac56a9e79f
fix: run tasks to completion on task_manager shutdown to prevent leaks
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
fc4428f621
fix: mark Task closures as MT
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
a93a53b4b5
feat: more IO Task functions
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
469a822cc6
chore: checkInterrupted ~> checkCanceled, requestInterrupt ~> cancel
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
77cbaa752c
fix: Task: make reference and -j0 semantics eager, simplify
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
5b83ceb1b5
feat: IO.mapTask, IO.bindTask
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
307a833798
feat: implement IO.asTask as primitive using always-run tasks
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
1782352af1
feat: optionally run tasks even when already cancelled
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
c672bd657f
feat: IO.asTask
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
e14e76775f
fix: ensure *println functions are atomic
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
bdea7c7b14
feat: lean: initialize task manager from -j flag
2020-09-14 17:57:33 +02:00
Leonardo de Moura
c3623e9a0a
chore: reduce default max steps
2020-09-13 16:18:53 -07:00
Leonardo de Moura
c58252ad74
chore: move more tests to new frontend
2020-09-13 16:13:20 -07:00
Leonardo de Moura
5da7f0b50b
fix: set constApprox := false at SynthInstance
...
We don't want contraints such as
```
?m a =?= Nat
```
to be solved as
```
?m := fun a => Nat
```
durint type class resolution.
2020-09-13 16:11:27 -07:00
Leonardo de Moura
21c8366645
chore: fix test output
2020-09-13 13:50:00 -07:00
Leonardo de Moura
2ee1821f13
fix: ensure expectedType at fun body
2020-09-13 13:44:05 -07:00
Leonardo de Moura
32e26799ed
chore: move more tests to new frontend
2020-09-13 13:28:12 -07:00
Leonardo de Moura
498d7886eb
chore: fix test output
2020-09-13 13:21:58 -07:00
Leonardo de Moura
7b90f7d956
fix: synthesize pending mvars before trying coercions to Fun
...
`tests/lean/repr_issue.lean` cannot be elaborated with this modification.
2020-09-13 13:19:05 -07:00
Leonardo de Moura
2de7f1f4d9
doc: possible improvement
2020-09-13 13:16:03 -07:00
Leonardo de Moura
d6a3e22992
chore: add auxiliary function
2020-09-13 13:13:34 -07:00
Leonardo de Moura
fd7dca9bc1
fix: do not cache if term contains Expr-metavariables
2020-09-13 13:13:05 -07:00
Leonardo de Moura
98a8867d90
chore: add coercions for new frontend
2020-09-13 12:00:32 -07:00
Leonardo de Moura
d936b9461f
fix: always ensure expectedType when processing overloaded symbols and/or notation
2020-09-13 11:59:13 -07:00
Leonardo de Moura
3493d1871d
feat: improve "ambiguous" error message
2020-09-13 11:39:59 -07:00
Leonardo de Moura
c080d42692
chore: move tests to new frontend
2020-09-13 10:16:15 -07:00
Leonardo de Moura
3c2044f06b
chore: add coercion for new frontend
2020-09-13 10:12:25 -07:00
Leonardo de Moura
897289599a
fix: ignore auxiliary declarations at subst and assumption
2020-09-13 09:59:37 -07:00
Leonardo de Moura
ac6fd1382d
fix: collectDeps issue
2020-09-13 09:47:00 -07:00
Leonardo de Moura
d9b4338923
chore: update stage0
2020-09-12 16:50:36 -07:00
Leonardo de Moura
e181c1adee
refactor: add DefEqM
...
The idea is to make clear that the field `posponed` is transient
state. It is only used during `isDefEq`.
The refactoring was motivated by a bug I found where the `posponed`
constraints were not being handled correctly. For example,
the `check (e : Expr)` method was returning `true`, but leaving pending
universe constraints at `postponed`.
cc @Kha
2020-09-12 16:42:16 -07:00
Leonardo de Moura
0967ad7e91
feat: extend/cleanup isLevelDefEqAux
...
`tests/lean/run/toExpr.lean` could not be processed by the new
frontend without these extensions.
2020-09-12 15:38:48 -07:00
Leonardo de Moura
ab44cd28f1
chore: move more tests to new frontend
2020-09-12 09:04:39 -07:00
Leonardo de Moura
e1e65e83da
fix: try to synthesize instance for substructures
2020-09-12 08:58:13 -07:00
Leonardo de Moura
b0f0536018
fix: improve error message for overloaded notation
2020-09-12 08:05:37 -07:00
Leonardo de Moura
a784005729
chore: move more tests to new frontend
2020-09-12 07:54:12 -07:00
Leonardo de Moura
09244c73f4
fix: lval resolution
2020-09-12 07:45:36 -07:00
Leonardo de Moura
cc520d422c
fix: ensure no unassigned mvars at #eval
2020-09-12 07:18:43 -07:00
Leonardo de Moura
48ffe674d7
chore: update stage0
2020-09-11 17:36:37 -07:00
Leonardo de Moura
f242a958fc
chore: move more tests to new frontend
2020-09-11 17:36:37 -07:00
Leonardo de Moura
a8de3c5115
fix: isDefEq configuration in the elaborator
2020-09-11 17:36:28 -07:00
Leonardo de Moura
bbc3bec53b
chore: move more tests to new frontend
2020-09-11 16:28:57 -07:00
Leonardo de Moura
c93f48cc9f
fix: missing field params
2020-09-11 16:26:52 -07:00
Leonardo de Moura
bf703c9cab
fix: bug at inductive datatype resulting universe inference
2020-09-11 16:07:22 -07:00
Leonardo de Moura
b02cda0408
chore: move more tests to new frontend
2020-09-11 15:31:14 -07:00
Leonardo de Moura
9cd88807dd
feat: add support for quoted literals in patterns
2020-09-11 15:16:54 -07:00
Leonardo de Moura
2c2a357f28
chore: remove disabled test
2020-09-11 15:05:00 -07:00
Leonardo de Moura
151012cb39
feat: remove emptyc elaboration hack
...
@Kha I removed the hack. We know get a nice error message.
2020-09-11 14:41:44 -07:00
Leonardo de Moura
b85d3d60b8
fix: bug at ambiguous error message
...
We were saving the incorrect metavariable context (and environment)/
2020-09-11 14:40:34 -07:00
Leonardo de Moura
ff9b562e66
chore: move test
2020-09-11 14:40:21 -07:00