| Rewrite of how * what * where * note
| Elim of what * using option * note
| Apply of what * note
- | Whd of count * note
| Change of inferred * what * where * note
| ClearBody of name * note
| Branch of step list list * note
let tactic = G.Apply (floc, t) in
mk_tactic tactic
-let mk_whd i =
- let pattern = None, [], Some hole in
- let tactic = G.Reduce (floc, `Whd, pattern) in
- mk_tactic tactic
-
let mk_change t where =
let pattern = match where with
| None -> None, [], Some hole
| Rewrite (b, t, w, s) -> mk_note s :: cont sep (mk_rewrite b t w :: a)
| Elim (t, xu, s) -> mk_note s :: cont sep (mk_elim t xu :: a)
| Apply (t, s) -> mk_note s :: cont sep (mk_apply t :: a)
- | Whd (c, s) -> mk_note s :: cont sep (mk_whd c :: a)
| Change (t, _, w, s) -> mk_note s :: cont sep (mk_change t w :: a)
| ClearBody (n, s) -> mk_note s :: cont sep (mk_clearbody n :: a)
| Branch ([], s) -> a