Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmMkInductive should not be used in a tactic #1130

Open
wants to merge 1 commit into
base: coq-8.20
Choose a base branch
from
Open
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
11 changes: 7 additions & 4 deletions template-coq/src/run_template_monad.ml
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,13 @@ let rec run_template_program_rec ~poly ?(intactic=false) (k : Constr.t Plugin_co
Plugin_core.run ~st (Plugin_core.tmEval red trm) env evm
(fun ~st env evm trm -> k ~st env evm (quote_term env evm trm))
| TmMkInductive (b, mind) ->
let infer_univs = unquote_bool (reduce_all env evm b) in
let evm = declare_inductive env evm infer_univs mind in
let env = Global.env () in
k ~st env evm (Lazy.force unit_tt)
if intactic
then not_in_tactic "tmMkInductive"
else
let infer_univs = unquote_bool (reduce_all env evm b) in
let evm = declare_inductive env evm infer_univs mind in
let env = Global.env () in
k ~st env evm (Lazy.force unit_tt)
| TmUnquote t ->
begin
try
Expand Down
Loading