Leonardo de Moura
87bf97bdc1
feat: expand term try, for, unless, and return
2020-10-31 19:19:17 -07:00
Leonardo de Moura
a042212909
chore: update stage0
2020-10-31 19:19:17 -07:00
Leonardo de Moura
d20081c548
feat: add term version of unless, for, try, and return notations
2020-10-31 19:19:17 -07:00
Leonardo de Moura
77b160a5a8
chore: use mkFreshUserName at generalizeTelescope
2020-10-31 19:19:17 -07:00
Sebastian Ullrich
9d78e2268d
doc: test & deploy on CI
2020-10-31 13:36:48 +01:00
Leonardo de Moura
3101b83f98
fix: missing do
2020-10-30 18:15:37 -07:00
Leonardo de Moura
f856849f8f
test: tactic framework
2020-10-30 18:01:20 -07:00
Leonardo de Moura
870f9a6215
fix: use robust matchEq?
2020-10-30 17:28:08 -07:00
Leonardo de Moura
c2cc74a7ef
chore: update stage0
2020-10-30 15:03:56 -07:00
Leonardo de Moura
060535679f
test: let rec in tactic mode
...
@Kha: I added support for using `let rec` in tactic mode.
2020-10-30 14:58:17 -07:00
Leonardo de Moura
f2530e069a
feat: do not create subgoals for auxiliary let-rec metavariables
2020-10-30 14:58:17 -07:00
Leonardo de Moura
0af30273c5
feat: hide auxiliary metavariables used to compile let-rec
2020-10-30 14:58:17 -07:00
Leonardo de Moura
4f3e932b3e
feat: expand "let rec" tactic notation
2020-10-30 14:58:17 -07:00
Leonardo de Moura
cb1a4cb7c1
chore: update stage0
2020-10-30 14:58:17 -07:00
Leonardo de Moura
b880181cee
feat: add let rec tactic parser
2020-10-30 14:58:17 -07:00
Leonardo de Moura
0a56057db1
feat: better error message for "unknown" tactic
...
@Kha The hack I posted at Zulip didn't really work
```
macro x:ident : tactic => throw $ Lean.Macro.Exception.error x s!"unknown tactic '{x.getId}'"
```
For example, we would still get a weird error message at
```
theorem ex3 (x : Nat) : x = x → x = x :=
have x = x by foo (aaa bbb) -- The error would be at `bbb`
fun h => h
```
There were other minor issues that could be fixed, but this one was bad.
2020-10-30 14:58:17 -07:00
Sebastian Ullrich
0731d3f080
fix: double indentation inside parentheses
...
Ideally we would skip the indentation after any leading token without trailing
whitespace, but it's not quite clear how to do that in general
2020-10-30 19:10:08 +01:00
Sebastian Ullrich
bc8cb5edda
feat: pretty printer: adapt new indentation style
2020-10-30 19:08:39 +01:00
Sebastian Ullrich
e73a04d492
doc: basic mdbook test support
2020-10-30 17:55:09 +01:00
Sebastian Ullrich
2129798376
doc: add # prefix to hide lines in lean code blocks
2020-10-30 16:00:20 +01:00
Sebastian Ullrich
ac0d0ab32d
doc: document documentation build, mention fork
2020-10-30 15:59:56 +01:00
Sebastian Ullrich
6d29111fbc
doc: Lean syntax highlighting
2020-10-30 14:46:05 +01:00
Sebastian Ullrich
42b6b44fa2
doc: add old doc files to SUMMARY.md
2020-10-30 14:23:47 +01:00
Sebastian Ullrich
18472e1933
doc: mdbook init
2020-10-30 14:23:47 +01:00
Leonardo de Moura
486d8457fa
test: tactic framework
2020-10-29 20:42:34 -07:00
Leonardo de Moura
84de2e4a5b
test: add injection notation test
2020-10-29 20:41:33 -07:00
Leonardo de Moura
0032578d5b
feat: add have <ident> := <term> tactic macro
2020-10-29 20:39:40 -07:00
Leonardo de Moura
bea7aaa3dc
chore: update stage0
2020-10-29 20:36:50 -07:00
Leonardo de Moura
672436bc5f
feat: allow user to assign parsing priorities in the macro and elab commands
2020-10-29 20:33:51 -07:00
Leonardo de Moura
956a646a9c
chore: admit as a macro
2020-10-29 18:58:29 -07:00
Leonardo de Moura
6670378907
fix: withIds parser
2020-10-29 18:50:08 -07:00
Leonardo de Moura
0f3bd8abb4
feat: add rfl and decide! tactic macros
2020-10-29 16:42:22 -07:00
Leonardo de Moura
2a5b18fde4
test: add nondet example
2020-10-29 16:33:40 -07:00
Leonardo de Moura
4641542647
chore: update stage0
2020-10-29 12:48:57 -07:00
Leonardo de Moura
278883a5d6
feat: improve tryLiftAndCoe
2020-10-29 12:46:04 -07:00
Leonardo de Moura
6858cb5fb6
chore: cleanup
2020-10-29 10:24:16 -07:00
Leonardo de Moura
f31b0d7d19
chore: cleanup
2020-10-29 09:35:12 -07:00
Leonardo de Moura
c387a184a3
fix: missing [specialize]
2020-10-29 09:03:51 -07:00
Sebastian Ullrich
0c97f648a8
chore: use stage 2 for benchmarking
...
/cc @leodemoura
2020-10-29 12:29:52 +01:00
Sebastian Ullrich
72fc3f6679
feat: separate benchmark for profiling the stdlib per-file
2020-10-29 11:53:03 +01:00
Sebastian Ullrich
acc1752874
chore: remove old speedcenter config
2020-10-29 11:53:03 +01:00
Leonardo de Moura
63a5baafac
chore: cleanup
2020-10-28 22:03:50 -07:00
Leonardo de Moura
777f4b9ecf
chore: update stage0
2020-10-28 19:55:14 -07:00
Leonardo de Moura
13a3215d0d
chore: use Subarray combinators
2020-10-28 19:52:59 -07:00
Leonardo de Moura
131cb7036f
feat: add combinators for Subarray
2020-10-28 19:49:38 -07:00
Leonardo de Moura
bc51036685
chore: update stage0
2020-10-28 19:37:10 -07:00
Leonardo de Moura
4ba21ea10c
chore: cleanup src/Array/Basic.lean
2020-10-28 19:35:42 -07:00
Leonardo de Moura
4ea8cc873c
chore: update stage0
2020-10-28 17:03:31 -07:00
Leonardo de Moura
aca9d1ef6f
chore: update stage0
2020-10-28 16:59:58 -07:00
Leonardo de Moura
d87b8b876f
chore: add temporary workaround
...
cc @Kha
2020-10-28 16:57:46 -07:00