Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  chap11.html   Sprache: HTML

 
 products/sources/formale Sprachen/GAP/pkg/cap/doc/chap11.html


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>GAP (CAP) - Chapter 11: The Category Constructor</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<link rel="stylesheet" type="text/css" href="manual.css" />
<script src="manual.js" type="text/javascript"></script>
<script type="text/javascript">overwriteStyle();</script>
</head>
<body class="chap11"  onload="jscontent()">


<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chap10.html">10</a>  <a href="chap11.html">11</a>  <a href="chap12.html">12</a>  <a href="chap13.html">13</a>  <a href="chap14.html">14</a>  <a href="chap15.html">15</a>  <a href="chap16.html">16</a>  <a href="chap17.html">17</a>  <a href="chap18.html">18</a>  <a href="chapInd.html">Ind</a>  </div>

<div class="chlinkprevnexttop"> <a href="chap0.html">[Top of Book]</a>   <a href="chap0.html#contents">[Contents]</a>    <a href="chap10.html">[Previous Chapter]</a>    <a href="chap12.html">[Next Chapter]</a>   </div>

<p id="mathjaxlink" class="pcenter"><a href="chap11_mj.html">[MathJax on]</a></p>
<p><a id="X78ADFFF38316E753" name="X78ADFFF38316E753"></a></p>
<div class="ChapSects"><a href="chap11.html#X78ADFFF38316E753">11 <span class="Heading">The Category Constructor</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11.html#X7EBFC26F83EB9F72">11.1 <span class="Heading">Info class</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap11.html#X7C2FCE2B7EBE56D9">11.1-1 InfoCategoryConstructor</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap11.html#X86EC0F0A78ECBC10">11.2 <span class="Heading">Constructors</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap11.html#X8070F8B48111E8A7">11.2-1 CategoryConstructor</a></span>
</div></div>
</div>

<h3>11 <span class="Heading">The Category Constructor</span></h3>

<p><a id="X7EBFC26F83EB9F72" name="X7EBFC26F83EB9F72"></a></p>

<h4>11.1 <span class="Heading">Info class</span></h4>

<p><a id="X7C2FCE2B7EBE56D9" name="X7C2FCE2B7EBE56D9"></a></p>

<h5>11.1-1 InfoCategoryConstructor</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ InfoCategoryConstructor</code></td><td class="tdright">( info class )</td></tr></table></div>
<p>Info class controlling the debugging output of <code class="func">CategoryConstructor</code> (<a href="chap11.html#X8070F8B48111E8A7"><span class="RefLink">11.2-1</span></a>).</p>

<p><a id="X86EC0F0A78ECBC10" name="X86EC0F0A78ECBC10"></a></p>

<h4>11.2 <span class="Heading">Constructors</span></h4>

<p><a id="X8070F8B48111E8A7" name="X8070F8B48111E8A7"></a></p>

