Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/doc/ref/   (GAP Algebra Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 129 kB image not shown  

SSL chap48.html   Interaktion und
PortierbarkeitHTML

 

 products/Sources/formale Sprachen/GAP/doc/ref/chap48.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 (ref) - Chapter 48: Presentations and Tietze Transformations</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="chap48"  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="chap19.html">19</a>  <a href="chap20.html">20</a>  <a href="chap21.html">21</a>  <a href="chap22.html">22</a>  <a href="chap23.html">23</a>  <a href="chap24.html">24</a>  <a href="chap25.html">25</a>  <a href="chap26.html">26</a>  <a href="chap27.html">27</a>  <a href="chap28.html">28</a>  <a href="chap29.html">29</a>  <a href="chap30.html">30</a>  <a href="chap31.html">31</a>  <a href="chap32.html">32</a>  <a href="chap33.html">33</a>  <a href="chap34.html">34</a>  <a href="chap35.html">35</a>  <a href="chap36.html">36</a>  <a href="chap37.html">37</a>  <a href="chap38.html">38</a>  <a href="chap39.html">39</a>  <a href="chap40.html">40</a>  <a href="chap41.html">41</a>  <a href="chap42.html">42</a>  <a href="chap43.html">43</a>  <a href="chap44.html">44</a>  <a href="chap45.html">45</a>  <a href="chap46.html">46</a>  <a href="chap47.html">47</a>  <a href="chap48.html">48</a>  <a href="chap49.html">49</a>  <a href="chap50.html">50</a>  <a href="chap51.html">51</a>  <a href="chap52.html">52</a>  <a href="chap53.html">53</a>  <a href="chap54.html">54</a>  <a href="chap55.html">55</a>  <a href="chap56.html">56</a>  <a href="chap57.html">57</a>  <a href="chap58.html">58</a>  <a href="chap59.html">59</a>  <a href="chap60.html">60</a>  <a href="chap61.html">61</a>  <a href="chap62.html">62</a>  <a href="chap63.html">63</a>  <a href="chap64.html">64</a>  <a href="chap65.html">65</a>  <a href="chap66.html">66</a>  <a href="chap67.html">67</a>  <a href="chap68.html">68</a>  <a href="chap69.html">69</a>  <a href="chap70.html">70</a>  <a href="chap71.html">71</a>  <a href="chap72.html">72</a>  <a href="chap73.html">73</a>  <a href="chap74.html">74</a>  <a href="chap75.html">75</a>  <a href="chap76.html">76</a>  <a href="chap77.html">77</a>  <a href="chap78.html">78</a>  <a href="chap79.html">79</a>  <a href="chap80.html">80</a>  <a href="chap81.html">81</a>  <a href="chap82.html">82</a>  <a href="chap83.html">83</a>  <a href="chap84.html">84</a>  <a href="chap85.html">85</a>  <a href="chap86.html">86</a>  <a href="chap87.html">87</a>  <a href="chapBib.html">Bib</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="chap47.html">[Previous Chapter]</a>    <a href="chap49.html">[Next Chapter]</a>   </div>

<p id="mathjaxlink" class="pcenter"><a href="chap48_mj.html">[MathJax on]</a></p>
<p><a id="X782985197BE809BF" name="X782985197BE809BF"></a></p>
<div class="ChapSects"><a href="chap48.html#X782985197BE809BF">48 <span class="Heading">Presentations and Tietze Transformations</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X867D00387957450F">48.1 <span class="Heading">Creating Presentations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X797867B287AD92F8">48.1-1 PresentationFpGroup</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X8637837A79422445">48.1-2 TzSort</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X849429BC7D435F77">48.1-3 GeneratorsOfPresentation</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7D6F40A87F24D3D6">48.1-4 FpGroupPresentation</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X84E056C57AFEDEA8">48.1-5 PresentationViaCosetTable</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7E1F2658827FC228">48.1-6 SimplifiedFpGroup</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X8118FECE7AD1879B">48.2 <span class="Heading">Subgroup Presentations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X857365CD87ADC29E">48.2-2 <span class="Heading">PresentationSubgroupRrs</span></a>
</span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7FCE7ED581CF7897">48.2-3 PrimaryGeneratorWords</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X80BA10F780EAE68E">48.2-4 PresentationSubgroupMtc</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7D6A52837BEE5C3D">48.2-5 PresentationNormalClosureRrs</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7A7E5D0084DB0B4F">48.2-6 PresentationNormalClosure</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X7BC960AB7E8DE419">48.3 <span class="Heading">Relators in a Presentation</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X8365BAFA785FCD8D">48.3-1 TietzeWordAbstractWord</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X8573E91C838B1D13">48.3-2 AbstractWordTietzeWord</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X867F64FA840B3F81">48.4 <span class="Heading">Printing Presentations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X847EA6737C21171C">48.4-1 TzPrintGenerators</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X821B63DD82894443">48.4-2 TzPrintRelators</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X852C52C37FAAB7DD">48.4-3 TzPrintLengths</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7D7B3F46865443E4">48.4-4 TzPrintStatus</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X85F8DAE27F06C32B">48.4-5 TzPrintPresentation</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7CA8BA51802655FC">48.4-6 TzPrint</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X82F6B0EE7C7C7901">48.4-7 TzPrintPairs</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X82455E5885D73FFF">48.5 <span class="Heading">Changing Presentations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7F632A6D8685855D">48.5-1 AddGenerator</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X83A5667086FD538A">48.5-2 TzNewGenerator</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X78D1BCE67FA852D8">48.5-3 AddRelator</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7B11E89E78A22EBF">48.5-4 RemoveRelator</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X829B634286471AB7">48.6 <span class="Heading">Tietze Transformations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7C4A30328224C466">48.6-1 TzGo</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X78C3D23387DAC35A">48.6-2 SimplifyPresentation</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X801D3D8984E1CA55">48.6-3 TzGoGo</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X7D19E30080290FC7">48.7 <span class="Heading">Elementary Tietze Transformations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X85989AF886EC2BF6">48.7-1 <span class="Heading">TzEliminate</span></a>
</span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7DF4BBDF839643DD">48.7-2 TzSearch</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X87F7A87A7ACF2445">48.7-3 TzSearchEqual</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X80D31A0F7C2A51BD">48.7-4 TzFindCyclicJoins</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X7D2FACCF79F57040">48.8 <span class="Heading">Tietze Transformations that introduce new Generators</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X846DB23E8236FF8A">48.8-1 <span class="Heading">TzSubstitute</span></a>
</span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7ADE3B437C19B94D">48.8-2 TzSubstituteCyclicJoins</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X85E703997A0212EE">48.9 <span class="Heading">Tracing generator images through Tietze transformations</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7D855FA08242898A">48.9-1 TzInitGeneratorImages</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7AB9A06F80FB3659">48.9-2 OldGeneratorsOfPresentation</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X798B38F87C082C45">48.9-3 TzImagesOldGens</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7AC41B117DBB87D6">48.9-4 TzPreImagesNewGens</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7F086D0E7AD6173B">48.9-5 TzPrintGeneratorImages</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X7D9E283D81CCCF1A">48.10 <span class="Heading">The Decoding Tree Procedure</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7ACBFE2F78D72A31">48.10-1 DecodeTree</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap48.html#X856F37537E9927EE">48.11 <span class="Heading">Tietze Options</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X8178683283214D88">48.11-1 TzOptions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap48.html#X7BC90B6882DE6D10">48.11-2 TzPrintOptions</a></span>
</div></div>
</div>

<h3>48 <span class="Heading">Presentations and Tietze Transformations</span></h3>

<p>A finite presentation describes a group, but usually there is a multitude of presentations that describe isomorphic groups. Therefore a presentation in <strong class="pkg">GAP</strong> is different from a finitely presented group though there are ways to translate between both.</p>

<p>An important feature of presentations is that they can be modified (see sections <a href="chap48.html#X82455E5885D73FFF"><span class="RefLink">48.5</span></a> to <a href="chap48.html#X7D2FACCF79F57040"><span class="RefLink">48.8</span></a>).</p>

<p>If you only want to get new presentations for subgroups of a finitely presented group (and do not want to manipulate presentations yourself), chances are that the operation <code class="func">IsomorphismFpGroup</code> (<a href="chap47.html#X7F28268F850F454E"><span class="RefLink">47.11-1</span></a>) already does what you want (see <a href="chap47.html#X826604AA7F18BFA3"><span class="RefLink">47.12</span></a>).</p>

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

<h4>48.1 <span class="Heading">Creating Presentations</span></h4>

<p>Most of the functions creating presentations and all functions performing Tietze transformations on them sort the relators by increasing lengths. The function <code class="func">PresentationFpGroup</code> (<a href="chap48.html#X797867B287AD92F8"><span class="RefLink">48.1-1</span></a>) is an exception because it is intended to reflect the relators that were used to define the involved f. p. group. You may use the command <code class="func">TzSort</code> (<a href="chap48.html#X8637837A79422445"><span class="RefLink">48.1-2</span></a>) to sort the presentation.</p>

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

<h5>48.1-1 PresentationFpGroup</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PresentationFpGroup</code>( <var class="Arg">G</var>[, <var class="Arg">printlevel</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>creates a presentation, i. e., a Tietze object, for the given finitely presented group <var class="Arg">G</var>. This presentation will be exactly as the presentation of <var class="Arg">G</var> and <em>no</em> initial Tietze transformations are applied to it.</p>

<p>The optional <var class="Arg">printlevel</var> parameter can be used to restrict or to extend the amount of output provided by Tietze transformation commands when being applied to the created presentation. The default value 1 is designed for interactive use and implies explicit messages to be displayed by most of these commands. A <var class="Arg">printlevel</var> value of 0 will suppress these messages, whereas a <var class="Arg">printlevel</var> value of 2 will enforce some additional output.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeGroup( "a", "b" );</span>
<free group on the generators [ a, b ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">g := f / [ f.1^3, f.2^2, (f.1*f.2)^3 ];</span>
<fp group on the generators [ a, b ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">p := PresentationFpGroup( g );</span>
<presentation with 2 gens and 3 rels of total length 11>
</pre></div>

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

<h5>48.1-2 TzSort</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzSort</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>sorts the relators of the given presentation <var class="Arg">P</var> by increasing lengths. There is no particular ordering defined for the relators of equal length. Note that <code class="func">TzSort</code> does not return a new object. It changes the given presentation.</p>

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

<h5>48.1-3 GeneratorsOfPresentation</h5>

<div class="func"<table class=func width=100%><><td"P/var)/td<td =tdright">(nbsp;function&bsp)/td</tr><table>/div
<p>returns a list of free generators that is a shallow copy (see <code class="func">ShallowCopy</code>java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

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

<h5>48.1-4 FpGroupPresentation</h5>

<div class="func"><table class="func" width="100%"><tr><td <iv class="">table =" ="00%<tr< class=dleft"< =""#;IsQuasiPrimitive/code>(var =Arg"><var> </td< java.lang.StringIndexOutOfBoundsException: Range [169, 168) out of bounds for length 225
<constructs an f. p. group as defined by the given Tietze presentation <var class="Arg">P</var>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">h := FpGroupPresentation( p );</span>
p< =func>IsQuasiPrimitive<code  <code ""truecode>or < class=keyw"false/code,depending java.lang.StringIndexOutOfBoundsException: Range [134, 133) out of bounds for length 205
<span class="GAPprompt">gap></span> <span class="GAPinput">h java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
false
</pre></div>

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

<h5>48.1-5 <span class="GAPprompt">gap>span><panclass="GAPinput">chi:= Irr( Sl23 )[4];</span>

<class=func>tableclass="func" width="100">tr><tdclass="tdleft"< ="func">&#8227; PresentationViaCosetTable</code>( <var class="Arg">G</var>[, <var class="Arg">F<class="GAPprompt">gap></span> <span class="GAPinput">TestQuasiPrimitive( chi );</span>
<p>constructs a presentation for a given concrete finite group. Itjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 64

<p>If only a group <var class="Arg">G</varspan class="APprompt"<span> <class=GAPinput">egree( java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 94

<>The operation code class=""IsomorphismFpGroup</code> (<a href="chap47.html#X7F28268F850F454E"><span class="RefLink">47.11-1</span></a>) in contrast uses a multiple-stage algorithm using a chief series and stabilizer chains. It usually should be used rather than <code class="func">PresentationViaCosetTable</code>. (It does not apply Tietze java.lang.StringIndexOutOfBoundsException: Index 354 out of bounds for length 0

<p>If the two stage algorithm is to be used, <code class="func">PresentationViaCosetTable</code> expects a subgroup <var class="Arg">H</var> of <var class="Arg">G</var> to be provided in form of two additional arguments <"<tdjava.lang.StringIndexOutOfBoundsException: Range [174, 173) out of bounds for length 236


<div class="example"><pre>
<spanclass"GAPprompt">&;/pan span=GAPinput"G: (2,7)/>
GL(2,7)
<span class="GAPprompt">gap>
[ p<code ""java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 255
  [ [ Z(7)^3, Z(7)^0 ], [ Z(7)^3, 0*Z(7) ] ] ]
<span class="GAPprompt<iv class"xample"><re
2016
<span class=  ,false false ,,  java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
<presentation with 2 gens and 5 rels of total length 46>< =""&;/><span class="APinput>          );/spanjava.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107
<span class="GAPprompt">gap&java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 33
#I  1. f2^3
#I  2. f1^6
#I        java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 26
#I  4. f1*f2*f1^h4>75. span ="Testing Monomiality<span></
#I  5
</pre></div>

<p>The two stage


<div class="example"><pre>
<span class
<span class="GAPprompt">></span> <span class=<h5>75.4- <pan class="Heading">TestMonomial</span></h5>
<span classf width"<codeclass="func">‣ TestMonomial</code>( <var class="Arg">chi</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
&erators [ ,b,c ]gt;
<span class="GAPprompt">gap></span> <span div class="func"><table class="func" width="100%"class=""<java.lang.StringIndexOutOfBoundsException: Range [85, 79) out of bounds for length 255
[ a, b ]
<span class="GAPprompt">gap></span> <span<  a   ""G<>, < class" recordcontaining  about monomialityjava.lang.StringIndexOutOfBoundsException: Range [197, 196) out of bounds for length 300
<presentation with 3 gens and 10 rels of total length 97>
spanclass="GAPprompt">gap></span> <span class="GAPinput">G := FpGroupPresentation( P );</span>
<fp p>java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 407
<span class="GAPprompt">gap></span> <span class="GAPinput">RelatorsOfFpGroup( G );</span>
[ c^2, b^4, (a*c)^3, (a*b^-2)^3, a^11,
  a^2*b*a^-2*b^-1*(b^-1*a)^2*a*b^-1, (a*(b*
  a2*b*^*^2a^-*b*^-1b)2,
  a^lattice must not be used, it may happen that <code class="func">TestMonomial</code> cannot prove or disprove monomiality; then the result record contains
 ]
</pre></div>

<>Before is returned, the resulting presentation is being simplified by appropriate calls of the function <code class="func">SimplifyPresentation</code> (<a href="chap48.html#X78C3D23387DAC35A"><span )


<div class="example"><pre>rec( : "list (  )contains entry > 1"",
<span class="GAPprompt">gap></span> <span class="GAPinput">H := Group(</span>
<span class="GAPprompt">></span> <span class="GAPinput">[ (2,5,3), (2,7,5), (1,8,4),
< H );</span
<presentation with 6 gens and 12 rels of total length 42>
<span class="GAPprompt">gap></span> <span class="GAPinput">SimplifyPresentation( java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 0
#I  there are 4 generators and 10 relators of total length 36
</pre></div>

<p>If you apply the function <code class="func">FpGroupPresentationp>For apositive integer <var class="Arg">n</var>, <code class="func">IsMonomialNumber</code> returns <code class="keyw">true</code> if every solvable group of order <java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<"></a></p>

<h5>48.1-6 SimplifiedFpGroup</h5>

<div class="unc>< = 
<p>applies Tietze transformations to a copy of the presentation of the given finitely <dd><p><span class="SimpleMath">ν_2(n) ≥ 2</span> and there is a <span class="SimpleMath">p</sp

<p><code class="func">SimplifiedFpGroup</code> returns a group isomorphic to the given one with a presentation which has been tried to simplify via Tietze transformations.</p>

<p>If the connection to the original group is important, then the operation <code class="func">IsomorphismSimplifiedFpGroup</code> (<a href="chap47.html#X78D87FA68233C401"><span class="RefLink">47.12-1</span></a>) should be used instead.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">F6 := FreeGroup( 6, "G" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">G := F6 / [ F6.1^2, F6.2^2, F6.4*F6.6^-1, F6.5^2, F6.6^2,</span>
<span class="GAPprompt">></span> <span class="GAPinput">F6.1*F6.2^-1*F6.3, F6.1*F6.5*F6.3^-1, F6.2*F6.4^-1*F6.3,</span>
<span class="GAPprompt">></span> <span class="GAPinput">F6.3*F6.4*F6.5^-1, F6.1*F6.6*F6.3^-2, F6.3^4 ];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">H := SimplifiedFpGroup( G );</span>
<fp group on the generators [ G1, G3 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">RelatorsOfFpGroup( H );</span>
[ G1^2, (G1*G3^-1)^2, G3^4 ]
</pre></div>

<p>In fact, the command</p>


<div class="example"><pre>
H := SimplifiedFpGroup( G );
</pre></div>

<p>is an abbreviation of the command sequence</p>


<div class="example"><pre>
P := PresentationFpGroup( G, 0 );;
SimplifyPresentation( P );
H := FpGroupPresentation( P );
</pre></div>

<p>which applies a rather simple-minded strategy of Tietze transformations to the intermediate presentation <var class="Arg">P</var>. If, for some concrete group, the resulting presentation is unsatisfying, then you should try a more sophisticated, interactive use of the available Tietze transformation commands (see <a href="chap48.html#X829B634286471AB7"><span class="RefLink">48.6</span></a>).</p>

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

<h4>48.2 <span class="Heading">Subgroup Presentations</span></h4>

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

<h5>48.2-1 PresentationSubgroup</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PresentationSubgroup</code>( <var class="Arg">G</var>, <var class="Arg">H</var>[, <var class="Arg">string</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="func">PresentationSubgroup</code> is a synonym for <code class="func">PresentationSubgroupRrs</code> (<a href="chap48.html#X857365CD87ADC29E"><span class="RefLink">48.2-2</span></a>).</p>

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

<h5>48.2-2 <span class="Heading">PresentationSubgroupRrs</span></h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PresentationSubgroupRrs</code>( <var class="Arg">G</var>, <var class="Arg">H</var>[, <var class="Arg">string</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PresentationSubgroupRrs</code>( <var class="Arg">G</var>, <var class="Arg">table</var>[, <var class="Arg">string</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>uses the Reduced Reidemeister-Schreier method to compute a presentation <var class="Arg">P</var> for a subgroup <var class="Arg">H</var> of a finitely presented group <var class="Arg">G</var>. The generators in the resulting presentation will be named <var class="Arg">string</var><code class="code">1</code>, <var class="Arg">string</var><code class="code">2</code>, <span class="SimpleMath">...</span>, the default string is <code class="code">"_x"</code>. You may access the <span class="SimpleMath">i</span>-th of these generators by <var class="Arg">P</var><code class="code">!.</code><span class="SimpleMath">i</span>.</p>

<p>Alternatively to the subgroup <var class="Arg">H</var>, its coset table <var class="Arg">table</var> in <var class="Arg">G</var> may be given as second argument.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeGroup( "a", "b" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">g := f / [ f.1^2, f.2^3, (f.1*f.2)^5 ];</span>
<fp group on the generators [ a, b ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">g1 := Size( g );</span>
60
<span class="GAPprompt">gap></span> <span class="GAPinput">u := Subgroup( g, [ g.1, g.1^g.2 ] );</span>
Group([ a, b^-1*a*b ])
<span class="GAPprompt">gap></span> <span class="GAPinput">p := PresentationSubgroup( g, u, "g" );</span>
<presentation with 3 gens and 4 rels of total length 12>
<span class="GAPprompt">gap></span> <span class="GAPinput">gens := GeneratorsOfPresentation( p );</span>
[ g1, g2, g3 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintRelators( p );</span>
#I  1. g1^2
#I  2. g2^2
#I  3. g3*g2*g1
#I  4. g3^5
</pre></div>

<p>Note that you cannot call the generators by their names. These names are not variables, but just display figures. So, if you want to access the generators by their names, you first will have to introduce the respective variables and to assign the generators to them.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">gens[1] = g1;</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">g1;</span>
60
<span class="GAPprompt">gap></span> <span class="GAPinput">g1 := gens[1];; g2 := gens[2];; g3 := gens[3];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">g1;</span>
g1
</pre></div>

<p>The Reduced Reidemeister-Schreier algorithm is a modification of the Reidemeister-Schreier algorithm of George Havas <a href="chapBib.html#biBHav74b">[Hav74]</a>. It was proposed by Joachim Neubüser and first implemented in 1986 by Andrea Lucchini and Volkmar Felsch in the SPAS system <a href="chapBib.html#biBSpa89">[SPA89]</a>. Like the Reidemeister-Schreier algorithm of George Havas, it needs only the presentation of <var class="Arg">G</var> and a coset table of <var class="Arg">H</var> in <var class="Arg">G</var> to construct a presentation of <var class="Arg">H</var>.</p>

<p>Whenever you call the command <code class="func">PresentationSubgroupRrs</code>, it first obtains a coset table of <var class="Arg">H</var> in <var class="Arg">G</var> if not given. Next, a set of generators of <var class="Arg">H</var> is determined by reconstructing the coset table and introducing in that process as many Schreier generators of <var class="Arg">H</var> in <var class="Arg">G</var> as are needed to do a Felsch strategy coset enumeration without any coincidences. (In general, though containing redundant generators, this set will be much smaller than the set of all Schreier generators. That is why we call the method the <em>Reduced</em> Reidemeister-Schreier.)</p>

<p>After having constructed this set of <em>primary subgroup generators</em>, say, the coset table is extended to an <em>augmented coset table</em> which describes the action of the group generators on coset representatives, i.e., on elements instead of cosets. For this purpose, suitable words in the (primary) subgroup generators have to be associated to the coset table entries. In order to keep the lengths of these words short, additional <em>secondary subgroup generators</em> are introduced as abbreviations of subwords. Their number may be large.</p>

<p>Finally, a Reidemeister rewriting process is used to get defining relators for <var class="Arg">H</var> from the relators of <var class="Arg">G</var>. As the resulting presentation of <var class="Arg">H</var> is a presentation on primary <em>and</em> secondary generators, in general you will have to simplify it by appropriate Tietze transformations (see <a href="chap48.html#X829B634286471AB7"><span class="RefLink">48.6</span></a>) or by the command <code class="func">DecodeTree</code> (<a href="chap48.html#X7ACBFE2F78D72A31"><span class="RefLink">48.10-1</span></a>) before you can use it. Therefore it is returned in the form of a presentation, <var class="Arg">P</var> say.</p>

<p>Compared with the Modified Todd-Coxeter method described below, the Reduced Reidemeister-Schreier method (as well as Havas' original Reidemeister-Schreier program) has the advantage that it does not require generators of <var class="Arg">H</var> to be given if a coset table of <var class="Arg">H</var> in <var class="Arg">G</var> is known. This provides a possibility to compute a presentation of the normal closure of a given subgroup (see <code class="func">PresentationNormalClosureRrs</code> (<a href="chap48.html#X7D6A52837BEE5C3D"><span class="RefLink">48.2-5</span></a>)).</p>

<p>For certain applications you may be interested in getting not only just a presentation for <var class="Arg">H</var>, but also a relation between the involved generators of <var class="Arg">H</var> and the generators of <var class="Arg">G</var>. The subgroup generators in the presentation are sorted such that the primary generators precede the secondary ones. Moreover, for each secondary subgroup generator there is a relator in the presentation which expresses this generator as a word in preceding ones. Hence, all we need in addition is a list of words in the generators of <var class="Arg">G</var> which express the primary subgroup generators. In fact, such a list is provided in the attribute <code class="func">PrimaryGeneratorWords</code> (<a href="chap48.html#X7FCE7ED581CF7897"><span class="RefLink">48.2-3</span></a>) of the resulting presentation.</p>

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

<h5>48.2-3 PrimaryGeneratorWords</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PrimaryGeneratorWords</code>( <var class="Arg">P</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>is an attribute of the presentation <var class="Arg">P</var> which holds a list of words in the associated group generators (of the underlying free group) which express the primary subgroup generators of <var class="Arg">P</var>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">PrimaryGeneratorWords( p );</span>
[ a, b^-1*a*b ]
</pre></div>

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

<h5>48.2-4 PresentationSubgroupMtc</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PresentationSubgroupMtc</code>( <var class="Arg">G</var>, <var class="Arg">H</var>[, <var class="Arg">string</var>][, <var class="Arg">print</var>, <var class="Arg">level</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>uses the Modified Todd-Coxeter coset representative enumeration method to compute a presentation <span class="SimpleMath">P</span> for a subgroup <var class="Arg">H</var> of a finitely presented group <var class="Arg">G</var>. The presentation returned is in generators corresponding to the generators of <var class="Arg">H</var>. The generators in the resulting presentation will be named <var class="Arg">string</var><code class="code">1</code>, <var class="Arg">string</var><code class="code">2</code>, <span class="SimpleMath">...</span>, the default string is <code class="code">"_x"</code>. You may access the <span class="SimpleMath">i</span>-th of these generators by <span class="SimpleMath">P</span><code class="code">!.</code><span class="SimpleMath">i</span>.</p>

<p>The default print level is <span class="SimpleMath">1</span>. If the print level is set to <span class="SimpleMath">0</span>, then the printout of the implicitly called function <code class="func">DecodeTree</code> (<a href="chap48.html#X7ACBFE2F78D72A31"><span class="RefLink">48.10-1</span></a>) will be suppressed.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">p := PresentationSubgroupMtc( g, u );</span>
<presentation with 2 gens and 3 rels of total length 14>
</pre></div>

<p>The so called Modified Todd-Coxeter method was proposed, in slightly different forms, by Nathan S. Mendelsohn and William O. J. Moser in 1966. Moser's method was proved in <a href="chapBib.html#biBBC76">[BC76]</a>. It has been generalized to cover a broad spectrum of different versions (see the survey <a href="chapBib.html#biBNeu82">[Neu82]</a>).</p>

<p>The <em>Modified Todd-Coxeter</em> method performs an enumeration of coset representatives. It proceeds like an ordinary coset enumeration (see <a href="chap47.html#X7BD0CEBA7B225416"><span class="RefLink">47.6</span></a>), but as the product of a coset representative by a group generator or its inverse need not be a coset representative itself, the Modified Todd-Coxeter has to store a kind of correction element for each coset table entry. Hence it builds up a so called <em>augmented coset table</em> of <var class="Arg">H</var> in <var class="Arg">G</var> consisting of the ordinary coset table and a second table in parallel which contains the associated subgroup elements.</p>

<p>Theoretically, these subgroup elements could be expressed as words in the given generators of <var class="Arg">H</var>, but in general these words tend to become unmanageable because of their enormous lengths. Therefore, a highly redundant list of subgroup generators is built up starting from the given (<q>primary</q>) generators of <var class="Arg">H</var> and adding additional (<q>secondary</q>) generators which are defined as abbreviations of suitable words of length two in the preceding generators such that each of the subgroup elements in the augmented coset table can be expressed as a word of length at most one in the resulting (primary <em>and</em> secondary) subgroup generators.</p>

<p>Then a rewriting process (which is essentially a kind of Reidemeister rewriting process) is used to get relators for <var class="Arg">H</var> from the defining relators of <var class="Arg">G</var>.</p>

<p>The resulting presentation involves all the primary, but not all the secondary generators of <var class="Arg">H</var>. In fact, it contains only those secondary generators which explicitly occur in the augmented coset table. If we extended this presentation by those secondary generators which are not yet contained in it as additional generators, and by the definitions of all secondary generators as additional relators, we would get a presentation of <var class="Arg">H</var>, but, in general, we would end up with a large number of generators and relators.</p>

<p>On the other hand, if we avoid this extension, the current presentation will not necessarily define <var class="Arg">H</var> although we have used the same rewriting process which in the case of the <code class="func">PresentationSubgroupRrs</code> (<a href="chap48.html#X857365CD87ADC29E"><span class="RefLink">48.2-2</span></a>) command computes a defining set of relators for <var class="Arg">H</var> from an augmented coset table and defining relators of <var class="Arg">G</var>. The different behaviour here is caused by the fact that coincidences may have occurred in the Modified Todd-Coxeter coset enumeration.</p>

<p>To overcome this problem without extending the presentation by all secondary generators, the <code class="func">PresentationSubgroupMtc</code> command applies the so called <em>decoding tree</em> algorithm which provides a more economical approach. The reader is strongly recommended to carefully read section <a href="chap48.html#X7D9E283D81CCCF1A"><span class="RefLink">48.10</span></a> where this algorithm is described in more detail. Here we will only mention that this procedure may add a lot of intermediate generators and relators (and even change the isomorphism type) in a process which in fact eliminates all secondary generators from the presentation and hence finally provides a presentation of <var class="Arg">H</var> on the primary, i.e., the originally given, generators of <var class="Arg">H</var>. This is a remarkable advantage of the command <code class="func">PresentationSubgroupMtc</code> compared to the command <code class="func">PresentationSubgroupRrs</code> (<a href="chap48.html#X857365CD87ADC29E"><span class="RefLink">48.2-2</span></a>). But note that, for some particular subgroup <var class="Arg">H</var>, the Reduced Reidemeister-Schreier method might quite well produce a more concise presentation.</p>

<p>The resulting presentation is returned in the form of a presentation, <span class="SimpleMath">P</span> say.</p>

<p>As the function <code class="func">PresentationSubgroupRrs</code> (<a href="chap48.html#X857365CD87ADC29E"><span class="RefLink">48.2-2</span></a>) described above (see there for details), the function <code class="func">PresentationSubgroupMtc</code> returns a list of the primary subgroup generators of <var class="Arg">H</var> in the attribute <code class="func">PrimaryGeneratorWords</code> (<a href="chap48.html#X7FCE7ED581CF7897"><span class="RefLink">48.2-3</span></a>) of <span class="SimpleMath">P</span>. In fact, this list is not very exciting here because it is just a shallow copy of the value of <code class="func">GeneratorsOfPresentation</code> (<a href="chap48.html#X849429BC7D435F77"><span class="RefLink">48.1-3</span></a>) of <var class="Arg">H</var>, however it is needed to guarantee a certain consistency between the results of the different functions for computing subgroup presentations.</p>

<p>Though the decoding tree routine already involves a lot of Tietze transformations, we recommend that you try to further simplify the resulting presentation by appropriate Tietze transformations (see <a href="chap48.html#X829B634286471AB7"><span class="RefLink">48.6</span></a>).</p>

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

<h5>48.2-5 PresentationNormalClosureRrs</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PresentationNormalClosureRrs</code>( <var class="Arg">G</var>, <var class="Arg">H</var>[, <var class="Arg">string</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>uses the Reduced Reidemeister-Schreier method to compute a presentation <span class="SimpleMath">P</span> for the normal closure of a subgroup <var class="Arg">H</var> of a finitely presented group <var class="Arg">G</var>. The generators in the resulting presentation will be named <var class="Arg">string</var><code class="code">1</code>, <var class="Arg">string</var><code class="code">2</code>, <span class="SimpleMath">...</span>, the default string is <code class="code">"_x"</code>. You may access the <span class="SimpleMath">i</span>-th of these generators by <span class="SimpleMath">P</span><code class="code">!.</code><span class="SimpleMath">i</span>.</p>

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

<h5>48.2-6 PresentationNormalClosure</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PresentationNormalClosure</code>( <var class="Arg">G</var>, <var class="Arg">H</var>[, <var class="Arg">string</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="func">PresentationNormalClosure</code> is a synonym for <code class="func">PresentationNormalClosureRrs</code> (<a href="chap48.html#X7D6A52837BEE5C3D"><span class="RefLink">48.2-5</span></a>).</p>

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

<h4>48.3 <span class="Heading">Relators in a Presentation</span></h4>

<p>In order to speed up the Tietze transformation routines, each relator in a presentation is internally represented by a list of positive or negative generator numbers, i.e., each factor of the proper <strong class="pkg">GAP</strong> word is represented by the position number of the corresponding generator with respect to the current list of generators, or by the respective negative number, if the factor is the inverse of a generator. Note that the numbering of the generators in Tietze words is always relative to a generator list and bears no relation to the internal numbering of generators in a family of associative words.</p>

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

<h5>48.3-1 TietzeWordAbstractWord</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TietzeWordAbstractWord</code>( <var class="Arg">word</var>, <var class="Arg">fgens</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>assumes <var class="Arg">fgens</var> to be a list of free group generators and <var class="Arg">word</var> to be an abstract word in these generators. It converts <var class="Arg">word</var> into a Tietze word, i. e., a list of positive or negative generator numbers.</p>

<p>This function simply calls <code class="func">LetterRepAssocWord</code> (<a href="chap37.html#X7BD7647C7B088389"><span class="RefLink">37.6-8</span></a>).</p>

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

<h5>48.3-2 AbstractWordTietzeWord</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; AbstractWordTietzeWord</code>( <var class="Arg">word</var>, <var class="Arg">fgens</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>assumes <var class="Arg">fgens</var> to be a list of free group generators and <var class="Arg">word</var> to be a Tietze word in these generators, i. e., a list of positive or negative generator numbers. It converts <var class="Arg">word</var> to an abstract word.</p>

<p>This function simply calls <code class="func">AssocWordByLetterRep</code> (<a href="chap37.html#X7AC8EC757CFB9A51"><span class="RefLink">37.6-9</span></a>).</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">F := FreeGroup( "a", "b", "c" ,"d");</span>
<free group on the generators [ a, b, c, d ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">tzword := TietzeWordAbstractWord(</span>
<span class="GAPprompt">></span> <span class="GAPinput">Comm(F.4,F.2) * (F.3^2 * F.2)^-1, GeneratorsOfGroup( F ){[2,3,4]} );</span>
[ -3, -1, 3, -2, -2 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">AbstractWordTietzeWord( tzword, GeneratorsOfGroup( F ){[2,3,4]} );</span>
d^-1*b^-1*d*c^-2
</pre></div>

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

<h4>48.4 <span class="Heading">Printing Presentations</span></h4>

<p>Whenever you create a presentation <span class="SimpleMath">P</span>, or assign it to a variable, <strong class="pkg">GAP</strong> will respond by printing <span class="SimpleMath">P</span>. However, as <span class="SimpleMath">P</span> may contain a lot of generators and many relators of large length, it would be annoying if the standard print facilities displayed all this information in detail. So they restrict the printout to just one line of text containing the number of generators, the number of relators, and the total length of all relators of <span class="SimpleMath">P</span>. As compensation, <strong class="pkg">GAP</strong> offers some special print commands which display various details of a presentation. Note that there is also a function <code class="func">TzPrintOptions</code> (<a href="chap48.html#X7BC90B6882DE6D10"><span class="RefLink">48.11-2</span></a>). It is described in Section <a href="chap48.html#X856F37537E9927EE"><span class="RefLink">48.11</span></a>.</p>

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

<h5>48.4-1 TzPrintGenerators</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrintGenerators</code>( <var class="Arg">P</var>[, <var class="Arg">list</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>prints the generators of the given Tietze presentation <var class="Arg">P</var> together with the number of their occurrences in the relators. The optional second argument can be used to specify the numbers of the generators to be printed. Default: all generators are printed.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">G := Group( [ (1,2,3,4,5), (2,3,5,4), (1,6)(3,4) ], () );</span>
Group([ (1,2,3,4,5), (2,3,5,4), (1,6)(3,4) ])
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationViaCosetTable( G );</span>
<presentation with 3 gens and 6 rels of total length 28>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintGenerators( P );</span>
#I  1.  f1   11 occurrences
#I  2.  f2   10 occurrences
#I  3.  f3   7 occurrences   involution
</pre></div>

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

<h5>48.4-2 TzPrintRelators</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrintRelators</code>( <var class="Arg">P</var>[, <var class="Arg">list</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>prints the relators of the given Tietze presentation <var class="Arg">P</var>. The optional second argument <var class="Arg">list</var> can be used to specify the numbers of the relators to be printed. Default: all relators are printed.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintRelators( P );</span>
#I  1. f3^2
#I  2. f2^4
#I  3. (f2*f3)^2
#I  4. f1^5
#I  5. f1^2*f2*f1*f2^-1
#I  6. f1*f2^-2*f3*f1*f3*f1^-1*f3
</pre></div>

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

<h5>48.4-3 TzPrintLengths</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrintLengths</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>prints just a list of all relator lengths of the given presentation <var class="Arg">P</var>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintLengths( P );</span>
[ 2, 4, 4, 5, 5, 8 ]
</pre></div>

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

<h5>48.4-4 TzPrintStatus</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrintStatus</code>( <var class="Arg">P</var>[, <var class="Arg">norepeat</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>is an internal function which is used by the Tietze transformation routines to print the number of generators, the number of relators, and the total length of all relators in the given Tietze presentation <var class="Arg">P</var>. If <var class="Arg">norepeat</var> is specified as <code class="keyw">true</code>, the printing is suppressed if none of the three values has changed since the last call.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintStatus( P );</span>
#I  there are 3 generators and 6 relators of total length 28
</pre></div>

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

<h5>48.4-5 TzPrintPresentation</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrintPresentation</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>prints the generators and the relators of a Tietze presentation. In fact, it is an abbreviation for the successive call of the three commands <code class="func">TzPrintGenerators</code> (<a href="chap48.html#X847EA6737C21171C"><span class="RefLink">48.4-1</span></a>), <code class="func">TzPrintRelators</code> (<a href="chap48.html#X821B63DD82894443"><span class="RefLink">48.4-2</span></a>), and <code class="func">TzPrintStatus</code> (<a href="chap48.html#X7D7B3F46865443E4"><span class="RefLink">48.4-4</span></a>), each with the presentation <var class="Arg">P</var> as only argument.</p>

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

<h5>48.4-6 TzPrint</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrint</code>( <var class="Arg">P</var>[, <var class="Arg">list</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>prints the current generators of the given presentation <var class="Arg">P</var>, and prints the relators of <var class="Arg">P</var> as Tietze words (without converting them back to abstract words as the functions <code class="func">TzPrintRelators</code> (<a href="chap48.html#X821B63DD82894443"><span class="RefLink">48.4-2</span></a>) and <code class="func">TzPrintPresentation</code> (<a href="chap48.html#X85F8DAE27F06C32B"><span class="RefLink">48.4-5</span></a>) do). The optional second argument can be used to specify the numbers of the relators to be printed. Default: all relators are printed.</p>


<div class="example"><pre>
<pan =GAPprompt">>>
#I  generators: [ f1, f2, f3 ]
#I  relators:
#I  1.  2  [ 3, 3 ]
#I  2.  4  [ 2, 2, 2, 2 ]
#I  3.  4  [ 2, 3, 2, 3 ]
#I  4.  5  [ l>strong class=Mark">3.</strong></dt>
#I  5.  5  [ 1, 1, 2, 1, -2 ]
#6..    [  1 -2,-2, 3, 1 , -, 3 ]
</pre></div>

<>sclass=""4./trong<d>

<

<ivclass="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#n style='color: green'>8227; TzPrintPairs</code>( <var class="Arg">P</var>[, <var class="Arg">n</var>] )</td><td class="tdright">( function )</td></tr></table></div>
</span> and <span class="SimpleMath">b</span> are different generators or inverses of generators, together with the number of their occurrences. The default value of <var class="Arg">n</var> is 10. A value <var class="Arg">n</var> = 0 is interpreted as <code class="func">infinity</code> (<a href="chap18.html#X8511B8DF83324C27"><span class="RefLink">18.2-1</span></a>).</p>

<>The function <ode ="unc"TzPrintPairs<</code> is useful the context of Tietze transformations which introduce new generators by substituting words in the current generators (see <a href="chap48.html#X7D2FACCF79F57040"><span class="RefLink">48.8</span></a>). It gives some evidence for an appropriate choice of a word of length 2 to be substituted.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintPairs( P, /<div>
#I  1.  3  occurrences of  f2^-1 * f3
#I  2.  2  occurrences of  f2 * f3
#I  3.  2  java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
<pre>/iv

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

<h4>48rong class=ark"<ode java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 75

<p>The functions described in this section may be java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 5

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

<h5>48.5-1 AddGenerator</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="funcjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>extends the presentation <var class="Arg">P</var> by a new generator.</p>

<p>Let <span java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0

<You accessthe generator <span class="SimpleMath">x_i</span> by typing <var class="Arg">P</var><code class="code">!.</code><span class="SimpleMath">i</span>. However, this isspan class="APprompt"gap>/ <class=GAPinput"TestMonomialQuick S4 )<s>


<div class="p<=X7E56A0EA868CC34A" =X7E56A0EA868CC34A/a>/java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
<span class="GAPprompt">gap></span> <span class="GAPinput">G := PerfectGroup(IsFpGroup, 120 );;</span>
<spanclass=GAPprompt">gap&t;<sspan class=>H = Subgroup G, [ G.1^G.2, G.3 ] );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationSubgroupfiv =func>table "unc" "%>td "><ode "unc>#8227 TestSubnormallyMonomial/code(var )/d><td class="java.lang.StringIndexOutOfBoundsException: Range [183, 182) out of bounds for length 231
< with   7 of totallength 21gt
<span class="GAPprompt">gap></span> <span class="GAPinput">AddGenerator( P );</span>
#nowthe presentationhas 5 ,new generator is xjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
u"gens =GeneratorsOfPresentation P ;/java.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107
[ _x1, _x2, _x4, _x5, _x7 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">gen := Last(
_7
<span class="GAPprompt">gap></span> <span class="GAPinput">gen = P!.7;</span>
true
</pre></div>

<p<a id="83A5667086FD538A" name=X83A5667086FD538A"></a></p>

<h5>48.5-2 TzNewGenerator</h5>

<div class<panclass=GAPprompt"gap&<span> <panclass="GAPinput"TestSubnormallyMonomial(S4);<span>
<orandadds  tothepresentation <var "rg"P<var> It called  c class"AddGenerator/ode>(a "chap48.X7F632A6D8685855D"<1/>/> by java.lang.StringIndexOutOfBoundsException: Range [276, 275) out of bounds for length 573

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

<h5>48.5-3 AddRelator</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; AddRelator</code>(]) : fnonSM character"
<p>adds the relator <var class="Arg">word</var> to the presentation <var class="Arg">P</var>, probably changing the group defined by <var class="Arg">P</var>. <var class="Arg">word</var> must be an abstract word in the generators of <var class="Arg">P</var>.</p>

< = "subnormal subgroups checked"java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50

<h5>48.5-4 RemoveRelator</h5>

<div class=</re>/java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
<>emovesthe var class="Arg">n</var>-th relator from the presentation <var class="Arg">P</var>, probably changing the group defined by <var class="Arg">P</var>.</p>

<p><a id="X829B634286471AB7=func"<class=func"width=100"<tr>tdclass=tdleft"< ""&'color: green'>8227;TestRelativelySM<code>( <var class="Arg">G</var> )</td><td class="tdright">( attribute )</td></tr></table></div>

<h4>48.6 <span class="Heading">Tietze Transformations</span></h4>

<p>divclass=func"<table =f width=100%"><tr><td "dleft"<ode ">#;TestRelativelySM/(<ar "Arg"/ar,<class=A"N<var>)/<(noperation <td<tr>/table>/java.lang.StringIndexOutOfBoundsException: Index 252 out of bounds for length 252

<p>In general, the <div class="func"><tabclass="func width="%"><tr><tdclass="tdleft"><ode class="func">&#8227; IsRelativelySM</code>( <var class="Arg">chi</var> )</td><td class="tdright">( property )</td></tr></table></div>

<p>Unfortunately there is no algorithm which could be applied to find the shortest presentation which can be obtained by Tietze transformations from a given one. Therefore, what <strong class="pkg">GAPjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p>The design of these commands follows closely the concept of the ANU Tietze transformation program <a href="chapBib.html#biBHav69">[Hav69]</

<

<h5>48.6-1 TzGo</h5>

<div class
<p>automatically performs suitable Tietze transformations of the given presentation <var class=" class"example">pre>

<p>If <varclass="Arg">silent</var> is specified as <code class="keyw">true</code>, the printing of the status line by <code class="func">TzGo</code> is suppressed if the Tietze option <code class="code">printLevel</code> (see <a href="chap48.html#X856F37537E9927EE"><span class="RefLinktrue

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

<h5>48.6-2lativelySM =truejava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30

<ss="func"<able class="func" width="100%"><tr><td class="tdleft">
<p><code class="func">SimplifyPresentation</code> is a synonym for <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>).</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">F2 := FreeGroup( "a", "b" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">G := F2 / [ F2.1^9, F2.2^2, (F2.1*F2.2)^4, (F2.1^2*F2.2)^3 ];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">a := G.1;; b := G.2;;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">H := Subgroup( G, [ (a*b)^2, (a^-1*b)^2 ] );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">Index( G, H );</span>
408
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationSubgroup( G, H );</span>
<presentation with 8 gens and 36 rels of total length 111>
<span class="GAPprompt">gap></span> <span class="GAPinput">PrimaryGeneratorWords( P );</span>
[ b, a*b*a ]
<span class="GAPprompt">gap></span> <span class="GAPinput">TzOptions( P ).protected := 2;</span>
2
<span class="GAPprompt">gap></span> <span class="GAPinput">TzOptions( P ).printLevel := 2;</span>
2
<span class="GAPprompt">gap></span> <span class="GAPinput">SimplifyPresentation( P );</span>
#I  eliminating _x7 = _x5^-1
#I  eliminating _x5 = _x4
#I  eliminating _x18 = _x3
#I  eliminating _x8 = _x3
#I  there are 4 generators and 8 relators of total length 21
#I  there are 4 generators and 7 relators of total length 18
#I  eliminating _x4 = _x3^-1*_x2^-1
#I  eliminating _x3 = _x2*_x1^-1
#I  there are 2 generators and 4 relators of total length 14
#I  there are 2 generators and 4 relators of total length 13
#I  there are 2 generators and 3 relators of total length 9
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintRelators( P );</span>
#I  1. _x1^2
#I  2. _x2^3
#I  3. (_x2*_x1)^2
</pre></div>

<p>Roughly speaking, <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) consists of a loop over a procedure which involves two phases: In the <em>search phase</em> it calls <code class="func">TzSearch</code> (<a href="chap48.html#X7DF4BBDF839643DD"><span class="RefLink">48.7-2</span></a>) and <code class="func">TzSearchEqual</code> (<a href="chap48.html#X87F7A87A7ACF2445"><span class="RefLink">48.7-3</span></a>) described below which try to reduce the relator lengths by substituting common subwords of relators, in the <em>elimination phase</em> it calls the command <code class="func">TzEliminate</code> (<a href="chap48.html#X85989AF886EC2BF6"><span class="RefLink">48.7-1</span></a>) described below (or, more precisely, a subroutine of <code class="func">TzEliminate</code> (<a href="chap48.html#X85989AF886EC2BF6"><span class="RefLink">48.7-1</span></a>) in order to save some administrative overhead) which tries to eliminate generators that can be expressed as words in the remaining generators.</p>

<p>If <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) succeeds in reducing the number of generators, the number of relators, or the total length of all relators, it displays the new status before returning (provided that you did not set the print level to zero). However, it does not provide any output if all these three values have remained unchanged, even if the command <code class="func">TzSearchEqual</code> (<a href="chap48.html#X87F7A87A7ACF2445"><span class="RefLink">48.7-3</span></a>) involved has changed the presentation such that another call of <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) might provide further progress. Hence, in such a case it makes sense to repeat the call of the command for several times (or to call the command <code class="func">TzGoGo</code> (<a href="chap48.html#X801D3D8984E1CA55"><span class="RefLink">48.6-3</span></a>) instead).</p>

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

<h5>48.6-3 TzGoGo</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzGoGo</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>calls the command <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) again and again until it does not reduce the presentation any more.</p>

<p>The result of the Tietze transformations can be affected substantially by the options parameters (see <a href="chap48.html#X856F37537E9927EE"><span class="RefLink">48.11</span></a>). To demonstrate the effect of the <code class="code">eliminationsLimit</code> parameter, we will give an example in which we handle a subgroup of index 240 in a group of order 40320 given by a presentation due to B. H. Neumann. First we construct a presentation of the subgroup, and then we apply to it the command <code class="func">TzGoGo</code> for different values of the parameter <code class="code">eliminationsLimit</code> (including the default value 100). In fact, we also alter the <code class="code">printLevel</code> parameter, but this is only done in order to suppress most of the output. In all cases the resulting presentations cannot be improved any more by applying the command <code class="func">TzGoGo</code> again, i.e., they are the best results which we can get without substituting new generators.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">F3 := FreeGroup( "a", "b", "c" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">G := F3 / [ F3.1^3, F3.2^3, F3.3^3, (F3.1*F3.2)^5,</span>
<span class="GAPprompt">></span> <span class="GAPinput">(F3.1^-1*F3.2)^5, (F3.1*F3.3)^4, (F3.1*F3.3^-1)^4,</span>
<span class="GAPprompt">></span> <span class="GAPinput">F3.1*F3.2^-1*F3.1*F3.2*F3.3^-1*F3.1*F3.3*F3.1*F3.3^-1,</span>
<span class="GAPprompt">></span> <span class="GAPinput">(F3.2*F3.3)^3, (F3.2^-1*F3.3)^4 ];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">a := G.1;; b := G.2;; c := G.3;;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">H := Subgroup( G, [ a, c ] );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">for i in [ 61, 62, 63, 90, 97 ] do</span>
<span class="GAPprompt">></span> <span class="GAPinput">Pi := PresentationSubgroup( G, H );</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzOptions( Pi ).eliminationsLimit := i;</span>
<span class="GAPprompt">></span> <span class="GAPinput">Print("#I eliminationsLimit set to ",i,"\n");</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzOptions( Pi ).printLevel := 0;</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzGoGo( Pi );</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzPrintStatus( Pi );</span>
<span class="GAPprompt">></span> <span class="GAPinput">od;</span>
#I eliminationsLimit set to 61
#I  there are 2 generators and 104 relators of total length 7012
#I eliminationsLimit set to 62
#I  there are 2 generators and 7 relators of total length 56
#I eliminationsLimit set to 63
#I  there are 3 generators and 97 relators of total length 5998
#I eliminationsLimit set to 90
#I  there are 3 generators and 11 relators of total length 68
#I eliminationsLimit set to 97
#I  there are 4 generators and 109 relators of total length 3813
</pre></div>

<p>Similarly, we demonstrate the influence of the <code class="code">saveLimit</code> parameter by just continuing the preceding example for some different values of the <code class="code">saveLimit</code> parameter (including its default value 10), but without changing the <code class="code">eliminationsLimit</code> parameter which keeps its default value 100.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">for i in [ 7 .. 11 ] do</span>
<span class="GAPprompt">></span> <span class="GAPinput">Pi := PresentationSubgroup( G, H );</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzOptions( Pi ).saveLimit := i;</span>
<span class="GAPprompt">></span> <span class="GAPinput">Print( "#I saveLimit set to ", i, "\n" );</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzOptions( Pi ).printLevel := 0;</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzGoGo( Pi );</span>
<span class="GAPprompt">></span> <span class="GAPinput">TzPrintStatus( Pi );</span>
<span class="GAPprompt">></span> <span class="GAPinput">od;</span>
#I saveLimit set to 7
#I  there are 3 generators and 99 relators of total length 2713
#I saveLimit set to 8
#I  there are 2 generators and 103 relators of total length 11982
#I saveLimit set to 9
#I  there are 2 generators and 6 relators of total length 41
#I saveLimit set to 10
#I  there are 3 generators and 118 relators of total length 13713
#I saveLimit set to 11
#I  there are 3 generators and 11 relators of total length 58
</pre></div>

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

<h4>48.7 <span class="Heading">Elementary Tietze Transformations</span></h4>

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

<h5>48.7-1 <span class="Heading">TzEliminate</span></h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzEliminate</code>( <var class="Arg">P</var>[, <var class="Arg">gen</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzEliminate</code>( <var class="Arg">P</var>[, <var class="Arg">n</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>tries to eliminate a generator from a presentation <var class="Arg">P</var> via Tietze transformations.</p>

<p>Any relator which contains some generator just once can be used to substitute that generator by a word in the remaining generators. If such generators and relators exist, then <code class="func">TzEliminate</code> chooses a generator for which the product of its number

<p>If a generator <var class="Arg">gen</var> has been specified, <code class="func">TzEliminate</code> eliminates it if possible, i. e. if there is a relator in which <var class="Arg">gen</var> occurs just once. If no second argument has been specified, <code class="func">TzEliminate</code> eliminates some appropriate generator if possible and if the resulting total length of the relators will not exceed the Tietze options parameter <code class="code">lengthLimit</code>.</p>

<p>If an integer <var class="Arg">n</var> has been specified, <code class="func">TzEliminate</code> tries to eliminate up to <var class="Arg">n</var> generators. Note that the calls <code class="code">TzEliminate(<var class="Arg">P</var>)</code> and <code class="code">TzEliminate(<var class="Arg">P</var>,1)</code> are equivalent.</p>

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

<h5>48.7-2 TzSearch</h5>

< class="func">&#8227; TzSearch</code>( <var class"Arg"P/> )/td>td class="dright">( function )</td></tr></table></div>
<p>searches for relator subwords which, in some relator, have a complement of shorter length and which occur in other relators, too, and uses them to reduce these other relators.</p>

<p>The idea is to find pairs of relators <span class="SimpleMath">r_1</span> and <span class="SimpleMath">r_2</span> of length <span class="SimpleMath">l_1</span> and <span class="SimpleMath">l_2</span>, respectively, such that <span class="SimpleMath">l_1 ≤ l_2</span> and <span class="SimpleMath">r_1</span> and <span class="SimpleMath">r_2</span> coincide (possibly after inverting or conjugating one of them) in some maximal subword <span class="SimpleMath">w</span> of length greater than <span class="SimpleMath">l_1/2</span>, and then to substitute each copy of <span class="SimpleMath">w</span> in <span class="SimpleMath">r_2</span> by the inverse complement of <span class="SimpleMath">w</span> in <span class="SimpleMath">r_1</span>.</p>

<p>Two of the Tietze option parameters which are listed in section <a href="chap48.html#X856F37537E9927EE"><span class="RefLink">48.11</span></a> may strongly influence the performance and the results of the command <code class="func">TzSearch</code>. These are the parameters <code class="code">saveLimit</code> and <code class="code">java.lang.StringIndexOutOfBoundsException: Index 348 out of bounds for length 65

<p>When <code class="func">TzSearch</code> has finished its main loop over all relators, then, in general, there are relators which have changed and hence should be handled again in another run through the whole procedure. However, experience shows that it really does not pay to continue this way until no more relators change. Therefore, <code class="func">TzSearch</code> starts a new loop only if the loop just finished has reduced the total length of the relators by at least <code class="code">saveLimit</code> per cent.</p>

<p>The default value of <code class="code">saveLimit</code> is 10 per cent.</p>

<p>To understand the effect of the option <code class="code">searchSimultaneous</code>, we have to look in more detail at how <code class="func">TzSearch</code> proceeds:</p>

<p>First, it sorts the list of relators by increasing lengths. Then it performs a loop over this list. In each step of this loop, the current relator is treated as <em>short relator</em> <span class=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p>As this subroutine performs a very expensive process, it has been implemented as a C routine in the <strong class="pkg">GAP</strong> kernel. For the given relator <span class="impleMath">/java.lang.StringIndexOutOfBoundsException: Range [201, 200) out of bounds for length 986

<p>To improve the efficiency of this process we   java.lang.StringIndexOutOfBoundsException: Range [87, 86) out of bounds for length 861

<p>The default value of <code class="code">searchSimultaneous

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

<h5>48.7-3 TzSearchEqual</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzSearchEqual</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>searches for Tietze relator subwords which, in some relator, have a complement of equal length and which occur in other relators, too, and uses them to modify these other relators.</p>

<p>The idea is to find pairs of relators <span class="SimpleMath">r_1</span> and < 1 , java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11

<p>The Tietze option java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 11

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

<h5>48.7-4 TzFindCyclicJoins</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzFindCyclicJoins</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>searches for power and commutator relators in order to find pairs of generators which generateError List: &t;ist&;mustbe  mutable java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59

<p>More precisely: <code class="func">TzFindCyclicJoins</code> searches for pairs of generators <span class="SimpleMath">a</span> and <span class="SimpleMath">b</span> such that (possibly after inverting or conjugating some relators) the set of relators contains the commutator <span class="SimpleMath">[a,b]</span>, a power <span class="SimpleMath">a^n</span>, and a product of the form <span class="SimpleMath">a^s b^t</span> with <span class="SimpleMath">s</span> prime to pre><>

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

<h4>48.8 <span class="Heading">Tietze Transformations that introduce new Generators</span></h4>

<p>Some of the Tietze transformation commands listed so far may eliminate generators and hence change the given presentation to a presentation on a subset of the given set of generators, but they all do <em>not</em> introduce new generators. However, sometimes there will be the need to substitute certain words as new generators in order to improve a presentation. Therefore <strong class="pkg">GAP</strong> offers the two commands <code class="func">TzSubstitute</code> (<a href="chap48.html#X846DB23E8236FF8A"><span class="RefLink">48.8-1</span></a>) and <code class="func">TzSubstituteCyclicJoins</code> (<a href="chap48.html#X7ADE3B437C19B94D"><span class="RefLink">48.8<p>  objects  is different.An   be.e. its type does not contain <code class="func">IsMutable</code> (<a href="chap12.html#X7999AD1D7A4F1F46"><span class="RefLink">12.6-2</span></a>)) shouldnot   change element  represents  kernel does em<> use codeclassc"!<>  java.lang.StringIndexOutOfBoundsException: Range [425, 413) out of bounds for length 1009

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

<h5>48.8-1 <span class="Heading">TzSubstitute</span></h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzSubstitute</code>( <var class="Arg">P</var>, <var class="Arg">word</var> )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzSubstitute</code>( <var class="Arg">P</var>[, <var class="Arg">n</var>[, <var class="Arg">eliminate</var>]] )</td><td class="tdright">( function )</td></tr></table></div>
<p>In the first form <code class="func">TzSubstitute</code> expects <var class="Arg">P</var> to be a presentation and <var class="Arg">word</var> to be either an abstract word or a Tietze word in the generators of <var class="Arg">P</var>. It substitutes the given word as a new generator of <var class="Arg">P</var>. This is done as follows: First, <code class="func">TzSubstitute</code> creates a new abstract generator, <span class="SimpleMath">g</span> say, and adds it to the presentation, then it adds a new relator <span class="SimpleMath">g^{-1} ⋅ <var class="Arg">word</var></span>.</p>

<p>In its second form, <code class="func">TzSubstitute</code> substitutes a squarefree word of length 2 as a new generator and then eliminates a generator from the extended generator list. We will describe this process in more detail below.</p>

<p>The parameters <var class="Arg">n</var> and <var class="Arg">eliminate</var> are optional. If you specify arguments for them, then <var class="Arg">n</var> is expected to be a positive integer, and <var class="Arg">eliminate</var> is expected to be 0, 1, or 2. The default values are <var class="Arg">n</var> <span class="SimpleMath">= 1</span> and <var class="Arg">eliminate</var> <span class="SimpleMath">= 0</span>.</p>

<p><code class="func">TzSubstitute</code> first determines the <var class="Arg">n</var> most frequently occurring relator subwords of the form <span class="SimpleMath">g_1 g_2</span>, where <span class="SimpleMath">g_1</span> and <span class="SimpleMath">g_2</span> are different generators or their inverses, and sorts them by decreasing numbers of occurrences.</p>

<p>Let <span class="SimpleMath">a b</span> be the last word in that list, and let <span class="SimpleMath">i</span> be the smallest positive integer which has not yet been used as a generator number in the presentation <var class="Arg">P</var> so far. <code class="func">TzSubstitute</code> defines a new abstract generator <span class="SimpleMath">x_i</span> named <code class="code">"_x<var class="Arg">i</var>"</code> and adds it to <var class="Arg">P</var> (see <code class="func">AddGenerator</code> (<a href="chap48.html#X7F632A6D8685855D"><span class="RefLink">48.5-1</span></a>)). Then it adds the word <span class="SimpleMath">x_i^{-1} a b</span> as a new relator to <var class="Arg">P</var> and replaces all occurrences of <span class="SimpleMath">a b</span> in the relators by <span class="SimpleMath">x_i</span>. Finally, it eliminates some suitable generator from <var class="Arg">P</var>.</p>

<p>The choice of the generator to be eliminated depends on the actual value of the parameter <var class="Arg">eliminate</var>:</p>

<p>If <var class="Arg">eliminate</var> is zero, <code class="func">TzSubstitute</code> just calls the function <code class="func">TzEliminate</code> (<a href="chap48.html#X85989AF886EC2BF6"><span class="RefLink">48.7-1</span></a>). So it may happen that it is the just introduced generator <span class="SimpleMath">x_i</span> which now is deleted again so that you don't get any remarkable progress in simplifying your presentation. On the first glance this does not look reasonable, but it is a consequence of the request that a call of <code class="func">TzSubstitute</code> with <var class="Arg">eliminate</var> = 0 must not increase the total length of the relators.</p>

<p>Otherwise, if <var class="Arg">eliminate</var> is 1 or 2, <code class="func">TzSubstitute</code> eliminates the respective factor of the substituted word <span class="SimpleMath">a b</span>, i. e., it eliminates <span class="SimpleMath">a</span> if <var class="Arg">eliminate</var> = 1 or <span class="SimpleMath">b</span> if <var class="Arg">eliminate</var> = 2. In this case, it may happen that the total length of the relators increases, but sometimes such an intermediate extension is the only way to finally reduce a given presentation.</p>

<p>There is still another property of the command <code class="func">TzSubstitute</code> which should be mentioned. If, for instance, <code class="code">word</code> is an abstract word, a call</p>


<div class="example"><pre>
TzSubstitute( P, word );
</pre></div>

<p>is more or less equivalent to</p>


<div class="example"><pre>
AddGenerator( P );
g := Last(GeneratorsOfPresentation(P));
AddRelator( P, g^-1 * word );
</pre></div>

<p>However, there is a difference: If you are tracing generator images and preimages of <var class="Arg">P</var> through the Tietze transformations applied to <var class="Arg">P</var> (see <a href="chap48.html#X85E703997A0212EE"><span class="RefLink">48.9</span></a>), then <code class="func">TzSubstitute</code>, as a Tietze transformation of <var class="Arg">P</var>, will update and save the respective lists, whereas a call of the function <code class="func">AddGenerator</code> (<a href="chap48.html#X7F632A6D8685855D"><span class="RefLink">48.5-1</span></a>) (which does not perform a Tietze transformation) will delete these lists and hence terminate the tracing.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">G := PerfectGroup( IsSubgroupFpGroup, 960, 1 );</span>
A5 2^4
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationFpGroup( G );</span>
<presentation with 6 gens and 21 rels of total length 84>
<span class="GAPprompt">gap></span> <span class="GAPinput">GeneratorsOfPresentation( P );</span>
[ a, b, s, t, u, v ]
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
#I  there are 3 generators and 10 relators of total length 81
#I  there are 3 generators and 10 relators of total length 80
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintGenerators( P );</span>
#I  1.  a   31 occurrences   involution
#I  2.  b   26 occurrences
#I  3.  t   23 occurrences   involution
<span class="GAPprompt">gap></span> <span class="GAPinput">a := GeneratorsOfPresentation( P )[1];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">b := GeneratorsOfPresentation( P )[2];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzSubstitute( P, a*b );</span>
#I  now the presentation has 4 generators, the new generator is _x7
#I  substituting new generator _x7 defined by a*b
#I  there are 4 generators and 11 relators of total length 83
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGo( P );</span>
#I  there are 3 generators and 10 relators of total length 74
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintGenerators( P );</span>
#I  1.  a   23 occurrences   involution
#I  2.  t   23 occurrences   involution
#3 x7   28
</pre

<p>As an example of an application of the command <code class="func">TzSubstitute</code> in its second form we handle a subgroup of index 266 in the Janko group <span class="SimpleMath">J_1</span>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span <pan class="gap><span><class=GAPinput">amesOfComponents(g)</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">J1 := F2 / [ F2.  "GeneratorsOfMagmaWithInverses ]
<span class="GAPprompt">>
<span class="GAPprompt">gap></span> <span class="GAPinput">a := J1.1;; b := J1.2;;</span>
anclass=""gapgt<span <class="GAPinput">H := Subgroup ( J1, [ a, b^(a*b*(a*b^-1)^2) ] );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationSubgroup( J1, H );</span>
<presentation with 23 gens and 82 rels of total length 530>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
</>/>
#I  there are 2 generators and 46 relators of total length 3773
#I  there are2 and 46 relators of total length 2570
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
#I  there are 2 generators and 46 relators of total length 2568
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
</pre></div>

<p>Here we do not get any more progress without substituting a new generator.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzSubstitute( P );</span>
#I  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 4
#I<pan class="GAPprompt">gap></span> <span class="GAPinput">e[3] := false;</span>
</pre></div>

p<java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 479


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintPairs( P );</span>
#I  1.  504  occurrences of  _x6 * _x23^-1
#I  2.  504  occurrences of  _x6^-1 * _x23
#I  3.  448  occurrences of  _x6 * _x23
#I  4.  448  occurrences of  _x6^-1 * _x23^-1
<span class="GAPprompt">gap></span> <span class="GAPinput">TzSubstitute( P, 2, 1 );</span>
#I  substituting new generator _x29 defined by _x6^-1*_x23
#I  eliminating _x6 = _x23*_x29^-1
#I  there are 2 generators and 46 relators of total length 2867
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
#I  there are 2 generators and 45 relators of total length 2417
#I  there are 2 generators and 45 relators of total length 2122
<pan=""gap></ <pan class=GAPinput"TzSubstitute(P,1  ;/pan
#I  substituting new generator _x30 defined by _p><code class="func">ShallowCopy</code> (<a href="chap12.html#X846BC7107C352031"><span class="RefLink">12.7-1</span></a>) applied to a constant simply returns the constant.</p>
java.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 35
#
<span class="<span class="GAPprompt
#I  there are 2 generators and 42 relators of total length 1637
#I  there are 2 generators and 40 relators of total length 1286
#I  there are 2 generators and 36 relators of total length 807
#I  there are 2 generators and 32 relators of total length 625
#I  there are 2 generators and 22 relators of total length 369
#I  there are 2 generators and 18 relators of total length 213
#I  there are 2 generators and 13 relators of total length 141
#I  there are 2 generators and 12 relators of total length 121
#I  there are 2 generators and 10 relators of total length 101
<span class="GAPprompt">gap></span> <span class="  (3) (,,,(1,,3,) (2),),1,2, 23,(1,(,),
#I1  19  occurrences of_* _^1
#I  2.  19  occurrences of  _x23^-1 * _x30
#I  . 14  occurrencesof  _23* _30
#I  4.  14  occurrences of  _x23^-1 * _x30^-1
<pre/div

<p>If we save a copy of the current presentation, then later we will be able to restart the computation from the current state.pBothcode ""Immutable/ (a=chap12.X7F0ABF2C870B0CBB"<classR".-<span</>and <classf"MakeImmutable</code> (<a href="chap12.html#X80CE136D804097C7"><span class="RefLink">12.6-4</span></a>) work on external objects by just resetting the <code class="func">IsMutable</code> (<a href="chap12.html#X7999AD1D7A4F1F46"><span class="RefLink">12.6-2</span>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


<div class="example"><pre>
<span class="GAPprompt">gap></java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 4
<presentation with 2 gens and 10 rels of total length 101>
</pre></div>

<p>Just for demonstration we make an inconvenient choice:</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span>java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 5
#I  substituting new generator _x31 defined by _x23*_x30
# x =_x31*_-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
#I  there are 2 generators and 10 relators of total length 122
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
#I  there are 2 generators ol>
</pre></div>

<p>This presentation is worse than the one we have saved, so we restart from that presentation again.</p>


<div class="example"><java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
<span class="GAPprompt">gap></span> <span class="GAPinput">P := ShallowCopy( P1 )h5>7910-1 />
<presentation with 2 gens and 10 rels of total div class="func"><table class="func" width="100%"><tr class=tdleft">codeclass="func>&#8227; DeclareGlobalName/code>( var class=""name<var>)</d< java.lang.StringIndexOutOfBoundsException: Range [171, 170) out of bounds for length 227
<span class="GAPprompt">gap></span> <span class="GAPinput">TzSubstitute( P, 2, 1);</span>
#I  substituting new generator _x31 defined by _x23^-1*_x30
#I  eliminating _x23 = _x30*_
#I  there are 2 generators and 10 relators of total length 107
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
#I  there are 2 generators and 9 relators
#I  there are 2 generators and 8 relators of total length 75
<span class="GAPprompt">gap></span> <span class="GAPinput"h5>.10-2 DeclareGlobalVariable</h5>
#I  substituting new generator
#eliminating _30= _x31*_x32^-1
#I  there are 2 p>For global variables that are <em>not</em> functions, java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 0
< "APprompt"gap>/ class=GAPinput"TzGoGo P );</span>
#I  there are 2 generators and 7 relators of total length 56
#I  there are 2 generators and 5 relators of total length 36
<span p>If usedatall,then <codeclass="funcDeclareGlobalVariable</code> shall be used in the declaration part of the respective package (see <a href="chap79.html#X7837CA9A83D93B38"><span class="RefLink">79.11</span></a>), values can then be assigned to the new variable with <code class=
I._325
#I  2. _x31^5
#I  3. (_x31^-1*_x32^-1)^3
I._(x*x^1)2_*x31_32-2
#I  5. _x31^-1*_x32^2*(_x31*_x32^-1*_x31)^2*_x32^2
</pre></div>

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

<h5>48.-TzSubstituteCyclicJoins/>

<><code=func>8227;TzSubstituteCyclicJoins=Arg"P</> <td>td ">&bsp&)</td></><table><div>
<p>tries>79.104FlushCaches/>

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

<4>

<<span class="SimpleMath">P_2</, defines  spanclass"SimpleMath">φ</ between the groups defined < class="SimpleMath"P_1<span>and <spanclass"SimpleMath"P_2</span, respectively.Sometimes itisdesirable  knowtheimages of old)generators < ="SimpleMath"P_1/  thepreimagesofthe ()generators of <pan class="SimpleMath"P_2<spanunder<span class"SimpleMath"φ/.  strong class=pkg"GAP</trong>  transformation functions  able  to trace  images. This is not automatically done because the involved words may grow to tremendous length, but it will be done if you explicitly request for it by calling the function <code class="func">TzInitGeneratorImages</code> (<a href="chap48.html#X7D855FA08242898A"><span class="RefLink">48.9-1</span></a>).</p>

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

<h5>48.9-1 TzInitGeneratorImages</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzInitGeneratorImages</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>expects <var class="Arg">P</var> to be a presentation. It defines the current generators to be the <q>old generators</q> of <var class="Arg">P</var> and initializes the (pre)image tracing. See <code class="func">TzImagesOldGens</code> (<a href="chap48.html#X798B38F87C082C45"><span class="RefLink">48.9-3</span></a>) and <code class="func">TzPreImagesNewGens</code> (<a href="chap48.html#X7AC41B117DBB87D6"><span class="RefLink">48.9-4</span></a>) for details.</p>

<p>You can reinitialize the tracing of the generator images at any later state by just calling the function <code class="func">TzInitGeneratorImages</code> again.</p>

<p>Note: A subsequent call of the function <code class="func">DecodeTree</code> (<a href="chap48.html#X7ACBFE2F78D72A31"><span class="RefLink">48.10-1</span></a>) will imply that the images and preimages are deleted and reinitialized after decoding the tree.</p>

<p>Moreover, if you introduce a new generator by calling the function <code class="func">AddGenerator</code> (<a href="chap48.html#X7F632A6D8685855D"><span class="RefLink">48.5-1</span></a>) described in Section <a href="chap48.html#X82455E5885D73FFF"><span class="RefLink">48.5</span></a>, this new generator cannot be traced in the old generators. Therefore <code class="func">AddGenerator</code> (<a href="chap48.html#X7F632A6D8685855D"><span class="RefLink">48.5-1</span></a>) will terminate the tracing of the generator images and preimages and delete the respective lists whenever it is called.</p>

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

<h5>48.9-2 OldGeneratorsOfPresentation</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; OldGeneratorsOfPresentation</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>assumes that <var class="Arg">P</var> is a presentation for which the generator images and preimages are being traced under Tietze transformations. It returns the list of old generators of <var class="Arg">P</var>.</p>

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

<h5>48.9-3 TzImagesOldGens</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzImagesOldGens</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>assumes that <var class="Arg">P</var> is a presentation for which the generator images and preimages are being traced under Tietze transformations. It returns a list <span class="SimpleMath">l</span> of words in the (current) <code class="func">GeneratorsOfPresentation</code> (<a href="chap48.html#X849429BC7D435F77"><span class="RefLink">48.1-3</span></a>) value of <var class="Arg">P</var> such that the <span class="SimpleMath">i</span>-th word <span class="SimpleMath">l[i]</span> represents the <span class="SimpleMath">i</span>-th old generator of <var class="Arg">P</var>, i. e., the <span class="SimpleMath">i</span>-th entry of the <code class="func">OldGeneratorsOfPresentation</code> (<a href="chap48.html#X7AB9A06F80FB3659"><span class="RefLink">48.9-2</span></a>) value of <var class="Arg">P</var>.</p>

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

<h5>48.9-4 TzPreImagesNewGens</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPreImagesNewGens</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>assumes that <var class="Arg">P</var> is a presentation for which the generator images and preimages are being traced under Tietze transformations. It returns a list <span class="SimpleMath">l</span> of words in the old generators of <var class="Arg">P</var> (the <code class="func">OldGeneratorsOfPresentation</code> (<a href="chap48.html#X7AB9A06F80FB3659"><span class="RefLink">48.9-2</span></a>) value of <var class="Arg">P</var>) such that the <span class="SimpleMath">i</span>-th entry of <span class="SimpleMath">l</span> represents the <span class="SimpleMath">i</span>-th (current) generator of <var class="Arg">P</var> (the <code class="func">GeneratorsOfPresentation</code> (<a href="chap48.html#X849429BC7D435F77"><span class="RefLink">48.1-3</span></a>) value of <var class="Arg">P</var>).</p>

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

<h5>48.9-5 TzPrintGeneratorImages</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrintGeneratorImages</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>assumes that <var class="Arg">P</var> is a presentation for which the generator images and preimages are being traced under Tietze transformations. It displays the preimages of the current generators as Tietze words in the old generators, and the images of the old generators as Tietze words in the current generators.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">G := PerfectGroup( IsSubgroupFpGroup, 960, 1 );</span>
A5 2^4
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationFpGroup( G );</span>
<presentation with 6 gens and 21 rels of total length 84>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzInitGeneratorImages( P );</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGo( P );</span>
#I  there are 3 generators and 11 relators of total length 96
#I  there are 3 generators and 10 relators of total length 81
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintGeneratorImages( P );</span>
#I  preimages of current generators as Tietze words in the old ones:
#I  1. [ 1 ]
#I  2. [ 2 ]
#I  3. [ 4 ]
#I  images of old generators as Tietze words in the current ones:
#I  1. [ 1 ]
#I  2. [ 2 ]
#I  3. [ 1, -2, 1, 3, 1, 2, 1 ]
#I  4. [ 3 ]
#I  5. [ -2, 1, 3, 1, 2 ]
#I  6. [ 1, 3, 1 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">gens := GeneratorsOfPresentation( P );</span>
[ a, b, t ]
<span class="GAPprompt">gap></span> <span class="GAPinput">oldgens := OldGeneratorsOfPresentation( P );</span>
[ a, b, s, t, u, v ]
<span class="GAPprompt">gap></span> <span class="GAPinput">TzImagesOldGens( P );</span>
[ a, b, a*b^-1*a*t*a*b*a, t, b^-1*a*t*a*b, a*t*a ]
<span class="GAPprompt">gap></span> <span class="GAPinput">for i in [ 1 .. Length( oldgens ) ] do</span>
<span class="GAPprompt">></span> <span class="GAPinput">Print( oldgens[i], " = ", TzImagesOldGens( P )[i], "\n" );</span>
<span class="GAPprompt">></span> <span class="GAPinput">od;</span>
a = a
b = b
s = a*b^-1*a*t*a*b*a
t = t
u = b^-1*a*t*a*b
v = a*t*a
</pre></div>

<" name=X7D9E283D81CCCF1A"</>p>

<h4>48.10 <span class="Heading">The Decoding Tree Procedure</span></h4>

p> " name=XACBFE2F78D72A31"<a</

<h5>48.10-1 DecodeTree</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ DecodeTree</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>assumes that <var class="Arg">P</var> is a subgroup presentation provided by the Reduced Reidemeister-Schreier or by the Modified Todd-Coxeter method (see <code class="func">PresentationSubgroupRrs</code> (<a href="chap48.html#X857365CD87ADC29E"><span class="RefLink">

<p>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

>   of command    afewremarksthe commandsinsection<  class".<constructingapresentationforagiven< =Arg"H/      v ""G/>they first   ahighly  ofgenerators  <classArg></>consistsof (of<>primary/>generators, of><qgenerators     presentation <class""P_0span<>onasublistof<em byrewritingthedefiningrelatorsof<ar="rg"G</>  sublistcontains all primary ,at least  general

<p>The role of the primary generators depends on the concrete choice of the subgroup presentation command. If the Modified Todd-Coxeter method is used, they are just the given generators of <var class="Arg">H</var>, whereas in the case of the Reduced Reidemeister-Schreier algorithm they are constructed by the program.</p>

<p>Each of the secondary generators is defined by a word of length two in the preceding generators and their inverses. By historical reasons, the list of these definitions

<p>Now we have to distinguish two cases. If <span class="SimpleMath">P_0</span> has been constructed byjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5

<p>In fact, we could easily receive a presentation of <var class="Arg">H</var>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

java.lang.StringIndexOutOfBoundsException: Range [97, 94) out of bounds for length 142

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<

p

<p>As mentioned in section <a href="chap48.html#X8118FECE7AD1879B"><span class="RefLink">48.2</span></a>, we recommend to further simplify this presentation before you use it. The standard way to do this is to start from <span class="SimpleMath">P_0</span> and to java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p>Note, however, that the decoding tree routines will not work correctly any more on a presentation from which generators have already been eliminated by Tietze transformations. Therefore

<p>Neverthelessjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<java.lang.StringIndexOutOfBoundsException: Index 112 out of bounds for length 112

<p>As an example of an explicit call of <code class="func">DecodeTree</code> we compute two presentations of a subgroup of order <span class="SimpleMath">384</span> in a group of order <span class="SimpleMath">6912</span>. In both cases we use the Reduced Reidemeister-Schreier algorithm, but in the first run we just apply the Tietze transformations offered by the <code class="func">TzGoGo</code> (<a href="chap48.html#X801D3D8984E1CA55"><span class="RefLink">48.6-3</span></a>) command with its default parameters, whereas in the second run we call the <code class="func">DecodeTree</code> command before.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">F2 := FreeGroup( "a", "b" );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">G := F2 / [ F2.1*F2.2^2*F2.1^-1*F2.2^-1*F2.1^3*F2.2^-1,</span>
<span class="GAPprompt">></span> <span class="GAPinput">               F2.2*F2.1^2*F2.2^-1*F2.1^-1*F2.2^3*F2.1^-1 ];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">a := G.1;;  b := G.2;;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">H := Subgroup( G, [ Comm(a^-1,b^-1), Comm(a^-1,b), Comm(a,b) ] );;</span>
</pre></div>

<p>We use the Reduced Reidemeister Schreier method and default Tietze transformations to get a presentation for <var class="Arg">H</var>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationSubgroupRrs( G, H );</span>
<presentation with 18 gens and 35 rels of total length 169>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
#I  there are 3 generators and 20 relators of total length 488
#I  there are 3 generators and 20 relators of total length 466
</pre></div>

<p>We end up with 20 relators of total length 466. Now we repeat the procedure, but we call the decoding tree algorithm before doing the Tietze transformations.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">P := PresentationSubgroupRrs( G, H );</span>
<presentation with 18 gens and 35 rels of total length 169>
<span class="GAPprompt">gap></span> <span class="GAPinput">DecodeTree( P );</span>
#I  there are 9 generators and 26 relators of total length 185
#I  there are 6 generators and 23 relators of total length 213
#I  there are 3 generators and 20 relators of total length 252
#I  there are 3 generators and 20 relators of total length 244
<span class="GAPprompt">gap></span> <span class="GAPinput">TzGoGo( P );</span>
#I  there are 3 generators and 19 relators of total length 168
#I  there are 3 generators and 17 relators of total length 138
#I  there are 3 generators and 15 relators of total length 114
#I  there are 3 generators and 13 relators of total length 96
#I  there are 3 generators and 12 relators of total length 84
</pre></div>

<p>This time we end up with a shorter presentation.</p>

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

<h4>48.11 <span class="Heading">Tietze Options</span></h4>

<p>Several of the Tietze transformation commands described above are controlled by certain parameters, the <em>Tietze options</em>, which often have a tremendous influence on their performance and results. However, in each application of the commands, an appropriate choice of these option parameters will depend on the concrete presentation under investigation. Therefore we have implemented the Tietze options in such a way that they are associated to the presentation: Each presentation keeps its own set of Tietze option parameters as an attribute.</p>

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

<h5>48.11-1 TzOptions</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ TzOptions</code>( <var class="Arg">P</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>is a record whose components direct the heuristics applied by the Tietze transformation functions.</p>

<p>You may alter the value of any of these Tietze options by just assigning a new value to the respective record component.</p>

<p>The following Tietze options are recognized by <strong class="pkg">GAP</strong>:</p>


<dl>
<dt><strong class="Mark"><code class="code">protected</code>:</strong></dt>
<dd><p>The first <code class="code">protected</code> generators in a presentation <var class="Arg">P</var> are protected from being eliminated by the Tietze transformations functions. There are only two exceptions: The option <code class="code">protected</code> is ignored by the functions <code class="func">TzEliminate</code> (<a href="chap48.html#X85989AF886EC2BF6"><span class="RefLink">48.7-1</span></a>) and <code class="func">TzSubstitute</code> (<a href="chap48.html#X846DB23E8236FF8A"><span class="RefLink">48.8-1</span></a>) because they explicitly specify the generator to be eliminated. The default value of <code class="code">protected</code> is 0.</p>

</dd>
<dt><strong class="Mark"><code class="code">eliminationsLimit</code>:</strong></dt>
<dd><p>Whenever the elimination phase of the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command is entered for a presentation <var class="Arg">P</var>, then it will eliminate at most <code class="code">eliminationsLimit</code> generators (except for further ones which have turned out to be trivial). Hence you may use the <code class="code">eliminationsLimit</code> parameter as a break criterion for the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command. Note, however, that it is ignored by the <code class="func">TzEliminate</code> (<a href="chap48.html#X85989AF886EC2BF6"><span class="RefLink">48.7-1</span></a>) command. The default value of <code class="code">eliminationsLimit</code> is 100.</p>

</dd>
<dt><strong class="Mark"><code class="code">expandLimit</code>:</strong></dt>
<dd><p>Whenever the routine for eliminating more than 1 generator is called for a presentation <var class="Arg">P</var> by the <code class="func">TzEliminate</code> (<a href="chap48.html#X85989AF886EC2BF6"><span class="RefLink">48.7-1</span></a>) command or the elimination phase of the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command, then it saves the given total length of the relators, and subsequently it checks the current total length against its value before each elimination. If the total length has increased to more than <code class="code">expandLimit</code> per cent of its original value, then the routine returns instead of eliminating another generator. Hence you may use the <code class="code">expandLimit</code> parameter as a break criterion for the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command. The default value of <code class="code">expandLimit</code> is 150.</p>

</dd>
<dt><strong class="Mark"><code class="code">generatorsLimit</code>:</strong></dt>
<dd><p>Whenever the elimination phase of the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command is entered for a presentation <var class="Arg">P</var> with <span class="SimpleMath">n</span> generators, then it will eliminate at most <span class="SimpleMath">n -</span><code class="code">generatorsLimit</code> generators (except for generators which turn out to be trivial). Hence you may use the <code class="code">generatorsLimit</code> parameter as a break criterion for the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command. The default value of <code class="code">generatorsLimit</code> is 0.</p>

</dd>
<dt><strong class="Mark"><code class="code">lengthLimit</code>:</strong></dt>
<dd><p>The Tietze transformation commands will never eliminate a generator of a presentation <var class="Arg">P</var>, if they cannot exclude the possibility that the resulting total length of the relators exceeds the maximal <strong class="pkg">GAP</strong> list length of <span class="SimpleMath">2^31-1</span> or the value of the option <code class="code">lengthLimit</code>. The default value of <code class="code">lengthLimit</code> is <span class="SimpleMath">2^31-1</span>.</p>

</dd>
<dt><strong class="Mark"><code class="code">loopLimit</code>:</strong></dt>
<dd><p>Whenever the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command is called for a presentation <var class="Arg">P</var>, then it will loop over at most <code class="code">loopLimit</code> of its basic steps. Hence you may use the <code class="code">loopLimit</code> parameter as a break criterion for the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command. The default value of <code class="code">loopLimit</code> is <code class="func">infinity</code> (<a href="chap18.html#X8511B8DF83324C27"><span class="RefLink">18.2-1</span></a>).</p>

</dd>
<dt><strong class="Mark"><code class="code">printLevel</code>:</strong></dt>
<dd><p>Whenever Tietze transformation commands are called for a presentation <var class="Arg">P</var> with <code class="code">printLevel</code> <span class="SimpleMath">= 0</span>, they will not provide any output except for error messages. If <code class="code">printLevel</code> <span class="SimpleMath">= 1</span>, they will display some reasonable amount of output which allows you to watch the progress of the computation and to decide about your next commands. In the case <code class="code">printLevel</code> <span class="SimpleMath">= 2</span>, you will get a much more generous amount of output. Finally, if <code class="code">printLevel</code> <span class="SimpleMath">= 3</span>, various messages on internal details will be added. The default value of <code class="code">printLevel</code> is 1.</p>

</dd>
<dt><strong class="Mark"><code class="code">saveLimit</code>:</strong></dt>
<dd><p>Whenever the <code class="func">TzSearch</code> (<a href="chap48.html#X7DF4BBDF839643DD"><span class="RefLink">48.7-2</span></a>) command has finished its main loop over all relators of a presentation <var class="Arg">P</var>, then it checks whether during this loop the total length of the relators has been reduced by at least <code class="code">saveLimit</code> per cent. If this is the case, then <code class="func">TzSearch</code> (<a href="chap48.html#X7DF4BBDF839643DD"><span class="RefLink">48.7-2</span></a>) repeats its procedure instead of returning. Hence you may use the <code class="code">saveLimit</code> parameter as a break criterion for the <code class="func">TzSearch</code> (<a href="chap48.html#X7DF4BBDF839643DD"><span class="RefLink">48.7-2</span></a>) command and, in particular, for the search phase of the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command. The default value of <code class="code">saveLimit</code> is 10.</p>

</dd>
<dt><strong class="Mark"><code class="code">searchSimultaneous</code>:</strong></dt>
<dd><p>Whenever the <code class="func">TzSearch</code> (<a href="chap48.html#X7DF4BBDF839643DD"><span class="RefLink">48.7-2</span></a>) or the <code class="func">TzSearchEqual</code> (<a href="chap48.html#X87F7A87A7ACF2445"><span class="RefLink">48.7-3</span></a>) command is called for a presentation <var class="Arg">P</var>, then it is allowed to handle up to <code class="code">searchSimultaneous</code> short relators simultaneously (see the description of the <code class="func">TzSearch</code> (<a href="chap48.html#X7DF4BBDF839643DD"><span class="RefLink">48.7-2</span></a>) command for more details). The choice of this parameter may heavily influence the performance as well as the result of the <code class="func">TzSearch</code> (<a href="chap48.html#X7DF4BBDF839643DD"><span class="RefLink">48.7-2</span></a>) and the <code class="func">TzSearchEqual</code> (<a href="chap48.html#X87F7A87A7ACF2445"><span class="RefLink">48.7-3</span></a>) commands and hence also of the search phase of the <code class="func">TzGo</code> (<a href="chap48.html#X7C4A30328224C466"><span class="RefLink">48.6-1</span></a>) command. The default value of <code class="code">searchSimultaneous</code> is 20.</p>

</dd>
</dl>
<p><a id="X7BC90B6882DE6D10" name="X7BC90B6882DE6D10"></a></p>

<h5>48.11-2 TzPrintOptions</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; TzPrintOptions</code>( <var class="Arg">P</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>prints the current values of the Tietze options of the presentation <var class="Arg">P</var>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">TzPrintOptions( P );</span>
#I  protected          = 0
#I  eliminationsLimit  = 100
#I  expandLimit        = 150
#I  generatorsLimit    = 0
#I  lengthLimit        = 2147483647
#I  loopLimit          = infinity
#I  printLevel         = 1
#I  saveLimit          = 10
#I  searchSimultaneous = 20
</pre></div>


<div class="chlinkprevnextbot"> <a href="chap0.html">[Top of Book]</a>   <a href="chap0.html#contents">[Contents]</a>    <a href="chap47.html">[Previous Chapter]</a>    <a href="chap49.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="chap19.html">19</a>  <a href="chap20.html">20</a>  <a href="chap21.html">21</a>  <a href="chap22.html">22</a>  <a href="chap23.html">23</a>  <a href="chap24.html">24</a>  <a href="chap25.html">25</a>  <a href="chap26.html">26</a>  <a href="chap27.html">27</a>  <a href="chap28.html">28</a>  <a href="chap29.html">29</a>  <a href="chap30.html">30</a>  <a href="chap31.html">31</a>  <a href="chap32.html">32</a>  <a href="chap33.html">33</a>  <a href="chap34.html">34</a>  <a href="chap35.html">35</a>  <a href="chap36.html">36</a>  <a href="chap37.html">37</a>  <a href="chap38.html">38</a>  <a href="chap39.html">39</a>  <a href="chap40.html">40</a>  <a href="chap41.html">41</a>  <a href="chap42.html">42</a>  <a href="chap43.html">43</a>  <a href="chap44.html">44</a>  <a href="chap45.html">45</a>  <a href="chap46.html">46</a>  <a href="chap47.html">47</a>  <a href="chap48.html">48</a>  <a href="chap49.html">49</a>  <a href="chap50.html">50</a>  <a href="chap51.html">51</a>  <a href="chap52.html">52</a>  <a href="chap53.html">53</a>  <a href="chap54.html">54</a>  <a href="chap55.html">55</a>  <a href="chap56.html">56</a>  <a href="chap57.html">57</a>  <a href="chap58.html">58</a>  <a href="chap59.html">59</a>  <a href="chap60.html">60</a>  <a href="chap61.html">61</a>  <a href="chap62.html">62</a>  <a href="chap63.html">63</a>  <a href="chap64.html">64</a>  <a href="chap65.html">65</a>  <a href="chap66.html">66</a>  <a href="chap67.html">67</a>  <a href="chap68.html">68</a>  <a href="chap69.html">69</a>  <a href="chap70.html">70</a>  <a href="chap71.html">71</a>  <a href="chap72.html">72</a>  <a href="chap73.html">73</a>  <a href="chap74.html">74</a>  <a href="chap75.html">75</a>  <a href="chap76.html">76</a>  <a href="chap77.html">77</a>  <a href="chap78.html">78</a>  <a href="chap79.html">79</a>  <a href="chap80.html">80</a>  <a href="chap81.html">81</a>  <a href="chap82.html">82</a>  <a href="chap83.html">83</a>  <a href="chap84.html">84</a>  <a href="chap85.html">85</a>  <a href="chap86.html">86</a>  <a href="chap87.html">87</a>  <a href="chapBib.html">Bib</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>

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ 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.0.891Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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 und die Messung sind noch experimentell.