1

Formulas in predicate logic cannot be infinitely long, or so I have been told.

But I don't understand how this can be the case.

For we can disjoin $A \lor A \lor A \lor...$ indefinitely.

Isn't this an infinitely long formula?

Is the idea that formulas can only be countably infinite, and that even with such a long formula it is only countably infinite?

How would one prove that formulas in predicate logic can only be such?


Edit

Answers along the lines of "formulas are defined to be of finite length" I find unsatisfying, for the following reason: the rule for forming disjunctions doesn't say that we can't go on to form $A \lor A \lor...$. If it did a disjunction would be defined as something which can only be of length $n$ for some $n$. So I fail to see how Asaf's answer answers my question.


I think the import of the answer is that it is a precondition of something being a formula in standard predicate logic that it be of finite length. Then when recursive rules are stated, it is simply a precondition that they can't go on expanding forever $A \lor A...$.

But this raises the question, could one instead simply state that they can't go on forever for each recursive rule?

One would have then

"If $θ$ and $ψ$ are formulas of $ℒ1K=$, then so is $(θ\land ψ)$, so long as the length of $(θ\land ψ)$ is less than $n$, for some $n \in \mathbb{N}$"

  • 1
    Re: your edit. The definition of a well-formed formula probably also doesn't say "a formula may not be an elephant", and yet an elephant is not a well-formed formula. The set of well-formed formulae (in finitary logic) is defined inductively; it is a consequence of the inductive definition that all well-formed formulae are finite strings. – Clive Newstead Dec 11 '18 at 21:14
  • This doesn't answer my question. Take the inductive definition of formula-hood in https://plato.stanford.edu/entries/logic-classical/. Where does it state or imply that a formula may only be finite? Nowhere seemingly. Or it must be implicit in something that I am not seeing. – Edward.Lin Dec 11 '18 at 21:16
  • Take "If $θ$ and $ψ$ are formulas of $\mathscr{L}1K=$, then so is $(θ \land ψ).$ This doesn't say anything about banning formulas expanding rightward $A \land A \land A$. Or at some point some $A_1 \land ... A_n$ must not be a formula. But nothing in the definition states this. – Edward.Lin Dec 11 '18 at 21:19
  • You misunderstand me—it doesn't need to explicitly state that it is finite, because this is implicit in the inductive definition. Consider the following simpler example of an inductive definition: say $0$ is special, and if $\sigma$ is special then so is $\sigma\sigma$. Then $0, 00, 000, 0000, \dots$ are all special. What about the infinite string $0000 \cdots$? It looks like it could be special, but it isn't—the inductive definition of 'special' implies that only the finite strings of $0$s are special. – Clive Newstead Dec 11 '18 at 21:25
  • 1
    ... This is because when you define a set inductively from a collection of basic objects and constructors, the set being defined is the intersection of all sets containing the basic objects and closed under the constructors. So while $A \vee A \vee \cdots$ is obtained from basic objects using constructors, it is not in the intersection of all sets containing the basic objects and closed under the constructors (only the finite strings are). So the finiteness is a consequence, not a hypothesis that needs to be explicitly stated. – Clive Newstead Dec 11 '18 at 21:27
  • I don't understand why this is the case. – Edward.Lin Dec 11 '18 at 21:29
  • That is evident. You should read about inductively defined sets. As much as I'd like to explain it all to you, the comments section of a question on MSE is too short to go into all the machinery involved. – Clive Newstead Dec 11 '18 at 21:30
  • I will try, but I think I will only encounter the same confusion. So I will speak personally with someone about it instead. $special" the way you defined it seems obviously applicable to 000000. Thanks anyway – Edward.Lin Dec 11 '18 at 21:32

5 Answers5

8

It's not that you can't, it's just that the standard definition of predicate logic requires formulas (and proofs) to have finite length.

There are infinitary logics where you can have infinite conjunctions and disjunctions, or infinitely many quantifiers. And that all works out fine. But once you move from the "finite realm", set theory starts playing a much more significant role. Which makes things far more complicated (for example, the compactness and completeness theorems no longer hold in general).

Asaf Karagila
  • 393,674
  • But the definition of disjunction doesn't preclude us forming $A \lor A \lor...$ So where is the restriction coming from? – Edward.Lin Dec 11 '18 at 21:03
  • I mean the definition of well formed formula itself. It doesn't say "a formula may only be of finite length". I have never seen this stated in the definition of what constitutes a well formed formula. – Edward.Lin Dec 11 '18 at 21:04
  • This doesn't answer my question. Take the inductive definition of formula-hood in https://plato.stanford.edu/entries/logic-classical/. Where does it state or imply that a formula may only be finite? Nowhere seemingly. Or it must be implicit in something that I am not seeing. – Edward.Lin Dec 11 '18 at 21:15
  • Do you also have an issue with the fact that a natural number is defined from a finite sequence of decimal digits? Why not infinite sequence? Well, we have a definition of a natural number, and other things are not natural numbers. That is not to say that they cannot be used for something, but they are not called natural numbers. – Asaf Karagila Dec 11 '18 at 21:43
  • I guess my problem is that I don't see the analogy (as clearly) as you do. Which indicates that I need to think about basic inductive definitions and eventually it will click :) – Edward.Lin Dec 11 '18 at 21:44
6

In a comment to Asaf you write,

Take the inductive definition of formula-hood in plato.stanford.edu/entries/logic-classical. Where does it state or imply that a formula may only be finite? Nowhere seemingly. Or it must be implicit in something that I am not seeing.

Finiteness is implicit there - in the precise meaning of "inductive definition!"

The inductive definition basically says, "The set $Form$ is the smallest set containing [stuff] and closed under [operations]." (Another way this is phrased is in three clauses, with the last being "and nothing is in $Form$ if it is not required to be by the previous clauses, but this is less precise.) A formula is then an element of $Form$.

The point is that since these operations and starting formulas are finitary, we never get infinitely long expressions in $Form$. Specifically, what you need to convince yourself of is:

The class of finitely long formulas satisfies the closure properties in the definition.

This exactly says that nothing else is a formula. And the fact that this closure holds is because the "basic operations" of formula-forming are finitary.


It might help to consider a simpler inductive definition first: $\mathbb{N}$ is the smallest set containing $0$ and closed under $a\mapsto a+1$. Now there's nothing in this definition explicitly excluding $\pi$ from being a natural number ... except for that word "smallest." This is the essence of inductive definability.

Noah Schweber
  • 245,398
  • This is beginning to make sense to me. But what would happen if we said instead, let the class of formulas be either the smallest set/class such that $\phi$ or some other set/class $\psi$, where $\psi$ might be, but might not be finite? What sort of effect on the logic would this have? (this being different from saying straight out "let the class of formulas be either the biggest set or class such that $\phi$") – Edward.Lin Dec 11 '18 at 21:39
  • @Edward.Lin There generally won't be a biggest class satisfying a closure property - just keep adding things and then closing! We can however consider other inductive definitions which give rise to other logics, and you may be particularly interested in infinitary logic. (cont'd) – Noah Schweber Dec 11 '18 at 21:41
  • But the point is that classical logic is defined by an inductive definition which does rule out infinitely long formulas - or rather, the closure property doesn't necessitate infinitely long formulas, and so infinitely long formulas aren't in the set given by the corresponding inductive definition. – Noah Schweber Dec 11 '18 at 21:41
3

Just because you can indefinitely disjunct yet another term to your ever-growing disjunction does not mean that you ever reach an infinitely long disjunction, just as much as you never get to an infinite number just by adding $1$ to an ever-growing number.

Indeed, by induction over the recursive ddefinition of expressions you can easily prove that every statement has to be of finite length:

