<!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>Explorations into Belief State Compression</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ali Elhalawaty</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Haythem Ismail</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Cairo University</institution>
          ,
          <addr-line>Cairo</addr-line>
          ,
          <country country="EG">Egypt</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>German University in Cairo</institution>
          ,
          <addr-line>Cairo</addr-line>
          ,
          <country country="EG">Egypt</country>
        </aff>
      </contrib-group>
      <fpage>13</fpage>
      <lpage>25</lpage>
      <abstract>
        <p>We explore variants of belief state compression which is an intuitive, weak form of knowledge base size reduction. It di↵ers from previous approaches in at least three aspects. First, it takes its objects to be support-structured sets of unconstrained, rather than flat sets of syntactically-constrained, logical formulas. Second, classical notions of minimality and redundancy are replaced by weaker, resource-bounded alternatives based on the support structure. Third, in “lossy” variants of compression, the compressed knowledge base logically implies only a practically-relevant subset of the original knowledge base.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <sec id="sec-1-1">
        <title>Several factors a↵ect the complexity of automated reasoning and knowledge base</title>
        <p>
          maintenance. One obvious, and long-recognized, such factor is the sheer size of
the knowledge base [
          <xref ref-type="bibr" rid="ref1 ref16 ref18 ref6">6,16,18,1</xref>
          ]. The size of the knowledge base is particularly
crucial for logic-based acting agents which roam the world for extended periods
of time with their knowledge bases continually expanding by sensory inputs.
Such inputs are often not simply added to the knowledge base; they also result
in expanding the knowledge base by conclusions about the environment that
follow from them and that may be crucial for directing future timely actions
of the agent [
          <xref ref-type="bibr" rid="ref17 ref9">17,9</xref>
          ]. Many approaches to knowledge base size reduction, such as
knowledge base minimization and redundancy elimination, have been discussed
in the literature [
          <xref ref-type="bibr" rid="ref1 ref11 ref7 ref8">8,11,7,1</xref>
          ]. Such approaches typically either impose some
restrictions on the structure of the knowledge base or demand possible drastic
changes to it, which may impede their applicability to many practical reasoning
systems. Herein, we investigate variants of an approach to knowledge base size
reduction which we dub “belief state compression.” We take a belief state to
be a set of logical formulas structured by a “support” relation, akin to classical
(assumption-based) reason maintenance systems [
          <xref ref-type="bibr" rid="ref2 ref4">4,2</xref>
          ].3 Loosely speaking,
compression only requires the information in the compressed belief state to be (a
possibly improper) part of the information in the original one. The notion of
“information” here is, generally, not the classical notion of the set of logical
consequences. Rather, we adopt a resource-bounded notion of information, limiting
it to the set of formulas which were actually derived.
3 While it may be true that many knowledge-based systems lack a reason
maintenance component, knowledge-based acting agents mandate some way of handling
inconsistency (cf. [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]). Moreover, interest in reason maintenance never faltered and
has recently been strengthened [10,13, for example].
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Belief States</title>
      <sec id="sec-2-1">
        <title>We assume a language L with a classical consequence operator Cn. It will help,</title>
        <p>as is common, to construe formulas of L as representing (possible) beliefs of a
cognitive agent. Henceforth, we refer to this agent as A.</p>
        <p>Definition 1. A belief state is a triple S = hK, B, i where K ⇢
B ✓ K and : K ! 22B; , such that</p>
        <sec id="sec-2-1-1">
          <title>L is finite,</title>
          <p>1. 2 Cn(s), for every s 2 ( );
2. /2 s, for every s 2 ( ); and
3. ( ) 6= ; , whenever 2 K B.</p>
          <p>The size |S| of S is defined as |K| + P 2 K
Ps2 ( ) |s|.</p>
          <p>Intuitively, K is the set of all (explicit) beliefs of A and B is a distinguished
subset of base beliefs. Members of B are those formulas which A came to believe
by some means other than logical reasoning. Typically, they are formulas which
result from sensory input or from communication with other agents. We often
refer to members of B as hypotheses. Formulas in K B are believed only as
a result of A’s doing some reasoning. Hence, provides, to each member of K
a set of supports. Each support of a formula is a set of hypotheses that were
used to derive .</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>Intuitively, belief state compression reduces the size of the belief state while not adding any new information to it.</title>
        <p>Definition 2. Let S = hK, B, i be a belief state. A compression S0 of S is a
belief state hK0, B0, 0i with
1. K0 ✓ K;
2. for every
3. |S0| &lt; |S|.</p>
        <p>2 K0, 0( ) ✓</p>
        <p>( ); and</p>
      </sec>
      <sec id="sec-2-3">
        <title>Instead of the classical, strong notions of irredundancy and minimality [8,11], we adopt weaker, more practical ones based on the support relation.</title>
        <p>Definition 3. If S is a belief state and H ✓ L, we say that 2 K is supported
