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

Quelle  chap34_mj.html   Sprache: HTML

 
 products/sources/formale Sprachen/GAP/doc/ref/chap34_mj.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>
<script type="text/javascript"
  src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<title>GAP (ref) - Chapter 34: Orderings</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="chap34"  onload="jscontent()">


<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a>  <a href="chap1_mj.html">1</a>  <a href="chap2_mj.html">2</a>  <a href="chap3_mj.html">3</a>  <a href="chap4_mj.html">4</a>  <a href="chap5_mj.html">5</a>  <a href="chap6_mj.html">6</a>  <a href="chap7_mj.html">7</a>  <a href="chap8_mj.html">8</a>  <a href="chap9_mj.html">9</a>  <a href="chap10_mj.html">10</a>  <a href="chap11_mj.html">11</a>  <a href="chap12_mj.html">12</a>  <a href="chap13_mj.html">13</a>  <a href="chap14_mj.html">14</a>  <a href="chap15_mj.html">15</a>  <a href="chap16_mj.html">16</a>  <a href="chap17_mj.html">17</a>  <a href="chap18_mj.html">18</a>  <a href="chap19_mj.html">19</a>  <a href="chap20_mj.html">20</a>  <a href="chap21_mj.html">21</a>  <a href="chap22_mj.html">22</a>  <a href="chap23_mj.html">23</a>  <a href="chap24_mj.html">24</a>  <a href="chap25_mj.html">25</a>  <a href="chap26_mj.html">26</a>  <a href="chap27_mj.html">27</a>  <a href="chap28_mj.html">28</a>  <a href="chap29_mj.html">29</a>  <a href="chap30_mj.html">30</a>  <a href="chap31_mj.html">31</a>  <a href="chap32_mj.html">32</a>  <a href="chap33_mj.html">33</a>  <a href="chap34_mj.html">34</a>  <a href="chap35_mj.html">35</a>  <a href="chap36_mj.html">36</a>  <a href="chap37_mj.html">37</a>  <a href="chap38_mj.html">38</a>  <a href="chap39_mj.html">39</a>  <a href="chap40_mj.html">40</a>  <a href="chap41_mj.html">41</a>  <a href="chap42_mj.html">42</a>  <a href="chap43_mj.html">43</a>  <a href="chap44_mj.html">44</a>  <a href="chap45_mj.html">45</a>  <a href="chap46_mj.html">46</a>  <a href="chap47_mj.html">47</a>  <a href="chap48_mj.html">48</a>  <a href="chap49_mj.html">49</a>  <a href="chap50_mj.html">50</a>  <a href="chap51_mj.html">51</a>  <a href="chap52_mj.html">52</a>  <a href="chap53_mj.html">53</a>  <a href="chap54_mj.html">54</a>  <a href="chap55_mj.html">55</a>  <a href="chap56_mj.html">56</a>  <a href="chap57_mj.html">57</a>  <a href="chap58_mj.html">58</a>  <a href="chap59_mj.html">59</a>  <a href="chap60_mj.html">60</a>  <a href="chap61_mj.html">61</a>  <a href="chap62_mj.html">62</a>  <a href="chap63_mj.html">63</a>  <a href="chap64_mj.html">64</a>  <a href="chap65_mj.html">65</a>  <a href="chap66_mj.html">66</a>  <a href="chap67_mj.html">67</a>  <a href="chap68_mj.html">68</a>  <a href="chap69_mj.html">69</a>  <a href="chap70_mj.html">70</a>  <a href="chap71_mj.html">71</a>  <a href="chap72_mj.html">72</a>  <a href="chap73_mj.html">73</a>  <a href="chap74_mj.html">74</a>  <a href="chap75_mj.html">75</a>  <a href="chap76_mj.html">76</a>  <a href="chap77_mj.html">77</a>  <a href="chap78_mj.html">78</a>  <a href="chap79_mj.html">79</a>  <a href="chap80_mj.html">80</a>  <a href="chap81_mj.html">81</a>  <a href="chap82_mj.html">82</a>  <a href="chap83_mj.html">83</a>  <a href="chap84_mj.html">84</a>  <a href="chap85_mj.html">85</a>  <a href="chap86_mj.html">86</a>  <a href="chap87_mj.html">87</a>  <a href="chapBib_mj.html">Bib</a>  <a href="chapInd_mj.html">Ind</a>  </div>

