feat(library/init/meta/match_tactic): add tactic_format for pattern
This commit is contained in:
parent
0ad5f5bc89
commit
69ed20f656
1 changed files with 9 additions and 0 deletions
|
|
@ -103,4 +103,13 @@ do ctx ← local_context,
|
|||
new_p ← pexpr_to_pattern p,
|
||||
match_hypothesis_core new_p ctx
|
||||
|
||||
meta instance : has_to_tactic_format pattern :=
|
||||
⟨λp, do
|
||||
t ← pp p^.target,
|
||||
mo ← pp p^.moutput,
|
||||
uo ← pp p^.uoutput,
|
||||
u ← pp p^.nuvars,
|
||||
m ← pp p^.nmvars,
|
||||
return $ to_fmt "pattern.mk (" ++ t ++ ") " ++ uo ++ " " ++ mo ++ " " ++ u ++ " " ++ m ++ "" ⟩
|
||||
|
||||
end tactic
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue