chore(frontends/lean/builtin_cmds): support 'sorry' at #elab command
This commit is contained in:
parent
4fd69ca2d4
commit
de9075b19d
2 changed files with 5 additions and 0 deletions
|
|
@ -669,6 +669,8 @@ static expr replace_with_simple_metavars(metavar_context & mctx, expr const & e)
|
|||
|
||||
static environment elab_cmd(parser & p) {
|
||||
expr e = p.parse_expr();
|
||||
if (p.used_sorry())
|
||||
p.declare_sorry();
|
||||
metavar_context mctx;
|
||||
expr new_e; level_param_names ls;
|
||||
std::tie(new_e, ls) = p.elaborate(mctx, e);
|
||||
|
|
|
|||
3
tests/lean/run/elab3.lean
Normal file
3
tests/lean/run/elab3.lean
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set_option pp.binder_types true
|
||||
|
||||
#elab (sorry : ∀ a, a > 0)
|
||||
Loading…
Add table
Reference in a new issue