<!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>Translating Higher-Order Modal Logic from RuleML to TPTP</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Harold Boley</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Christoph Benzmüller</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Meng Luan</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhendong Sha</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Computer Science, University of New Brunswick</institution>
          ,
          <addr-line>Fredericton</addr-line>
          ,
          <country country="CA">Canada</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute of Computer Science, Freie Universität Berlin, Germany c.benzmueller[AT]fu-berlin.de</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>RuleML Inc</institution>
          ,
          <addr-line>Fredericton</addr-line>
          ,
          <country>Canada edmonluan</country>
          <institution>[AT]gmail.com</institution>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>harold.boley, z.sha}[AT]unb.ca</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper discusses extensions of RuleML and TPTP for higher-order logic, modal logic, and higher-order modal logic. For these extensions, an extended XSLT 2.0-based translator is presented which maps from RuleML/XML to TPTP. With this implemented HOML RuleM2TPTP tool, TPTP can benefit from RuleML interoperation and much of Deliberation RuleML can execute on TPTP-aware provers.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Like this earlier FOL RuleML2TPTP, the newly implemented HOML
RuleML2TPTP performs recursive case analysis to linearize XML trees to TPTP
texts. The generated TPTP syntax can be validated and executed with
TPTPaware higher-order ATP systems such as Leo-II [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], Satallax [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], Isabelle [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]
and the new Leo-III [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. The latter system is currently extended to also support
a recently proposed TPTP syntax extension for HOML [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
      </p>
      <p>The current paper is organized as follows. Section 2 presents the evolving
HOML TPTP. Section 3 proposes the new HOML RuleML. Section 4 describes
the RuleML-to-TPTP translation method. Section 5 illustrates the translation
with examples. Section 6 explains the XSLT-based translator. Finally, Section 7
gives conclusions.
2</p>
    </sec>
    <sec id="sec-2">
      <title>HOML TPTP</title>
      <p>HOML extends higher-order classical logic with a (multi-)modal logic using a
countable set of (parameterized) dual pairs of abstract modal ‘box’/‘diamond’
operators, where the first two pairs might be instantiated to, e.g., ‘necessary’/
‘possible’ (alethically) and ‘obligatory’/‘permissible’ (deontically).</p>
      <p>
        For higher-order classical logic the TPTP THF languages have been proposed
[
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. THF stands for “typed higher-order form” and it refers to a family of
syntax formats for higher-order logic (HOL). So far, only the fully developed
TH0 format, for simple type theory, is in practical use. However, in an ongoing
effort, a conservative extension of TH0, called TH1, has emerged [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. In contrast
to TH0, TH1 supports rank-1 polymorphism.
      </p>
      <p>
        To capture typed higher-order modal logics, another extension of TH0, called
THM, is currently under development [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], using the language identifier hmf
(higher-order modal form). The work presented here is aiming at capturing first
TH0 and subsequently THM (or its possible merge with TH1).
      </p>
      <p>In TH0, which is a concrete syntax for HOL, $i and $o represent the HOL
base types i (individuals) and o (Booleans). $i&gt;$o encodes a function
(predicate) type. Predicate application, as in A(X; W ), is encoded as in ((A@X)@W)
or simply in (A@X@W), i.e. function/predicate application is represented by @;
universal quantification and -abstraction, as in Ai!o8WiA(W ), are encoded
as in ˆ[A:$i&gt;$o]:![W:$i]:(A@W).
3</p>
    </sec>
    <sec id="sec-3">
      <title>HOML RuleML</title>
      <p>
        HOML RuleML is an advancement plus combination of Functional RuleML [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]7,
for its HOL RuleML subset, and Modal RuleML [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]8, for its Modal Logic (ML)
RuleML subset. HOL RuleML is adapted from Functional RuleML, with the
type level added. ML RuleML is inspired by Modal RuleML (linked above) and
7 http://ruleml.org/fun.
8 http://ruleml.org/1.0/modal/modal.html.
by TPTP THM [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. RuleML 1.02 also provides a semantic profile [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]9 for the
(SBVR-)practical special case of first-order deontic-alethic logic [
        <xref ref-type="bibr" rid="ref19 ref20">19, 20</xref>
        ].
      </p>
      <p>
        Since HOL RuleML considers predicates (relations) as characteristic
(booleanvalued) functions, it applies both of these via RuleML’s Uniterms,
generalizing Atoms and Expressions:10 Constants are employed as the operators of
Uniterms, generalizing Relations of Atoms and Functions of Expressions (as
well as Individuals).11 While formulas point to, e.g., Atoms, the RIF-FLD-like
termulas [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] point to, e.g., Uniterms.
      </p>
      <p>For the type level, HOL RuleML proposes a Tbase (“Type base”) element
whose PCDATA currently correspond to $i and $o (without the “$” prefix).
On top of this, two further RuleML/XML elements are proposed: Entitype
associates an entity (e.g., a Variable) with a type (e.g., a Tbase or a Tmap); Tmap
(“Type map”) combines – into a function type – a domain type and a codomain
type, both of which may again be Tmap types etc., down to any level of nesting.</p>
      <p>Since ML RuleML provides a countable set pairing ‘necessary’-like
parameterized ‘box’ operators with dual ‘possible’-like parameterized ‘diamond’
operators, it is more abstract than Modal RuleML 1.0. Also, ML RuleML is more
expressive since, instead of an Atom element with a modal-attributed Relation
and a modally embedded atom, ML RuleML uses a new Modal element with
a variety edge leading to Box or Diamond elements and a proposition edge
leading to a modally embedded arbitrary formula.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Translation Method</title>
      <p>To avoid extending FOL RuleML2TPTP’s preprocessing to HOML RuleML/XML
using a (yet to be extended) RuleML normalizer, a fully striped normal form12 is
assumed as the input for translation to TPTP output. This form gives XML trees
an object-oriented flavor by alternating (upper-cased &lt;Node&gt;) object elements
with (lower-cased &lt;edge&gt;) property subelements. Like for earlier subfamilies of
Deliberation RuleML, the HOML RuleML normalizer will need to, e.g.,
reconstruct missing &lt;edge&gt; tags, making all omitted information explicit.</p>
      <p>The translation from this normalized XML syntax to the TPTP syntax is
specified by mapping tables defining recursive translation functions langbelow:
Each row containing xml in the first column and tptp in the second column
indicates a translation case lang(xml) = tptp, where – for most of the key language
constructs (beyond FOL) considered here – tptp is composed from the results of
recursive applications of lang(xmli) to parts xmli of xml.
9 http://ruleml.org/1.02/profiles/fodal.
10 http://wiki.ruleml.org/index.php/Glossary_of_Deliberation_RuleML_1.02#
.3CUniterm.3E.
11 http://wiki.ruleml.org/index.php/Glossary_of_Deliberation_RuleML_1.02#
.3CConst.3E.
12 http://wiki.ruleml.org/index.php/Specification_of_Deliberation_RuleML_
1.02#XSLT-Based_Normalizer.</p>
      <p>In Table 1, the mapping of the key higher-order language constructs with
equality (which was already implemented in FOL RuleML2TPTP) and types is
given as a translation function HO.
(ˆ [ HO(t1), ... , HO(tn)] : HO(t))
HO(t1): HO(t2)
( HO(t1) &gt; HO(t2))
$i
$o</p>
      <p>In Table 2, the mapping of the key modal language constructs is given as a
translation function M .</p>
      <p>The combination of the HO and M mappings results in the HOML mapping.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Translation Examples</title>
      <p>The following demo examples of RuleML-to-TPTP translation pairs are available
from a GitHub test directory.13
13 https://github.com/RuleML/RuleML2TPTP/blob/homl/src/test/resources/
test/translator/HOMLRuleML2TPTP/.</p>
      <p>
        The initial two examples take HOL TPTP from [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] and give the
corresponding normalized HOL RuleML/XML.14 However, since the TPTP also constitutes
the output of our translator, it is depicted after the RuleML/XML as its input.
      </p>
      <p>The first example shows the RuleML-TPTP translation pair for serializing
union = X !o; Y !o; U ((X U ) _ (Y U )).
&lt;Equal&gt;
&lt;left&gt;&lt;Const&gt;union&lt;/Const&gt;&lt;/left&gt;
&lt;right&gt;
&lt;Lambda&gt;
&lt;declare&gt;
&lt;Entitype&gt;
&lt;entity&gt;</p>
      <p>&lt;Var&gt;X&lt;/Var&gt;
&lt;/entity&gt;
&lt;type&gt;
&lt;Tmap&gt;
&lt;domain&gt;&lt;Tbase&gt;i&lt;/Tbase&gt;&lt;/domain&gt;
&lt;codomain&gt;&lt;Tbase&gt;o&lt;/Tbase&gt;&lt;/codomain&gt;
&lt;/Tmap&gt;
&lt;/type&gt;
&lt;/Entitype&gt;
&lt;/declare&gt;
&lt;declare&gt;
&lt;Entitype&gt;
&lt;entity&gt;</p>
      <p>&lt;Var&gt;Y&lt;/Var&gt;
&lt;/entity&gt;
&lt;type&gt;
&lt;Tmap&gt;
&lt;domain&gt;&lt;Tbase&gt;i&lt;/Tbase&gt;&lt;/domain&gt;
&lt;codomain&gt;&lt;Tbase&gt;o&lt;/Tbase&gt;&lt;/codomain&gt;
14 Since the TPTP language identifier (thf or hmf) and name of a TPTP formula are
currently not specified on the RuleML/XML level, they are not yet deployed in the
implemented translator.</p>
      <p>&lt;/Tmap&gt;
&lt;/type&gt;
&lt;/Entitype&gt;
&lt;/declare&gt;
&lt;declare&gt;
&lt;Entitype&gt;
&lt;entity&gt;</p>
      <p>&lt;Var&gt;U&lt;/Var&gt;
&lt;/entity&gt;
&lt;type&gt;</p>
      <p>&lt;Tbase&gt;i&lt;/Tbase&gt;
&lt;/type&gt;
&lt;/Entitype&gt;
&lt;/declare&gt;
&lt;termula&gt;
&lt;Or&gt;
&lt;termula&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;U&lt;/Var&gt;&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/termula&gt;
&lt;termula&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Var&gt;Y&lt;/Var&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;U&lt;/Var&gt;&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/termula&gt;
&lt;/Or&gt;
&lt;/termula&gt;
&lt;/Lambda&gt;
&lt;/right&gt;
&lt;/Equal&gt;
thf(union,definition,
( union
= ( ^ [X:($i &gt; $o),Y:($i &gt; $o),U:$i] :
( ( X @ U )
| ( Y @ U ) ) ) )).</p>
      <p>The second example shows the RuleML-TPTP translation pair serializing
8A !o8B !o8C !o((A [ (B \ C)) = ((A [ B) \ (A [ C))).</p>
      <p>Here, binary (generally, n-ary) function applications are used instead of
Currying into nested unary applications (although these are possible too), since both
RuleML’s Uniterms and TPTP’s @ infixes admit n-ary applications.
&lt;Forall&gt;
&lt;declare&gt;
&lt;Entitype&gt;
&lt;entity&gt;
&lt;Var&gt;A&lt;/Var&gt;
&lt;/entity&gt;
&lt;type&gt;
&lt;Tmap&gt;
&lt;domain&gt;&lt;Tbase&gt;i&lt;/Tbase&gt;&lt;/domain&gt;
&lt;codomain&gt;&lt;Tbase&gt;o&lt;/Tbase&gt;&lt;/codomain&gt;
&lt;/Tmap&gt;
&lt;/type&gt;
&lt;/Entitype&gt;
&lt;/declare&gt;
&lt;declare&gt;
&lt;Entitype&gt;
&lt;entity&gt;</p>
      <p>&lt;Var&gt;B&lt;/Var&gt;
&lt;/entity&gt;
&lt;type&gt;
&lt;Tmap&gt;
&lt;domain&gt;&lt;Tbase&gt;i&lt;/Tbase&gt;&lt;/domain&gt;
&lt;codomain&gt;&lt;Tbase&gt;o&lt;/Tbase&gt;&lt;/codomain&gt;
&lt;/Tmap&gt;
&lt;/type&gt;
&lt;/Entitype&gt;
&lt;/declare&gt;
&lt;declare&gt;
&lt;Entitype&gt;
&lt;entity&gt;</p>
      <p>&lt;Var&gt;C&lt;/Var&gt;
&lt;/entity&gt;
&lt;type&gt;
&lt;Tmap&gt;
&lt;domain&gt;&lt;Tbase&gt;i&lt;/Tbase&gt;&lt;/domain&gt;
&lt;codomain&gt;&lt;Tbase&gt;o&lt;/Tbase&gt;&lt;/codomain&gt;
&lt;/Tmap&gt;
&lt;/type&gt;
&lt;/Entitype&gt;
&lt;/declare&gt;
&lt;termula&gt;
&lt;Equal&gt;
&lt;left&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Const&gt;union&lt;/Const&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;A&lt;/Var&gt;&lt;/arg&gt;
&lt;arg&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Const&gt;intersection&lt;/Const&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;B&lt;/Var&gt;&lt;/arg&gt;
&lt;arg&gt;&lt;Var&gt;C&lt;/Var&gt;&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/left&gt;
&lt;right&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Const&gt;intersection&lt;/Const&gt;&lt;/op&gt;
&lt;arg&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Const&gt;union&lt;/Const&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;A&lt;/Var&gt;&lt;/arg&gt;
&lt;arg&gt;&lt;Var&gt;B&lt;/Var&gt;&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/arg&gt;
&lt;arg&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Const&gt;union&lt;/Const&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;A&lt;/Var&gt;&lt;/arg&gt;
&lt;arg&gt;&lt;Var&gt;C&lt;/Var&gt;&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/right&gt;
&lt;/Equal&gt;
&lt;/termula&gt;
&lt;/Forall&gt;</p>
      <p>
        The third example of a RuleML-TPTP pair illustrates the normalized ML
RuleML/XML for a mapping-target ML TPTP formula that is specialized from
[
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] to the syntax of first-order modal logic, leading to what could be dubbed a
first-order modal form (fmf15).
&lt;Implies&gt;
&lt;if&gt;
&lt;Modal&gt;
&lt;variety&gt;
      </p>
      <p>&lt;Box&gt;&lt;arg&gt;&lt;Const&gt;a&lt;/Const&gt;&lt;/arg&gt;&lt;/Box&gt;
&lt;/variety&gt;
&lt;proposition&gt;
&lt;Forall&gt;
&lt;declare&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/declare&gt;
&lt;formula&gt;
&lt;Atom&gt;
&lt;op&gt;&lt;Rel&gt;p&lt;/Rel&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/arg&gt;
&lt;/Atom&gt;
15 We use fmf for didactic purposes, as a specialization of the hmf language identifier.
&lt;/formula&gt;
&lt;/Forall&gt;
&lt;/proposition&gt;
&lt;/Modal&gt;
&lt;/if&gt;
&lt;then&gt;
&lt;Modal&gt;
&lt;variety&gt;</p>
      <p>&lt;Dia&gt;&lt;arg&gt;&lt;Const&gt;b&lt;/Const&gt;&lt;/arg&gt;&lt;/Dia&gt;
&lt;/variety&gt;
&lt;proposition&gt;
&lt;Exists&gt;
&lt;declare&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/declare&gt;
&lt;formula&gt;
&lt;Atom&gt;
&lt;op&gt;&lt;Rel&gt;p&lt;/Rel&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/arg&gt;
&lt;/Atom&gt;
&lt;/formula&gt;
&lt;/Exists&gt;
&lt;/proposition&gt;
&lt;/Modal&gt;
&lt;/then&gt;
&lt;/Implies&gt;
fmf(1, conjecture,
( (#box(a): ( ! [X]: p(X) ))
=&gt; (#dia(b): ( ? [X]: p(X) )) )).</p>
      <p>
        The fourth RuleML-TPTP-pairing example, extending the third, illustrates
the syntax of normalized HOML RuleML/XML for the syntax of a HOML TPTP
formula as the mapping target taken unchanged from [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
      </p>
      <p>&lt;arg&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/termula&gt;
&lt;/Forall&gt;
&lt;/proposition&gt;
&lt;/Modal&gt;
&lt;/if&gt;
&lt;then&gt;
&lt;Modal&gt;
&lt;variety&gt;</p>
      <p>&lt;Dia&gt;&lt;arg&gt;&lt;Const&gt;b&lt;/Const&gt;&lt;/arg&gt;&lt;/Dia&gt;
&lt;/variety&gt;
&lt;proposition&gt;
&lt;Exists&gt;
&lt;declare&gt;
&lt;Entitype&gt;
&lt;entity&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/entity&gt;
&lt;type&gt;&lt;Tbase&gt;i&lt;/Tbase&gt;&lt;/type&gt;
&lt;/Entitype&gt;
&lt;/declare&gt;
&lt;termula&gt;
&lt;Uniterm&gt;
&lt;op&gt;&lt;Rel&gt;p&lt;/Rel&gt;&lt;/op&gt;
&lt;arg&gt;&lt;Var&gt;X&lt;/Var&gt;&lt;/arg&gt;
&lt;/Uniterm&gt;
&lt;/termula&gt;
&lt;/Exists&gt;
&lt;/proposition&gt;
&lt;/Modal&gt;
&lt;/then&gt;
&lt;/Implies&gt;
hmf(2, conjecture,
( (#box(a): ( ! [X:$i]: ( p @ X ) ))
=&gt; (#dia(b): ( ? [X:$i]: ( p @ X ) )) )).</p>
      <p>Because of the universal and existential quantification over individuals and
because of the different box/dia arguments a vs. b, the above example is a
firstorder multi-modal logic conjecture. Since propositional and first-order (multi-)
modal logics are fragments of higher-order (multi-)modal logic, any TPTP-aware
prover or model finder for HOML will be applicable to it to analyze its validity
(e.g., it is countersatisfiable in a multi-modal version of logic K, while it would
be valid after replacing the dia argument b with a in modal logic S4).
6</p>
    </sec>
    <sec id="sec-6">
      <title>XSLT Translator</title>
      <p>Our translator from the new HOML RuleML to the emerging TPTP for HOML
is realized as an extension of the earlier RuleML2TPTP translator from FOL
RuleML to TPTP FOF. Furthermore, as is shown in the second column of Tables
1 and 2 in Section 4, the TPTP constructs are generated as a combination of the
symbols of the emerging TPTP for HOML with the results of calling the earlier
FOL translation function.</p>
      <p>The new table-defined translation functions HO and M are implemented
in XSLT 2.0. Each row of the tables leads to a corresponding XSLT template,
which describes in detail the mapping from HOML RuleML to TPTP.</p>
      <p>Note that the namespace prefix “ r:” for elements is defined at the beginning
of the XSLT file, expanding to the RuleML namespace “http://ruleml.org/spec”.</p>
      <p>The extended translator is available as a GitHub source file.16
6.1</p>
      <p>Translating Higher-Order Constructs
The HOL translator defines seven XSLT templates to map the XML elements
specified for the translation function HO as the seven rows of Table 1.</p>
      <p>For example, the template for the Entitype element is defined as follows:
&lt;xsl:template match="r:Entitype"&gt;
&lt;xsl:apply-templates select="r:entity"/&gt;
&lt;xsl:text&gt;:&lt;/xsl:text&gt;
&lt;xsl:apply-templates select="r:type"/&gt;
&lt;/xsl:template&gt;</p>
      <p>This XSLT definition maps the RuleML/XML Entitype prefix notation to
a TPTP “:” infix notation. The apply-templates calls on both sides of the
generated “:” text realize the HO recursions in Table 1.
6.2</p>
      <p>Translating Modal Constructs
The ML translator defines three XSLT templates to map the XML elements
specified for the translation function M as the three rows of Table 2.</p>
      <p>For example, the template for the Modal element is defined as follows:
&lt;xsl:template match="r:Modal"&gt;
&lt;xsl:text&gt;(&lt;/xsl:text&gt;
&lt;xsl:apply-templates select="r:variety"/&gt;
&lt;xsl:text&gt;: (&lt;/xsl:text&gt;
&lt;xsl:apply-templates select="r:proposition"/&gt;
&lt;xsl:text&gt;))&lt;/xsl:text&gt;
&lt;/xsl:template&gt;</p>
      <p>This XSLT definition maps the RuleML/XML Modal prefix notation to a
TPTP “:” infix notation. The apply-templates calls on both sides of the
generated “: (” text realize the M recursions in Table 2.
16 https://github.com/RuleML/RuleML2TPTP/blob/homl/src/main/resources/
xslt/ruleml2tptp.xslt.</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusions</title>
      <p>This joint effort continues work that was done separately in the RuleML and
TPTP communities: Extensions of both systems for (typed) higher-order logic,
modal logic, and combined higher-order modal logic. RuleML’s new HOML
RuleML/XML, mapping to the evolving HOML TPTP, already provided feedback17
to TPTP. The resulting XSLT-based translator, HOML RuleML2TPTP,
characterizes the proposed HOL and HOML RuleML/XML extension and allows
experimenting with HOL and HOML RuleML/XML examples executed by
TPTPaware ATPs for HOL and HOML such as Leo-III.</p>
      <p>
        Future work includes: Mapping RuleML performatives to TPTP roles;
defining HOML RuleML with the XML-schema language Relax NG; identifying the
language (e.g., as anchors18 corresponding to TPTP’s thf or hmf) in RuleML/
XML instances (e.g., via schemaLocation); adapting the current translator
for mapping this language identifier to TPTP along with reusing the FOL
RuleML2TPTP name generator for HOML RuleML2TPTP’s TPTP formulas;
implementing an inverse translator, HOML TPTP2RuleML; detailing the
correspondences between the earlier Functional RuleML and Modal RuleML and the
new HOL RuleML and ML RuleML; as well as introducing RuleML signature
declarations (e.g., starting with those in POSL [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] and Reaction RuleML19) to
be mapped to TPTP THF signatures (e.g., to declare the type of a constant
symbol20). Other future work could add further translation targets, e.g.
mapping to the existing QMLTP syntax format for first-order modal logic [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ]; this
would enable the experimentation with further ATPs [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ].
8
      </p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgements</title>
      <p>We thank Gen Zou for his helpful suggestions, which led to improvements of
the proposed HOML RuleML/XML and of this paper. Likewise, we thank the
reviewers for their constructive comments as well as the chairs of the 10th
International Rule Challenge for organizing this event. The first two authors are
grateful to their host, Edward Zalta, at the Center for the Study of Language
and Information, Stanford University, for providing an inspiring environment
for starting this work. The first author thanks NSERC for its support through
Discovery Grants. The work of the second author has been supported by the
German Research Foundation DFG under reference number BE2501/9-2.
17 About parenthesizing TPTP type-mapping formulas, corresponding to RuleML
Tmaps, and considering possible future replacement of some kinds of colon infixes
with alternative infix characters.
18 http://deliberation.ruleml.org/1.02/relaxng/#anchor.
19 http://wiki.ruleml.org/index.php/Glossary_of_Reaction_RuleML_1.02#
.3Csignature.3E.
20 http://www.cs.miami.edu/~tptp/TPTP/TR/TPTPTR.shtml#THF%20formulae.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Farmer</surname>
            ,
            <given-names>W.M.:</given-names>
          </string-name>
          <article-title>The seven virtues of simple type theory</article-title>
          .
          <source>Journal of Applied Logic</source>
          <volume>6</volume>
          (
          <issue>3</issue>
          ) (
          <year>2008</year>
          )
          <fpage>267</fpage>
          -
          <lpage>286</lpage>
          , http://www.sciencedirect.com/science/article/ pii/S157086830700081X.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Horstmann</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Java SE8 for the Really Impatient: A Short Course on the Basics</article-title>
          . Java Series. Pearson
          <string-name>
            <surname>Education</surname>
          </string-name>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Garson</surname>
            ,
            <given-names>J.: Modal</given-names>
          </string-name>
          <string-name>
            <surname>Logic. In Zalta</surname>
          </string-name>
          , E.N., ed.:
          <source>The Stanford Encyclopedia of Philosophy. Spring</source>
          <year>2016</year>
          , http://plato.stanford.edu/archives/spr2016/entries/ logic-modal/ edn. (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. de Jesus, J.S.,
          <string-name>
            <surname>de Melo</surname>
            ,
            <given-names>A.C.V.</given-names>
          </string-name>
          :
          <article-title>Business Rules: From SBVR to Information Systems</article-title>
          . In Fournier, F.,
          <string-name>
            <surname>Mendling</surname>
          </string-name>
          , J., eds.:
          <source>Business Process Management Workshops. Volume 202 of Lecture Notes in Business Information Processing.</source>
          , Springer (
          <year>2014</year>
          )
          <fpage>489</fpage>
          -
          <lpage>503</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Boley</surname>
          </string-name>
          , H.:
          <article-title>The RuleML Family of Web Rule Languages</article-title>
          . In Alferes,
          <string-name>
            <given-names>J.J.</given-names>
            ,
            <surname>Bailey</surname>
          </string-name>
          , J.,
          <string-name>
            <surname>May</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schwertel</surname>
          </string-name>
          , U., eds.
          <source>: PPSWR</source>
          . Volume
          <volume>4187</volume>
          of Lecture Notes in Computer Science., Springer (
          <year>2006</year>
          )
          <fpage>1</fpage>
          -
          <lpage>17</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Boley</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paschke</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shafiq</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          :
          <article-title>RuleML 1.0: The Overarching Specification of Web Rules</article-title>
          .
          <source>In: Proc. 4th International Web Rule Symposium: Research Based and Industry</source>
          Focused (RuleML-2010), Washington, DC, USA,
          <year>October 2010</year>
          . Lecture Notes in Computer Science, Springer (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Athan</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boley</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paschke</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <source>RuleML 1</source>
          .02:
          <string-name>
            <surname>Deliberation</surname>
            , Reaction, and
            <given-names>Consumer</given-names>
          </string-name>
          <string-name>
            <surname>Families</surname>
          </string-name>
          .
          <source>In: Proceedings of the RuleML2015 Challenge, at the 9th International Symposium on Rules, CEUR (August</source>
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Boley</surname>
          </string-name>
          , H.:
          <article-title>The RuleML Knowledge-Interoperation Hub</article-title>
          .
          <source>In: Proc. 10th International Web Rule Symposium (RuleML</source>
          <year>2016</year>
          ), Stony Brook, New York, USA. Volume
          <volume>9718</volume>
          of Lecture Notes in Computer Science., Springer (July
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Sutcliffe</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>The TPTP problem library and associated infrastructure</article-title>
          .
          <source>J. Autom. Reasoning</source>
          <volume>43</volume>
          (
          <issue>4</issue>
          ) (
          <year>2009</year>
          )
          <fpage>337</fpage>
          -
          <lpage>362</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Benzmüller</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paulson</surname>
            ,
            <given-names>L.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sultana</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Theiß</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>The higher-order prover LEO-II</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          <volume>55</volume>
          (
          <issue>4</issue>
          ) (
          <year>2015</year>
          )
          <fpage>389</fpage>
          -
          <lpage>404</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Brown</surname>
          </string-name>
          , C.:
          <string-name>
            <surname>Satallax</surname>
          </string-name>
          :
          <article-title>An automated higher-order prover</article-title>
          .
          <source>In: IJCAR 2012. Number 7364 in LNAI</source>
          , Springer (
          <year>2012</year>
          )
          <fpage>111</fpage>
          -
          <lpage>117</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Nipkow</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paulson</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          , Wenzel, M.:
          <article-title>Isabelle/HOL: A Proof Assistant for HigherOrder Logic</article-title>
          . Number 2283 in LNCS. Springer (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Steen</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wisniewski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Benzmüller</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Agent-based HOL reasoning</article-title>
          . In Greuel,
          <string-name>
            <given-names>G.M.</given-names>
            ,
            <surname>Koch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Paule</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Sommese</surname>
          </string-name>
          , A., eds.
          <source>: Mathematical Software - ICMS</source>
          <year>2016</year>
          , 5th International Congress,
          <source>Proceedings. Volume 9725 of LNCS</source>
          ., Berlin, Germany, Springer (
          <year>2016</year>
          ) To appear.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Wisniewski</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Steen</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Benzmüller</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>TPTP and beyond: Representation of quantified non-classical logics</article-title>
          .
          <source>In: ARQNL 2016. Automated Reasoning in Quantified Non-Classical Logics</source>
          . (
          <year>2016</year>
          ) To appear.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Sutcliffe</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Benzmüller</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Automated reasoning in higher-order logic using the TPTP THF infrastructure</article-title>
          .
          <source>Journal of Formalized Reasoning</source>
          <volume>3</volume>
          (
          <issue>1</issue>
          ) (
          <year>2010</year>
          )
          <fpage>1</fpage>
          -
          <lpage>27</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Kaliszyk</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sutcliffe</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , ,
          <string-name>
            <surname>Rabe</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Th1: The tptp typed higher-order form with rank-1 polymorphism</article-title>
          . In:
          <string-name>
            <surname>PAAR</surname>
          </string-name>
          <year>2016</year>
          .
          <article-title>(2016) To appear</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Boley</surname>
          </string-name>
          , H.:
          <article-title>Functional RuleML: From Horn Logic with Equality to Lambda Calculus</article-title>
          .
          <source>UPGRADE VI(6)</source>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Paschke</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>RuleML - Semantic Profile for the First Order Deontic Alethic Logic RuleML Inc</article-title>
          ., Canada, http://reaction.ruleml.
          <source>org/1</source>
          .02/profiles/ FirstOrderDeonticAlethicLogicProfile.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Marinos</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krause</surname>
            ,
            <given-names>P.J.:</given-names>
          </string-name>
          <article-title>An SBVR Framework for RESTful Web Applications</article-title>
          . In Governatori, G.,
          <string-name>
            <surname>Hall</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paschke</surname>
          </string-name>
          , A., eds.: Rule Interchange and Applications, International Symposium, RuleML
          <year>2009</year>
          ,
          <string-name>
            <given-names>Las</given-names>
            <surname>Vegas</surname>
          </string-name>
          , Nevada, USA, November 5-
          <issue>7</issue>
          ,
          <year>2009</year>
          . Proceedings. Volume
          <volume>5858</volume>
          of Lecture Notes in Computer Science., Springer (
          <year>2009</year>
          )
          <fpage>144</fpage>
          -
          <lpage>158</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Solomakhin</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Franconi</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mosca</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Logic-based Reasoning Support for SBVR</article-title>
          .
          <source>Fundam. Inform</source>
          <volume>124</volume>
          (
          <issue>4</issue>
          ) (
          <year>2013</year>
          )
          <fpage>543</fpage>
          -
          <lpage>560</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Boley</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kifer</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>RIF Framework for Logic Dialects</article-title>
          (
          <year>June 2010</year>
          )
          <article-title>W3C Recommendation</article-title>
          , http://www.w3.org/TR/rif-fld.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Boley</surname>
          </string-name>
          , H.:
          <article-title>Integrating Positional and Slotted Knowledge on the Semantic Web</article-title>
          .
          <source>Journal of Emerging Technologies in Web Intelligence</source>
          <volume>4</volume>
          (
          <issue>2</issue>
          ) (
          <year>November 2010</year>
          )
          <fpage>343</fpage>
          -
          <lpage>353</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <surname>Raths</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Otten</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>The QMLTP Problem Library for First-Order Modal Logics</article-title>
          .
          <source>In: Automated Reasoning: 6th International Joint Conference, IJCAR</source>
          <year>2012</year>
          ,
          <article-title>Manchester</article-title>
          ,
          <string-name>
            <surname>UK</surname>
          </string-name>
          , June 26-29,
          <year>2012</year>
          . Proceedings. Springer Berlin Heidelberg, Berlin, Heidelberg (
          <year>2012</year>
          )
          <fpage>454</fpage>
          -
          <lpage>461</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Benzmüller</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Otten</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Raths</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Implementing and evaluating provers for firstorder modal logics</article-title>
          . In Raedt, L.D.,
          <string-name>
            <surname>Bessiere</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dubois</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Doherty</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frasconi</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Heintz</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lucas</surname>
          </string-name>
          , P., eds.
          <source>: ECAI 2012. Volume 242 of Frontiers in Artificial Intelligence and Applications</source>
          ., Montpellier, France, IOS Press (
          <year>2012</year>
          )
          <fpage>163</fpage>
          -
          <lpage>168</lpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>