Skip to content

Commit

Permalink
partial denote term tactic from yforester.
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
Gregory Malecha committed Jul 17, 2015
1 parent ac21df4 commit c6de18e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/reify.ml4
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,17 @@ TACTIC EXTEND get_goal
*)
END;;

TACTIC EXTEND denote_term
| [ "denote_term" constr(c) tactic(tac) ] ->
[ Proofview.Goal.nf_enter begin fun gl ->
let (evm,env) = Lemmas.get_current_context() in
let c = TermReify.denote_term c in
let def' = Constrextern.extern_constr true env evm c in
let def = Constrintern.interp_constr env evm def' in
ltac_apply tac (List.map to_ltac_val [fst def])
end ]
END;;

VERNAC COMMAND EXTEND Make_vernac CLASSIFIED AS SIDEFF
| [ "Quote" "Definition" ident(name) ":=" lconstr(def) ] ->
[ check_inside_section () ;
Expand Down

0 comments on commit c6de18e

Please sign in to comment.