<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Implementations of Natural Logics</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Lawrence S. Moss</string-name>
          <email>lmoss@indiana.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Indiana University</institution>
          ,
          <addr-line>Bloomington, IN 47405</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <volume>2095</volume>
      <abstract>
        <p>We discuss what is known about implementations of logical systems whose syntax is either a small fragment of natural language, or alternatively is a formal language which looks more like natural language than standard logical systems. Much of this work in this area is now carried out under the name of natural logic. Just as in modal logic or description logic, there are many systems of natural logic; indeed, some of those systems have features reminiscent of modal logic and description logic. For the most part, quantification in natural logics looks more like description logic or term logic (i.e., syllogistic logic) than first-order logic. The main design criteria for natural logics are that (1) one can be able to use them to carry out significant parts of reasoning; and (2) they should be decidable, and indeed algorithmically manageable. All of the questions that we ask about the implementation of any logics can be asked about natural logics. This paper surveys what is known in the area and mentions open questions and areas.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The natural logic program
talks:</p>
      <p>This is a summary of the program of natural logic, taken from papers and
1. Show the aspects of natural language inference that can be modeled at all can be modeled using
logical systems which are decidable.
2. To make connections to proof-theoretic semantics, and to psycholinguistic studies about human
reasoning.
3. Whenever possible, to obtain complete axiomatizations, because the resulting logical systems are
likely to be interesting, and also complexity results.
4. To implement the logics, and thus to have running systems that directly work in natural language,
or at least in formal languages that are closer to natural language than to traditional logical calculi.
5. To re-think aspects of natural language semantics, putting inference at the center of the study
rather than at the periphery.</p>
      <p>F O2
P
e
a
n
o
-F
r
e
g
e
A
ristotle</p>
      <p>S≥</p>
      <p>S†
S</p>
      <p>F OL
R†
R</p>
      <p>R∗†(tr)</p>
      <p>R∗(tr)
R∗†
R∗</p>
      <p>Church
-Tu</p>
      <p>ring</p>
      <p>R∗†(tr, opp)
R∗(tr, opp)
first-order logic</p>
      <sec id="sec-1-1">
        <title>2 variable FO logic</title>
        <p>† adds full N -negation
R∗(tr) + opposites
R∗ + (transitive)</p>
        <p>comparative adjs
R + relative clauses
S + full N -negation
R = relational syllogistic
S≥ adds |p| ≥ |q|</p>
        <p>S: all/some/no p are q</p>
        <p>Goal (4) is the topic of this paper, but goal (3) is also relevant. Most of the work on natural logic
has pursued goals (1) and (3). Concerning (3), there are now a myriad of logical systems which are
complete and decidable and which have something to do with natural language. Some of them are listed
in a chart in Figure 1. Here is a guide to those systems, starting with the three boundary lines.</p>
        <p>The line called “Church-Turing” at the top separates the logics which are undecidable (above the
line) from those which are not. FOL is first-order logic. FO2 is two-variable first-order logic; this is
well-known as a decidable logic. This logic is not directly relevant to our study, but since many logics
can be expressed in FO2, they inherit the decidability.</p>
        <p>The line called Peano-Frege separates the sub-logics of FOL (to the right) from the one logic on
this chart which is not sub-logic of FOL. These logics are “non-classical”, being unrelated to FOL. And
they deal with “quantity” (but not “quantification” in the usual sense). I would hope that people in the
ARQNL community will find them interesting. I discuss them in Section 3. It should be mentioned that
there are other logics to the left of the Peano-Frege boundary. Space didn’t permit a larger display.</p>
        <p>The line called Aristotle separates the logics with a syllogistic formulation from those which lack