by H in S if (i) 2 H or (ii) there is some s 2 ( ) with every 2 s supported
by H in S. Hence, a compression S0 of S is lossless if every 2 B is supported by
B0 in S, otherwise it is lossy. If S0 is lossless, then it is irredundant (respectively,
minimal) if there is no lossless compression S00 of S with B00 ⇢ B0 (respectively,
|S00| &lt; |S0|).</p>
      </sec>
      <sec id="sec-2-4">
        <title>In what follows, we explore some variants of compression. We start with a brief discussion of a simple, obvious variant.</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>K-Only Compression</title>
      <p>A K-only compression of belief state S is a compression S0 with B0 = B and
0 = |K0 . Such compressions are clearly lossless. An extreme case of K-only
compression is the compression SK0 = hB, B, Bi which only retains hypotheses
and gives up all derived formulas. This compression operator can be eciently
implemented (in time O(|S|)) and may result in significant size reduction if agent
A is an introspective agent whose set of beliefs is dominated by inferred beliefs
rather than beliefs with independent standing. This, of course, may come with
a heavy price. For it is possible that beliefs in B are mostly useless and the
given up derived beliefs are the interesting ones. Although, since SK0 is lossless,
all retracted beliefs may be re-derived, this will still be on the expense of A’s
(possibly valuable) time.
4</p>
    </sec>
    <sec id="sec-4">
      <title>B-Compression</title>
      <sec id="sec-4-1">
        <title>A B-compression is a compression which necessarily changes B. The exploration</title>
        <p>to follow of B-compression relies heavily on the notion of a base-support graph.
Henceforth, let ⌃ (S) = [ ' 2 K (' ), where S is a belief state.</p>
        <p>Definition 4. For a K0-compressed belief state S = hB, B, i, a base-support
graph is a bipartite graph G(S) = (V1, V2, E), where
– V1 = B
– V2 = ⌃ (S)
– for n1 2 V1 and n2 2 V2,
1. (n1, n2) 2 E if and only if n1 2 n2
2. (n2, n1) 2 E if and only if n2 2 (n1)</p>
      </sec>
      <sec id="sec-4-2">
        <title>In the sequel, we refer to nodes in V1 as hyp nodes (or just hyps) and to nodes</title>
        <p>in V2 as support nodes (or just supports). Figure 1 is an example of the
basesupport graph G(S), with S = h{1, 2, 3}, {1, 2, 3}, i where (1) = {{2}}, (2) =
{{1}}, and (3) = {{1, 2}}. (Hyp nodes are circular and generically denoted by
numerals while support nodes are rectangular and denoted by letters.)</p>
      </sec>
      <sec id="sec-4-3">
        <title>Given the construction of the base-support graph, the following properties immediately follow.</title>
        <p>Observation 1 Let G(S) = (V1, V2, E) be a base-support graph.
1. For every n 2 V2, deg (n) &gt; 0 and deg+(n) &gt; 0.
2. For every n1, n2 2 V2, if {n|(n, n1) 2 E} = {n|(n, n2) 2 E}, then n1 = n2.
3. E is asymmetric. (That is, if (n1, n2) 2 E, then (n2, n1) 2 / E.)
4.1</p>
        <p>Trimming</p>
      </sec>
      <sec id="sec-4-4">
        <title>To conveniently discuss B-compression operators, we introduce the following</title>
        <p>piece of notation. If G = (V1, V2, E) is a base-support graph with N ✓ V1, then
