<!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>A proof-checking experiment on representing graphs as membership digraphs?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Pierpaolo Calligaris</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Eugenio G. Omodeo</string-name>
          <email>eomodeo@units.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexandru I. Tomescu</string-name>
          <email>tomescu@cs.helsinki.fi</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dipartimento di Matematica e Geoscienze, Universita` di Trieste</institution>
          ,
          <addr-line>Via Valerio 12/1, I-34127 - Trieste</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Helsinki Institute for Information Technology HIIT, Department of Computer Science, University of Helsinki</institution>
          ,
          <addr-line>P.O. 68 (Gustaf Ha ̈llstro ̈min katu 2b), FI-00014 - Helsinki</addr-line>
          ,
          <country country="FI">Finland</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Universit`a di Trieste</institution>
          ,
          <addr-line>laureando</addr-line>
        </aff>
      </contrib-group>
      <fpage>227</fpage>
      <lpage>233</lpage>
      <abstract>
        <p>We developed, and computer-checked by means of the Ref verifier, a formal proof that every weakly extensional, acyclic (finite) digraph can be decorated injectively a` la Mostowski by finite sets so that its arcs mimic membership. We managed to have one sink decorated with ∅ by this injection. We likewise proved that a graph whatsoever admits a weakly extensional and acyclic orientation; consequently, and in view of what precedes, one can regard its edges as membership arcs, each deprived of the direction assigned to it by the orientation. These results will be enhanced in a forthcoming scenario, where every connected claw-free graph G will receive an extensional acyclic orientation and will, through such an orientation, be represented as a transitive set T so that the membership arcs between members of T will correspond to the edges of G.</p>
      </abstract>
      <kwd-group>
        <kwd>Theory-based automated reasoning</kwd>
        <kwd>proof checking</kwd>
        <kwd>Referee aka ÆtnaNova</kwd>
        <kwd>graphs and digraphs</kwd>
        <kwd>Mostowski's decoration</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        arcs reflect the membership relation. Under this change of perspective, a fully
formal reconstruction of those results became affordable and, once carried out,
was certified correct with the Ref proof-checker [
        <xref ref-type="bibr" rid="ref3 ref4">3,4</xref>
        ].
      </p>
      <p>Can we, with equal ease, formalize in Ref the Milaniˇc-Tomescu representation
result per se? That result is the claim that for every connected claw-free graph
G there exist a set νG ⊇ S νG and an injection f from the vertices of G onto νG
such that {x, y} is an edge of G if and only if either f x ∈ f y or f y ∈ f x holds.
The proof articulates as follows:
1. One shows that for any graph G = (V, E) as said, there is a D ⊆ V × V
such that E = {x, y} : [x, y] ∈ D and (V, D) is an acyclic digraph which
is extensional: i.e., no two vertices in V have the same out-neighbors.
2. One decorates vertices by putting f v = {f w : [v, w] ∈ D} `a la Mostowski,
for all v ∈ V . Acyclicity ensures that this recursion makes sense;
extensionality ensures the injectivity of f .</p>
      <p>As a preparatory, simpler formalization task, we have proved with Ref that
a graph G whatsoever admits a set νG and an injection f from the vertices of G
onto νG such that {x, y} is an edge of G if and only if either f x ∈ f y or f y ∈ f x
holds. We could not have insisted on the transitivity condition νG ⊇ S νG here,
because we have nohow restrained G. The proof now articulates as follows:
10. For any G = (V, E), there is a D ⊆ V × V s.t. E = {x, y} : [x, y] ∈ D
and (V, D) is an acyclic digraph which is weakly extensional: i.e., any
two vertices that share the same out-neighbors have no out-neighbors.
20. We decorate vertices by putting: f v = {f w : [v, w] ∈ D } for each
v ∈ V endowed with out-neighbors, f z = ∅ for one sink z, and f u =
{V } ∪ V \ {u} for each sink u 6= z.
(Notice that 20. subsumes 2. altogether, because an extensional digraph has
exactly one sink.)
2</p>
      <p>
        Ingredients of a Ref ’s scenario
What one submits to the Ref checker, to have its correctness verified, is a
scenario: namely, a script file consisting of definitions and of theorems endowed
with their proofs; a construct, named Theory , enables one to package
definitions and theorems into reusable proofware components. A variant of the
Zermelo-Fraenkel set theory, postulating global choice, regularity, and infinity,
underlies the logical armory of Ref: this is apparent from the fifteen or so
inference rules available in the proof-specification language (see [5, Sec. 3]), of
which only a few sprout directly from first-order predicate calculus, while most
embody some form of set-theoretic reasoning. Multi-level syllogistic [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] acts as
a ubiquitous inference mechanism, while Theorys add a touch of second-order
reasoning ability to Ref’s overall machinery.
      </p>
      <p>Our figures offer a glimpse of the Ref’s language. Fig. 1 shows the definitions
