Sebastian Ullrich
eb1e285e26
chore: style
2021-06-21 10:17:26 -07:00
Sebastian Ullrich
884aa03584
fix: implement overlooked have syntax
2021-06-15 17:46:16 +02:00
Sebastian Ullrich
e918e39ed0
feat: have: remove unnecessary whitespace check and allow name- and type-less have
2021-05-25 14:25:14 +02:00
Leonardo de Moura
8b4cdcfddd
chore: fix mutable variable shadowing
2021-05-22 19:24:41 -07:00
Sebastian Ullrich
a02c6fd3eb
chore: adapt stdlib & tests
2021-05-20 15:17:36 -07:00
Sebastian Ullrich
5b6051b15e
feat: revise have syntax
2021-05-20 15:17:36 -07:00
Sebastian Ullrich
eb93894683
fix: do not abort elaboration on unclosed parenthesis
2021-05-17 22:29:06 +02:00
Sebastian Ullrich
05b12e2b61
chore: undo workaround
2021-05-07 16:09:42 +02:00
Leonardo de Moura
7fc6607611
feat: have ... := ... syntax closer to let
2021-05-06 15:38:57 -07:00
Sebastian Ullrich
baa2781eb0
chore: remove built-in emptyC syntax/elaborator
2021-05-06 22:07:03 +02:00
Leonardo de Moura
2be1595154
fix: preserve by toke position information during macro expansion
2021-05-04 11:26:34 -07:00
Leonardo de Moura
d01fb5451c
feat: add support for binop% at elabCDotFunctionAlias
2021-04-30 19:17:16 -07:00
Sebastian Ullrich
7990f6e6e1
perf: use optimized withAntiquot in leading_parser
2021-04-29 13:30:09 +02:00
Leonardo de Moura
e8531ef4de
fix: new type ascription elaborator
...
It was propating the incorrect type.
2021-04-27 16:03:27 -07:00
Sebastian Ullrich
2e250e6f04
refactor: paren as a (partial) macro
2021-04-27 14:50:44 -07:00
Leonardo de Moura
2ff8052ce4
fix: missing do
2021-04-24 19:40:40 -07:00
Leonardo de Moura
3ba9872f33
feat: allow cdot notation at simp
...
closes #388
2021-04-09 19:50:42 -07:00
Sebastian Ullrich
3d90850fdd
feat: add syntax for specifying LHS precedence on trailing parsers
2021-03-22 16:33:36 +01:00
Leonardo de Moura
e04e9ff87e
feat: extend anonymous ctor notation
2021-03-13 17:11:37 -08:00
Leonardo de Moura
be841a7cad
chore: throwError! => throwError, throwErrorAt! => throwErrorAt
...
@Kha I marked the corresponding methods as `protected`.
I currently can't stand `throw_error`, and I am optimistic about
server highlighting feature you are working on :)
2021-03-11 11:59:45 -08:00
Leonardo de Moura
e7140959c4
chore: add elaborator for let_fun and let_delayed
2021-03-11 10:40:25 -08:00
Leonardo de Moura
164577d94e
chore: remove parser! and tparser!
...
The new macros are called "leading_parser` and `trailing_parser`.
cc @Kha
2021-03-11 09:36:58 -08:00
Leonardo de Moura
0af0957af4
chore: add leading_parser and trailing_parser elaborator
2021-03-11 09:19:10 -08:00
Leonardo de Moura
9f88ea8047
chore: remove old decide!, nativeRefl!, and nativeDecide!
2021-03-11 08:06:20 -08:00
Leonardo de Moura
68143ca8ba
chore: trace[...]! ==> trace[...]
...
@Kha I think this one is a good change, there is no real reason for
using the `!` suffix here.
2021-03-10 18:44:43 -08:00
Leonardo de Moura
b7019d913e
chore: remove unnecessary lifts and implicits
...
Use autobound and autolift features
2021-03-07 09:01:54 -08:00
Leonardo de Moura
54c44d2a6f
feat: generate error message if term does not reduce to true
2021-03-04 19:15:09 -08:00
Leonardo de Moura
ea0fda39bc
chore: Declaration.lean naming convention
...
`Declaration.lean` was one of the first Lean 4 files, and was still
using an old naming convention.
cc @Kha
2021-01-20 17:07:02 -08:00
Leonardo de Moura
3ca0aef098
feat: generate warning when sorry is used
2021-01-13 09:43:25 -08:00
Leonardo de Moura
f0ac477d2e
feat: add sanity checks
2021-01-01 18:31:28 -08:00
Leonardo de Moura
90428cc09b
feat: expand let-decls at decide!
2020-12-31 09:47:05 -08:00
Leonardo de Moura
8b17d4e2d6
feat: cdot notation for tuples
...
They are morally a parenthesized term.
2020-12-28 18:08:23 -08:00
Leonardo de Moura
479da7b914
feat: elaborate noindex! annotation
2020-12-28 17:49:54 -08:00
Sebastian Ullrich
554d0b4d4c
chore: adapt stdlib to new antiquotation splices
2020-12-12 17:20:03 +01:00
Sebastian Ullrich
16bdc52088
fix: broken syntax tree from Tactic -> Term conversion
...
/cc @leodemoura
2020-12-10 10:50:41 +01:00
Leonardo de Moura
a10328e745
chore: simplify syntax patterns using $[...]?
2020-12-09 17:06:19 -08:00
Sebastian Ullrich
e6493755e9
chore: stdlib: match_syntax ~> match
2020-12-08 17:32:02 +01:00
Sebastian Ullrich
c63b770a7c
refactor: reduce dependencies on Lean.Elab.Quotation
2020-12-08 17:13:32 +01:00
Leonardo de Moura
ae5aa51712
chore: add explicit discard
2020-12-08 06:18:18 -08:00
Sebastian Ullrich
32618b0398
chore: remove built-in prefix operators
...
To reappear soon
2020-12-01 11:57:20 -08:00
Leonardo de Moura
d7d53bf3a8
chore: remove builtin $
...
We will define it at `Notation.lean`
2020-11-19 09:04:41 -08:00
Leonardo de Moura
0ddc2e5efb
chore: remove builtin subtype notation
2020-11-14 08:42:03 -08:00
Leonardo de Moura
100670e3b5
feat: add if-then-else macros
2020-11-11 11:15:31 -08:00
Leonardo de Moura
df5b7fdc24
chore: naming convention
...
Use namespaces (e.g., `mkStxLit` ==> `Syntax.mkLit`)
cc @Kha
2020-11-11 09:55:23 -08:00
Leonardo de Moura
353aba579c
chore: remove builtin infix operators
2020-11-11 07:23:28 -08:00
Leonardo de Moura
2ef9199c56
chore: prepare to rename "predicate-like" classes
2020-11-10 10:12:21 -08:00
Leonardo de Moura
2d2d39c78e
chore: use mut
2020-11-07 17:32:13 -08:00
Leonardo de Moura
f64bd9e1e3
chore: remove unnecessary with at induction/cases tactics
2020-11-02 13:30:54 -08:00
Leonardo de Moura
0d6a3080ad
chore: remove broken expandWhere
2020-10-31 19:19:18 -07:00
Leonardo de Moura
5d20cd1f46
chore: move CDot code to BuiltinNotation
2020-10-31 19:19:18 -07:00