# Tacarg in Ltac

**URL:** <https://discourse.rocq-prover.org/t/tacarg-in-ltac/938>\
**Category:** Using Rocq\
**Created:** [July 10, 2020, 8:38am UTC](https://discourse.rocq-prover.org/t/tacarg-in-ltac/938 "2020-07-10T08:38:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZWY](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.rocq-prover.org/zwy/32/335_2.png) [@ZWY](https://discourse.rocq-prover.org/u/ZWY)\
**Post date:** [July 10, 2020, 8:38am UTC](https://discourse.rocq-prover.org/t/tacarg-in-ltac/938/1 "2020-07-10T08:38:21Z")

</div>

The Coq manual says  
“In `tacarg`, there is an overlap between `qualid` as a direct tactic argument and `qualid` as a particular case of `term`.”

I can not fully understand this sentence. The tactic `split` is denoted by `tacarg`. What does `split` belong to? A direct tactic argument or a term?

---

<div class="post-metadata">

**Author:** ![Blaisorblade](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.rocq-prover.org/blaisorblade/32/56_2.png) [@Blaisorblade](https://discourse.rocq-prover.org/u/Blaisorblade)\
**Post date:** [July 10, 2020, 5:48pm UTC](https://discourse.rocq-prover.org/t/tacarg-in-ltac/938/2 "2020-07-10T17:48:58Z")

</div>

First, there is a `split` tactic and a `split` term. The `split` tactic is not a valid `tacarg`.

First, the `split` is not a valid `tacarg`.

```coq
Ltac foo tac := tac.
Ltac bar := foo split.
Goal True /\ True. 
Fail foo split.
split.

```

I’ve found that sentence under [https://coq.inria.fr/refman/proof-engine/ltac.html#syntax](https://coq.inria.fr/refman/proof-engine/ltac.html#syntax).

In that context, `term` means Gallina term, and the `split` tactic is not a Gallina term.  
If you invoke the `split` tactic directly, `split` is a tactic and not a `tacarg`; if you pass `split` as argument to another tactic, then it’s a tactic argument.

That sentence is pretty weird, but [https://coq.github.io/doc/v8.12/refman/proof-engine/ltac.html#grammar-token-tactic-arg](https://coq.github.io/doc/v8.12/refman/proof-engine/ltac.html#grammar-token-tactic-arg) gives the grammar directly.

PS: Please link to the source next time, it wasn’t easy to find.