of graph-theoretic notions relevant to the proof-checking experiment on which
Def acyclic: [Acyclicity]
h∀w ⊆ V | w 6= ∅ → h∃t ∈ w | ∅ = {y ∈ w | [t, y] ∈ D} ii</p>
    </sec>
    <sec id="sec-2">
      <title>Acyclic(V, D) ↔Def</title>
      <p>Def xtens0: [Extensionality]
h∀x ∈ V, y ∈ V, ∃z | ([x, z] ∈ D ↔ [y, z] ∈ D) → x = yi</p>
    </sec>
    <sec id="sec-3">
      <title>Extensional(V, D) ↔Def</title>
      <p>Def xtens1: [Weak extensionality] WExtensional(V, D) ↔Def</p>
      <p>Extensional V ∩ domain(D ∩ (V × V)), D ∩ (V × V)
Def orien: [Orientation of a graph]</p>
      <p>
        E ∩ {{x, y} : x ∈ V, y ∈ V\ {x}} = nnp[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], p[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]o : p ∈ D | p = hp[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], p[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]io
      </p>
    </sec>
    <sec id="sec-4">
      <title>Orientates(D, V, E) ↔Def</title>
      <p>Def Finite : [Finitude]</p>
      <p>h∀g ∈ P(PF)\ {∅} , ∃m | g ∩ Pm = {m} i</p>
      <sec id="sec-4-1">
        <title>Def maps5: [Map predicate]</title>
        <p>
          h∀p ∈ F | p = hp[
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], p[
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]i i
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Def maps6: [Single-valued map]</title>
        <p>
          Is map(F) &amp; h∀p ∈ F, q ∈ F | p[
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] = q[
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] → p = qi
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Finite(F) ↔Def Is map(F) ↔Def Svm(F) ↔Def</title>
      <p>
        APPLY h i finiteImage s0 7→ f1, f(X) 7→ X[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] ⇒
Finite
      </p>
      <p>
        Use def(domain) ⇒ false