<h5>11.2-1 CategoryConstructor</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ CategoryConstructor</code>( <var class="Arg">options</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Returns: a <strong class="pkg">CAP</strong> category</p>

<p>Creates a <strong class="pkg">CAP</strong> category subject to the options given via <var class="Arg">options</var>, which is a record with the following keys:</p>


<ul>
<li><p><code class="code">name</code> (optional): name of the category</p>

</li>
<li><p><code class="code">category_filter</code>, <code class="code">category_object_filter</code>, <code class="code">category_morphism_filter</code> (mandatory): passed to <code class="func">CreateCapCategoryWithDataTypes</code> (<a href="chap1.html#X8090078F7C5EF5E9"><span class="RefLink">1.3-4</span></a>)</p>

</li>
<li><p><code class="code">object_datum_type</code>, <code class="code">morphism_datum_type</code> (optional): passed to <code class="func">CreateCapCategoryWithDataTypes</code> (<a href="chap1.html#X8090078F7C5EF5E9"><span class="RefLink">1.3-4</span></a>)</p>

</li>
<li><p><code class="code">commutative_ring_of_linear_category</code> (optional): ring attached as <code class="func">CommutativeRingOfLinearCategory</code> (<a href="chap1.html#X78D0C0057817DBC3"><span class="RefLink">1.4-9</span></a>) to the category</p>

</li>
<li><p><code class="code">range_category_of_homomorphism_structure</code> (optional): category attached as <code class="func">RangeCategoryOfHomomorphismStructure</code> (<a href="chap1.html#X80AF18E4797A5BB4"><span class="RefLink">1.4-10</span></a>) to the category (or the string "self" to attach the category to itself)</p>

</li>
<li><p><code class="code">properties</code> (optional): list of categorical properties the category will have, see <code class="code">CAP_INTERNAL_CATEGORICAL_PROPERTIES_LIST</code></p>

</li>
<li><p><code class="code">object_constructor</code> (optional): function added as an installation of <code class="func">ObjectConstructor</code> (<a href="chap2.html#X825D050A8674D377"><span class="RefLink">2.7-1</span></a>) to the category</p>

</li>
<li><p><code class="code">object_datum</code> (optional): function added as an installation of <code class="func">ObjectDatum</code> (<a href="chap2.html#X8521A36F7BBFF6BD"><span class="RefLink">2.7-3</span></a>) to the category</p>

</li>
<li><p><code class="code">morphism_constructor</code> (optional): function added as an installation of <code class="func">MorphismConstructor</code> (<a href="chap3.html#X7F1FB34F789ECB10"><span class="RefLink">3.3-1</span></a>) to the category</p>

</li>
<li><p><code class="code">morphism_datum</code> (optional): function added as an installation of <code class="func">MorphismDatum</code> (<a href="chap3.html#X7BBFB178866108FA"><span class="RefLink">3.3-2</span></a>) to the category</p>

</li>
<li><p><code class="code">list_of_operations_to_install</code> (mandatory): a list of names of <strong class="pkg">CAP</strong> operations which should be installed for the category</p>

</li>
<li><p><code class="code">is_computable</code> (optional): whether the category can decide <code class="code">IsCongruentForMorphisms</code></p>

</li>
<li><p><code class="code">supports_empty_limits</code> (optional): whether the category supports empty lists in inputs to operations of limits and colimits</p>

</li>
<li><p><code class="code">underlying_category_getter_string</code> (optional): see below</p>

</li>
<li><p><code class="code">underlying_category</code> (optional): see below</p>

</li>
<li><p><code class="code">underlying_object_getter_string</code> (optional): see below</p>

</li>
<li><p><code class="code">underlying_morphism_getter_string</code> (optional): see below</p>

</li>
<li><p><code class="code">top_object_getter_string</code> (optional): see below</p>

</li>
<li><p><code class="code">top_morphism_getter_string</code> (optional): see below</p>

</li>
<li><p><code class="code">generic_output_source_getter_string</code> (optional): see below</p>

</li>
<li><p><code class="code">generic_output_range_getter_string</code> (optional): see below</p>

</li>
<li><p><code class="code">create_func_bool</code>: see below</p>

</li>
<li><p><code class="code">create_func_object</code>: see below</p>

</li>
<li><p><code class="code">create_func_morphism</code>: see below</p>

</li>
<li><p><code class="code">create_func_list_of_objects</code>: see below</p>

</li>
</ul>
<p>The values of the keys <code class="code">create_func_*</code> should be either the string <code class="code">"default" or functions which accept the category and the name of a <strong class="pkg">CAP</strong> operation of the corresponding <code class="code">return_type</code>. Values for return types occuring for operations in <code class="code">list_of_operations_to_install</code> are mandatory. The functions must return either strings or pairs of a string and an integer: The strings (after some replacements described below) will be evaluated and added as installations of the corresponding operations to the category with weights given by the integer (if provided). The value <code class="code">"default"</code> chooses a suitable default string (see the implementation for details) and gets the weights from <code class="code">underlying_category</code>. The following placeholders may be used in the strings and are replaced automatically:</p>


<ul>
<li><p><code class="code">operation_name</code> will be replaced by the name of the operation</p>

</li>
<li><p><code class="code">input_arguments...</code> will be replaced by the <code class="code">input_arguments_names</code> specified in the method name record (see <a href="chap7.html#X7E1C4F9D80329FEC"><span class="RefLink">7.3</span></a>)</p>

</li>
<li><p><code class="code">underlying_arguments...</code>: If the constructed category is created from another category, <code class="code">underlying_category_getter_string</code>, <code class="code">underlying_object_getter_string</code>, and <code class="code">underlying_morphism_getter_string</code> may be strings of functions computing the underlying category (when applied to the constructed category) and the underlying object resp. morphism (when applied to the constructed category and an object resp. morphism in the constructed category). These functions are applied to <code class="code">input_arguments</code> and <code class="code">underlying_arguments</code> is replaced by the result.</p>

</li>
<li><p><code class="code">number_of_arguments</code> will be replaced by the number of input/underlying arguments</p>

</li>
<li><p><code class="code">top_source</code> and <code class="code">top_range</code>: If the return type is <code class="code">morphism</code>, source and range are computed if possible and <code class="code">top_source</code> and <code class="code">top_range</code> are replaced by the results. For computing source and range, the <code class="code">output_source_getter_string</code> and <code class="code">output_range_getter_string</code> from the method name record are used if available (see <a href="chap7.html#X7E1C4F9D80329FEC"><span class="RefLink">7.3</span></a>). In some categories, source and range can always be obtained in a generic way (e.g. from the morphism datum). In this case, <code class="code">generic_output_source_getter_string</code> and <code class="code">generic_output_range_getter_string</code> can be set and are used if the required information is not available in the method name record.</p>

</li>
<li><p><code class="code">top_object_getter</code> and <code class="code">top_morphism_getter</code> are used in the <code class="code">"default"</code> strings and are replaced by <code class="code">top_object_getter_string</code> and <code class="code">top_morphism_getter_string</code>, respectively.</p>

</li>
</ul>

<div class="chlinkprevnextbot"> <a href="chap0.html">[Top of Book]</a>   <a href="chap0.html#contents">[Contents]</a>    <a href="chap10.html">[Previous Chapter]</a>    <a href="chap12.html">[Next Chapter]</a>   </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chap10.html">10</a>  <a href="chap11.html">11</a>  <a href="chap12.html">12</a>  <a href="chap13.html">13</a>  <a href="chap14.html">14</a>  <a href="chap15.html">15</a>  <a href="chap16.html">16</a>  <a href="chap17.html">17</a>  <a href="chap18.html">18</a>  <a href="chapInd.html">Ind</a>  </div>

<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>

99%


¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge