# Predicate logic

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Predicate logic is formal logic where the alphabet includes quantifiers (${\displaystyle \forall }$, ${\displaystyle \exists }$…), variables (x, y, z…), and predicate symbols (P, Q…) that can relate variables or constant terms.

For example, ${\displaystyle \forall x\exists y(P(x,y)\vee \neg Q(y,x))}$ is a sentence in predicate logic, meaning: “for all x, there exists some y, such that either P(x, y) holds, or Q(y, x) does not hold.”

In this case, P and Q are “non-logical symbols” standing for some relations, and x and y are variables ranging over some implicit domain. The precise relations and domain are opaque to the rules of predicate logic — the point of formal logic is arguably to state inferences like ${\displaystyle \forall xP(x)\iff \neg \exists x\neg P(x)}$ without worrying about what x and P stand for — but can be assigned meaning when combined with some interpretation or model for the logic.

Even in its simplest form, predicate logic can be used to model many statements in natural language, where the predicate symbols and constants/terms are taken to model verbs relating nouns:

Every person who lives in Perth lives in Australia.
${\displaystyle \forall p({\text{Person}}(p)\wedge {\text{LivesIn}}(p,{\text{Perth}})\to {\text{LivesIn}}(p,{\text{Australia}}))}$

Toaq is based on this formalism. Its content words are explicitly n-ary predicates:

poq: ___ is a person.
bua: ___ lives in ___.

It allows for slots that themselves accept other predicates/relations, meaning Toaq is really based on higher-order logic:

cheo: ___ all satisfy binary relation ___ among each other.
${\displaystyle {\text{Cheo}}(x,R)\iff \forall a\forall b({\text{Among}}(a,x)\wedge {\text{Among}}(b,x)\wedge (a\neq b)\to R(a,b))}$

This connection between predicate logic and natural language has been explored since the 1970s by Montague (Montague grammar on Wikipedia).