Discharge ⇒ Auto
hf1i,→T svm2 ⇒ f1 = {[x, f1 x] : x ∈ domain(f1)}
APPLY h i finiteImage s0 7→ domain(f1), f(X) 7→ [x, f1 x] ⇒
Finite({[x, f1 x] : x ∈ domain(f1)})
nx[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] : x ∈ f1o
we report, and introduces finitude and the notion of mapping (‘Svm’).5 Fig. 2
5 To enforce a useful distinction, we denote by G(x) the application of a global function
G to an argument x (‘global’ meaning that the domain of G is the class of all sets),
while denoting by f x the application to x of a map f (typically single-valued),
viewed as set of pairs.
shows the formal development of a proof, consisting of nine steps, each
indicating which inference rule is employed to get the corresponding statement. This
proof invokes twice a Theory named finiteImage, whose interface is displayed in
Fig. 3. While finiteImage does not return any symbol, the other, subtler
Theory displayed in the same figure, namely finiteInduction, returns a symbol, finΘ,
representing an ⊆-minimal set which meets P—given that at least one finite
set satisfying property P exists. Likewise, the Theory finiteAcycLabeling shown
in Fig. 4 returns a labeling of a given acyclic digraph, thereby furnishing the
technique for decorating the graph `a la Mostowski.
      </p>
      <p>Theory finiteImage s0, f(X)</p>
      <p>Finite(s0)
⇒</p>
      <p>Finite {f(x) : x ∈ s0}
End finiteImage</p>
      <p>Theory finiteInduction s0, P(S)</p>
      <p>Finite(s0) &amp; P(s0)
⇒ (finΘ)</p>
      <p>h∀S | S ⊆ finΘ → Finite(S) &amp; P(S) ↔ S = finΘ i</p>
      <p>End finiteInduction
The two Theorys in which our experiment culminates are shown in Fig. 5; the
key theorem which makes the second of them derivable from the first was stated
in Ref as follows:</p>
      <p>Due to its centrality in our scenario, we wish to briefly sketch the proof of the
orientability theorem just cited. Arguing by contradiction, suppose that there
Theory finMostowskiDecoration(v0, d0)</p>
      <p>v0 × v0 ⊇ d0 &amp; v0 6= ∅ &amp; Finite(v0) &amp; Acyclic(v0, d0) &amp; WExtensional(v0, d0)
⇒ (mskiΘ)</p>
      <p>
        Svm(mskiΘ) &amp; domain(mskiΘ) = v0
h∀w | w ∈ domain(d0) → mskiΘ w = nmskiΘ p[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] : p ∈ d0|{w}o &amp; mskiΘ w 6= ∅i
∅ ∈ range(mskiΘ) &amp; h∀y | y ∈ range(mskiΘ) → Finite(y)i
h∀x, y | {x, y} ⊆ v0 &amp; mskiΘ x = mskiΘ y → x = yi
h∀y | y ∈ v0 → (mskiΘ y ∈ mskiΘ x ↔ [x, y] ∈ d0)i
End finMostowskiDecoration
Theory finGraphRepr(v0, e0)
      </p>
      <p>e0 ⊆ {{x, y} : x ∈ v0, y ∈ v0\ {x}} &amp; v0 6= ∅ &amp; Finite(v0)
⇒ (wskiΘ)</p>
      <p>Svm(wskiΘ) &amp; domain(wskiΘ) = v0 &amp; ∅ ∈ range(wskiΘ)
h∀y | y ∈ range(wskiΘ) → Finite(y)i
h∀x, y | {x, y} ⊆ v0 &amp; wskiΘ x = wskiΘ y → x = yi
h∀x, y | {x, y} ⊆ v0 → (wskiΘ y ∈ wskiΘ x ∨ wskiΘ x ∈ wskiΘ y) ↔ {x, y} ∈ e0 i
h∀x | wskiΘ x ∩ range(wskiΘ) 6= ∅ → wskiΘ x ⊆ range(wskiΘ)i
End finGraphRepr
is a counterexample; then, exploiting the finiteness hypothesis, take a minimal
counterexample v1, s1, e0. We are supposing that there is no acyclic, weakly
extensional orientation of the graph v1, e0 ∩ {x, y} : x ∈ v1, y ∈ v1 \ {x}
having s1 as a source; whereas, for every v0 ( v1, one can orient v0, e0 ∩ {x, y} :
x ∈ v0, y ∈ v0 \ {x} in an acyclic and weakly extensional way, for any vertex
t ∈ v0, so that t plays the role of a source. Let, in particular, v0 = v1 \ {s0}.
Unless s1 is an isolated vertex, an acyclic and weakly extensional orientation
of v0 exists that has as a source a chosen neighbor t1 of s1. However, that
orientation could trivially be extended to the graph with vertices v1 so that s1
becomes a source; this contradiction shows that s1 cannot have neighbors in v1,
which is also untenable: if so, any orientation for v0 would in fact work also as
an orientation for v1 and, as such, would have s0 as a source.</p>
      <p>The full Ref scenario can be seen at http://www2.units.it/eomodeo/wERS.
pdf (cf. also http://www2.units.it/eomodeo/ClawFreeness.html).
4</p>
      <p>Planned work on representing claw-free graphs
The larger experiment we have in mind will associate with each connected
clawfree graph G = (V, E) an injection f from V onto a transitive, hereditarily finite
set νG so that {x, y} ∈ E if and only if either f x ∈ f y or f y ∈ f x.</p>
      <p>The new notions entering into play can be rendered formally as follows:
ClawFreeG(V, E)</p>
      <p>Connected(E)</p>
      <p>h∀ p |
HerFin(S)
↔Def h∀w, x, y, z | {w, x, y, z} ⊆ V &amp; {{w, y} , {y, x} , {y, z}} ⊆ E →</p>
      <p>(x = z ∨ w ∈ {z, x} ∨ {x, z} ∈ E ∨ {z, w} ∈ E ∨ {w, x} ∈ E)i ,
↔Def ∅ ∈/ E ∧</p>
      <p>S p = E ∧ h∀b ∈ p, c ∈ p | S b ∩ S c 6= ∅ ↔ b = ci → p = {E}i ,
↔Def Finite(S) &amp; h∀x ∈ S | HerFin(x)i .</p>
      <p>Here, the first definiens requires that no subgraph of (V, E) induced by four
vertices has the shape of a ‘Y’. The second definiens requires that the set E of
edges can nohow be split into multiple disjoint blocks so that no edge acts as a
‘bridge’ by sharing endpoints with edges in distinct blocks. Hereditary finitude
is a recursive notion.</p>
      <p>We aim at getting the analogue, shown in Fig. 6, of Theory finGraphRepr
(cf. Fig. 5). For that, we must again exploit Theory finMostowskiDecoration;
in addition, a key theorem will ensure the acyclic extensional orientability of a
connected and claw-free graph:
Theorem cClawFreeG2. Finite(V) &amp; Connected(V, E) &amp;</p>
      <p>ClawFreeG(V, E) &amp; E ⊆ {{x, y} : x ∈ V, y ∈ V\ {x}} →</p>
      <p>h∃d ⊆ V × V | Orientates(d, V, E) &amp; Acyclic(V, d) &amp; Extensional(V, d)i.
Theory herfinCCFGraphRepr(v0, e0)
e0 ⊆ {{x, y} : x ∈ v0, y ∈ v0\ {x}} &amp; Finite(v0)</p>
      <p>Connected(v0, e0) &amp; ClawFreeG(v0, e0)
⇒ (transΘ)</p>
      <p>Svm(transΘ) &amp; domain(transΘ) = v0
h∀x, y | {X, Y} ⊆ v0 &amp; transΘ X = transΘ Y → X = Yi
h∀x, y | {X, Y} ⊆ v0 →</p>
      <p>(transΘ Y ∈ transΘ X ∨ transΘ X ∈ transΘ Y ↔ {X, Y} ∈ e0)i
{y ∈ range(transΘ) | y 6⊆ range(transΘ)} = ∅
range(transΘ) 6= ∅ &amp; HerFin(range(transΘ))
End herfinCCFGraphRepr</p>
      <p>Another fact we must exploit is that every connected graph has a vertex
whose removal (along with all edges incident to it) does not disrupt connectivity.
The existence of such a non-cut vertex is easily proved for a tree. So, in order
to cheaply achieve our goal, we will define</p>
      <p>HankFree(T)</p>
      <p>Is tree(T)
↔Def h∀e ⊆ T | e = ∅ ∨ h∃ a ∈ e | a 6⊆ S(e \ {a})ii ,
↔Def Connected(T) ∧ HankFree(T)
and—if only provisionally—recast the connectivity assumption, Connected(v0, e0),
of Theory herfinCCFGraphRepr as the assumption that (v0, e0) has a ‘spanning
tree’:</p>
      <p>h∃t | Is tree(t) &amp; St = v0 &amp; (v0 = {arb(v0)} ∨ t ⊆ e0)i .</p>
      <p>This eases things: for, any vertex with fewer than 2 incident edges in the spanning
tree of a connected graph will be a non-cut vertex of the graph.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Ferro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.G.</given-names>
            <surname>Omodeo</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.T.</given-names>
            <surname>Schwartz</surname>
          </string-name>
          .
          <article-title>Decision procedures for elementary sublanguages of set theory. I. Multi-level syllogistic and some extensions</article-title>
          .
          <source>Comm. Pure Applied Math.</source>
          ,
          <volume>33</volume>
          (
          <issue>5</issue>
          ):
          <fpage>599</fpage>
          -
          <lpage>608</lpage>
          ,
          <year>1980</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Milaniˇc and</article-title>
          <string-name>
            <surname>A. I. Tomescu. Set graphs. I.</surname>
          </string-name>
          <article-title>Hereditarily finite sets and extensional acyclic orientations</article-title>
          .
          <source>Discrete Applied Mathematics</source>
          ,
          <volume>161</volume>
          (
          <issue>4-5</issue>
          ):
          <fpage>677</fpage>
          -
          <lpage>690</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>E. G.</given-names>
            <surname>Omodeo. The Ref</surname>
          </string-name>
          proof
          <article-title>-checker and its “common shared scenario”</article-title>
          . In Martin Davis and Ed Schonberg, editors, From Linear Operators to Computational Biology: Essays in Memory of Jacob T. Schwartz, pages
          <fpage>121</fpage>
          -
          <lpage>131</lpage>
          . Springer,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>E. G.</given-names>
            <surname>Omodeo</surname>
          </string-name>
          and
          <string-name>
            <given-names>A. I.</given-names>
            <surname>Tomescu</surname>
          </string-name>
          . Appendix:
          <article-title>Claw-free graphs as sets</article-title>
          . In Martin Davis and Ed Schonberg, editors, From Linear Operators to Computational Biology: Essays in Memory of Jacob T. Schwartz, pages
          <fpage>131</fpage>
          -
          <lpage>167</lpage>
          . Springer,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>E.G.</given-names>
            <surname>Omodeo</surname>
          </string-name>
          and
          <string-name>
            <surname>A.I. Tomescu.</surname>
          </string-name>
          <article-title>Set graphs</article-title>
          . III.
          <article-title>Proof Pearl: Claw-free graphs mirrored into transitive hereditarily finite sets</article-title>
          .
          <source>Journal of Automated Reasoning</source>
          , In press.
          <source>DOI: 10.1007/s10817-012-9272-3.</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>