G N is the sub-graph of G induced by (V1 N ) [ (V2 { n 2 V2| if (n0, n) 2 E or
(n, n0) 2 E, then n0 2 N }). Simply, G N is the sub-graph of G with N removed
from V1 and with every support node that has edges only to nodes in N or edges
only from nodes in N removed from V2 (to save the first clause of Observation</p>
      </sec>
      <sec id="sec-4-5">
        <title>1). Our first B-compression operator, the B trimming operator BTrim, is based</title>
        <p>on algorithm GTrim (see Algorithm 1) which operates on a directed bipartite
graph (V1, V2, E) with deg (n) 6= 0, for every n 2 V2. (Possibly a base-support
graph.)</p>
      </sec>
      <sec id="sec-4-6">
        <title>Algorithm 1: Base trimming algorithm</title>
        <p>end
return G
Function GTrim(G):
if there is n 2 V1 with deg+(n) = 0 and deg (n) 6= 0 then
return GTrim (G { n})</p>
      </sec>
      <sec id="sec-4-7">
        <title>It is easy to show that trimming is an instance of B-compression. If G is</title>
        <p>the base-support graph of some K0-compressed belief state S and GTrim(G) =
(V1, V2, E), then the trimming of S, denoted T r(S) is the structure hV1, V2, i,
where, for every n1 2 V1 and every n2 2 V2 with (n2, n1) 2 E, n2 2 (n1).
Corollary 1 If S is a K0-compressed belief state, then T r(S) is a belief state.
Moreover, if S 6= T r(S), then T r(S) is a lossless compression of S.</p>
        <p>Trimmed base-support graphs have an interesting property which we prove
next. First, a piece of notation. For a graph G, we say that a path P in G ends
(respectively, begins) with a cycle if P = n1, . . . , nk with ni = nk (respectively,
ni = n1) for some 1  i &lt; k (respectively, 1 &lt; i  k). In the sequel, a node n
in graph G is G+-trapped (respectively, G -trapped) if (i) deg (n) = 0
(respectively, deg+(n) = 0) or (ii) n is on a path in G that ends (respectively, begins)
with a cycle. If n is G+-trapped and G -trapped, then it is G-trapped.
Proposition 1 If G = (V1, V2, E) is a directed bipartite graph with deg (n) 6= 0,
for every n 2 V2, then GTrim(G) is a graph G0 = (V10, V20, E0) where every n 2 V 0
1
is G0+-trapped.</p>
        <p>Proof. We prove the proposition by induction on |V1|.</p>
        <p>Base Case. If |V1| = 0, then, trivially, no nodes satisfy the condition of the
ifstatement and GTrim(G) = G. Hence, |V10| = 0 and the proposition trivially
holds.</p>
        <p>Induction Hypothesis. If G = (V1, V2, E) is a directed bipartite graph with
|V1| = k, for some k 2 N, and deg (n) 6= 0, for every n 2 V2, then GTrim(G)
is a graph G0 = (V10, V20, E0) where every n 2 V10 is G0+-trapped.
Induction Step. Suppose that G = (V1, V2, E) is a directed bipartite graph
with |V1| = k + 1 and deg (n) 6= 0, for every n 2 V2. We consider two cases.
1. There is a node n 2 V1 with deg 6= 0 and deg+ = 0. Thus, GTrim(G) =
GTrim(G { n}) = G0. By construction, G { n} contains exactly k hyp
nodes. Hence, by the induction hypothesis, every node in V10 is
G0+trapped.
2. There is no node n 2 V1 with deg 6= 0 and deg+ = 0. Hence, GTrim(G) =
G. Consider an arbitrary n 2 V1. If deg (n) = 0, then n is G+-trapped.
Otherwise, deg (n) 6= 0 and deg+(n) 6= 0. Thus, there must be a path
P that starts with n and on which every node n0 has deg (n0) 6= 0 and
deg+(n0) 6= 0. Since G is finite, it follows by the pigeonhole principle that
there is at least one node r which appears on P at least twice. Hence,
the sub-path of P which ends with the second occurrence of r ends with
a cycle. Consequently, n is G0+-trapped.</p>
      </sec>
      <sec id="sec-4-8">
        <title>As an immediate corollary, trimming sometimes gives rise to a minimal com</title>
        <p>pression. In what follows, for a belief state S = hB, K, i, we refer to the set
{ 2 B| ( ) = {}} as max(B).
Corollary 2 If S = hB, B, i is a K0-compressed belief state such that G(S) is
acyclic, then T r(S) = hmax(B), max(B), |max(B)i which is a minimal
compression of S.</p>
      </sec>
      <sec id="sec-4-9">
        <title>Another variant of trimming is what we call reverse trimming. Again, we</title>
        <p>start with a transformation of the base-support graph. In particular, if G is a
base-support graph, then the reverse-trimming of G is given by RGTrim(G) =
(GTrim(GR))R, where GR is the reverse of G (i.e., the graph resulting from
reversing all edges of G). Similar to trimmed graphs, a reverse-trimmed graph has
a distinctive structure: Every node in a reverse-trimmed graph is G0 -trapped.</p>
      </sec>
      <sec id="sec-4-10">
        <title>The similarity ends right here, however. In particular, a reverse-trimmed basesupport graph is not itself necessarily a base-support graph. Nevertheless, one can construct a belief state from the reverse-trimmed graph.</title>
        <p>Definition 5. Let G be the base-support graph of a K0-compressed and trimmed
belief state S = hB, B, i and let RGTrim(G) = (V1, V2, E). The reverse-trimming
of S, denoted RT r(S), is a triple hB0, B0, 0i where
1. B0 = V1 [ max(B);
2. 0 : B0 ! 22B0 ; is such that, for every 2 B0, 0( ) = {H|H is a smallest
subset of B0 such that is supported by H in S}.4
Corollary 3 If S is a K0-compressed and trimmed belief state, then RT r(S) is
a belief state. Further, if S 6= RT r(S), then RT r(S) is a lossless compression of
S.</p>
      </sec>
      <sec id="sec-4-11">
        <title>It should be clear that, if S is a K0-compressed belief state, then every node</title>
        <p>in G = RGTrim(GTrim(G(S))) is G-trapped.
4.2</p>
        <p>Towards Minimal B-Compression</p>
      </sec>
      <sec id="sec-4-12">
        <title>Trimming, reverse-trimming, and their composition do not secure a minimal (or even an irredundant) compression if the base-support graph is cyclic. It is to the problem of constructing minimal, irredundant, or tighter-than-trimmed compressions that we now turn.</title>
        <p>Definition 6. Let G(S) = (V1, V2, E) be a base-support graph of some
K0compressed, trimmed, and reverse-trimmed belief state S and let N ✓ V1. The
closure of N in G(S), N G⇤(S),5 is the largest set such that there is a sequence
(Hi, Si), i = 1 . . . n for some n 2 N, where
4 Instead of constructing 0 this way, a less expensive, but less tight, construction may
be given thus:</p>
        <p>0( ) = {n2 [ max(B)|(n2, ) 2 E}
5 We drop the subscript if it is clear from the context.
2. Si = {s 2 V2|s ✓ Hi 1}
3. Hi = Hi 1 [ { h 2 V1|(s, h) 2 E for some s 2 Si}</p>
      </sec>
      <sec id="sec-4-13">
        <title>The problem of minimal B-compression can be described as a graph problem.</title>
        <p>– Instance: A base-support graph G(S) = (V1, V2, E) of some K0-compressed,
trimmed, and reverse-trimmed belief state S.</p>
        <p>
          – Question: What is a minimum set N ✓ V1 such that N ⇤ = V1?
This problem is formally identical to the optimization variants of the minimum
axiom-set problem [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], the candidate-key problem in database [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], and the
inverse scope problem in bio-informatics [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. These problems are NP-complete,
which means that finding ecient, exact algorithms for minimal B-compression
is unlikely. Candidate exact algorithms, mostly based on a breadth-first-search
step, are discussed in the database literature in the context of candidate keys
[
          <xref ref-type="bibr" rid="ref12 ref15 ref20">12,15,20</xref>
          ]. Herein, we introduce an approximation algorithm, which provides
promising results. In a nutshell, the algorithm uncovers the smallest cycles of
dependency in the base-support graph and selects an arbitrary node from each.
We show below that the selection thus constructed is guaranteed to have the
entire set of hyp nodes as its closure. Graphically, the “smallest cycles of
depdendency” are what are known as chordless cycles [
          <xref ref-type="bibr" rid="ref19 ref21 ref3">21,3,19</xref>
          ]. A chordless cycle
in a graph G is an induced sub-graph of G which is a cycle. Equivalently, it
is a cycle C in G such that no edge connecting two nodes of C is not itself
in C. (If it exists, such an edge is called a chord.) To illustrate how the
algorithm works, consider Figure 3 which displays a possible (perhaps trimmed and
reverse-trimmed) base-support graph. The graph contains two chordless cycles
(1, a, 2, b) and (2, c, 3, d). Considering the set of hyps on each chordless cycle,
we have the two sets {1, 2} and {2, 3}. We now solve a hitting-set problem and
select a node from each set while minimizing the size of the selection. Thus, we
select {2}, and, given Definition 6, we have {2}⇤ = {1, 2, 3}. Although, in this
example, we get a minimal compression of the belief state, the approach often
yields redundant compressions. For example, in a belief state with three hyps
where each hyp individually supports the other two, the base-support graph will
have three chordless-cycles, and our algorithm will select no less than two hyps.
        </p>
      </sec>
      <sec id="sec-4-14">
        <title>Clearly, however, a single hyp is sucient.</title>
      </sec>
      <sec id="sec-4-15">
        <title>Though not every hyp selected by the algorithm is necessary, the selected set is sucient. To reach that conclusion, we first make the following simple observation.</title>
        <p>Observation 2 Any cycle of a graph G has a chordless sub-cycle.</p>
        <p>In the sequel, if G is a base-support graph, let C(G) = {N |N is the set of
hyp nodes on a cycle in G}; similarly, let CH(G) = {N |N is the set of hyp nodes
on a chordless cycle in G}. A hitting set of a family of sets F is a set H such
that H \ S 6= {} for every S 2 F .</p>
        <p>Lemma 1. Let G = (V1, V2, E) be a trimmed and reverse-trimmed base-support
graph. If H is a hitting set of C(G), then H⇤ = V1.</p>
      </sec>
      <sec id="sec-4-16">
        <title>Proof. By induction on the number of cycles in G.</title>
      </sec>
      <sec id="sec-4-17">
        <title>Base Case. Since G has a single cycle and since every node in G is G-trapped,</title>
        <p>then deg (n) = deg+(n) = 1, for every node n in G. Thus, by Definition 6,
{n}⇤ = V1 for any node n 2 V1.</p>
      </sec>
      <sec id="sec-4-18">
        <title>Induction Hypothesis. For G with k or fewer cycles, if H is a hitting set of</title>
        <p>C(G), then H⇤ = V1.</p>
        <p>Induction Step. Let G have k + 1 cycles. Pick a cycle C and a hyp n 2 C.</p>
      </sec>
      <sec id="sec-4-19">
        <title>Let G1 be the graph resulting from removing all edges ending at n in G.</title>
      </sec>
      <sec id="sec-4-20">
        <title>Given G-trapping, n is the only node in G1 with a zero in-degree. Now, let</title>
        <p>G2 = RGTrim(GTrim(G1)) = (V12, V22, E2). By Corollary 3, (V12 [ { n})⇤ =</p>
      </sec>
      <sec id="sec-4-21">
        <title>V1. Since G2 has at least one cycle, namely C, fewer than G, then by the</title>
        <p>induction hypothesis, H2⇤ = V12, for any hitting set H2 of C(G2). Thus, from
Definition 6, it follows that (H2 [ { n})⇤ = V1. Since, C(G2) ⇢ C (G), then,
for every hitting set H of C(G), there is some hitting set H2 of C(G2) such
that (H2 [ { n}) ✓ H. Thus, H⇤ = V1.</p>
        <p>Theorem 1. Let G = (V1, V2, E) be a trimmed and reverse-trimmed base-support
graph. If H is a hitting set of CH(G), then H⇤ = V1.</p>
        <p>Proof. By Observation 2, a hitting set of CH(G) is also a hitting set of C(G).</p>
      </sec>
      <sec id="sec-4-22">
        <title>Hence, by Lemma 1, the theorem follows.</title>
      </sec>
      <sec id="sec-4-23">
        <title>Now, the algorithm to construct a compression which is either minimal (if the base-support graph is acyclic) or strictly smaller in size than trimmed and reverse-trimmed compressions comprises the following steps, given a belief state</title>
        <p>
          S = hK, B, i.
1. Construct the base-support graph G of the K0-compression of S.
2. Construct Gtr = RGTrim(GTrim(G)).
3. Construct CH(Gtr). (This is done using the algorithm of [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] appropriately
modified for directed, bipartite graphs.)
4. Construct a smallish hitting set H of CH(Gtr). (This is done using a greedy
approximation hitting set algorithm.)
5. Construct the belief state hH [ max(B), H [ max(B), i, where ( ) = {},
for every in H [ max(B).
        </p>
      </sec>
      <sec id="sec-4-24">
        <title>Note that at no point does the algorithm check if some subset N of V1 is such</title>
        <p>
          that N ⇤ = V1. Instead, the algorithm selects nodes from V1 which are known a
priori to satisfy the closure check. Of the above four steps, only the third takes
exponential time in the worst-case, which occurs if the graph has
exponentiallymany chordless cycles. Fortunately, such cases are not very common (cf. [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]).
        </p>
      </sec>
      <sec id="sec-4-25">
        <title>The redundancy of the resulting compression is rooted both in the third step</title>
        <p>and the approximation made in the fourth step.</p>
        <p>Tables 1 and 2 display some results, comparing three B-compression
algorithms. The first is our approximation, chordless-cycles-based algorithm, the
second is a brute-force breadth-first search (BFS), and the third is a composition
of both in which we run BFS-compression on the result of the approximation
algorithm. Note that the first algorithm results in compressions which, in general
are neither minimal nor irredundant; the second is guaranteed to yield minimal
compressions; and the third is guaranteed to result in irredundant, but possibly
not minimal, compressions. Table 1 displays the average time taken by each
algorithm on randomly generated base-support graphs with varying numbers of
nodes. (Around fifty graphs for each size range.) For relatively small graphs with
fewer than 20 nodes, BFS has the best run time; but for larger graphs the other
two algorithms (especially the first, naturally) dominate. (MLE is a shorthand
for “memory limit exceeded.”) Table 2 displays the average sizes of the
compressions resulting from each algorithm (on the same set of graphs used in Table 1).</p>
      </sec>
      <sec id="sec-4-26">
        <title>As expected, BFS gives the smallest compressions (as long as it produces some</title>
        <p>compression) and the approximation algorithm is the worst in this regard. The
composition algorithm, however, provides what could be an interesting
compromise since the compression sizes it produces are comparable to those provided
by BFS.</p>
      </sec>
      <sec id="sec-4-27">
        <title>The final compression operator we consider generally yields lossy compressions;</title>
        <p>it contracts members of B which are not very useful in a sense defined below.
To define such an operator, we need to revise our notion of support and, hence,
belief state; we enrich the support structure with information about the exact
chain of reasoning used to derive a formula, not just the hypotheses underlying
the derivation. For example, consider a belief state S = hK, B, i with B =
{Q, Q ! P, P ! R, P ! T }, K = B [ { P, R, T }, and</p>
      </sec>
      <sec id="sec-4-28">
        <title>Assuming some standard proof theory, Q was used to derive P and was never</title>
        <p>used again in any derivations. Intuitively, P seems to be the most important
formula in this example since it is used to derive both R and T . The presence of</p>
      </sec>
      <sec id="sec-4-29">
        <title>Q, and the absence of P , from the supports of R and T is merely a side-e↵ect</title>
        <p>of Q’s being a hypothesis; but it is P , together with the respective material
implication, that was used in actually deriving R and T . It, thus, may be fine to
forget Q in this belief state and to lift P to become a hypothesis. The definition
of support in a belief state ( ) does not, however, provide sucient information
to allow us to simulate such useful forgetfulness.</p>
        <p>Definition 7. Let B ✓ K ✓
s = {C1, C2, ..., Cn} where:</p>
        <sec id="sec-4-29-1">
          <title>L. A layered support for</title>
          <p>2</p>
          <p>K is a finite set
– for 1  i  n, Ci = h i1, . . . , i|Ci|i with ij (6= ) 2 K and i1 2 B; and
– 2 Cn(si( )), for 1  i  m with m = maxi{|Ci|} and si( ) = { | there
are Cl, Cr such that Cl h i Cr 2 s and either |Cr| = i 1 or |Cr| &lt; i 1
and |Cl| = 0}.6
6 Henceforth, we use to denote sequence concatenation.</p>
        </sec>
      </sec>
      <sec id="sec-4-30">
        <title>The definition of belief state is now revised with a layered support replacing</title>
        <p>the original, flat support and with two “integrity” conditions.7
Definition 8. A layered belief state is a triple S = hB, K, i with B ✓ K ✓ L
and a function mapping each 2 K to a set of layered supports for such that
for every 2 K if there is s 2 ( ) with a chain C such that C = Cl h i Cr 2 s
and |Cl| 6= 0, then there is s0 2 ( ) with Cl 2 s0 and for every C0 2 s0
C0 h i Cr 2 s. The size |S| of S is defined as |K| + P 2 K Ps2 ( ) PC2 s |C|.</p>
      </sec>
      <sec id="sec-4-31">
        <title>Given this new notion of support, we introduce a suitably-tailored definition of compression.</title>
        <p>Definition 9. Let S = hK, B, i be a layered belief state. A compression S0 of
S is a layered belief state hK0, B0, 0i with
1. K0 ✓ K;
2. for every 2 K0 and s0 in 0( ), there is some s in ( ) such that every
chain C0 in s0 is a sux of some chain C in s; and
3. |S0| &lt; |S|.</p>
      </sec>
      <sec id="sec-4-32">
        <title>Using layered supports we can determine if a hypothesis is useful in its own</title>
        <p>right or if it is interesting only because it was once used to derive some
formulas that are the ones frequently involved in reasoning processes. This way we,
intuitively, replace members of B by members of K B to retain the possibility
of deriving interesting propositions. Of course, this is, generally, lossy since we
retract unsupported, albeit insignificant, hypotheses.</p>
        <p>A layered belief state representing the situation discussed in the above
example will have the following support function.</p>
      </sec>
      <sec id="sec-4-33">
        <title>Intuitively, Q may be forgotten since the number of chains in which it appears on its own is less than the number of chains in which it is followed by at least one other proposition.</title>
        <p>Definition 10. Let S = hK, B, i be a layered belief state and let ↵ 2
formula 2 B is ↵ -disposable if |{s 2 ⌃ (S)|h i C 2 s}| = 0 or
Q. A
|{s 2 ⌃ (S)|h i 2 s}|
|{s 2 ⌃ (S)|h i C 2 s}|
&lt; ↵</p>
      </sec>
      <sec id="sec-4-34">
        <title>Towards capturing our intuitions about the proposed lossy compression, we introduce the following terminology.</title>
        <p>
          7 The layered support may be constructed from the flat support together with
information about the formulas directly used in derivations (akin to justification-based
reason maintenance systems [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
Definition 11. Let s be a layered support, S = hK, B, i a layered belief state,
and ↵ 2 Q.
        </p>
        <p>– A tree in s is a set s0 ✓ s such that there is a chain r(s0) such that s0 =
{C|C = Cl r(s0), for some Cl}. A tree s0 in s is an ↵ -disposable tree if there
is some Cl r(s0) 2 s such that Cl ends with an ↵ -disposable formula.
– D(S, ↵ ) = { 2 B| is ↵ -disposable}.
– Base(S, ↵ ) = { 2 K B| ( ) contains an ↵ -disposable tree}.
– R(S, ↵, s ) = {r(s0)|s0 is a maximal ↵ -disposable tree of s} [ { C|C 2 s is not
in any ↵ -disposable tree}.</p>
        <p>Definition 12. For a layered belief state S hK, B, i, the ↵ -cut of S, denoted
cut(S, ↵ ), is a triple hK0 , B , 0 i, where</p>
        <p>0
– K0 = K D .
– B0 = B D [ Base(S, ↵ ).
– 0 ( ) = {R(S, ↵, s )|s 2 ( ) and hi 2 /R (S, ↵, s )}.</p>
      </sec>
      <sec id="sec-4-35">
        <title>Thus, insignificant hypotheses, deemed as such by the parameter ↵ , are forgotten and significant non-hypotheses are promoted to hypothesis status.</title>
        <p>Corollary 4 If S is a layered belief state and ↵ 2 Q, then cut(S, ↵ ) is a layered
belief state. Further, if D(S, ↵ ) 6= {}, then cut(S, ↵ ) is a compression of S.
6</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusions and Future Work</title>
      <p>Belief state compression is a variant of knowledge base size reduction which does
not put any syntactic constraints on the form of the knowledge base, but assumes
a support-structured set of formulas akin to classical reason maintenance
systems. We have explored various approaches to belief state compression. In
particular, varieties of base compression which can sometimes be minimal have been
pointed out, and an ecient, tight, but not necessarily minimal nor redundant,
compression technique has been proposed. An example of a lossy compression
which disposes of insignificant pieces of information has also been described.</p>
      <sec id="sec-5-1">
        <title>We have experimented with variants of our chordless-cycles-based approxima</title>
        <p>tion algorithm. In particular, we have some preliminary results with iteratively
applying the algorithm on its own output until a fixed-point is reached. The
results are promising, and we conjecture that the method yields irredundant
compressions. We save the proof and further experiments to future work.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Anton</given-names>
            <surname>Belov</surname>
          </string-name>
          , Mikolas Janota, Ines Lynce, and
          <string-name>
            <surname>Joao</surname>
          </string-name>
          Marques-Silva.
          <article-title>Algorithms for computing minimal equivalent subformulas</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>216</volume>
          :
          <fpage>309</fpage>
          -
          <lpage>326</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. Johan de Kleer.
          <article-title>An assumption-based TMS</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>28</volume>
          :
          <fpage>127</fpage>
          -
          <lpage>162</lpage>
          ,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Elisaˆngela</given-names>
            <surname>Silva</surname>
          </string-name>
          <string-name>
            <surname>Dias</surname>
          </string-name>
          , Diane Castonguay, Humberto Longo, and Walid Abdala Rfaei Jradi.
          <article-title>Ecient enumeration of chordless cycles</article-title>
          .
          <source>arXiv preprint arXiv:1309.1051</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>John</given-names>
            <surname>Doyle</surname>
          </string-name>
          .
          <article-title>A truth maintenance system</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>12</volume>
          :
          <fpage>231</fpage>
          -
          <lpage>272</lpage>
          ,
          <year>1979</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Michael</given-names>
            <surname>Garey</surname>
          </string-name>
          and
          <string-name>
            <given-names>David</given-names>
            <surname>Johnson</surname>
          </string-name>
          . Computers and
          <string-name>
            <given-names>Intractability. W. H.</given-names>
            <surname>Freeman</surname>
          </string-name>
          and Company,
          <year>1979</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Allen</given-names>
            <surname>Ginsberg</surname>
          </string-name>
          .
          <article-title>Knowledge base reduction: A new approach to checking knowledge bases for inconsistency and redundancy</article-title>
          .
          <source>In Proceedings of AAAI-88</source>
          , pages
          <fpage>585</fpage>
          -
          <lpage>589</lpage>
          ,
          <year>1988</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Judy</given-names>
            <surname>Goldsmith</surname>
          </string-name>
          , Matthias Hagen, and
          <string-name>
            <given-names>Martin</given-names>
            <surname>Mundhenk</surname>
          </string-name>
          .
          <article-title>Complexity of DNF minimization and isomorphism testing for monotone formulas</article-title>
          .
          <source>Information and Computation</source>
          ,
          <volume>206</volume>
          :
          <fpage>760</fpage>
          -
          <lpage>775</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Edith</given-names>
            <surname>Hemaspaandra</surname>
          </string-name>
          and
          <string-name>
            <given-names>Gerd</given-names>
            <surname>Wechsung</surname>
          </string-name>
          .
          <article-title>The minimization problem for boolean formulas</article-title>
          .
          <source>SIAM Journal on Computing</source>
          ,
          <volume>31</volume>
          :
          <fpage>1948</fpage>
          -
          <lpage>1958</lpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Haythem</surname>
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Ismail</surname>
            and
            <given-names>Nasr</given-names>
          </string-name>
          <string-name>
            <surname>Kasrin</surname>
          </string-name>
          .
          <article-title>Focused belief revision as a model of fallible relevance-sensitive perception</article-title>
          .
          <source>In Proceedings of the 33rd Annual German Conference on Artificial Intelligence (KI-2010)</source>
          , pages
          <fpage>126</fpage>
          -
          <lpage>134</lpage>
          . Springer,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Jakub</surname>
            <given-names>Kotowski</given-names>
          </string-name>
          , Franc¸ois Bry, and
          <string-name>
            <given-names>Simon</given-names>
            <surname>Brodt</surname>
          </string-name>
          .
          <article-title>Reasoning as axiom change: Incremental view maintenance reconsidered</article-title>
          .
          <source>In Proceedings of the 5th International Conference on Web Reasoning and Rule Systems (RR-2011)</source>
          , pages
          <fpage>139</fpage>
          -
          <lpage>154</lpage>
          . Springer,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>Paulo</given-names>
            <surname>Liberatore</surname>
          </string-name>
          .
          <article-title>Redundancy in logic I: CNF propositional formulae</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>163</volume>
          :
          <fpage>203</fpage>
          -
          <lpage>232</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. Cla´udio
          <string-name>
            <given-names>L.</given-names>
            <surname>Lucchesi</surname>
          </string-name>
          and
          <string-name>
            <surname>Sylvia L. Osborn</surname>
          </string-name>
          .
          <article-title>Candidate keys for relations</article-title>
          .
          <source>Journal of Computer and System Sciences</source>
          ,
          <volume>17</volume>
          (
          <issue>2</issue>
          ):
          <fpage>270</fpage>
          -
          <lpage>279</lpage>
          ,
          <year>1978</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Hai H. Nguyen</surname>
            , Natasha Alechina, and
            <given-names>Brian</given-names>
          </string-name>
          <string-name>
            <surname>Logan</surname>
          </string-name>
          .
          <article-title>Axiom pinpointing using an assumption-based truth maintenance system</article-title>
          .
          <source>In Proceedings of the 25th International Workshop on Description Logics (DL</source>
          <year>2012</year>
          ), pages
          <fpage>290</fpage>
          -
          <lpage>300</lpage>
          . CEUR Workshop Proceedings Vol-
          <volume>846</volume>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Zoran</surname>
            <given-names>Nikoloski</given-names>
          </string-name>
          , Sergio Grimbs, Joachim Selbig, and
          <article-title>Oliver Ebenho¨h. Hardness and approximability of the inverse scope problem</article-title>
          . In International Workshop on Algorithms in Bioinformatics, pages
          <fpage>99</fpage>
          -
          <lpage>112</lpage>
          . Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15. Hossein Saiedian and
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Spencer</surname>
          </string-name>
          .
          <article-title>An ecient algorithm to compute the candidate keys of a relational database schema</article-title>
          .
          <source>The Computer Journal</source>
          ,
          <volume>39</volume>
          (
          <issue>2</issue>
          ):
          <fpage>124</fpage>
          -
          <lpage>132</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <given-names>James</given-names>
            <surname>Schmolze</surname>
          </string-name>
          and
          <string-name>
            <given-names>Wayne</given-names>
            <surname>Snyder</surname>
          </string-name>
          .
          <article-title>Detecting redundant production rules</article-title>
          .
          <source>In Proceedings of AAAI-97</source>
          , pages
          <fpage>417</fpage>
          -
          <lpage>423</lpage>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Stuart</surname>
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Shapiro</surname>
            and
            <given-names>Haythem O. Ismail.</given-names>
          </string-name>
          <article-title>Anchoring in a grounded layered architecture with integrated reasoning</article-title>
          .
          <source>Robotics and Autonomous Systems</source>
          ,
          <volume>43</volume>
          :
          <fpage>97</fpage>
          -
          <lpage>108</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <given-names>Abhishek</given-names>
            <surname>Sharma</surname>
          </string-name>
          and
          <string-name>
            <given-names>Kenneth</given-names>
            <surname>Forbus</surname>
          </string-name>
          .
          <article-title>Automatic extraction of ecient axiom sets from large knowledge bases</article-title>
          .
          <source>In Proceedings of AAAI-13</source>
          , pages
          <fpage>1248</fpage>
          -
          <lpage>1254</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <given-names>Takeaki</given-names>
            <surname>Uno</surname>
          </string-name>
          and
          <string-name>
            <given-names>Hiroko</given-names>
            <surname>Satoh</surname>
          </string-name>
          .
          <article-title>An ecient algorithm for enumerating chordless cycles and chordless paths</article-title>
          .
          <source>In International Conference on Discovery Science</source>
          , pages
          <fpage>313</fpage>
          -
          <lpage>324</lpage>
          . Springer,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <given-names>Ralf</given-names>
            <surname>Wastl</surname>
          </string-name>
          .
          <article-title>Linear derivations for keys of a database relation schema</article-title>
          .
          <source>Journal of Universal Computer Science</source>
          ,
          <volume>4</volume>
          (
          <issue>12</issue>
          ):
          <fpage>883</fpage>
          -
          <lpage>897</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <given-names>Marcel</given-names>
            <surname>Wild</surname>
          </string-name>
          .
          <article-title>Generating all cycles, chordless cycles, and hamiltonian cycles with the principle of exclusion</article-title>
          .
          <source>Journal of Discrete Algorithms</source>
          ,
          <volume>6</volume>
          :
          <fpage>93</fpage>
          -
          <lpage>102</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>