<!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>Inference From Non-Horn Clauses With Partial Predicates (short paper)?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alexander Sakharov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Synstretch</institution>
          ,
          <addr-line>Framingham, Massachusetts</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper investigates inference without Reductio Ad Absurdum from knowledge bases comprised of non-Horn rules with partial predicates and functions. The semantics of this inference is speci ed by 3-valued models with constraints. This inference corresponds to model elimination without the reduction rule, which is equivalent to input resolution and to chaining extended with rule contrapositives. It is characterized by sequent calculi without the contraction rule and with non-logical axioms expressing rules and facts.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Consider function f (x) whose domain is undecidable [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and whose range is
a known nite set. If predicate P represents f , then it is impossible that the
derivation of either P (a; b) or :P (a; b) succeeds for any constants a; b. Detecting
atoms with de ned truth values is an undecidable problem [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>The principle of Reductio Ad Absurdum (RAA) states that A is derivable if it
is derivable from hypothesis :A. In author's opinion, the legitimacy of reasoning
by contradiction, i.e. with using RAA, is questionable in the presence of partial
predicates or functions. It seems faulty to apply RAA when the truth value of
the hypothesis is unde ned. Intuitionists criticized the law of excluded middle
in regard to statements about in nite collections. This criticism is even more
relevant to RAA in the presence of partial predicates and functions.</p>
      <p>
        The aim of this paper is to investigate inference from non-Horn KBs without
RAA in presence of evaluable predicates and functions. Unlike Horn KBs,
inference from non-Horn KBs without reasoning by contradiction utilizes negation
properties. Non-Horn KBs avoid controversies arising from relying on negation
as failure [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. This short paper is a summary of results, proofs are only sketched,
and a review of related work is omitted.
      </p>
      <p>
        The semantics of inference from non-Horn KBs without reasoning by
contradiction can be speci ed by natural 3-valued models [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] with constraints. The
third value represents unde ned truth values of partial predicates and of atoms
with unde ned arguments. Inference from non-Horn KBs without RAA
corresponds to model elimination without the reduction rule, which is equivalent to
input resolution and to forward/backward chaining extended with rule
contrapositives. This inference is characterized by sequent calculi without the
contraction rule and with non-logical axioms expressing rules and facts.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Extended Chaining, Resolution, Model Elimination</title>
      <p>
        A literal is called ground if it does not contain variables. A substitution is a nite
set of mappings of variables to terms. The result of applying a substitution to a
formula or set of formulas is called its instance. We assume that occurrences of
evaluable functions/predicates with constant arguments are evaluated as soon as
they appear in derivations. Any complete search strategy for inference from KBs
with evaluable functions/predicates should conduct and-or search [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]
simultaneously with evaluations. A KB is called consistent if no atom is derivable from
this KB along with its negation.
      </p>
      <p>If A is an evaluable predicate and the evaluation of ground literal A(:::) yields
true, then A(:::) is considered a fact. If the evaluation of literal A(:::) yields false,
then :A(:::) is considered a fact. These facts are not physically stored in KBs.
There could be an in nite number of them.</p>
      <p>
        Forward and backward chaining are widely used as inference methods for
Horn KBs with goals (queries) that are atoms. These two methods can be applied
to non-Horn KBs or non-Horn logic programs and to goals that are literals. Both
forward and backward chaining are based on Generalized Modus Ponens as the
sole inference rule [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]: if A01:::A0k are derived literals, A ( A1 ^ ::: ^ Ak is a rule,
substitution is a uni er of literals A0i and Ai, i.e. A0i = Ai for i = 1:::k,
then A is derivable. For facts, k = 0. A forward chaining step derives A
given that A01; :::; A0k are derived literals. Given goal list L = f:::G:::g and such
substitution that G = A , every step of backward chaining replaces goal
G with A1 ; :::; Ak in L and also applies to the other goals in L. Forward
and backward chaining have the same inference power. Negation is redundant
in backward and forward chaining.
      </p>
      <p>
        For any rule A ( A1 ^ ::: ^ Ak, the following implications Ai ( A ^ A1 ^
:::Ai 1 ^ Ai+1::: ^ An are called contrapositives to this rule [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. A denotes
the complement of literal A. Rules entail their contrapositives in classical FOL.
Chaining methods can be extended by adding contrapositives to rules. This may
signi cantly increase the range of derivable literals. For instance, if literals P (a)
and R(a) are facts, then literal :Q(a) is derivable by forward and backward
chaining with contrapositives from rules A(x) ( P (x), :A(x) ( Q(x) ^ R(x).
This derivation is not possible without contrapositives. Contrapositives make
use of negation properties. We will refer to forward and backward chaining with
contrapositives as extended chaining.
      </p>
      <p>
        The resolution calculus [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] has two rules: resolution and factoring. The
resolution rule produces clause A1 _ ::: _ Ak _ B1 _ ::: _ Bm from two clauses
A1 _ ::: _ A _ ::: _ Ak and B1 _ ::: _ B _ ::: _ Bm where substitution is the
most general uni er (MGU) of A and B, that is, any other uni er of the two
literals is a composition of and another substitution. The factoring rule
produces clause A1 _ ::: _ A _ ::: _ Ak from clause A1 _ ::: _ A _ ::: _ A0 _ ::: _ Ak
where is the MGU of A and A0. In input resolution, one of two premises of the
resolution rule is a clause from the input set [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        The PTTP model elimination procedure [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] has two rules and uses
contrapositives. Its resolution rule produces goal list A1 ; :::; Ak ; [B ]; B1 ; :::; Bm
from rule or contrapositive A ( A1; :::; Ak and goal list B; B1; :::; Bm where is
the MGU of A and B. Leftmost framed literals are removed immediately. The
reduction rule produces B1 ; :::; [B0 ]; :::; Bm from B; B1; :::; [B0]; :::; Bm where
is the MGU of B and B0. This procedure gives a characterization of proofs
by contradiction. They are the model elimination derivations involving the
reduction rule since this rule is essentially RAA. It eliminates a hypothesis in the
case that this hypothesis implies its complement.
      </p>
      <p>Theorem 1. Literal L is derivable by extended chaining if and only if
refutable by input resolution in which KB rules/facts are input clauses and
is used in the rst resolution step only.</p>
      <p>L is</p>
      <p>L
Theorem 2. Literal L is derivable by the PTTP model elimination procedure
without the reduction rule if and only if L is refutable by input resolution in
which L is used in the rst resolution step only.</p>
      <p>
        Factoring is admissible in resolution refutations satisfying the condition of
Theorem 1. Input resolution steps map to backward chaining steps. The lifting
lemma [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] guarantees that chaining derivations can be mapped to input
resolution refutations. Any PTTP derivation not using the reduction rule is a resolution
refutation satisfying the condition of Theorem 2. Input resolution refutations are
transformed to PTTP derivations by iteratively adjusting the order of resolution
steps.
      </p>
      <p>
        Taken together, Theorem 1 and Theorem 2 show that extended chaining
derivations and input resolution refutations coincide with FOL derivations
without using RAA. All of them correspond to direct derivations used in formal
argumentation. Direct derivations are de ned as natural deduction done
without using RAA [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Every literal occurring in any successful extended chaining
derivation is derivable as well [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. This property can be reformulated for input
resolution and model elimination, it is characteristic of KB inference without
RAA. Inference without RAA is not the same as intuitionistic inference. It does
not correspond to an intermediate logic either [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>3-Valued Models</title>
      <p>Semantically in the context of non-Horn KBs, a ground atom may be neither
true nor false. Hence, classical 2-valued FOL models are not adequate in the
presence of partial functions and predicates. Models for non-Horn KBs should
have at least three values: 1 (false), 1 (true), 0 (unde ned). These values are
assigned to all ground atoms. The meaning of 0 is that constant arguments of
the predicate are outside of its domain or an evaluable function occurring in the
atom does not yield a value. Fortunately, three values are su cient for models
that are relevant to KB inference without RAA.</p>
      <p>
        Multi-valued models are usually de ned by truth tables (or functions) for
logical connectives so that the truth values of ground formulas can be calculated.
Let jAj denote the truth value of ground literal A. The following equation de nes
the truth values for negation: j:Aj = jAj. This de nition complies with natural
3-valued logics [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>KB inference is only concerned with literals as the outcome of any
derivation step. No other formulas are produced during derivations. Because of this,
legitimate models for KB inference can be de ned by the above negation truth
function and by constraints on truth values in ground instances of facts and rules
as opposed to truth tables for other connectives. These constraints are:
1. A is a ground fact instance: jAj = 1
2. A0 ( A1 ^ ::: ^ Ak is a ground rule instance:
a. If jAij = 1 for i = 1:::k, then jA0j = 1.</p>
      <p>b. If jA0j = 1 and jAij = 1 for i = 1:::j 1; j + 1:::k, then jAj j = 1.
Models satisfying these constraints will be denoted M. Ground literal A is valid
if jAj = 1 for all M models.</p>
      <p>Theorem 3. Extended chaining is sound and complete with respect to M models
for consistent KBs.</p>
      <p>The proof of soundness for Theorem 3 is straightforward. To prove the
completeness, we consider a model in which every derivable literal is true, its
complement is false, and the truth value of every other literal is unde ned. Assume
jAj = 1 in all M models for ground literal A and it is not derivable by
extended chaining from KB facts and rules. It can be proved that the model under
consideration satis es the M constraints, and thus, our assumption is incorrect.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Sequent Calculi</title>
      <p>
        We rely on sequent calculi with non-logical axioms as an instrument for logical
characterization of KB inference without RAA. A sequent is ` where is
an antecedent and is a succedent. Consider a variant of Gentzen's LK [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] in
which antecedents and succedents are multisets of formulas instead of sequences.
This variant eliminates the need in the exchange rule. LK has one logical axiom
A ` A. Let us exclude the contraction rule. The remaining structural rules are
cut and weakening:
      </p>
      <p>` A;; ` A;; ` cut A; `` LW ``A; RW
Instances of this sequent calculus incorporating non-logical axioms will be
denoted LK c.</p>
      <p>
        KB inference and logic programming are concerned about the derivation of
sequents of the form ` A in the terminology of sequent calculi, A is a literal. KB
facts and rules can be treated as non-logical axioms [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Sequents of the form ` A
represent facts, and rules are represented by sequents of the form A1; :::; An ` A
where A; A1; :::; Ak are literals. Variables can be replaced by terms in instances
of these axioms.
      </p>
      <p>
        Whereas cut is essential in LK c, cut elimination techniques can be applied
to the logical rules for connectives ^; _; ) and for quanti ers. They are
admissible in derivations of literals and so are all formulas except for literals [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The
only logical rules that are necessary in these derivations are two negation rules:
` A;
:A; `
      </p>
      <p>L:</p>
      <p>A;</p>
      <p>`
` :A;</p>
      <p>R:
Theorem 4. Any LK c derivation of literal G can be transformed into an
extended chaining derivation and vice versa provided that the KB is consistent.</p>
      <p>The proof that a backward chaining derivation with contrapositives can be
transformed into a LK c derivation is straightforward. Consider a LK c
derivation that does not contain other formulas than literals. Weakening is admissible
in such derivations. This derivation can be transformed into another derivation
in which one of two premises of every cut is a descendant of axiom G ` G, and
the other is a fact or rule possibly modi ed by negation rules. The transformed
derivation maps to a chaining derivation.</p>
      <p>
        Theorem 4 guarantees that extended chaining is complete for derivation of
literals in LK c given that a complete search strategy is employed. Here is a
description of the di erence between inference without RAA and intuitionistic
logic: LK without contraction is equivalent to LJ without contraction and with
the axiom of double negation [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The M constraints can be reformulated for
non-logical axioms of LK c instead of KB rules and facts.
      </p>
      <p>Corollary 1. Derivation of literals in LK c is sound and complete with respect
to M models for consistent KBs.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Avron</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Natural 3-valued logics{characterization and proof theory</article-title>
          .
          <source>The Journal of Symbolic Logic</source>
          <volume>56</volume>
          (
          <issue>1</issue>
          ),
          <volume>276</volume>
          {
          <fpage>294</fpage>
          (
          <year>1991</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <issue>2</issue>
          .
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>C.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
          </string-name>
          , R.C.T.:
          <article-title>Symbolic logic and mechanical theorem proving</article-title>
          . Academic press (
          <year>1973</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Denecker</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Truszczynski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vennekens</surname>
          </string-name>
          , J.:
          <article-title>About negation-as-failure and the informal semantics of logic programming</article-title>
          .
          <source>Association for Logic Programming</source>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Kakas</surname>
            ,
            <given-names>A.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mancarella</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Toni</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>On argumentation logic and propositional logic</article-title>
          .
          <source>Studia Logica</source>
          <volume>106</volume>
          (
          <issue>2</issue>
          ),
          <volume>237</volume>
          {
          <fpage>279</fpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>McCune</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          :
          <article-title>Otter 3.3 reference manual and guide</article-title>
          .
          <source>Tech. rep., Argonne National Lab</source>
          . (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Negri</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Von</surname>
            <given-names>Plato</given-names>
          </string-name>
          , J.:
          <article-title>Structural proof theory</article-title>
          . Cambridge University Press (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Ono</surname>
          </string-name>
          , H.:
          <article-title>Logics without the contraction rule and residuated lattices</article-title>
          .
          <source>Australasian Journal of Logic</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Rogers</surname>
          </string-name>
          , H.:
          <article-title>Theory of recursive functions and e ective computability</article-title>
          .
          <source>McGraw-Hill Book Co</source>
          .
          <article-title>(</article-title>
          <year>1967</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Russell</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Norvig</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Arti cial Intelligence: A Modern Approach</article-title>
          . Prentice Hall Press, 3rd edn. (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Sakharov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>A best- rst backward-chaining search strategy based on learned predicate representations</article-title>
          .
          <source>In: 13th International Conference on Agents and Arti - cial Intelligence</source>
          . pp.
          <volume>982</volume>
          {
          <issue>989</issue>
          (
          <year>2021</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Stickel</surname>
            ,
            <given-names>M.E.</given-names>
          </string-name>
          :
          <article-title>A Prolog technology theorem prover: a new exposition and implementation in Prolog</article-title>
          .
          <source>Theoretical Computer Science</source>
          <volume>104</volume>
          (
          <issue>1</issue>
          ),
          <volume>109</volume>
          {
          <fpage>128</fpage>
          (
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Szabo</surname>
          </string-name>
          , M.E. (ed.):
          <article-title>The collected papers of Gerhard Gentzen</article-title>
          . North-Holland (
          <year>1969</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>