Sebastian Ullrich
a23df570fc
fix(library/init/lean/elaborator): match
2019-01-17 19:57:00 +01:00
Sebastian Ullrich
3e8e823893
fix(frontends/lean/vm_elaborator): preserve internal name of section variables
2019-01-17 19:57:00 +01:00
Sebastian Ullrich
85cad3a7f1
fix(library/init/lean/elaborator): equation heads
2019-01-17 19:57:00 +01:00
Sebastian Ullrich
8cc35b854b
feat(library/init/lean/{expander,elaborator}): variable(s)
2019-01-17 17:06:52 +01:00
Sebastian Ullrich
0923a2cbae
refactor(library/init/lean/elaborator): avoid deprecated expr locals in new elaborator state
2019-01-17 12:29:44 +01:00
Sebastian Ullrich
c338245536
feat(library/init/lean/elaborator): implement the only part of open/export
2019-01-16 19:49:44 +01:00
Sebastian Ullrich
13781ed114
feat(library/init/lean/parser/token): numeric literals of more exotic bases
2019-01-16 19:39:30 +01:00
Sebastian Ullrich
2c4b566038
feat(frontends/lean/vm_elaborator): implement equations
2019-01-16 19:12:40 +01:00
Sebastian Ullrich
a6d5af7387
feat(library/init/lean/expander): expand class and class inductive
2019-01-16 19:12:40 +01:00
Sebastian Ullrich
246eecf155
fix(library/init/lean/elaborator): do not mangle attribute names (since they are not environment identifiers)
2019-01-16 19:12:40 +01:00
Sebastian Ullrich
ca058a6d8e
chore(library/init/lean/expander): simplify constant normalization
2019-01-16 19:12:40 +01:00
Sebastian Ullrich
5ef30a9300
fix(library/init/lean/elaborator): have serialization
2019-01-16 19:12:40 +01:00
Sebastian Ullrich
dce62fc190
fix(library/init/lean/expander): structural substitution instead of abstraction-application when applying notations
2019-01-16 19:12:40 +01:00
Sebastian Ullrich
c17ba349f3
refactor(library/init/lean/parser/syntax): factor out syntax.(m)replace
2019-01-16 19:12:40 +01:00
Sebastian Ullrich
31588a1013
fix(library/init/lean/elaborator): do not attach position to app, nodes without pos data
2019-01-15 18:51:24 +01:00
Sebastian Ullrich
5660a8e690
feat(library/init/lean/elaborator): transmit position information
2019-01-15 18:28:35 +01:00
Sebastian Ullrich
1b565fcaa0
feat(library/init/lean/elaborator): simplistic support of export
2019-01-15 17:44:14 +01:00
Sebastian Ullrich
d444b5ef49
chore(library/init/core): move sorry_ax up (temporarily) to get error recovery sooner
2019-01-15 17:42:09 +01:00
Sebastian Ullrich
7dd21df59f
fix(library/init/lean/elaborator): C++ expects the oldest variable first
2019-01-15 16:20:46 +01:00
Sebastian Ullrich
d0062691de
feat(library/init/lean): implement init_quot
2019-01-15 15:06:51 +01:00
Sebastian Ullrich
6e64089123
feat(frontends/lean/structure_cmd): implement structure
2019-01-15 15:01:52 +01:00
Sebastian Ullrich
fc3a0403ab
feat(library/init/lean/parser/declaration): implement structure field blocks that go beyond regular binder syntax
2019-01-15 15:00:34 +01:00
Sebastian Ullrich
7aa06338c9
feat(frontends/lean/vm_elaborator): implement inductive
2019-01-14 14:49:40 +01:00
Sebastian Ullrich
0945a87fbb
fix(library/init/lean/elaborator): to_pexpr: explicitness modifiers
2019-01-14 14:48:49 +01:00
Sebastian Ullrich
3216b1a268
feat(library/init/lean/elaborator): implement instance/example
2019-01-12 15:10:00 +01:00
Sebastian Ullrich
84e9dd9b1a
feat(library/init/lean/elaborator,frontends/lean/vm_elaborator): implement def/theorem/abbreviation
2019-01-12 15:10:00 +01:00
Sebastian Ullrich
49f580f190
feat(library/compiler/builtin,frontends/lean/vm_elaborator): add temporary expr.local primitive
...
This makes it possible (or at least much easier) to interface with old
parser/elaborator code using local_consts for e.g. `def` parameters.
2019-01-12 14:16:43 +01:00
Sebastian Ullrich
fec4502e0f
feat(library/init/lean/parser/term): parse and expand sorry
2019-01-07 22:19:47 +01:00
Sebastian Ullrich
2b5f19677d
feat(frontends/lean/vm_elaborator): elaborate #check
2019-01-07 22:19:47 +01:00
Sebastian Ullrich
aadf2eb5c1
fix(library/init/lean/elaborator): resolve_global: add missing name part, append root and open resolutions
2019-01-06 18:19:12 +01:00
Sebastian Ullrich
93b0c372e0
fix(library/init/lean/elaborator): reset namespace stack at end of namespace
2019-01-06 18:17:28 +01:00
Sebastian Ullrich
b17568aeff
feat(library/init/lean/elaborator): pass current namespace to C++ elaborator
...
This seems to be the only information in `scope_mng_ext` we definitely need
2019-01-06 18:10:49 +01:00
Sebastian Ullrich
22d5d32387
feat(library/init/lean/elaborator): do name preresolution just before elaboration
2019-01-06 15:47:54 +01:00
Sebastian Ullrich
d2de703e51
feat(frontends/lean/vm_elaborator): add primitive environment.contains
2019-01-06 15:47:06 +01:00
Sebastian Ullrich
a1ecf14ebe
feat(library/init/lean/parser/syntax): syntax.to_format: show ident metadata
2019-01-06 15:45:23 +01:00
Sebastian Ullrich
807b460e9c
feat(*/elaborator): pass preresolved names to C++ as annotations and use them for global name resolution
...
With actual preresolution still missing, the only preresolved names so far are
ones like `opt_param` from built-in macros that have been preresolved manually
(and which weren't successfully resolved before this commit because of the macro
scopes applied to them)
2019-01-01 23:59:23 +01:00
Sebastian Ullrich
38df819817
fix(library/init/lean/expander): all identifiers in terms should be ident_univs
2019-01-01 23:59:23 +01:00
Sebastian Ullrich
595590e7f5
feat(library/init/lean/elaborator): elaborate open and export
2019-01-01 13:50:21 +01:00
Sebastian Ullrich
23c83d7e06
refactor(library/placeholder,library/init/lean/elaborator): encode pexpr placeholders as anonymous mvars
2018-12-21 15:53:12 +01:00
Sebastian Ullrich
fce5c5bd36
perf(library/init/lean/position): add file_map cache for position conversion
2018-12-20 15:32:46 +01:00
Sebastian Ullrich
dd65fbb736
refactor(library/init/lean): remove duplicate position type, rename pos to position
...
Makes it easier to work with local `pos` variables
2018-12-20 15:32:46 +01:00
Sebastian Ullrich
f7a395d035
feat(library/init/data/rbmap/basic): implement rbmap.lower_bound
2018-12-20 15:32:46 +01:00
Sebastian Ullrich
32a3c0e62e
feat(library/init/lean/frontend,bin/lean-bootstrapped): expose new frontend as executable
2018-12-20 14:28:18 +01:00
Sebastian Ullrich
0e5cfa5e8f
feat(library/init/lean/elaborator): position on "unknown command" error
2018-12-20 14:28:18 +01:00
Sebastian Ullrich
0911d16bc3
feat(library/init/lean): compute and show error positions
2018-12-20 14:28:18 +01:00
Sebastian Ullrich
0a5af76f1a
feat(frontends/lean/vm_elaborator): capture and pass all elab messages to Lean
2018-12-19 16:22:30 +01:00
Sebastian Ullrich
ead4e8998d
feat(library/init/lean/elaborator): elaborate constants
2018-12-19 15:04:48 +01:00
Sebastian Ullrich
90458de7d0
feat(library/init/lean/expander): normalize type signatures of constants
2018-12-19 15:04:48 +01:00
Sebastian Ullrich
e5aaf391ff
fix(library/init/lean/parser/syntax): macro_scopes.flip
2018-12-19 15:04:48 +01:00
Sebastian Ullrich
5b44a6f93d
feat(library/init/lean/parser/parsec): structured doc_comment syntax nodes
2018-12-19 14:42:33 +01:00