such a formulation. This line is much less “firm” than the other lines, for two reasons. First, there is
no accepted definition of what a syllogistic proof system even is. For us, it means a logic with a finite
set of rules, each of which is essentially a Horn clause, and also allowing reductio ad absurdum. The
second noteworthy feature of the Aristotle line is that sometimes a logic L which is provably above the
line has a super-logic L0 which is below the line. That is, sometimes, adding vocabulary to a logical
system enables one to find a syllogistic presentation. This feature has made some doubt whether there
is much of a point to the Aristotle boundary. Be that as it may, there certainly is work to do in clarifying
the line which we name for Aristotle.
Specific logics We go into details on the syntax and semantics of some of the logics in the chart,
starting with S at the bottom. This is the classical syllogistic. The syntax starts with a collection of
nouns; we use lower-case letters like p, q, x, and y for nouns. The syntax just has sentences of the form
all x are y, some x are y, and no x are y. These sentences are not analyzed as usual in first-order logic.
The sentences of S do not involve recursion. Also, there are no propositional connectives in this tiny
logic.</p>
        <p>For the semantics, we consider models M consisting of a set M and subsets [[x]] ⊆ M for all nouns
x. We then declare</p>
        <p>M |= all x are y iff [[x]] ⊆ [[y]]
M |= some x are y iff [[x]] ∩ [[y]] 6= ∅</p>
        <p>M |= some x are y iff [[x]] ∩ [[y]] 6= ∅
Please note that we are not rendering sentences like all x are y into first-order logic. Instead, we are
giving a semantics to syllogistic logic.</p>
        <p>Then we ask some very traditional questions. For a set Γ of sentences in this language, and for
another sentence ϕ, we say that Γ |= ϕ if every model M which satisfies all sentences inΓ also satisfies
ϕ. This is the notion of semantic consequence from logic. There is a matching proof system, defining a
relation Γ ` ϕ. For example, here are two rules
all x are y all y are z
all x are z</p>
        <p>BARBARA
all x are y some x are z
some y are z</p>
        <p>DARII
One feature of the logics in this area is that frequently there are many rules.</p>
        <p>
          As expected, there is a Completeness Theorem. For the purposes of this paper, the important point
is that the relation Γ ` ϕ (for Γ a finite set) is in NLOGSPACE (see [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]), and it is straightforward to
implement.
        </p>
        <p>We return to the chart to briefly discuss the other logics. The logic R above S adds transitive verbs
(such as see, love, and hate), interpreted as arbitrary binary relations on the universe. The syntax of R is
bit complicated, so we won’t go into full details. But the following are examples of sentences of it: all
x see some y and no x see all y. In English, sentences like the first of these are ambiguous, and to make
a proper logical study we take just the standard reading, where all has wide scope. Moving up, R∗ adds
terms in a recursive way to R. We present the syntax of two related systems formally in Section 2. So
all (see all (love all dogs)) (hate some cat) is a sentence of R∗; its usual rendering in English would be
all who see all who love all dogs also hate some cat. R∗(tr) adds comparative adjectives such as taller
than, interpreted again as binary relations, but insisting that those interpretations be transitive (hence
the tr) and irreflexive. Adding converse relations such as shorter than takes us up to R(tr, opp). For
example, a logical rule in this logic would be to assume all x are taller than all y and conclude all y are
shorter than all x.</p>
        <p>The logics with the dagger † add full negation on all nouns. So in S†, one can say some non-x are
