<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Encodings of Sets and Hypersets</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Alberto</forename><surname>Policriti</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">Department of Mathematics and Informatics</orgName>
								<orgName type="institution">University of Udine</orgName>
								<address>
									<settlement>Udine</settlement>
									<country key="IT">Italy</country>
								</address>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="department">Istituto di Genomica Applicata</orgName>
								<address>
									<settlement>Udine</settlement>
									<country key="IT">Italy</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Encodings of Sets and Hypersets</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">2496220F2F2261A4144EDE78A6B541C3</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T23:58+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>Ackermann encoding</term>
					<term>Hereditarily Finite Sets</term>
					<term>Hereditarily Finite Hypersets</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>We will present some results and open problems on an extension of the Ackermann encoding of Hereditarily Finite Sets into Natural Numbers. In particular, we will introduce and discuss a simple modification of the above mentioned Ackermann encoding, that should naturally generalize from Hereditarily Finite Sets to Hereditarily Finite Hypersets.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Introduction</head><p>This work is related with an attempt to (sensibly) extend the following function (map) introduced by Ackermann in 1937 (see <ref type="bibr" target="#b0">[Ack37]</ref>) :</p><formula xml:id="formula_0">Definition 1. N A (x) = Σ y∈x 2 N A (y)<label>(1)</label></formula><p>The above map is a bijection between Hereditarily Finite Sets (denoted by HF: the collection of sets obtained starting from ∅ and closing with respect to finite set formation) and Natural Numbers (denoted by N).</p><p>The usage of 2 as base for the exponentiations in Definition 1 allows us to see the binary expansion of the natural number N A (x) as a full description-that is the list of its elements-of x in terms of N A : the presence of a 1 in position i of the binary expansion of N A (x) is equivalent to saying that the element y such that N A (y) = i belongs to x.</p><p>Example 1. N A (∅) = 0, N A ({∅}) = 2 0 = 1, N A ({∅, {∅}}) = 2 0 + 2 1 = 3, the binary code of N A ({∅, {∅, {∅}}}) is 1001, that is 9.</p><p>N A is a simple and natural encoding of sets, hence a powerful tool for representing and manipulating objects that are suitable to represent any kind of mathematical information.</p><p>Two sets are equal if and only if they have the same elements and the "translation" of this in terms of N A corresponds to observing that two natural numbers are equal if and only if they have the same binary code. The previously mentioned set-theoretic principle for testing equality-a basic axiom in classical Set Theory called extensionality-can be applied only if the membership relation ∈ does not admit cycles. A "set" u such that u belongs to itself, for example, cannot be tested for equality using extensionality against another set v: among the equalities to be checked we would need ... to take u into account! Nevertheless, non well-founded set theories (whose elements are called hypersets) are useful and very expressive tools. Especially in Informatics. They add the ability to represent circular phenomena by blending the basic set-theoretic machinery with the notion of bisimulation used in place of extensionality (see <ref type="bibr" target="#b1">[Acz88]</ref>). Therefore, for example, it becomes important to find (fast) algorithms to compute hyperset-equality. In <ref type="bibr" target="#b4">[PP04]</ref> a number of examples of usages and extensions of the Ackermann map are given, exploring the possibility of computing hyeperset equality by comparing Ackermann-like encodings.</p><p>Here we discuss a possible extension of N A whose aim is to maintain formal elegance while using as codomain a number system larger than N.</p><p>We mention the fact that, along the same line, we already proposed extensions Q A of N A mapping the collection HF of rational hereditarily finite hypersets into dyadic rational numbers (see <ref type="bibr" target="#b2">[DOPT10]</ref>). Dyadic rational numbers are rational numbers that can be denoted by finitely many (binary) digits and our proposal can be illustrated by a simple example: if Q A (z) = 1010, 0111, then z is the hyperset whose well-founded elements are the second and the fourth (that is those having Ackermann code equal to 2 and 4), while z's non well-founded elements are the second, the third, and the fourth. Clearly, to build Q A an ordering of the hereditarily finite hypersets must enter into play. The set Ω = {Ω} is-naturally-the first non well-founded set and, consequently,</p><formula xml:id="formula_1">Q A (Ω) = 0, 1.</formula><p>The extension of Ackermann map discussed below is more direct than Q A , as it does not require any (somehow arbitrary) ordering of hereditarily finite sets. This feature opens the way to an usage of the newly proposed map for bisimulation computation based on code comparison, as well as to a large array of numerically-based (hyper)set manipulation techniques.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Extending Ackermann map</head><p>Consider the following definition, obtained from Definition (1) by simply adding a minus sign at exponent.</p><formula xml:id="formula_2">Definition 2. R A (x) = Σ y∈x 2 −R A (y)<label>(2)</label></formula><p>As a first and very basic motivation to consider the above map, notice that the above definition allows a (unique) solution to the following equation:</p><formula xml:id="formula_3">x = 2 −x (3)</formula><p>To see this, it suffices to observe that the two curves y = x and y = 2 −x are increasing and decreasing, respectively, and intersect in the first quadrant of R.</p><p>Let Ω be the solution of (3) over R. It is not difficult to see that Ω / ∈ Q.</p><p>Our first objective would be to show that (2) is injective on the collection of Hereditarily Finite Sets.</p><p>Conjecture 1. The function R A is injective on HF.</p><p>A second, more challenging, point will consist in establishing the fact that R A is injective on the full collection of rational hereditarily finite hypersets.</p><p>Conjecture 2. The function R A is injective on HF.</p><p>We only have partial results related with the above conjectures that are mostly related with a study of the codes of the elements of the following subfamily of HF: Definition 3. The elements of the family S of super-singletons</p><formula xml:id="formula_4">S = {∅} i | i ∈ N ,</formula><p>are defined recursively as follows: {∅} 0 = ∅ and {∅} n+1 = {{∅} n }.</p><p>Super-singletons were first introduced by Zermelo in <ref type="bibr" target="#b5">[Zer08]</ref> as a set-theoretic representation for ordinals and they have been recently discussed by Kirby in <ref type="bibr" target="#b3">[Kir13]</ref>.</p><p>The following figure shows the disposition of the first few code values of super-sigletons (let s i denote the code of the i-th super-singleton). The R A -code of super-singletons is easily determined and seen to converge to the above defined value Ω. Proposition 1. The following hold: Proof. To see the above result it suffices to observe that 2 −2 −x is increasing and therefore, since s 0 = 0 &lt; s 2 = 1/2 and since s 1 = 1 &gt; s 3 = 1/ √ 2, we have:</p><formula xml:id="formula_5">s 0 0 s 1 1 s 2 1 2 s 3 1 √ 2 s 4 s 5 Ω</formula><formula xml:id="formula_6">0 = s 0 &lt; s 2 &lt; • • • s 2i &lt; s 2i+2 • • • &lt; Ω &lt; • • • s 2i+3 &lt; s 2i+1 • • • &lt; s 3 &lt; s 1 = 1,</formula><formula xml:id="formula_7">s 0 &lt; s 2 &lt; • • • s 2i &lt; 2 −2 −s 2i = s 2i+2 • • • and s 1 &gt; s 3 &gt; • • • s 2i+1 &gt; 2 −2 −s 2i+1 = s 2i+3 • • • . Moreover, since s 0 &lt; Ω = 2 −Ω and since s 2i+2 = 2 −2 −s 2i &lt; 2 −2 −Ω = Ω,</formula><p>we have that all even-indexed super-singletons are smaller than Ω.</p><p>Similarly, all odd-indexed super-singletons are larger than Ω.</p><p>To conclude we must prove that both even and odd indexed sequences of super-singletons converge to Ω. This is a consequence of the fact that (2</p><formula xml:id="formula_8">−x − 2 −y ) &lt; (y − x)/2, for all x, y ∈ [1/2, 1]. This, in turn, follows from Lagrange theorem stating that (f (b) − f (a))/(b − a) = f (z), for some z ∈ (a, b). In fact, assuming y &gt; x, the value (2 −x −2 −y )/(y −x) is equal to (2 −z ) = −2 −z ln(2), for some z ∈ [x, y] ⊆ [1/2, 1],</formula><p>and this value is always smaller than −1/2. To conclude it is sufficient to consider the sequence for i &gt; 0, with x = s 2i and y = s 2i−1 .</p><p>With some extra observations and using the above result we can prove the injectivity of R A on the codes of arbitrary unions of super-singletons. Definition 4. Given j pairwise distinct indexes i 1 , . . . , i j , let s i1,...,ij be the code of</p><formula xml:id="formula_9">{∅} i1 ∪ • • • ∪ {∅} ij , that is s i1 + • • • + s ij . Moreover, let S i1,...,ij = s i1,...,ij ,k | k &gt; i j .</formula><p>On the grounds of the above definition, we have that the codes of non-null super-singletons in S are in S 0 . If we imagine (codes of) super-singletons in S 0 as obtained from the intersection of a spiral with the x-axis, as in the Figure <ref type="figure">2</ref>,</p><formula xml:id="formula_10">S 0 0 1 1 Fig. 2: The spiral of S</formula><p>then the arrangement of the subsequent spirals can be seen to be a spiral of smaller and smaller spirals, as in Figure <ref type="figure" target="#fig_2">3</ref>.</p><p>Notice that the points of convergence of all the above spirals-that is Ω + s i = R A (Ω ∪ {∅} i ), for i 0-are, in fact, codes of hypersets. This is not the case for the point of convergence of all the points of convergence, that turns out to be 2Ω. Looking at the point of convergence of 2 −(Ω+si) for i 0, one obtains the sequence of s i+1 Ω that-no wonder-converges at Ω 2 . Starting from the sequence of spirals S i,j , whose points of convergence bring us at 3Ω, by exponentiating we get to Ω 3 , and so on. The above proposition is proved by first reducing the general case to the case in which j = k, since a padding of 0's on the left can always be performed. Then, proving that the leftmost difference among indexes in two elements belonging to S i1,...,ij and S h1,...,hj , respectively, can never be compensated by the following differences.</p><p>By letting h i be the set belonging to HF whose Ackermann code is i, that is such that N A (h i ) = i, an ordering among the elements in HF is naturally (!) induced by N A<ref type="foot" target="#foot_0">3</ref> . Looking at indexes that do not necessarily belong to the collection of supersingletons or to sums of such sets, the following result holds. Proposition 3. For all i ∈ N:</p><formula xml:id="formula_11">1. R A (h i ) = R A (h i+1 ); 2. R A (h i ) = R A (h i+2 ).</formula><p>We can prove the above proposition by rather ad-hoc arguments based on the specific value that a difference between two subsequent codes can assume.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusions</head><p>We proposed a new numerical encoding for hereditarily finite hypersets that is a natural extension of the celebrated Ackermann map establishing a bijection between natural numbers and hereditarily finite (well-founded) sets. Our proposed encoding differs from Ackermann's one only for a minus sign in the exponent. Such a small difference in the definition, however, radically changes the encoding that now maps the hypersets universe on real numbers. The map seems to have elegant analytical properties guaranteeing its injectivity on both well-founded and non well-founded hereditarily finite sets. Both injectivities, however, are just conjectured here and our opinion is that once proved R A to be 1-1 on wellfounded sets, Conjecture 2 could/should be attacked by proving that the code of a hyperset is the unique accumulation point of the codes of the well-founded sets obtained by its unfolding. Notice that this is the case for Ω, as well as for other cases briefly mentioned above.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Fig. 1 :</head><label>1</label><figDesc>Fig. 1: The RA-code of the 5 super-singletons</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Fig. 3 :</head><label>3</label><figDesc>Fig. 3: The spirals of S 0 , S 1 , S 2 , S 3 , S 4</figDesc></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_0">Such ordering can be seen to correspond to the ordering holding on binary representation of natural numbers: given two strings of bits α and β, if the leftmost difference is such that a 1 appears in α, then α &gt; β.</note>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Acknowledgments. We warmly thank D. Cantone, G. D'Agostino, E. Omodeo, and A. I. Tomescu for discussions, corrections, stimuli, and patience greatly profuse during the past two years on this subject. Moreover, we wish to thank D. Cantone also for an elegant and simple proof of Proposition 2.</p></div>
			</div>

			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Die Widerspruchfreiheit der allgemeinen Mengenlehre</title>
		<author>
			<persName><forename type="first">W</forename><surname>Ackermann</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Mathematische Annalen</title>
		<imprint>
			<biblScope unit="volume">114</biblScope>
			<biblScope unit="page" from="305" to="315" />
			<date type="published" when="1937">1937</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<author>
			<persName><forename type="first">P</forename><surname>Aczel</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Non-well-founded sets</title>
		<title level="s">CSLI Lecture Notes</title>
		<meeting><address><addrLine>Stanford, CA</addrLine></address></meeting>
		<imprint>
			<date type="published" when="1988">1988</date>
			<biblScope unit="volume">14</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Mapping hypersets into numbers (extended abstract)</title>
		<author>
			<persName><forename type="first">G</forename><surname>Agostino</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Omodeo</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Policriti</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Tomescu</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">12th Italian Conference on Theoretical Computer Science (ICTCS)</title>
				<imprint>
			<date type="published" when="2010">2010</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Ordinal operations on graph representations of sets</title>
		<author>
			<persName><forename type="first">L</forename><surname>Kirby</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Math. Log. Q</title>
		<imprint>
			<biblScope unit="volume">59</biblScope>
			<biblScope unit="issue">1-2</biblScope>
			<biblScope unit="page" from="19" to="26" />
			<date type="published" when="2013">2013</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Ackermann Encoding, Bisimulations, and OB-DDs</title>
		<author>
			<persName><forename type="first">C</forename><surname>Piazza</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Policriti</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Theory and Practice of Logic Programming</title>
				<imprint>
			<date type="published" when="2004">2004</date>
			<biblScope unit="volume">4</biblScope>
			<biblScope unit="page" from="695" to="718" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Untersuchungen über die Grundlagen der Mengenlehre</title>
		<author>
			<persName><forename type="first">E</forename><surname>Zermelo</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">I, Mathematische Annalen</title>
		<imprint>
			<biblScope unit="volume">65</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="261" to="281" />
			<date type="published" when="1908">1908</date>
		</imprint>
	</monogr>
	<note>German</note>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