<div class="chlinkprevnexttop"> <a href="chap0_mj.html">[Top of Book]</a>   <a href="chap0_mj.html#contents">[Contents]</a>    <a href="chap33_mj.html">[Previous Chapter]</a>    <a href="chap35_mj.html">[Next Chapter]</a>   </div>

<p id="mathjaxlink" class="pcenter"><a href="chap34.html">[MathJax off]</a></p>
<p><a id="X7E4AAA7382D42361" name="X7E4AAA7382D42361"></a></p>
<div class="ChapSects"><a href="chap34_mj.html#X7E4AAA7382D42361">34 <span class="Heading">Orderings</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap34_mj.html#X79B1262585CE5427">34.1 <span class="Heading">IsOrdering (Filter)</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7EFDF115780934AF">34.1-1 IsOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X85E6445C87283BEC">34.1-2 OrderingsFamily</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap34_mj.html#X85C4CAA784BD7F01">34.2 <span class="Heading">Building new orderings</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X78B5D91278EFAFC9">34.2-1 OrderingByLessThanFunctionNC</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X813D5BEB80506CE4">34.2-2 OrderingByLessThanOrEqualFunctionNC</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap34_mj.html#X7F62235B87C20A54">34.3 <span class="Heading">Properties and basic functionality</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X84FA448B7B4DDFDC">34.3-1 IsWellFoundedOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X867AC932843AD921">34.3-2 IsTotalOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X814E5E7D85EDCAC7">34.3-3 IsIncomparableUnder</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X872497B9782B97B4">34.3-4 FamilyForOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7D08ED6882015BFB">34.3-5 LessThanFunction</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X857E800583E9026D">34.3-6 LessThanOrEqualFunction</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X87F51D737C695D41">34.3-7 IsLessThanUnder</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X8308B7DF7AAF6D9C">34.3-8 IsLessThanOrEqualUnder</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap34_mj.html#X834CD021878745BC">34.4 <span class="Heading">Orderings on families of associative words</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7C1808AE84B989AE">34.4-1 IsOrderingOnFamilyOfAssocWords</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X8175B8887868F29A">34.4-2 IsTranslationInvariantOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X816CD4BD82D41ED0">34.4-3 IsReductionOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7B6051C282EA88D5">34.4-4 OrderingOnGenerators</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X79B2DEB786680F51">34.4-5 LexicographicOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X802EB44B7E7B1F57">34.4-6 ShortLexOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7B6ED9327E0A2099">34.4-7 IsShortLexOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X849DD7C6782333D5">34.4-8 WeightLexOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7C7D7954784F5C73">34.4-9 IsWeightLexOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7E7FAEA484148947">34.4-10 WeightOfGenerators</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X79D1019E7C3E575E">34.4-11 BasicWreathProductOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7CB765477FBC3383">34.4-12 IsBasicWreathProductOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7E6DF1B17F53642E">34.4-13 WreathProductOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7F0EE6E987148C96">34.4-14 IsWreathProductOrdering</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap34_mj.html#X7901AA4479EDBE72">34.4-15 LevelsOfGenerators</a></span>
</div></div>
</div>

<h3>34 <span class="Heading">Orderings</span></h3>

<p>In <strong class="pkg">GAP</strong> an ordering is a relation defined on a family, which is reflexive, anti-symmetric and transitive.</p>

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

<h4>34.1 <span class="Heading">IsOrdering (Filter)</span></h4>

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

<h5>34.1-1 IsOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsOrdering</code>( <var class="Arg">obj</var> )</td><td class="tdright">( category )</td></tr></table></div>
<p>returns <code class="keyw">true</code> if and only if the object <var class="Arg">ord</var> is an ordering.</p>

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

