I am struggling to define "first-order language." In principle, a first-order language is any language produced by a "first-order grammar," but there doesn't seem to be any way to state what a "first-order grammar" is without employing the use of first-order logic at some point. In particular, I can't seem to reduce...
if $F$ is an $n$-ary function symbol and $t_1,\ldots,t_n$ is a list of $n$ terms, then $F(t_1,\ldots,t_n)$ is a term
...and...
if $R$ is an $n$-ary relation symbol and $t_1,\ldots,t_n$ is a list of $n$ terms, then $R(t_1,\ldots,t_n)$ is a formula
...to production rules. This is a problem because "is $n$-ary" is a proposition which must be proven - leading very quickly to circularity. I am not comfortable pretending that an infinitely long list of grammars is contained within any medium currently available (if you happen to have developed some means of encoding an infinite amount of information, please let me know). So what is a first order language, and how do I know that $\mathcal{L}$ is first-order without knowing what a "number" is?
Clarification
I understand quite well the intended meaning of "first-order language." My issue is that I see no way of conveying this meaning in a purely mechanical, finitistic way. It is not possible to commit "first-order languages" to writing, because the totality of "first-order languages" is infinite - the best we can hope for is a finite set of instructions for generating arbitrary finite subsets of arbitrary first-order languages. In reality, this is all any author has ever actually done.
The reason I assume these instructions to take the form of a formal grammar is that this is how first-order logic is introduced. In identifying the class of first-order theories, authors often introduce a formal grammar (sometimes in the form of "inductive definitions," which are just production rules stated in English) to describe what a first-order language is.
The entire problem is easily resolved using conditional rewriting rules in place of a grammar - but I have never seen anyone do this.
For reference:
Bell and Slomson Models and Ultraproducts: An Introduction
Ben-Ari Mathematical Logic for Computer Science
Pudlák Logical Foundations of Mathematics and Computational Complexity
Weiss Fundamentals of Model Theory
Wikipedia First-order Logic
A few other books that I haven't read in a while go through the "from language to logic" process as well, and I will add them as soon as I find them.
::=
used in the production rules). – R. Burton Jul 15 '20 at 00:03