feat(library/init/meta/tactic): add applyc tactic
This commit is contained in:
parent
7ec0505e94
commit
04e27eb96f
1 changed files with 4 additions and 0 deletions
|
|
@ -769,6 +769,10 @@ do env ← get_env,
|
|||
ls ← mk_num_meta_univs num,
|
||||
return (expr.const c ls)
|
||||
|
||||
/-- Apply the constant `c` -/
|
||||
meta def applyc (c : name) : tactic unit :=
|
||||
mk_const c >>= apply
|
||||
|
||||
meta def save_const_type_info (n : name) (ref : expr) : tactic unit :=
|
||||
try (do c ← mk_const n, save_type_info c ref)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue