2

The rules of inference for quantifiers in first order logic involve replacing variables in expressions with other terms. One way to define the substitution $\phi[t/x]$ is that $\phi[t/x]$ arises from $\phi$ by replacing all occurrences of $x$ with $t$. For example:

$$ \phi \equiv Pxy \implies Qxyz $$

Then

$$ \phi[t/x] \equiv Pty \implies Qtyz $$

This simple definition of substitution however gives rise to the issues of the "capture" of variables within the substitution terms by quantifiers in the original expression. For example

$$ \phi \equiv (\forall y)Qxy $$

Suppose $t=y$ then

$$ \phi[t/x] \equiv \phi [y/x] \equiv (\forall y)Qyy $$

Which is not an equivalent logical statement. The replacement is valid by the definition above because $x$ \textit{is} free in $\phi$. The problem is that the $y$ in $t$ is captured by the $(\forall y)$ quantifier in $\phi$.

When writing down proof systems we can deal with this in one of two ways.

The first option is we can redefine the substitution operation so that substitution is invalid whenever such a capture would occur. To do this we would define $\phi[t/x]$ as arising from $\phi$ by replacing all occurrences of $x$ by $t$ provided that $x$ does not appear in $\phi$ within the scope of any quantifiers over any variables that appear in $t$. In this case the inference rules can use the replacement notation directly since there is no concern about variable capture.

The second option is to keep the definition of substitution simple, and add the corresponding proviso to the rules of inference to ensure we don't make any invalid inferences. In this approach we define a concept of substitutability. We say that $x$ is free for $t$ in $\phi$, or $t$ is substitutable for $x$ in $\phi$ if for any variable $y$ that appears in $t$ it is not the case that $x$ appears in the scope of a quantifier of the form $(\forall y)$ or $(\exists y)$ within $\phi$. In this approach the inference rules are written down using the substitution notation, but we must add the proviso that the appropriate variables are free for the relevant substitutions.

My question is as follows. Say we take the second approach. Is there any standard notion to indicate that $x$ is free for $t$ in $\phi$? Most textbooks I see have no such notation. They simply have to express the concept in words in proximity to the inference rules of interest. I would prefer some metalogical way to notate this to make the inference rule definitions more compact and clear. A proposal would be something like $_{t/x}\phi$ means that $t$ is substitutable for $x$ in $\phi$.

A related question: Sometimes instead the inference rules require that $\phi$ NOT include some variable free. For example, an inference rule is valid conditioned on $y$ not appearing free in $\phi$. Is there any way to notate this as well? $\phi\{y\}$ or something...

Jagerber48
  • 1,431
  • No standard symbol... Having defined it, you can introdue a simple abbreviation: $\text {Free_for}(t,x,\phi)$ – Mauro ALLEGRANZA Aug 05 '21 at 17:41
  • @MauroALLEGRANZA are you aware of even any non standard symbols in any reference? I haven’t seen it in any textbook. I’m a little surprised others aren’t interested in notation for this. Logicians seems to be notation junkies in other cases. – Jagerber48 Aug 05 '21 at 18:12
  • Interestingly enough Mauro's notation is repeated almost verbatim in a textbook on type logical semantics for natural language, namley Bob Carpenter's 'Type Logical Semantics'. The difference of course is that Carpenter defines a corresponding notion for the simply typed lambda calculus. – sequitur Aug 05 '21 at 22:27
  • Is your question only whether there is a standard way of denoting a freefor-relation in the metalanguage? Or does the question also concern as to how to define such a relation? – sequitur Aug 05 '21 at 22:29
  • @sequiter thanks, I’ll check the reference. My question only concerns whether there is a notation denoting the free-for-relation. I understand how it is defined. – Jagerber48 Aug 05 '21 at 22:45

2 Answers2

1

I find that deductive systems that are similar to one another still tend to differ in details, from specification to rules to implementation. Joining the club, it's fine to define own notation and terminology as long as it is clearly communicated.

For example:

  • Let $\phi(\tau/x)$ denote the result of replacing all free occurrences of the variable $x$ in formula $\phi$ with term $\tau.$

    If no variable in $\tau$ becomes bound after such a substitution, we say that $\tau$ is freely substitutable for $x$ in $\phi.$

    Existential Elimination rule ($\exists E$)   If $\exists x\,\phi$ occurs on some line in a formal proof, term $\alpha$ does not occur in $\phi$ and is freely substitutable for $x$ in $\phi,$ we have derived a formula $\psi$ that depends on $\phi(\alpha/x)$ and possibly other assumptions, and $\alpha$ occurs free in neither $\psi$ nor these other assumptions, then on any subsequent line we may rederive $\psi,$ which shall depend on the aforementioned other assumptions as well as the assumptions that $\exists x\,\phi$ depends on.


Addendum

This diagrammatic representation from p. 315 of Peter Smith's book is among the most pleasing & concise that I've seen, although I believe it still doesn't address your requirement for a more symbolical description. enter image description here

ryang
  • 38,879
  • 14
  • 81
  • 179
  • Yes, I understand these definitions and your existential elimination rule. The problem I am trying to address is I would like to be able to state the elimination rule basically using only metalogical symbols, and not have to require an entire (complicated) English paragraph to explain the restrictions on when the rule can be applied. The motivation for desiring more compact notation to express this idea is that I hope it will make metalogical proofs on the deduction system more easy/clear. – Jagerber48 Aug 05 '21 at 16:39
  • @Jagerber48 I understand, and was going off on a slight tangent. Pertaining to rules of inference, I think that there's a trade-off between accessibility and nuance/detail: I haven't found the particularly lean/pictorial presentations/specifications fully satisfactory, as they tend not to be general enough for my taste. – ryang Aug 05 '21 at 17:38
1

It is straightforward to construct a uniquely determined relation between terms, variables and formulas for a first-order language that holds exactly if the term is freely substitutable for the variable in the formula. After that you can denote it via a metalanguage name of your choice .

We presuppose uniquely determined functions $free(\cdot), var(\cdot)$ sending formulas to the set of their free variables and sending terms to the set of variables occurring in them, respectively. Let $t$ be a term and $x$ a variable. By recursion on the structure of formulas we define a relation $\mathcal{R}$ between terms, variables and formulas by stipulating that $\mathcal{R}(t, x, \varphi)$ holds iff one of the following is the case:

  1. $\varphi$ is atomic
  2. $\varphi = \neg \psi$ and $\mathcal{R}(t, x, \psi)$
  3. $\varphi = (\psi \Box \chi)$ and $\mathcal{R}(t, x, \psi)$ and $\mathcal{R}(t, x, \chi)$, where $\Box = \land, \lor, \rightarrow$
  4. $\varphi = \mathcal{Q}y\psi$ and $\mathcal{R}(t,x , \psi)$ and either $x \not \in free(\psi)$ or $y \not \in var(t)$, where $\mathcal{Q} = \forall, \exists$

It is straightforward to see that this relation is uniquely determined.

sequitur
  • 1,094
  • Thanks, this pretty much satisfies what I'm looking for. I think the one additional piece I would like is something like, suppose we have formula $\phi$ and we know $\mathcal{R}(t, x, \phi)$ then we can write $_{{t/x}}\phi \equiv \phi$ so that, in an expression, or in the diagram for an inference rule we can immediately see that $x$ is free for $t$ in $\phi$. – Jagerber48 Aug 05 '21 at 23:52