A-Hierarchy-of-Sets.html 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <html lang="en">
  2. <head>
  3. <title>A Hierarchy of Sets - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="Exception-Handling.html#Exception-Handling" title="Exception Handling">
  9. <link rel="prev" href="Exception-Handling.html#Exception-Handling" title="Exception Handling">
  10. <link rel="next" href="Operator-Generalization.html#Operator-Generalization" title="Operator Generalization">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="A-Hierarchy-of-Sets"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="Operator-Generalization.html#Operator-Generalization">Operator Generalization</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="Exception-Handling.html#Exception-Handling">Exception Handling</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="Exception-Handling.html#Exception-Handling">Exception Handling</a>
  32. <hr>
  33. </div>
  34. <h5 class="subsubsection">2.7.15.1 A Hierarchy of Sets</h5>
  35. <p>As indicated already, the virtual machine represents all functions and
  36. data as members of a set satisfying the properties in <a href="Raw-Material.html#Raw-Material">Raw Material</a>,
  37. namely a <code>nil</code> element and a <code>cons</code> operator for constructing
  38. trees or nested pairs of <code>nil</code>. However, it will be necessary to
  39. distinguish the results of computations that go wrong for exceptional
  40. reasons from normal results. Because any tree in the set could conceivably
  41. represent a normal result, we need to go outside the set to find an
  42. unambiguous representation of exceptional results.
  43. <p>Because there may be many possible exceptional conditions, it will be helpful
  44. to have a large set of possible ways to encode them, and in fact there
  45. is no need to refrain from choosing a countably infinite
  46. set. Furthermore, it will be useful to distinguish between different
  47. levels of severity among exceptional conditions, so for this purpose a
  48. countably infinite hierarchy of mutually disjoint sets is used.
  49. <p>In order to build on the theory already developed, the set that has been
  50. used up to this point will form the bottom level of the hierarchy, and
  51. its members will represent normal computational results. The members of
  52. sets on the higher levels in the hierarchy represent exceptional
  53. results. To avoid ambiguity, the term &ldquo;trees&rdquo; is reserved for members
  54. <a name="index-trees-349"></a>of the bottom set, as in &ldquo;for any tree <var>x</var> <small class="dots">...</small>&rdquo;.
  55. Unless otherwise stated, variables like <var>x</var> and
  56. <var>y</var> are universally quantified over the bottom set only.
  57. <a name="index-universal-quantification-350"></a>
  58. Because each set in the hierarchy is countably infinite, it is
  59. isomorphic to the bottom set. With respect to an arbitrary but fixed
  60. bijection between them, let <var>x</var><code>_</code><var>n</var> denote the image in
  61. the <var>n</var>th level set of a tree <var>x</var> in the bottom
  62. set. The level numbers in this notation start with zero, and we take
  63. <var>x</var><code>_0</code> to be synonymous with <var>x</var>. For good measure,
  64. let <code>(</code><var>x</var><code>_</code><var>n</var><code>)_</code><var>m</var> = <var>x</var><code>_(</code><var>n</var><code>+</code><var>m</var><code>)</code>.
  65. </body></html>