Leonardo de Moura
fdfff29bb1
feat: expose liftLooseBVars and lowerLooseBVars
2019-12-21 08:57:11 -08:00
Leonardo de Moura
a7e33a85a6
chore: remove reverse and add comment
2019-12-21 07:55:58 -08:00
Leonardo de Moura
868a217202
doc: revise design for creating let-expressions of terms containing metavariables
...
TODO: implement :)
The goal is to fix accidental zeta-expansions occurring when creating
let-declarations where the body of the expression contains
syntheticOpaque metavariables.
2019-12-20 10:04:37 -08:00
Leonardo de Moura
b621b9fbde
chore: more cleanup
2019-12-20 07:50:06 -08:00
Sebastian Ullrich
1361d5cefe
chore: elaborator comments and minor changes
2019-12-20 07:42:08 -08:00
Sebastian Ullrich
dedb6c2e13
refactor: simplify MacroHygiene implementations
...
The stack of macro scopes is already implied by the stack of withFreshMacroScope
calls, there is no need for an explicit stack.
/cc @leodemoura
2019-12-20 14:19:09 +01:00
Leonardo de Moura
5adadc3158
test: document let issue
...
TODO: fix issue at `Meta.mkLambda` when some of the free variables are let-declarations.
2019-12-19 17:29:26 -08:00
Leonardo de Moura
93f4184125
feat: elaborate let
2019-12-19 17:00:19 -08:00
Leonardo de Moura
a97b3cf5a1
chore: simplify withMVarContext
...
cc @kha
2019-12-19 15:16:19 -08:00
Leonardo de Moura
30a5f19f30
feat: simplify code using filterRevM
...
cc @kha
2019-12-19 15:09:20 -08:00
Leonardo de Moura
78f9606c8c
feat: simplify code using filterM
...
cc @kha
2019-12-19 14:53:05 -08:00
Leonardo de Moura
f7562ce94d
fix: bug at addLValArg
2019-12-19 14:44:35 -08:00
Leonardo de Moura
bfca7e32e0
fix: try to postpone if function type is not known
2019-12-19 14:20:56 -08:00
Leonardo de Moura
8d81e89e53
feat: elaborate $.
2019-12-19 14:16:28 -08:00
Leonardo de Moura
e221a239f8
feat: $. notation
2019-12-19 14:03:27 -08:00
Leonardo de Moura
57f6881c6c
feat: restore state when catching Exception.postpone
...
cc @Kha
2019-12-19 13:21:11 -08:00
Leonardo de Moura
ea2cebaf74
fix: typo
2019-12-19 12:03:13 -08:00
Leonardo de Moura
eb24ec56dc
feat: add array literal notation
2019-12-19 11:42:39 -08:00
Leonardo de Moura
76e75a1b53
feat: avoid unnecessary metavars
2019-12-19 11:26:47 -08:00
Leonardo de Moura
fc5fb07fc3
fix: mkFreshExprMVar
2019-12-19 11:13:22 -08:00
Leonardo de Moura
c5c158e5b9
fix: isDefEqQuick
2019-12-19 11:10:58 -08:00
Leonardo de Moura
fadd453395
fix: avoid nontermination
2019-12-19 10:37:24 -08:00
Leonardo de Moura
50100df574
fix: avoid assignment overwriting
2019-12-19 10:36:46 -08:00
Leonardo de Moura
40576ac3dd
fix: missing !
2019-12-19 10:27:49 -08:00
Leonardo de Moura
bdc9ea6fc6
fix: unregistered level metavariable
2019-12-19 09:58:05 -08:00
Leonardo de Moura
49bdbf7eb2
chore: style
2019-12-19 08:43:17 -08:00
Leonardo de Moura
76d351d830
refactor: split Elab/Term.lean into smaller files
2019-12-19 07:26:54 -08:00
Leonardo de Moura
f334e7e89c
chore: cleanup and remove Array.getA
2019-12-19 07:09:51 -08:00
Leonardo de Moura
1c459a6fb0
refactor: use match_syntax to implement expandCDot
2019-12-19 06:34:52 -08:00
Sebastian Ullrich
a2e0f1e6b1
refactor: simplify quotations
2019-12-19 10:59:20 +01:00
Sebastian Ullrich
88a924b728
feat: support (almost) proper name resolution in quotations in the old frontend
2019-12-18 20:11:45 -08:00
Sebastian Ullrich
c07b7e7958
fix: lookup of locals with numeric name parts
2019-12-18 20:11:14 -08:00
Sebastian Ullrich
eac0c3e168
fix: use new literal representations in HasQuote
2019-12-18 20:11:14 -08:00
Leonardo de Moura
6cc928d180
test: add postpone test
2019-12-18 20:04:38 -08:00
Leonardo de Moura
a2d38a7ef3
doc: Elab/Term.lean
2019-12-18 19:42:05 -08:00
Leonardo de Moura
00cc28096c
feat: add support for postponing elabTerm
2019-12-18 11:05:02 -08:00
Leonardo de Moura
a3ae2aabb2
chore: use new antiquotation notation
2019-12-17 15:30:17 -08:00
Leonardo de Moura
37b2393479
chore: change antiquotation symbol
2019-12-17 15:24:12 -08:00
Leonardo de Moura
f09e2ab069
feat: elabParen using match_syntax
2019-12-17 14:55:40 -08:00
Leonardo de Moura
a1373d68c9
fix: fun (_ : A) => ... notation
2019-12-17 14:28:48 -08:00
Leonardo de Moura
35aa0faec5
chore: style
2019-12-17 14:16:40 -08:00
Leonardo de Moura
60b5810a10
feat: elaborate fun with patterns
2019-12-17 14:11:44 -08:00
Leonardo de Moura
f6d9f4029e
feat: elaborate cdot
2019-12-17 13:41:46 -08:00
Leonardo de Moura
1b6319788e
feat: elaborate parenSpecial
2019-12-17 13:32:46 -08:00
Leonardo de Moura
746782a99b
chore: add withMacro
2019-12-17 13:19:39 -08:00
Sebastian Ullrich
1c566a86f0
doc: comment on scp
2019-12-17 12:16:34 -08:00
Sebastian Ullrich
5de274781b
refactor: remove broken support for nested antiquotations
2019-12-17 12:16:34 -08:00
Sebastian Ullrich
f7a12ab132
doc: Hygiene.lean
2019-12-17 12:16:34 -08:00
Sebastian Ullrich
0e3f6fa3aa
doc: add comments on syntax quotation elab
2019-12-17 12:16:34 -08:00
Sebastian Ullrich
e54d96ad5b
chore: avoid let-bindings match_syntax RHSs for now because of elaboration issues
2019-12-17 12:16:34 -08:00