Base: every atomic statement like $A$ or $B$ is of finite length

Step: if $\varphi$ and $\psi$ are of finite length, then $\varphi \lor \psi$ is of finite length as well (and same for the other operators)

Bram28
  • 100,612
  • 6
  • 70
  • 118
  • 1
    Embarrassing confession: I suppose I don't understand the basic mathematical claim that you can never get to an infinite number just by adding 1. – Edward.Lin Dec 12 '18 at 11:04
  • 2
    @Edward.Lin Well, think of all the numbers 1,2,3,4,.... is any of thse numbers an infinite number? No. They are all finite ... and there is never a point where you add 1 and suddenly obtain an infinite number. And again you could use a very simple induction proof to show that: the first entry (1) is finite, and if the $k$-th entry is a finite number, then the next number is finite too. Of course, you do have infinitely many numbers ... and all of them are by themselves finite. Indeed, it is exactly because there are infinitely many finite numbers that you can never get 'past' them. – Bram28 Dec 12 '18 at 13:06
2

Let's assume your "infinite disjunction", $A\lor A\lor A\lor \cdots$, is right associated so we have $A\lor (A \lor \cdots)$. As you state (e.g. quoting https://plato.stanford.edu/entries/logic-classical/): For formulas $\varphi$ and $\psi$, we can form the formula $\varphi\lor\psi$. To prove that $A\lor(A\lor\cdots)$ is a formula we need to show that it is of the form of $\varphi\lor\psi$ for formulas $\varphi$ and $\psi$. Clearly, we can set $\varphi=A$, and $A$ is an (atomic) formula. We then have to show that $\psi=A\lor\cdots$ is a formula. We can again immediately show that the left hand side is a(n atomic) formula but the right hand side is $\cdots$ which is certainly not a formula. Oh, but you meant $\cdots$ to mean "indefinitely disjoining $A$". Well, okay, then you just will never get to the point where you can definitively state that $A\lor\cdots$ is a formula and thus that we're allowed to call $A\lor(A\lor\cdots)$ a formula. That is, we never get to a point where we can show that there actually is a formula corresponding to $\psi=A\lor\cdots$.

This is the informal (and also philosophical) argument that formulas (and many other inductively defined structures) are finite. There are two distinct ways of formalizing this that are equivalent in typical foundations but separate in weaker foundations. First, we can define the set of formulas to be the smallest set that's closed under the given formation rules. In this case, the set of all finite formulas is certainly included and is closed under the formation rules. Even if our meta-theory allowed sets that contained infinite objects formed by the rules, any set that was closed under the rules and contained those infinite objects would be larger (i.e. a superset of) the set that only contained the finite objects. (This is the purpose of rule 8, "That's all folks", from the aforementioned link.) A second approach to formalization is akin to the approach in your edit. You define a notion of "simpler" formulas, say formulas with depth less than $n$ for some given natural $n$, and you define formulas by stages. You say formulas of depth $n$ are formulas built from formulas of at most depth $m<n$. You then can define the set of all formulas as the union of formulas of depth $n$ for all $n\in\mathbb N$. (We can easily avoid set-theoretic talk at all, e.g. formula this in PRA if we want.

0

No, a formula is defined inductively, that is, via some finite sequence of the rules allowed by your language. It's sort of like the idea that a natural number can't be infinitely long -- even if you can always tack on another digit to the beginning to get another natural number, if you go on forever, you will end up with something that is not a natural number. In this case, if you take $A \lor A \lor A \lor \dots$, the result will not be considered a formula in your language. But if you change the underlying language, you can take something like $\bigvee_{k \in \mathbb{N}} A$, to be a formula, which seems to intuitively be what you want.

platty
  • 3,555
  • Where in the rules for formation of disjunctions does it say that $A \lor A \lor A \lor...$ is not a formula? I fail to see this stated clearly anywhere – Edward.Lin Dec 11 '18 at 21:06