Leonardo de Moura
0be9516bd8
fix: instantiate metavariables in alternative local decls
2020-08-15 08:18:00 -07:00
Leonardo de Moura
63c4ee0acf
chore: cleanup
2020-08-15 08:07:46 -07:00
Leonardo de Moura
7eed45dd45
fix: generalize isNatValueTransition
2020-08-15 07:59:31 -07:00
Leonardo de Moura
6e958d6208
refactor: cleanup
2020-08-15 07:55:44 -07:00
Leonardo de Moura
4223bdf8aa
feat: add expandNatValuePattern
2020-08-15 07:26:22 -07:00
Leonardo de Moura
5d56cc5505
refactor: DepElim
...
We go back to the original approach where we pattern matching
alternative variables as `FVar`s.
We fix the original problem we had by implementing a simple
unification procedure for alternative `FVar`s.
2020-08-14 19:03:22 -07:00
Leonardo de Moura
87d506cb90
feat: instantiate metavariables in LocalDecls
2020-08-14 19:02:38 -07:00
Leonardo de Moura
00d46e4a7d
chore: preparing to refactor DepElim
2020-08-14 19:02:20 -07:00
Leonardo de Moura
55d9689a7b
fix: finalizePatternDecls
2020-08-14 13:55:43 -07:00
Leonardo de Moura
c5316d5cf3
fix: missing withMVarContext
2020-08-14 12:52:51 -07:00
Leonardo de Moura
50abd28f6e
feat: generalize "constructor transition"
2020-08-14 12:38:43 -07:00
Leonardo de Moura
e2109ceab6
fix: missing substitution
...
We should include the `majorFVarId -> ctor-application` substitution
in each subgoal.
2020-08-14 12:38:00 -07:00
Leonardo de Moura
b3894200f0
feat: expose constructorApp? and isConstructorApp?
2020-08-14 12:37:34 -07:00
Leonardo de Moura
d85a41a4d7
chore: reduce number of dependencies
...
@Kha Please try to avoid importing `Lean.Meta`, it is huge, and any
change there was forcing a bunch of files to be recompiled since
`Parser.Extension` depends on `Parenthesizer`
2020-08-14 10:59:00 -07:00
Leonardo de Moura
8e81c19162
fix: combine "complete" and constructor transitions
2020-08-14 10:50:48 -07:00
Leonardo de Moura
b4b60dc326
feat: add List.filterMapM
2020-08-14 10:50:48 -07:00
Leonardo de Moura
bd8e2d305f
feat: add Array.filterMap
2020-08-14 10:50:48 -07:00
Leonardo de Moura
54f6517ca3
fix: condition for using simple casesOn
2020-08-14 10:50:48 -07:00
Sebastian Ullrich
0df6445be6
fix: relax [builtinParenthesizer] check
2020-08-14 19:05:02 +02:00
Sebastian Ullrich
92162ffb7f
feat: check parenthesizer attribute arguments
2020-08-14 19:05:02 +02:00
Sebastian Ullrich
72310a4aee
fix: parenthesizer: ParserDescr.parsers should not be assumed to be a registered parser, or even one with a kind
2020-08-14 19:05:02 +02:00
Sebastian Ullrich
e9473722b1
feat: elaborate new quotation kinds, make macro_rules elaborator work with them
2020-08-14 17:44:29 +02:00
Sebastian Ullrich
e3cb897ab0
chore: update stage0
2020-08-14 17:19:05 +02:00
Sebastian Ullrich
129b60022d
refactor: use distinct syntax kinds for quotations
2020-08-14 17:18:09 +02:00
Sebastian Ullrich
edeed7b849
chore: fix C++ warnings
2020-08-14 14:42:44 +02:00
Sebastian Ullrich
64631609cc
feat: use [categoryParenthesizer] to parenthesize syntax parsers correctly
2020-08-14 14:42:44 +02:00
Sebastian Ullrich
3a28761e86
chore: make sure syntax parsers' names and kinds coincide
2020-08-14 14:33:51 +02:00
Sebastian Ullrich
52ddf5396f
chore: restore marking stage0/ as binary files, which we lost at some point
2020-08-14 11:12:13 +02:00
Sebastian Ullrich
d66503f7a8
chore: update stage0
2020-08-14 11:03:35 +02:00
Sebastian Ullrich
09c70320ef
feat: add [categoryParenthesizer]
2020-08-14 11:00:18 +02:00
Leonardo de Moura
17770ee479
chore: update stage0
2020-08-13 16:56:01 -07:00
Leonardo de Moura
94689ca91f
chore: fix test
2020-08-13 16:55:03 -07:00
Leonardo de Moura
69ee44d68e
feat: match-expressions showing signs of life
2020-08-13 16:51:31 -07:00
Leonardo de Moura
0a54391eba
chore: add helper
2020-08-13 16:20:25 -07:00
Leonardo de Moura
2ba4f02de9
chore: move code to testing part
2020-08-13 16:01:52 -07:00
Leonardo de Moura
24025b96c5
feat: elaborate equation RHS
2020-08-13 15:19:40 -07:00
Leonardo de Moura
f31d16496d
feat: generate AltLHS
2020-08-13 15:05:38 -07:00
Leonardo de Moura
a670de93cd
chore: fix test
2020-08-13 14:59:37 -07:00
Leonardo de Moura
8b0a100e21
chore: field name
2020-08-13 14:59:28 -07:00
Leonardo de Moura
4cab743932
feat: mark implicit fields as inaccessible
2020-08-13 14:56:22 -07:00
Leonardo de Moura
81ae6a734b
feat: mark List.toArray with [matchPattern]
2020-08-13 14:25:47 -07:00
Leonardo de Moura
9deab00941
feat: add toDepElimPattern
2020-08-13 14:20:56 -07:00
Leonardo de Moura
aaf5034ba2
chore: add helper
2020-08-13 14:14:21 -07:00
Leonardo de Moura
08f1c2310b
chore: enforce naming convention
2020-08-13 14:09:00 -07:00
Leonardo de Moura
5b1b11ffe0
feat: add isCharLit
2020-08-13 13:15:15 -07:00
Leonardo de Moura
145a3dddca
chore: remove ref from patterns
...
We don't use them to report errors. We only need `ref` at `Alt`
2020-08-13 12:31:32 -07:00
Leonardo de Moura
a6b22728ca
chore: reduce stack space requirements in test
2020-08-13 12:13:38 -07:00
Leonardo de Moura
71be882039
chore: update stage0
2020-08-13 10:42:52 -07:00
Leonardo de Moura
5ba9aad7a3
refactor: eliminate ref plumbing
2020-08-13 10:37:53 -07:00
Sebastian Ullrich
46f5670ba3
chore: Lean.Parser.Parser ~> Lean.Parser.Basic
2020-08-13 18:44:13 +02:00