Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions template-rocq/src/plugin_core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ let tmLemma (nm : ident) ?poly:(poly=false)(ty : term) : kername tm =
let cinfo = Declare.CInfo.make ~name:nm ~typ:cty () in
let info = Declare.Info.make ~poly ~kind () in
(* This should register properly with the interpretation extension *)
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx:ctx ~obl_hook ~opaque:false obls in
pm
Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx:ctx ~obl_hook ~opaque:false obls

let tmFreshName (nm : ident) : ident tm =
fun ~st env evd success _fail ->
Expand Down
3 changes: 1 addition & 2 deletions template-rocq/src/run_template_monad.ml
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ let rec run_template_program_rec ~poly ?(intactic=false) (k : Constr.t Plugin_co
k ~st:pm env evm (EConstr.to_constr evm t)) in (* todo better *)
let cinfo = Declare.CInfo.make ~name:ident ~typ:cty () in
let info = Declare.Info.make ~poly ~kind () in
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx ~obl_hook ~opaque:false obls in
pm
Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx ~obl_hook ~opaque:false obls

| TmQuote trm ->
(* user should do the reduction (using tmEval) if they want *)
Expand Down
Loading