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

document caveat in call-ltac1 #745

Merged
merged 1 commit into from
Jan 19, 2025
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
5 changes: 5 additions & 0 deletions builtin-doc/coq-builtin.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,11 @@ external pred coq.ltac.collect-goals i:term, o:list sealed-goal,
% of type ltac1-tactic, see the tac argument constructor
% and the ltac_tactic:(...) syntax to pass arguments to
% an elpi tactic.
% Caveat:
% if Tac is a tactic name, then the tactic must be defined using
% "Ltac name := body", it cannot be a builtin one. For example
% "Ltac myapply x := apply x." lets one call apply by running
% coq.ltac.call-ltac1 "myapply" G GL.
% Supported attributes:
% - @no-tc! (default false, do not infer typeclasses)
external pred coq.ltac.call-ltac1 i:any, i:goal, o:list sealed-goal.
Expand Down
5 changes: 5 additions & 0 deletions src/coq_elpi_builtins.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3709,6 +3709,11 @@ Tac can either be a string (the tactic name), or a value
of type ltac1-tactic, see the tac argument constructor
and the ltac_tactic:(...) syntax to pass arguments to
an elpi tactic.
Caveat:
if Tac is a tactic name, then the tactic must be defined using
"Ltac name := body", it cannot be a builtin one. For example
"Ltac myapply x := apply x." lets one call apply by running
coq.ltac.call-ltac1 "myapply" G GL.
Supported attributes:
- @no-tc! (default false, do not infer typeclasses)|})))),
(fun tac (proof_context,goal,tac_args) _ ~depth _ _ -> abstract__grab_global_env_keep_sigma "coq.ltac.call-ltac1" (fun state ->
Expand Down
Loading