<h5>34.1-2 OrderingsFamily</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ OrderingsFamily</code>( <var class="Arg">fam</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>for a family <var class="Arg">fam</var>, returns the family of all orderings on elements of <var class="Arg">fam</var>.</p>

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

<h4>34.2 <span class="Heading">Building new orderings</span></h4>

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

<h5>34.2-1 OrderingByLessThanFunctionNC</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ OrderingByLessThanFunctionNC</code>( <var class="Arg">fam</var>, <var class="Arg">lt</var>[, <var class="Arg">l</var>] )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Called with two arguments, <code class="func">OrderingByLessThanFunctionNC</code> returns the ordering on the elements of the elements of the family <var class="Arg">fam</var>, according to the <code class="func">LessThanFunction</code> (<a href="chap34_mj.html#X7D08ED6882015BFB"><span class="RefLink">34.3-5</span></a>) value given by <var class="Arg">lt</var>, where <var class="Arg">lt</var> is a function that takes two arguments in <var class="Arg">fam</var> and returns <code class="keyw">true</code> or <code class="keyw">false</code>.</p>

<p>Called with three arguments, for a family <var class="Arg">fam</var>, a function <var class="Arg">lt</var> that takes two arguments in <var class="Arg">fam</var> and returns <code class="keyw">true</code> or <code class="keyw">false</code>, and a list <var class="Arg">l</var> of properties of orderings, <code class="func">OrderingByLessThanFunctionNC</code> returns the ordering on the elements of <var class="Arg">fam</var> with <code class="func">LessThanFunction</code> (<a href="chap34_mj.html#X7D08ED6882015BFB"><span class="RefLink">34.3-5</span></a>) value given by <var class="Arg">lt</var> and with the properties from <var class="Arg">l</var> set to <code class="keyw">true</code>.</p>

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

<h5>34.2-2 OrderingByLessThanOrEqualFunctionNC</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ OrderingByLessThanOrEqualFunctionNC</code>( <var class="Arg">fam</var>, <var class="Arg">lteq</var>[, <var class="Arg">l</var>] )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Called with two arguments, <code class="func">OrderingByLessThanOrEqualFunctionNC</codereturns the ordering on the elements of the elements of the family <var class="Arg">fam</var> according to the <code class="func">LessThanOrEqualFunction</code> (<a href="chap34_mj.html#X857E800583E9026D"><span class="RefLink">34.3-6</span></a>) value given by <var class="Arg">lteq</var>, where <var class="Arg">lteq</var> is a function that takes two arguments in <var class="Arg">fam</var> and returns <code class="keyw">true</code> or <code class="keyw">false</code>.</p>

<p>Called with three arguments, for a family <var class="Arg">fam</var>, a function <var class="Arg">lteq</var> that takes two arguments in <var class="Arg">fam</var> and returns <code class="keyw">true</code> or <code class="keyw">false</code>, and a list <var class="Arg">l</var> of properties of orderings, <code class="func">OrderingByLessThanOrEqualFunctionNC</code> returns the ordering on the elements of <var class="Arg">fam</var> with <code class="func">LessThanOrEqualFunction</code> (<a href="chap34_mj.html#X857E800583E9026D"><span class="RefLink">34.3-6</span></a>) value given by <var class="Arg">lteq</var> and with the properties from <var class="Arg">l</var> set to <code class="keyw">true</code>.</p>

<p>Notice that these functions do not check whether <var class="Arg">fam</var> and <var class="Arg">lt</var> or <var class="Arg">lteq</var> are compatible, and whether the properties listed in <var class="Arg">l</var> are indeed satisfied.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeSemigroup("a","b");;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">a := GeneratorsOfSemigroup(f)[1];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">b := GeneratorsOfSemigroup(f)[2];;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">lt := function(x,y) return Length(x)<Length(y); end;</span>
function( x, y ) ... end
<span class="GAPprompt">gap></span> <span class="GAPinput">fam := FamilyObj(a);;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">ord := OrderingByLessThanFunctionNC(fam,lt);</span>
Ordering
</pre></div>

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

<h4>34.3 <span class="Heading">Properties and basic functionality</span></h4>

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

<h5>34.3-1 IsWellFoundedOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsWellFoundedOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var>, returns <code class="keyw">true</code> if and only if the ordering is well founded. An ordering <var class="Arg">ord</var> is well founded if it admits no infinite descending chains. Normally this property is set at the time of creation of the ordering and there is no general method to check whether a certain ordering is well founded.</p>

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

<h5>34.3-2 IsTotalOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsTotalOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var>, returns true if and only if the ordering is total. An ordering <var class="Arg">ord</var> is total if any two elements of the family are comparable under <var class="Arg">ord</var>. Normally this property is set at the time of creation of the ordering and there is no general method to check whether a certain ordering is total.</p>

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

<h5>34.3-3 IsIncomparableUnder</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsIncomparableUnder</code>( <var class="Arg">ord</var>, <var class="Arg">el1</var>, <var class="Arg">el2</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> on the elements of the family of <var class="Arg">el1</var> and <var class="Arg">el2</var>, returns <code class="keyw">true</code> if <var class="Arg">el1</var> <span class="SimpleMath">\(\neq\)</span> <var class="Arg">el2</var> and <code class="code">IsLessThanUnder</code>(<var class="Arg">ord</var>,<var class="Arg">el1</var>,<var class="Arg">el2</var>), <code class="code">IsLessThanUnder</code>(<var class="Arg">ord</var>,<var class="Arg">el2</var>,<var class="Arg">el1</var>) are both <code class="keyw">false</code>; and returns <code class="keyw">false</code> otherwise.</p>

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

<h5>34.3-4 FamilyForOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ FamilyForOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var>, returns the family of elements that the ordering <var class="Arg">ord</var> compares.</p>

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

<h5>34.3-5 LessThanFunction</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ LessThanFunction</code>( <var class="Arg">ord</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var>, returns a function <span class="SimpleMath">\(f\)</span> which takes two elements <span class="SimpleMath">\(el1\)</span>, <span class="SimpleMath">\(el2\)</span> in <code class="code">FamilyForOrdering</code>(<var class="Arg">ord</var>) and returns <code class="keyw">true</code> if <span class="SimpleMath">\(el1\)</span> is strictly less than <span class="SimpleMath">\(el2\)</span> (with respect to <var class="Arg">ord</var>), and returns <code class="keyw">false</code> otherwise.</p>

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

<h5>34.3-6 LessThanOrEqualFunction</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ LessThanOrEqualFunction</code>( <var class="Arg">ord</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var>, returns a function that takes two elements <span class="SimpleMath">\(el1\)</span>, <span class="SimpleMath">\(el2\)</span> in <code class="code">FamilyForOrdering</code>(<var class="Arg">ord</var>) and returns <code class="keyw">true</code> if <span class="SimpleMath">\(el1\)</span> is less than <em>or equal to</em> <span class="SimpleMath">\(el2\)</span> (with respect to <var class="Arg">ord</var>), and returns <code class="keyw">false</code> otherwise.</p>

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

<h5>34.3-7 IsLessThanUnder</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsLessThanUnder</code>( <var class="Arg">ord</var>, <var class="Arg">el1</var>, <var class="Arg">el2</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> on the elements of the family of <var class="Arg">el1</var> and <var class="Arg">el2</var>, returns <code class="keyw">true</code> if <var class="Arg">el1</var> is (strictly) less than <var class="Arg">el2</var> with respect to <var class="Arg">ord</var>, and <code class="keyw">false</code> otherwise.</p>

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

<h5>34.3-8 IsLessThanOrEqualUnder</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsLessThanOrEqualUnder</code>( <var class="Arg">ord</var>, <var class="Arg">el1</var>, <var class="Arg">el2</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> on the elements of the family of <var class="Arg">el1</var> and <var class="Arg">el2</var>, returns <code class="keyw">true</code> if <var class="Arg">el1</var> is less than or equal to <var class="Arg">el2</var> with respect to <var class="Arg">ord</var>, and <code class="keyw">false</code> otherwise.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(ord,a,a*b);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanOrEqualUnder(ord,a*b,a*b);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">IsIncomparableUnder(ord,a,b);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">FamilyForOrdering(ord) = FamilyObj(a);</span>
true
</pre></div>

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

<h4>34.4 <span class="Heading">Orderings on families of associative words</span></h4>

<p>We now consider orderings on families of associative words.</p>

<p>Examples of families of associative words are the families of elements of a free semigroup or a free monoid; these are the two cases that we consider mostly. Associated with those families is an alphabet, which is the semigroup (resp. monoid) generating set of the correspondent free semigroup (resp. free monoid). For definitions of the orderings considered, see Sims <a href="chapBib_mj.html#biBSims94">[Sim94]</a>.</p>

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

<h5>34.4-1 IsOrderingOnFamilyOfAssocWords</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsOrderingOnFamilyOfAssocWords</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var>, returns true if <var class="Arg">ord</var> is an ordering over a family of associative words.</p>

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

<h5>34.4-2 IsTranslationInvariantOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsTranslationInvariantOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> on a family of associative words, returns <code class="keyw">true</code> if and only if the ordering is translation invariant.</p>

<p>This is a property of orderings on families of associative words. An ordering <var class="Arg">ord</var> over a family <span class="SimpleMath">\(F\)</span>, with alphabet <span class="SimpleMath">\(X\)</span> is translation invariant if <code class="code">IsLessThanUnder(</code> <var class="Arg">ord</var>, <span class="SimpleMath">\(u\)</span>, <span class="SimpleMath">\(v\)</span> <code class="code">)</code> implies that for any <span class="SimpleMath">\(a, b \in X^*\)</span>, <code class="code">IsLessThanUnder(</code> <var class="Arg">ord</var>, <span class="SimpleMath">\(a*u*b\)</span>, <span class="SimpleMath">\(a*v*b\)</span> <code class="code">)</code>.</p>

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

<h5>34.4-3 IsReductionOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsReductionOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> on a family of associative words, returns <code class="keyw">true</code> if and only if the ordering is a reduction ordering. An ordering <var class="Arg">ord</var> is a reduction ordering if it is well founded and translation invariant.</p>

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

<h5>34.4-4 OrderingOnGenerators</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ OrderingOnGenerators</code>( <var class="Arg">ord</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> on a family of associative words, returns a list in which the generators are considered. This could be indeed the ordering of the generators in the ordering, but, for example, if a weight is associated to each generator then this is not true anymore. See the example for <code class="func">WeightLexOrdering</code> (<a href="chap34_mj.html#X849DD7C6782333D5"><span class="RefLink">34.4-8</span></a>).</p>

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

<h5>34.4-5 LexicographicOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ LexicographicOrdering</code>( <var class="Arg">D</var>[, <var class="Arg">gens</var>] )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Let <var class="Arg">D</var> be a free semigroup, a free monoid, or the elements family of such a domain. Called with only argument <var class="Arg">D</var>, <code class="func">LexicographicOrdering</code> returns the lexicographic ordering on the elements of <var class="Arg">D</var>.</p>

<p>The optional argument <var class="Arg">gens</var> can be either the list of free generators of <var class="Arg">D</var>, in the desired order, or a list of the positions of these generators, in the desired order, and <code class="func">LexicographicOrdering</code> returns the lexicographic ordering on the elements of <var class="Arg">D</var> with the ordering on the generators as given.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeSemigroup(3);</span>
<free semigroup on the generators [ s1, s2, s3 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">lex := LexicographicOrdering(f,[2,3,1]);</span>
Ordering
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(lex,f.2*f.3,f.3);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(lex,f.3,f.2);</span>
false
</pre></div>

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

<h5>34.4-6 ShortLexOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ShortLexOrdering</code>( <var class="Arg">D</var>[, <var class="Arg">gens</var>] )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Let <var class="Arg">D</var> be a free semigroup, a free monoid, or the elements family of such a domain. Called with only argument <var class="Arg">D</var>, <code class="func">ShortLexOrdering</code> returns the shortlex ordering on the elements of <var class="Arg">D</var>.</p>

<p>The optional argument <var class="Arg">gens</var> can be either the list of free generators of <var class="Arg">D</var>, in the desired order, or a list of the positions of these generators, in the desired order, and <code class="func">ShortLexOrdering</code> returns the shortlex ordering on the elements of <var class="Arg">D</var> with the ordering on the generators as given.</p>

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

<h5>34.4-7 IsShortLexOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsShortLexOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> of a family of associative words, returns <code class="keyw">true</code> if and only if <var class="Arg">ord</var> is a shortlex ordering.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeSemigroup(3);</span>
<free semigroup on the generators [ s1, s2, s3 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">sl := ShortLexOrdering(f,[2,3,1]);</span>
Ordering
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(sl,f.1,f.2);</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(sl,f.3,f.2);</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(sl,f.3,f.1);</span>
true
</pre></div>

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

<h5>34.4-8 WeightLexOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ WeightLexOrdering</code>( <var class="Arg">D</var>, <var class="Arg">gens</var>, <var class="Arg">wt</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Let <var class="Arg">D</var> be a free semigroup, a free monoid, or the elements family of such a domain. <var class="Arg">gens</var> can be either the list of free generators of <var class="Arg">D</var>, in the desired order, or a list of the positions of these generators, in the desired order. Let <var class="Arg">wt</var> be a list of weights. <code class="func">WeightLexOrdering</code> returns the weightlex ordering on the elements of <var class="Arg">D</var> with the ordering on the generators and weights of the generators as given.</p>

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

<h5>34.4-9 IsWeightLexOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsWeightLexOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>for an ordering <var class="Arg">ord</var> on a family of associative words, returns <code class="keyw">true</code> if and only if <var class="Arg">ord</var> is a weightlex ordering.</p>

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

<h5>34.4-10 WeightOfGenerators</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ WeightOfGenerators</code>( <var class="Arg">ord</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>for a weightlex ordering <var class="Arg">ord</var>, returns a list with length the size of the alphabet of the family. This list gives the weight of each of the letters of the alphabet which are used for weightlex orderings with respect to the ordering given by <code class="func">OrderingOnGenerators</code> (<a href="chap34_mj.html#X7B6051C282EA88D5"><span class="RefLink">34.4-4</span></a>).</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeSemigroup(3);</span>
<free semigroup on the generators [ s1, s2, s3 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">wtlex := WeightLexOrdering(f,[f.2,f.3,f.1],[3,2,1]);</span>
Ordering
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(wtlex,f.1,f.2);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(wtlex,f.3,f.2);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(wtlex,f.3,f.1);</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">OrderingOnGenerators(wtlex);</span>
[ s2, s3, s1 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">WeightOfGenerators(wtlex);</span>
[ 3, 2, 1 ]
</pre></div>

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

<h5>34.4-11 BasicWreathProductOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ BasicWreathProductOrdering</code>( <var class="Arg">D</var>[, <var class="Arg">gens</var>] )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Let <var class="Arg">D</var> be a free semigroup, a free monoid, or the elements family of such a domain. Called with only argument <var class="Arg">D</var>, <code class="func">BasicWreathProductOrdering</code> returns the basic wreath product ordering on the elements of <var class="Arg">D</var>.</p>

<p>The optional argument <var class="Arg">gens</var> can be either the list of free generators of <var class="Arg">D</var>, in the desired order, or a list of the positions of these generators, in the desired order, and <code class="func">BasicWreathProductOrdering</code> returns the lexicographic ordering on the elements of <var class="Arg">D</var> with the ordering on the generators as given.</p>

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

<h5>34.4-12 IsBasicWreathProductOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsBasicWreathProductOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>

<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeSemigroup(3);</span>
<free semigroup on the generators [ s1, s2, s3 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">basic := BasicWreathProductOrdering(f,[2,3,1]);</span>
Ordering
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(basic,f.3,f.1);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(basic,f.3*f.2,f.1);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(basic,f.3*f.2*f.1,f.1*f.3);</span>
false
</pre></div>

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

<h5>34.4-13 WreathProductOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ WreathProductOrdering</code>( <var class="Arg">D</var>[, <var class="Arg">gens</var>], <var class="Arg">levels</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Let <var class="Arg">D</var> be a free semigroup, a free monoid, or the elements family of such a domain, let <var class="Arg">gens</var> be either the list of free generators of <var class="Arg">D</var>, in the desired order, or a list of the positions of these generators, in the desired order, and let <var class="Arg">levels</var> be a list of levels for the generators. If <var class="Arg">gens</var> is omitted then the default ordering is taken. <code class="func">WreathProductOrdering</code> returns the wreath product ordering on the elements of <var class="Arg">D</var> with the ordering on the generators as given.</p>

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

<h5>34.4-14 IsWreathProductOrdering</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsWreathProductOrdering</code>( <var class="Arg">ord</var> )</td><td class="tdright">( property )</td></tr></table></div>
<p>specifies whether an ordering is a wreath product ordering (see <code class="func">WreathProductOrdering</code> (<a href="chap34_mj.html#X7E6DF1B17F53642E"><span class="RefLink">34.4-13</span></a>)).</p>

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

<h5>34.4-15 LevelsOfGenerators</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ LevelsOfGenerators</code>( <var class="Arg">ord</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>for a wreath product ordering <var class="Arg">ord</var>, returns the levels of the generators as given at creation (with respect to <code class="func">OrderingOnGenerators</code> (<a href="chap34_mj.html#X7B6051C282EA88D5"><span class="RefLink">34.4-4</span></a>)).</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">f := FreeSemigroup(3);</span>
<free semigroup on the generators [ s1, s2, s3 ]>
<span class="GAPprompt">gap></span> <span class="GAPinput">wrp := WreathProductOrdering(f,[1,2,3],[1,1,2,]);</span>
Ordering
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(wrp,f.3,f.1);</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(wrp,f.3,f.2);</span>
false
<span class="GAPprompt">gap></span> <span class="GAPinput">IsLessThanUnder(wrp,f.1,f.2);</span>
true
<span class="GAPprompt">gap></span> <span class="GAPinput">LevelsOfGenerators(wrp);</span>
[ 1, 1, 2 ]
</pre></div>


<div class="chlinkprevnextbot"> <a href="chap0_mj.html">[Top of Book]</a>   <a href="chap0_mj.html#contents">[Contents]</a>    <a href="chap33_mj.html">[Previous Chapter]</a>    <a href="chap35_mj.html">[Next Chapter]</a>   </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0_mj.html">Top</a>  <a href="chap1_mj.html">1</a>  <a href="chap2_mj.html">2</a>  <a href="chap3_mj.html">3</a>  <a href="chap4_mj.html">4</a>  <a href="chap5_mj.html">5</a>  <a href="chap6_mj.html">6</a>  <a href="chap7_mj.html">7</a>  <a href="chap8_mj.html">8</a>  <a href="chap9_mj.html">9</a>  <a href="chap10_mj.html">10</a>  <a href="chap11_mj.html">11</a>  <a href="chap12_mj.html">12</a>  <a href="chap13_mj.html">13</a>  <a href="chap14_mj.html">14</a>  <a href="chap15_mj.html">15</a>  <a href="chap16_mj.html">16</a>  <a href="chap17_mj.html">17</a>  <a href="chap18_mj.html">18</a>  <a href="chap19_mj.html">19</a>  <a href="chap20_mj.html">20</a>  <a href="chap21_mj.html">21</a>  <a href="chap22_mj.html">22</a>  <a href="chap23_mj.html">23</a>  <a href="chap24_mj.html">24</a>  <a href="chap25_mj.html">25</a>  <a href="chap26_mj.html">26</a>  <a href="chap27_mj.html">27</a>  <a href="chap28_mj.html">28</a>  <a href="chap29_mj.html">29</a>  <a href="chap30_mj.html">30</a>  <a href="chap31_mj.html">31</a>  <a href="chap32_mj.html">32</a>  <a href="chap33_mj.html">33</a>  <a href="chap34_mj.html">34</a>  <a href="chap35_mj.html">35</a>  <a href="chap36_mj.html">36</a>  <a href="chap37_mj.html">37</a>  <a href="chap38_mj.html">38</a>  <a href="chap39_mj.html">39</a>  <a href="chap40_mj.html">40</a>  <a href="chap41_mj.html">41</a>  <a href="chap42_mj.html">42</a>  <a href="chap43_mj.html">43</a>  <a href="chap44_mj.html">44</a>  <a href="chap45_mj.html">45</a>  <a href="chap46_mj.html">46</a>  <a href="chap47_mj.html">47</a>  <a href="chap48_mj.html">48</a>  <a href="chap49_mj.html">49</a>  <a href="chap50_mj.html">50</a>  <a href="chap51_mj.html">51</a>  <a href="chap52_mj.html">52</a>  <a href="chap53_mj.html">53</a>  <a href="chap54_mj.html">54</a>  <a href="chap55_mj.html">55</a>  <a href="chap56_mj.html">56</a>  <a href="chap57_mj.html">57</a>  <a href="chap58_mj.html">58</a>  <a href="chap59_mj.html">59</a>  <a href="chap60_mj.html">60</a>  <a href="chap61_mj.html">61</a>  <a href="chap62_mj.html">62</a>  <a href="chap63_mj.html">63</a>  <a href="chap64_mj.html">64</a>  <a href="chap65_mj.html">65</a>  <a href="chap66_mj.html">66</a>  <a href="chap67_mj.html">67</a>  <a href="chap68_mj.html">68</a>  <a href="chap69_mj.html">69</a>  <a href="chap70_mj.html">70</a>  <a href="chap71_mj.html">71</a>  <a href="chap72_mj.html">72</a>  <a href="chap73_mj.html">73</a>  <a href="chap74_mj.html">74</a>  <a href="chap75_mj.html">75</a>  <a href="chap76_mj.html">76</a>  <a href="chap77_mj.html">77</a>  <a href="chap78_mj.html">78</a>  <a href="chap79_mj.html">79</a>  <a href="chap80_mj.html">80</a>  <a href="chap81_mj.html">81</a>  <a href="chap82_mj.html">82</a>  <a href="chap83_mj.html">83</a>  <a href="chap84_mj.html">84</a>  <a href="chap85_mj.html">85</a>  <a href="chap86_mj.html">86</a>  <a href="chap87_mj.html">87</a>  <a href="chapBib_mj.html">Bib</a>  <a href="chapInd_mj.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>

100%


¤ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.