Commit graph

23220 commits

Author SHA1 Message Date
mhuisi
8decfb6b1d feat: initial multiprocess watchdog arch 2020-12-23 20:00:36 +01:00
Leonardo de Moura
ef51087138 feat: do not log error messages with synthetic sorry's
Before this commit, only error messages caught at `elabTerm` were
filtered.

cc @Kha
2020-12-23 10:52:27 -08:00
Leonardo de Moura
edb51b8977 test: implicit lambdas in action 2020-12-23 10:24:00 -08:00
Leonardo de Moura
caa3136558 fix: doc 2020-12-23 09:41:42 -08:00
Leonardo de Moura
74686a149a test: add structure field default value test 2020-12-23 08:35:27 -08:00
Leonardo de Moura
f53721e1c9 chore: adapt code to previous change 2020-12-23 08:31:20 -08:00
Leonardo de Moura
c01e58b3e4 chore: update stage0 2020-12-23 08:26:09 -08:00
Leonardo de Moura
e74ba14f4c feat: modify structSimpleBinder parser
@Kha It felt odd that we can write
```
   map f x := ...
```
in instances, but we had to write
```
   map (f x) := ...
```
when setting the field default value in a class.
2020-12-23 08:23:14 -08:00
Leonardo de Moura
7720b843bb feat: allow users to use binders when setting default value for parent fields 2020-12-23 08:12:29 -08:00
Leonardo de Moura
7e76446d9d fix: error message 2020-12-23 07:35:12 -08:00
Leonardo de Moura
9c47cfe001 fix: panic message 2020-12-23 07:24:46 -08:00
Leonardo de Moura
78aa3d8e72 chore: use deriving BEq 2020-12-22 18:10:20 -08:00
Leonardo de Moura
df03130927 feat: improve error message 2020-12-22 17:50:26 -08:00
Leonardo de Moura
8c2cb44ac0 fix: error message produced by lean_mk_projections 2020-12-22 17:40:32 -08:00
Leonardo de Moura
800b4af15d test: indentation 2020-12-22 14:53:03 -08:00
Leonardo de Moura
839017fdae feat: add macro tactical solve 2020-12-22 14:36:20 -08:00
Leonardo de Moura
9a1116d918 chore: remove <or>, first subsumes it 2020-12-22 14:10:08 -08:00
Leonardo de Moura
73e6ad86d2 chore: update stage0 2020-12-22 14:10:08 -08:00
Leonardo de Moura
832c7412d6 feat: add first tactical
@Kha It has a few advantages over `<or>` (`<|>`).
- It is not an infix operator.
- It takes tactic sequences instead of tactics as arguments

For example, we can write
```
  first
    | apply h1; assumption
    | exact y; exact h3; assumption
```
or
```
first apply h1; assumption | exact y; exact h3; assumption
```
instead of
```
(apply h1; assumption) <|> (exact y; exact h3; assumption)
```
2020-12-22 14:10:07 -08:00
Leonardo de Moura
56e2ff81b8 chore: ensure all term parsers have precedence >= min 2020-12-22 14:10:07 -08:00
Leonardo de Moura
69d83ecb86 chore: make sure term and tactic parsers have disjoint infix operators 2020-12-22 14:10:07 -08:00
Leonardo de Moura
7b813622c6 chore: increase precedence of |>, <|, $ parsers
@Kha Now, all parsers defined by `Init/Std/Lean` packages have
precedence >= `min` and <= `max`.
The only exception is `<|>` since it is an infix operator sharead with
the tactic DSL.
BTW, the meaning of `f $ a <|> b` changed with this commit.
It was `f (a <|> b)`, and now is `(f a) <|> b`. The problem is that
the precedence of the `$` parser is now greater than the `<|>` parser.

I will try another experiment where I make sure we do not "reuse"
term infix operators in the tactic DSL.
2020-12-22 14:10:07 -08:00
Leonardo de Moura
52b966eb51 chore: update stage0 2020-12-22 14:10:07 -08:00
Leonardo de Moura
cc34733e52 fix: update builtin precedences for |>. and macroDollarArg 2020-12-22 14:10:06 -08:00
Leonardo de Moura
18aee9de30 fix: precedence issues at tactic DSL 2020-12-22 14:10:06 -08:00
Leonardo de Moura
298bdfdcde fix: focus behavior 2020-12-22 14:10:06 -08:00
Sebastian Ullrich
8324f9ac9a doc: minor edits 2020-12-22 18:54:57 +01:00
Leonardo de Moura
289ed6485d feat: eval allGoals 2020-12-22 09:52:54 -08:00
Leonardo de Moura
515bbc29ae chore: update stage0 2020-12-22 08:44:40 -08:00
Leonardo de Moura
616ebd1b13 chore: update stage0 2020-12-22 08:42:18 -08:00
Leonardo de Moura
f638269a71 fix: name resolution at syntax command
This commit also cleans up `toParserDescr`+`toParserDescrAux`.
2020-12-22 08:40:00 -08:00
Sebastian Ullrich
93518d4e42 perf: let*-bind syntax match RHSs before duplicating them 2020-12-22 17:25:46 +01:00
Leonardo de Moura
e797ce3fb7 chore: update stage0 2020-12-22 07:21:07 -08:00
Leonardo de Moura
b254aafea0 chore: remove workaround 2020-12-22 07:19:33 -08:00
Leonardo de Moura
c0e3381a4d chore: update stage0 2020-12-22 07:17:48 -08:00
Leonardo de Moura
7d1e493531 chore: reactivate tactic match and introMatch 2020-12-22 07:15:47 -08:00
Leonardo de Moura
403c4bbf47 chore: update stage0 2020-12-22 07:12:04 -08:00
Leonardo de Moura
f34bf82e0f chore: move tactic parsers introMatch and match to Lean/Parser/Tactic 2020-12-22 07:11:06 -08:00
Leonardo de Moura
8a8d0b7e5c chore: update stage0 2020-12-22 06:57:41 -08:00
Leonardo de Moura
7fa1430a60 chore: add evalMatchTemp 2020-12-22 06:56:58 -08:00
Leonardo de Moura
e42c3f83a9 chore: update stage0 2020-12-22 06:56:47 -08:00
Leonardo de Moura
a05ca020f4 chore: prepare to move tactic match parser back to Lean/Parser/Tactic 2020-12-22 06:52:41 -08:00
Sebastian Ullrich
1c31240ebb feat: token antiquotations in macro 2020-12-22 13:11:04 +01:00
Sebastian Ullrich
07c7638fd7 feat: token source info antiquotations tk%$id
/cc @leodemoura
2020-12-22 13:11:04 +01:00
Leonardo de Moura
43255a4af3 feat: local and scoped macros 2020-12-21 17:08:25 -08:00
Leonardo de Moura
f8161d26a4 chore: update stage0 2020-12-21 16:51:20 -08:00
Leonardo de Moura
0642a62848 chore: prepare to add scoped macro and elab commands 2020-12-21 16:50:29 -08:00
Leonardo de Moura
1d5df4f28b test: matrix notation example
- Heterogeneous `*` for matrix and scalar multiplication
- Homogeneous `+` for matrix addition
- Whitespace sensitive `x[i, j]` notation
2020-12-21 16:40:52 -08:00
Leonardo de Moura
836fd46d90 feat: add OfNat instance for Fin 2020-12-21 16:38:53 -08:00
Leonardo de Moura
227b26636c chore: increase default depth to 32 2020-12-21 15:03:27 -08:00