non-y. This sentence is not part of the classical syllogistic. We interpret “non” in a classical way, so
[[non-x]] = M \ [[x]]. If one wanted to be “non-classical” here, one certainly could.</p>
        <p>
          More on natural logic may be found in the Handbook article [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ].
        </p>
        <p>
          Complexity A great deal is known about the complexity of the consequence relation Γ ` ϕ. The
logics at the bottom of the chart, S, S†, R, and S≤ are in NLOGSPACE (see [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]). R∗ is NP-COMPLETE
(see [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]). The logics R†, R†∗, and R†∗(tr) are complete for EXPTIME. It is open to investigate
approximation algorithms for these kinds of logics.
        </p>
        <p>Of special interest for implementations Most of these logics have not been implemented, but of
course it would be interesting to do so. Further, we do not even have approximation algorithms for
these logics. All of this would be good to do. The smallest logics in the chart have been implemented,
and there are some interesting features. First, once a logic has negation, contradictions are possible.
Perhaps the most natural way to handle these is by adding reductio ad absurdum to the proof system.
However, this complicates the proof search in a big way. And in general, allowing reductio ad absurdum
in syllogistic logics raises the complexity beyond PTIME. To circumvent reductio ad absurdum, one can
use ex falso quodlibet. This principle allows us to derive an arbitrary conclusion from a contradiction.</p>
        <p>Another interesting thing about the implementations of logics “low in the chart” is that completeness
and model-building are closely related. Here is how this works. Suppose we are given Γ and ϕ and want
to know whether or not Γ ` ϕ; if this hold, we want a proof, and if not, we want a counter-model. One
proves a kind of conservativity fact about these logics: if there a derivation of Γ ` ϕ, then there is one
with the property that all terms in it are subterms of the premises or of the conclusion. This is a distant
relative of the subformula property, and it make proof search efficient. One simply generatesall of the
consequences of Γ and looks for ϕ. If ϕ is not found, then the sentences which are consequences of
it usually gives us a model in a canonical way. The upshot is that one does not need a separate model
finder.</p>
        <p>
          Predecessors There are two main predecessor areas to the work that I am discussing, one from
Artificial Intelligence, the other from Philosophy. In AI, there is a long tradition of thinking about inference
from language. Sometimes this is even taken as a primary problem of natural language processing. But
most of that work does not propose small fragments the way we are doing it here. Still, some early
papers in the area do work (in effect) with fragments, such as [
          <xref ref-type="bibr" rid="ref13 ref18">18, 13</xref>
          ]. Those papers have observations
that are useful even now. The other background area is Philosophy, especially to those interested in
reconstruction of ancient logical systems such as the syllogistic. For this line of work, see [
          <xref ref-type="bibr" rid="ref11 ref12 ref4 ref6">11, 6, 4, 12</xref>
          ].
The main difference between it and what we have mentioned so far is that the syllogistic logics in the
natural logic area are extended syllogistic logics; we are willing to go beyond the ancient systems in
every way.
2
The most prominent topic for the ARQNL workshop is quantified non-classical logics . I take it that
“quantified” here means “having the standard quantifiers.” In Section 3 below, we consider a different
sense of “quantified”: dealing with quantities (but doing so in a non-classical way). But first, in this
section, I want to suggest another direction. Let us return to the chart in Figure 1. The logics above the
line marked Aristotle can be shown to have no syllogistic proof system, not even one that uses (RAA).
The language that I want to mention in this section is R∗†. It is a term logic; the variables range over
subsets of a model, not individuals. Its syntax comes from [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ] and is found in Figure 2. (Actually, I
have changed the original syntax in small ways, and my syntax is closer to that of [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].)
        </p>
        <p>For the semantics, we interpret nouns by subsets of the universe M of a model (as in the previous
section), verbs by relations on M , noun and verb complements classically, and then inductively interpret
terms by
[[r all x]] =
[[r some x]] =
{n ∈ M : for all m ∈ [[x]], (m, n) ∈ [[r]]}
{n ∈ M : for some m ∈ [[x]], (m, n) ∈ [[r]]}</p>
        <p>
          In terms of the complexity, the consequence relation for R∗ is CO-NP COMPLETE (see [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]). For
R∗†, the complexity jumps to EXPTIME-complete (see [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ], following Pratt-Hartmann [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]). In general,
the addition of full negation is responsible for a number of complexity jumps in the area.
        </p>
        <p>
          It is possible to construct natural deduction style proof systems for this logic and related ones [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].
People interested in proof calculi for fragments of first-order logic might find this work interesting. But
4
        </p>
      </sec>
      <sec id="sec-1-2">
        <title>Expression</title>
        <p>nouns
verbs
unary literal
binary literal
term
R∗ sentence
Variables
p, q, x, y
s
l
r
c, d
ϕ</p>
      </sec>
      <sec id="sec-1-3">
        <title>Syntax</title>
        <p>
          p | p¯
s | s¯
l | r some c | r all c
some b+ d | some d b+ | all b+ d | all d b+
nobody has investigated or implemented proof search for the logics in [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. So from the point of view
of this paper, those systems are less interesting.
        </p>
        <p>
          Wennstrom [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ] provided an analytic tableau system for R∗†. His system is complete. He showed
that for every finite set s of sentences in the language which is unsatisfiable, there is a (finite) closed
tableau, proving the unsatisfiability of s. And if s is satisfiable, then the proof search algorithm
essentially provides us with a model. In addition, Wennstrom, provided three different tableau search
strategies for the language. (We should mention that the tableau system is not strongly complete.)
These all have to do with witnesses to existential sentences. In order to have finiteness results of the
kind we mentioned, some care is needed.
        </p>
        <p>
          Wennstrom also implemented all three strategies. He worked in miniKanren [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], a relational
programming language embedded in Scheme. He evaluated these on a number of test sets. Evaluation was
done using Petite Chez Scheme on a Windows 7 (64 bit) laptop. To give an idea, here is one of the tests:
{∀(k, m), ∃(∀(∀(∃(k, h), s), r), ∃(∃(∃(m, h), s), r))}
(The syntax here employs evident abbreviations from what we mentioned in Figure 2. For example
∃(t, r) abbreviates r some t.) The fourfold nesting of the quantifiers means that this example was too
complicated to actually run.
        </p>
        <p>
          Other tableau systems and implementations Wennstrom [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ] was influenced by Pratt-Hartmann
and Moss [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ], the paper that put forward most of the systems in Figure 1. But the idea of using tableau
comes from Muskens [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ], the primary source on tableau methods in connection with natural language
reasoning. This work was taken up by Abzianidze in his papers [
          <xref ref-type="bibr" rid="ref1 ref2 ref3">1, 2, 3</xref>
          ]. These papers build on [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ],
but in addition they implement the ideas. To date, this is the most sophisticated and most successful
implementation effort of the kind reported in this paper. The main reason not to go into more detail
on it in this paper is that I cannot point to so many problems that could interest people at the ARQNL
workshop.
3
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Sizes of sets</title>
      <p>
        This section discusses a topic that I think could be of interest at ARQNL, the logic S≤. This logic adds
to syllogistic logic some decidedly non-first order semantics, but with a simple syntax. We add to the
classical syllogistic two extra kinds of sentences: there are at least as many x as y, and there are more
x than y. The semantics is just what one would expect: use set theoretic models, and use the standard
notion of cardinality. In this discussion, we are going to restrict attention to finite models, since this is
most in the spirit of the subject. (But one can work on infinite sets; see [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].)
      </p>
      <p>Again, we should emphasize that these logical systems do not have quantifiers; for that matter,
they do not have propositional connectives ∧, ∨, or ¬. The only sentences are the ones mentioned.
In a sense, they are the cognitive module for reasoning about size comparison of sets, in the simplest
possible setting.</p>
      <p>It might come as a surprise, but reasoning about the sizes of sets does not by itself require a “big”
logical system.</p>
      <p>There is a complete proof system. It has 22 rules and so we won’t present them all. But let us show
several of them:
all p are q there are at least as many p as q
all q are p</p>
      <p>(CARD-MIX)
there are more q than p
there are more p than q
(MORE-ANTI)
∃≥(p, p) ∃≥(q, q)
∃≥(p, q)
(HALF)
(CARD-MIX) requires that the universe be finite. In the last two rules, we use x as an abbreviation of
non-x. In (CARD-MIX), we use ∃≥(x, y) as an abbreviation of there are at least as many x as y. So,
here is an explanation of the (HALF) rule. If there are at least as many p as non-p, then the p’s are at
least half of the universe. So if there are at most as many q as non-q, then q’s have at most half of the
elements in the universe.</p>
      <p>As we mentioned before, the logic does not have reductio ad absurdum, but it has the related
principle of ex falso quodlibet. In more detail, reductio ad absurdum is an admissible rule, but it is not needed.
One can use the following weaker forms
∃≥(p, q) ∃&gt;(q, p)
ϕ
(X-CARD)
some p are q no p are q
ϕ
(X)
These basically say that anything follows from a contradiction. It is open to construct and implement
meaningful natural logics which are paraconsistent.
3.1 Implementation
The logic has been implemented in Sage1. This implementation is on the cloud, and the author shares
it. See https://cocalc.com/. Other syllogistic logics have been implemented in Haskell.</p>
      <p>For example, one may enter in the CoCalc implementation the following.</p>
      <p>assumptions= [’All non-a are b’,
’There are more c than non-b’,
’There are more non-c than non-b’,
’There are at least as many non-d as d’,
’There are at least as many c as non-c’,
’There are at least as many non-d as non-a’]
conclusion = ’All a are non-c’
1As a programming language, Sage is close to Python. It is mainly associated with CoCalc (https://cocalc.com/);
CoCalc incorporates a lot of mathematical software, all of it open source. It provides Jupyter notebooks and course management
tools.</p>
      <p>We are asking whether the conclusion follows from the assumptions. This particular set of
assumptions is more complicated than what most people deal with in everyday life, even when they consider
the sizes of sets. This is largely due to the set complements.</p>
      <p>As we mentioned, the proof search algorithm basically gives counter-models to non-theorems. In
the case of this logic, this fact takes special work. Returning to our example, the result appears instantly.
(That is, for a set of assumptions of this type, the algorithm takes less than one second, running over the
web.) We get back</p>
      <sec id="sec-2-1">
        <title>The conclusion does not follow</title>
      </sec>
      <sec id="sec-2-2">
        <title>Here is a counter-model.</title>
        <p>We take the universe of the model to be {0, 1, 2, 3, 4, 5}
noun semantics
a
b
c
d
{2, 3}
{0, 1, 4, 5}
{0, 2, 3}
{}</p>
        <p>So the system gives the semantics of a, b, c, and d as subsets of {0, . . . , 5}. Notice that the
assumptions are true in the model which was found, but the conclusion is false.</p>
        <p>Here is an example of a derivation found by our implementation. We ask whether the putative
conclusion below really follows:</p>
        <p>All non-x are x
Some non-y are z</p>
        <p>There are more x than y
In this case, the conclusion does follow, and the system returns a proof.</p>
      </sec>
      <sec id="sec-2-3">
        <title>Here is a formal proof in our system: 1 All non-x are x</title>
      </sec>
      <sec id="sec-2-4">
        <title>Assumption</title>
        <p>2 All y are x
One 1
3 All non-x are x
4 All non-y are x</p>
      </sec>
      <sec id="sec-2-5">
        <title>Assumption</title>
        <p>One 3</p>
      </sec>
      <sec id="sec-2-6">
        <title>5 Some non-y are z</title>
      </sec>
      <sec id="sec-2-7">
        <title>Assumption</title>
      </sec>
      <sec id="sec-2-8">
        <title>6 Some non-y are non-y</title>
      </sec>
      <sec id="sec-2-9">
        <title>Some 5</title>
      </sec>
      <sec id="sec-2-10">
        <title>7 Some non-y are x</title>
      </sec>
      <sec id="sec-2-11">
        <title>8 Some x are non-y</title>
      </sec>
      <sec id="sec-2-12">
        <title>Darii 4 6</title>
      </sec>
      <sec id="sec-2-13">
        <title>Conversion 7</title>
      </sec>
      <sec id="sec-2-14">
        <title>9 There are more x than y More 2 8</title>
        <p>What about propositional logic? Propositional connectives make complex sentences from sentences.
We did not add the propositional connectives to this particular logic to keep the complexity low, and also
to illustrate the idea that one should find special-purpose logics for topics like sizes of sets. However,
one certainly could add in the connectives. The resulting logic has been explored, but we lack the space
to expand on this. It is open to implement such logics, or to connect the work to SAT solvers.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Reasoning without grammar, and forgetting about completeness</title>
      <p>The ultimate goal of the work that I am reporting on is to have working systems that do inference in
natural language, or something close. It is clear that the program of natural logic that I have discussed,
where one works with ever more complicated fragments, has a long way to go. I hope that some of the
languages which we have found so far will be of interest even to people outside of the area. It is equally
clear that for natural language inference itself, the method of fragments has its limitation: to get started
with it, one must have a language with a clear syntax and semantics.</p>
      <p>Readers of this paper will be surprised by the title of this section. The standard assumptions in all
areas of formal logic is that logical language come with a precisely defined semantics and especially a
precisely defined syntax. This syntax is usually trivial in the sense that parsing a logical language is a
non-issue. For natural language, the opposite is true. Parsing is a complex matter. (The semantics is
even worse, of course.)</p>
      <p>
        This section loosen this assumption in connection with sizes of sets. It is based on [
        <xref ref-type="bibr" rid="ref8 ref9">9, 8</xref>
        ]. It calls on
some knowledge of formal and computational linguistics.
      </p>
      <p>We are interested in polarity marking, as shown below:</p>
      <p>More dogs↓ than cats↑ walk↓
Most↑ dogs= who= every= cat= chased= cried↑</p>
      <p>Every dog↓ scares ↑ at least two↓ cats↑
The ↑ notation means that whenever we use the given sentence truthfully, if we replace the marked
word w with another word which is “ ≥ w” in an appropriate sense (see below for an example), then
the resulting sentence will still be true. So we have a semantic inference. The ↓ notation means the
same thing, except that when we substitute using a word ≤ w, we again preserve truth. Finally, the =
notation means that we have neither property in general; in a valid semantic inference statement, we can
only replace the word with itself rather than with something larger or smaller. We call ↑ and ↓ polarity
indicators.</p>
      <p>For example, suppose that we had a collection of background facts like cats ≤ animals, beagles ≤
dogs, scares ≤ startles, and one ≤ two. This kind of background fact could be read off from WordNet,
thought of as a proxy for word learning by a child from her mother. In any case, our ↑ and ↓ notations
on Every dog↓ scares ↑ at least two↓ cats↑ would allow us to conclude Every beagle startles at least one
animal. In general, ↑ notations permit the replacement of a “larger” word and ↓ notations permit the
replacement of a smaller one.</p>
      <p>
        The goal of work on the monotonicity calculus such as [
        <xref ref-type="bibr" rid="ref10 ref21 ref9">21, 10, 9</xref>
        ] is to provide a computational
system to determine the notations ↑, ↓, = on input text “in the wild”. That means that the goal would
be to take text from a published source or from the internet, or wherever, and to then accurately and
automatically determine the polarity indicators. Then using a stock of background facts, we get a very
simple “inference engine,” suitable for carrying out a reasonable fraction of the humanly interesting
inferences. The system would handle monotonicity inferences [
        <xref ref-type="bibr" rid="ref21 ref7">7, 21</xref>
        ]. Such a system would not be
complete at all, because many forms of inference are not monotonicity inferences.
      </p>
      <p>
        We must emphasize that [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] is also not a complete success. The work there depends on having a
correctly parsed representation of whatever sentence is under consideration, either as a premise of an
argument or as the conclusion. And here is the rub: it is rather difficult to obtain semantically useable
parses. We have wide-coverage parsers; that is, programs capable of training on data (probabilistically)
and then giving structure to input sentences. And the parses of interest to us are those in a grammatical
framework called combinatory categorial grammar (CCG). CCG is a descendant of categorial grammar
(CG), and it is lexicalized; that is, the grammatical principles are encoded in complex lexical types
rather than in top-down phrase structure rules. From our point of view, this is a double-edged sword.
8
On the one hand, CG and CCG connect syntax and semantics because string concatenation in the syntax
is matched by function application in the semantics, or to combinators of various sorts. On the other
hand, there is no real hope of writing a complete set of rules for logical systems whose syntax is so
complicated as to require a grammar of this form. In effect, we give up on completeness in order to
study a syntax that is better than a toy. For that matter, working with a wide-coverage parser for a
framework like CCG means that some of the parses will be erroneous in the first place. And so the
entire notion of deduction will have to be reconsidered, allowing for mistakes along the way.
The connection to automated reasoning There are several reasons why this topic of automated
monotonicity reasoning deserves mention in a paper on natural logic for the ARQNL community. Given
a set of assumptions in natural language (or even in formal logic), if one has ↑ and ↓ information on the
individual words and the constituent phrases, then a “good deal” of logical inference follows “easily”,
by substitution. Admittedly, we are vague here; see [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. It is a nice open question to quantify in a
meaningful way the amount of logical inference that is due to very simple operations, such as monotonicity
substitution. Beyond this, there are some interesting technical questions about how exactly one would
compute ↑ and ↓ information from parse trees.
5
      </p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>My feeling is that people interested in the topics like “proof calculi, automated theorem proving systems
and model finders for all sorts of quantified non-classical logics” will find much to like in the topic of
natural logic. Although the systems in the area will be new, and so on a technical level one would be
tempted to see differences, there is a close ideological kinship. Both are about automated reasoning,
both are willing to consider new systems of various types.</p>
      <p>We close with a review of the main points in this survey paper for people in the area.</p>
      <p>First, first-order logic (FOL) is not the only approach to the topic of quantification: extended
syllogistic logics in the natural logic family offer an alternative. That alternative is not nearly as well-studied
as FOL. There are numerous computational problems related to extended syllogistic logics, and there
are also a few working systems.</p>
      <p>Even if one prefers FOL for the things that it can do, FOL cannot handle some manifestly
secondorder phenomena such as reasoning about the sizes of sets. We mentioned logics which can cover this
reasoning and showed a simple implementation.</p>
      <p>An old effort in AI is to study inference from text using automated logic. This topic is currently under
revision, due to the connection with the monotonicity calculus. From the point of view of this paper,
automating monotonicity inference is an important next step in doing automated reasoning concerning
quantification.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Lasha</given-names>
            <surname>Abzianidze</surname>
          </string-name>
          .
          <article-title>A tableau prover for natural logic and language</article-title>
          .
          <source>In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, EMNLP</source>
          <year>2015</year>
          , Lisbon, Portugal,
          <source>September 17-21</source>
          ,
          <year>2015</year>
          , pages
          <fpage>2492</fpage>
          -
          <lpage>2502</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Lasha</given-names>
            <surname>Abzianidze</surname>
          </string-name>
          .
          <article-title>A tableau prover for natural logic and language</article-title>
          .
          <source>In EMNLP</source>
          , pages
          <fpage>2492</fpage>
          -
          <lpage>2502</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Lasha</given-names>
            <surname>Abzianidze</surname>
          </string-name>
          .
          <article-title>Natural solution to fracas entailment problems</article-title>
          .
          <source>In Proceedings of the Fifth Joint Conference on Lexical and Computational Semantics, *SEM</source>
          <year>2016</year>
          , Berlin, Germany,
          <fpage>11</fpage>
          -12
          <source>August</source>
          <year>2016</year>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>John</given-names>
            <surname>Corcoran</surname>
          </string-name>
          .
          <article-title>Completeness of an ancient logic</article-title>
          .
          <source>Journal of Symbolic Logic</source>
          ,
          <volume>37</volume>
          (
          <issue>4</issue>
          ):
          <fpage>696</fpage>
          -
          <lpage>702</lpage>
          ,
          <year>1972</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>William</surname>
            <given-names>E. Byrd Daniel P.</given-names>
          </string-name>
          <string-name>
            <surname>Friedman</surname>
            and
            <given-names>Oleg</given-names>
          </string-name>
          <string-name>
            <surname>Kiselyov</surname>
          </string-name>
          .
          <article-title>The Reasoned Schemer</article-title>
          . MIT Press,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>George</given-names>
            <surname>Englebretsen. Three Logicians. Van Gorcum</surname>
          </string-name>
          ,
          <string-name>
            <surname>Assen</surname>
          </string-name>
          ,
          <year>1981</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Bart</given-names>
            <surname>Geurts</surname>
          </string-name>
          .
          <article-title>Monotonicity and processing load</article-title>
          .
          <source>Journal of Semantics</source>
          ,
          <volume>22</volume>
          (
          <issue>1</issue>
          ):
          <fpage>97</fpage>
          -
          <lpage>117</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Hai</given-names>
            <surname>Hu</surname>
          </string-name>
          , Thomas F.
          <string-name>
            <surname>Icard</surname>
            <given-names>III</given-names>
          </string-name>
          , and Lawrence S. Moss.
          <article-title>Automated reasoning from polarized parse trees</article-title>
          .
          <source>In Proc. Natural Language in Computer Science (NLCS'18)</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Hai</given-names>
            <surname>Hu</surname>
          </string-name>
          and Lawrence S. Moss.
          <article-title>Polarity computations in flexible categorial grammar</article-title>
          . In M.
          <string-name>
            <surname>Nissim</surname>
          </string-name>
          (et al), editor,
          <source>Proceedings of The Seventh Joint Conference on Lexical and Computational Semantics, *SEM</source>
          <year>2018</year>
          , New Orleans, Louisiana,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Thomas</surname>
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Icard</surname>
          </string-name>
          and Lawrence S. Moss.
          <article-title>Recent progress on monotonicity</article-title>
          .
          <source>Linguistic Issues in Language Technology</source>
          ,
          <volume>9</volume>
          (
          <issue>7</issue>
          ):
          <fpage>167</fpage>
          -
          <lpage>194</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Jan</given-names>
            <surname>Łukasiewicz</surname>
          </string-name>
          .
          <source>Aristotle's Syllogistic. Clarendon Press, Oxford, 2nd edition</source>
          ,
          <year>1957</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>John</surname>
            <given-names>N. Martin.</given-names>
          </string-name>
          <article-title>Aristotle's natural deduction revisited</article-title>
          .
          <source>History and Philosophy of Logic</source>
          ,
          <volume>18</volume>
          (
          <issue>1</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>David</surname>
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>McAllester</surname>
            and
            <given-names>Robert</given-names>
          </string-name>
          <string-name>
            <surname>Givan</surname>
          </string-name>
          .
          <article-title>Natural language syntax and first-order inference</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>56</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>20</lpage>
          ,
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Lawrence</surname>
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Moss</surname>
          </string-name>
          .
          <article-title>Logics for two fragments beyond the syllogistic boundary</article-title>
          .
          <source>In Fields of Logic and Computation: Essays Dedicated to Yuri Gurevich on the Occasion of His 70th Birthday</source>
          , volume
          <volume>6300</volume>
          <source>of LNCS</source>
          , pages
          <fpage>538</fpage>
          -
          <lpage>563</lpage>
          . Springer-Verlag,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Lawrence</surname>
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Moss</surname>
          </string-name>
          .
          <article-title>Natural logic</article-title>
          .
          <source>In Handbook of Contemporary Semantic Theory, Second Edition</source>
          , chapter
          <volume>18</volume>
          . John Wiley &amp; Sons,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Lawrence</surname>
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Moss</surname>
          </string-name>
          and Selc¸uk Topal.
          <article-title>Syllogistic logic with cardinality comparisons on infinite sets</article-title>
          .
          <source>Review of Symbolic Logic</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Reinhard</given-names>
            <surname>Muskens</surname>
          </string-name>
          .
          <article-title>An analytic tableau system for natural logic</article-title>
          .
          <source>In Logic, Language and Meaning - 17th Amsterdam Colloquium</source>
          , Amsterdam, The Netherlands,
          <source>December 16-18</source>
          ,
          <year>2009</year>
          , Revised Selected Papers, pages
          <fpage>104</fpage>
          -
          <lpage>113</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <surname>Noritaka</surname>
            <given-names>Nishihara</given-names>
          </string-name>
          , Kenichi Morita, and
          <string-name>
            <given-names>Shigenori</given-names>
            <surname>Iwata</surname>
          </string-name>
          .
          <article-title>An extended syllogistic system with verbs and proper nouns, and its completeness proof</article-title>
          .
          <source>Systems and Computers in Japan</source>
          ,
          <volume>21</volume>
          (
          <issue>1</issue>
          ):
          <fpage>760</fpage>
          -
          <lpage>771</lpage>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>Ian</given-names>
            <surname>Pratt-Hartmann</surname>
          </string-name>
          .
          <article-title>Fragments of language</article-title>
          .
          <source>Journal of Logic, Language and Information</source>
          ,
          <volume>13</volume>
          :
          <fpage>207</fpage>
          -
          <lpage>223</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>Ian</given-names>
            <surname>Pratt-Hartmann</surname>
          </string-name>
          and Lawrence S. Moss.
          <article-title>Logics for the relational syllogistic</article-title>
          .
          <source>Review of Symbolic Logic</source>
          ,
          <volume>2</volume>
          (
          <issue>4</issue>
          ):
          <fpage>647</fpage>
          -
          <lpage>683</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <surname>Johan van Benthem</surname>
          </string-name>
          .
          <source>Essays in Logical Semantics</source>
          , volume
          <volume>29</volume>
          of Studies in Linguistics and Philosophy. D. Reidel Publishing Co., Dordrecht,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>Erik</given-names>
            <surname>Wennstrom</surname>
          </string-name>
          .
          <article-title>Tableau-based model generation for relational syllogistic logics</article-title>
          .
          <source>In International Symposium on Artificial Intelligence and Mathematics, ISAIM</source>
          <year>2014</year>
          ,
          <string-name>
            <surname>Fort</surname>
            <given-names>Lauderdale</given-names>
          </string-name>
          , FL, USA, January 6-
          <issue>8</issue>
          ,
          <year>2014</year>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>