Commit graph

36377 commits

Author SHA1 Message Date
Sebastian Ullrich
c43e6624f9 fix: Lean.Elab.Command with new parser 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
093f0553e7 chore: add formatter module docstring 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
a35e1c79b7 test: add reformat test 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
75b41af122 fix: formatter: further fixes 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
5f4d991a17 fix: formatter: backtracking on identifiers 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
1d725f7c83 feat: almost activate new pretty printer by default 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
19563961e2 feat: more whitespace in term parsers 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
e6442d3177 feat: force whitespace in sort applications 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
01456b1b00 fix: Term.app: force whitespace in front of each argument 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
6a8048fb97 test: formatter: check for round-trip through parser 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
e8ca2e3f62 feat: formatter: push space at checkWsBefore 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
07928f301f feat: formatter: separate tokens where necessary 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
33a963d82b refactor: make formatter stack-based, much like the parser 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
37d890b950 fix: atoms might need backtracking as well, e.g. in fieldIdx <|> ident 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
c9d6636eae feat: first, trivial formatter implementation
No actual token separation yet
2020-08-06 09:27:12 -07:00
Sebastian Ullrich
b6b5f4c9c9 refactor: move whnf-eval functions into Lean.Meta.ReduceEval 2020-08-06 09:27:12 -07:00
Sebastian Ullrich
c5d226ba36 feat: HasBeq for Syntax, Substring 2020-08-06 09:26:49 -07:00
Sebastian Ullrich
52b6317d3c chore: remove obsolete function 2020-08-06 09:26:49 -07:00
Sebastian Ullrich
8ea547ad29 test: remove stray files 2020-08-06 09:26:49 -07:00
Sebastian Ullrich
c8b6020bb3 test: do not ignore whitespace in diff
It doesn't look like we were relying on it much
2020-08-06 09:26:48 -07:00
Sebastian Ullrich
ebe1e6d181 chore: remove misleading default for ParserCache.tokenCache 2020-08-06 09:26:48 -07:00
Sebastian Ullrich
0e8ef0cb8c chore: document Format fields 2020-08-06 09:26:48 -07:00
Sebastian Ullrich
0f7f49aa06 feat: dbgTraceVal 2020-08-06 09:26:48 -07:00
Sebastian Ullrich
6f7a557e5a feat: add --root flag to set package root directory 2020-08-06 09:21:52 -07:00
Leonardo de Moura
e818368c96 refactor: move EqnCompiler to Meta folder 2020-08-06 09:10:01 -07:00
Leonardo de Moura
9084c4fafc feat: add DepElim.lean 2020-08-05 16:03:33 -07:00
Leonardo de Moura
b959181132 feat: track unused alternatives 2020-08-05 15:53:25 -07:00
Leonardo de Moura
d1669049d6 feat: counterexamples 2020-08-05 15:34:03 -07:00
Leonardo de Moura
eb32fec77e feat: add admit tactic 2020-08-05 15:33:49 -07:00
Leonardo de Moura
9526a4da3b chore: update stage0 2020-08-05 13:19:01 -07:00
Leonardo de Moura
b642f3095f chore: add another example reported in old issue
https://github.com/leanprover/lean/issues/1466
2020-08-05 13:18:13 -07:00
Leonardo de Moura
811cd31177 chore: add test for old issue
The new pattern matching compiler correctly compiles the patterns at
https://github.com/leanprover/lean/issues/1466
2020-08-05 13:00:13 -07:00
Leonardo de Moura
b64e44fc44 fix: allow kernel projections to be used in inductive families containing only one constructor 2020-08-05 12:56:04 -07:00
Leonardo de Moura
5aceea2632 feat: add "non variable" transition 2020-08-05 10:18:14 -07:00
Leonardo de Moura
9ddac04b40 fix: support for literals when compiling noConfusion 2020-08-05 10:17:51 -07:00
Leonardo de Moura
b3dcd35661 fix: bugs at cases tactic 2020-08-05 09:44:26 -07:00
Leonardo de Moura
53c862e34b chore: add another example using the generated eliminator 2020-08-04 19:15:56 -07:00
Leonardo de Moura
fe27eab6f1 chore: fix tests
Metavariables are not being purified anymore
2020-08-04 18:55:26 -07:00
Leonardo de Moura
a70962854e chore: mark TODO 2020-08-04 18:50:53 -07:00
Leonardo de Moura
6be71b337f refactor: add prototype2.lean 2020-08-04 18:35:11 -07:00
Leonardo de Moura
1ef5d322d7 chore: hack metavariable case
@Kha This is a small hack to improve debugging when developing the
new frontend using the old pretty printer.
2020-08-04 16:42:48 -07:00
Leonardo de Moura
c778bea570 fix: isCompleteTransition 2020-08-04 13:25:27 -07:00
Leonardo de Moura
8c9ccb069a fix: processVariable 2020-08-04 13:15:27 -07:00
Leonardo de Moura
dca2537524 refactor: use new FVarSubst 2020-08-04 13:12:25 -07:00
Leonardo de Moura
943446f1b3 fix: FVarSubst must be a mapping from FVarId to Expr
Reason: `subst` tactic must store the `x |-> e` when substituting `x`
with `e`.
2020-08-04 13:06:08 -07:00
Leonardo de Moura
698d7e6dd1 fix: bug at processComplete 2020-08-03 17:58:38 -07:00
Leonardo de Moura
8aa375ba3e fix: bug at FVarSubst generation 2020-08-03 17:47:24 -07:00
Leonardo de Moura
e43b5e27a1 feat: add processComplete 2020-08-03 17:02:53 -07:00
Leonardo de Moura
d36ccaa620 chore: update stage0 2020-08-03 14:01:14 -07:00
Leonardo de Moura
447000a797 fix: >>= associativity 2020-08-03 14:00:19 -07:00