Debian Codegraph @

doc/ref/chap41.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
7 <head>
8 <title>GAP (ref) - Chapter 41: Group Actions</title>
9 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
10 <meta name="generator" content="GAPDoc2HTML" />
11 <link rel="stylesheet" type="text/css" href="manual.css" />
12 <script src="manual.js" type="text/javascript"></script>
13 <script type="text/javascript">overwriteStyle();</script>
14 </head>
15 <body class="chap41" onload="jscontent()">
16
17
18 <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>
19
20 <div class="chlinkprevnexttop">&nbsp;<a href="chap0.html">[Top of Book]</a>&nbsp; <a href="chap0.html#contents">[Contents]</a>&nbsp; &nbsp;<a href="chap40.html">[Previous Chapter]</a>&nbsp; &nbsp;<a href="chap42.html">[Next Chapter]</a>&nbsp; </div>
21
22 <p id="mathjaxlink" class="pcenter"><a href="chap41_mj.html">[MathJax on]</a></p>
23 <p><a id="X87115591851FB7F4" name="X87115591851FB7F4"></a></p>
24 <div class="ChapSects"><a href="chap41.html#X87115591851FB7F4">41 <span class="Heading">Group Actions</span></a>
25 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X83661AFD7B7BD1D9">41.1 <span class="Heading">About Group Actions</span></a>
26 </span>
27 </div>
28 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X81B8F9CD868CD953">41.2 <span class="Heading">Basic Actions</span></a>
29 </span>
30 <div class="ContSSBlock">
31 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7FE417DD837987B4">41.2-1 OnPoints</a></span>
32 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7960924D84B5B18F">41.2-2 OnRight</a></span>
33 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X832DF5327ECA0E44">41.2-3 OnLeftInverse</a></span>
34 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X85AA04347CD117F9">41.2-4 OnSets</a></span>
35 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X832CC5F87EEA4A7E">41.2-5 OnTuples</a></span>
36 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X80DAA1D2855B1456">41.2-6 OnPairs</a></span>
37 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7C10492081D72376">41.2-7 OnSetsSets</a></span>
38 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7E23686E7A9D3A20">41.2-8 OnSetsDisjointSets</a></span>
39 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7ADE244E819035FF">41.2-9 OnSetsTuples</a></span>
40 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7FF556CD7E6739A9">41.2-10 OnTuplesSets</a></span>
41 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X844E902382EB4151">41.2-11 OnTuplesTuples</a></span>
42 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X86DC2DD5829CAD9A">41.2-12 OnLines</a></span>
43 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7FA394D27E721E2B">41.2-13 OnIndeterminates</a></span>
44 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7BA8D76586F1F06E">41.2-14 Permuted</a></span>
45 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X85124D197F0F9C4D">41.2-15 OnSubspacesByCanonicalBasis</a></span>
46 </div></div>
47 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X82181CA07A5B2056">41.3 <span class="Heading">Action on canonical representatives</span></a>
48 </span>
49 </div>
50 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X81E0FF0587C54543">41.4 <span class="Heading">Orbits</span></a>
51 </span>
52 <div class="ContSSBlock">
53 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X80E0234E7BD79409">41.4-1 Orbit</a></span>
54 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X86BCAE17869BBEAA">41.4-2 Orbits</a></span>
55 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X86BC8B958123F953">41.4-3 <span class="Heading">OrbitsDomain</span></a>
56 </span>
57 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X799910CF832EDC45">41.4-4 OrbitLength</a></span>
58 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8032F73078DF2DDB">41.4-5 <span class="Heading">OrbitLengths</span></a>
59 </span>
60 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8520E2487F7E98AF">41.4-6 <span class="Heading">OrbitLengthsDomain</span></a>
61 </span>
62 </div></div>
63 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X797BD60E7ACEF1B1">41.5 <span class="Heading">Stabilizers</span></a>
64 </span>
65 <div class="ContSSBlock">
66 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7C34EC437EF598BF">41.5-1 OrbitStabilizer</a></span>
67 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X86FB962786397E02">41.5-2 Stabilizer</a></span>
68 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X78C3A8568414BC44">41.5-3 OrbitStabilizerAlgorithm</a></span>
69 </div></div>
70 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X7A9389097BAF670D">41.6 <span class="Heading">Elements with Prescribed Images</span></a>
71 </span>
72 <div class="ContSSBlock">
73 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X857DC7B085EB0539">41.6-1 RepresentativeAction</a></span>
74 </div></div>
75 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X87F73CCA7921DE65">41.7 <span class="Heading">The Permutation Image of an Action</span></a>
76 </span>
77 <div class="ContSSBlock">
78 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X78E6A002835288A4">41.7-1 <span class="Heading">ActionHomomorphism</span></a>
79 </span>
80 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X85A8E93D786C3C9C">41.7-2 Action</a></span>
81 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X86FF54A383B73967">41.7-3 SparseActionHomomorphism</a></span>
82 </div></div>
83 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X7FED50ED7ACA5FB2">41.8 <span class="Heading">Action of a group on itself</span></a>
84 </span>
85 <div class="ContSSBlock">
86 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X784D417D87F4E58D">41.8-1 FactorCosetAction</a></span>
87 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8561DEBA79E01ABD">41.8-2 RegularActionHomomorphism</a></span>
88 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X835317A7847477D4">41.8-3 AbelianSubfactorAction</a></span>
89 </div></div>
90 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X807AA91E841D132B">41.9 <span class="Heading">Permutations Induced by Elements and Cycles</span></a>
91 </span>
92 <div class="ContSSBlock">
93 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7807A33381DCAB26">41.9-1 <span class="Heading">Permutation</span></a>
94 </span>
95 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X81D4EA42810974A0">41.9-2 PermutationCycle</a></span>
96 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X80AF6E0683CA7F14">41.9-3 Cycle</a></span>
97 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7F559E897B333758">41.9-4 CycleLength</a></span>
98 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7F3B387A7FD8AE5E">41.9-5 Cycles</a></span>
99 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X83040A6080C2C6C6">41.9-6 CycleLengths</a></span>
100 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X87FDA6838065CDCB">41.9-7 <span class="Heading">CycleIndex</span></a>
101 </span>
102 </div></div>
103 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X850A84618421392A">41.10 <span class="Heading">Tests for Actions</span></a>
104 </span>
105 <div class="ContSSBlock">
106 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X79B15750851828CB">41.10-1 <span class="Heading">IsTransitive</span></a>
107 </span>
108 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8295D733796B7A37">41.10-2 <span class="Heading">Transitivity</span></a>
109 </span>
110 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8166A6A17C8D6E73">41.10-3 <span class="Heading">RankAction</span></a>
111 </span>
112 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7B77040F8543CD6E">41.10-4 <span class="Heading">IsSemiRegular</span></a>
113 </span>
114 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7CF02C4785F0EAB5">41.10-5 <span class="Heading">IsRegular</span></a>
115 </span>
116 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7CB1D74280F92AFC">41.10-6 <span class="Heading">Earns</span></a>
117 </span>
118 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X84C19AD68247B760">41.10-7 <span class="Heading">IsPrimitive</span></a>
119 </span>
120 </div></div>
121 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X7E9D3D0B7A9A8572">41.11 <span class="Heading">Block Systems</span></a>
122 </span>
123 <div class="ContSSBlock">
124 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X84FE699F85371643">41.11-1 <span class="Heading">Blocks</span></a>
125 </span>
126 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X79936EB97AAD1144">41.11-2 <span class="Heading">MaximalBlocks</span></a>
127 </span>
128 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7941DB6380B74510">41.11-3 <span class="Heading">RepresentativesMinimalBlocks</span></a>
129 </span>
130 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X835658B07B28EF3B">41.11-4 AllBlocks</a></span>
131 </div></div>
132 <div class="ContSect"><span class="tocline"><span class="nocss">&nbsp;</span><a href="chap41.html#X7FD3D2D2788709B7">41.12 <span class="Heading">External Sets</span></a>
133 </span>
134 <div class="ContSSBlock">
135 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8264C3C479FF0A8B">41.12-1 IsExternalSet</a></span>
136 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7C90F648793E47DD">41.12-2 ExternalSet</a></span>
137 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7B9DB15D80CE28B4">41.12-3 ActingDomain</a></span>
138 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X86153CB087394DC1">41.12-4 FunctionAction</a></span>
139 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X86A0CC1479A5932A">41.12-5 HomeEnumerator</a></span>
140 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X879DE63C7858453C">41.12-6 IsExternalSubset</a></span>
141 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X87D1EA1486D86233">41.12-7 ExternalSubset</a></span>
142 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7E081F568407317F">41.12-8 IsExternalOrbit</a></span>
143 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7FB656AE7A066C35">41.12-9 ExternalOrbit</a></span>
144 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7BAFF02B7D6DF9F2">41.12-10 StabilizerOfExternalSet</a></span>
145 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X867262FA82FDD592">41.12-11 <span class="Heading">ExternalOrbits</span></a>
146 </span>
147 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7A64EF807CE8893E">41.12-12 <span class="Heading">ExternalOrbitsStabilizers</span></a>
148 </span>
149 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8048AE727A7F1A2F">41.12-13 CanonicalRepresentativeOfExternalSet</a></span>
150 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8071A8D784DC8325">41.12-14 CanonicalRepresentativeDeterminatorOfExternalSet</a></span>
151 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X85E9A6A77B8D00B8">41.12-15 ActorOfExternalSet</a></span>
152 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X8190A8247F29A5C7">41.12-16 UnderlyingExternalSet</a></span>
153 <span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chap41.html#X7A3D87DE809FBFD4">41.12-17 SurjectiveActionHomomorphismAttr</a></span>
154 </div></div>
155 </div>
156
157 <h3>41 <span class="Heading">Group Actions</span></h3>
158
159 <p>A <em>group action</em> is a triple <span class="SimpleMath">(G, Ω, μ)</span>, where <span class="SimpleMath">G</span> is a group, <span class="SimpleMath">Ω</span> a set and <span class="SimpleMath">μ : Ω × G → Ω</span> a function that is compatible with the group arithmetic. We call <span class="SimpleMath">Ω</span> the <em>domain</em> of the action.</p>
160
161 <p>In <strong class="pkg">GAP</strong>, <span class="SimpleMath">Ω</span> can be a duplicate-free collection (an object that permits access to its elements via the <span class="SimpleMath">Ω[n]</span> operation, for example a list), it does not need to be sorted (see <code class="func">IsSet</code> (<a href="chap21.html#X80CDAF45782E8DCB"><span class="RefLink">21.17-4</span></a>)).</p>
162
163 <p>The acting function <span class="SimpleMath">μ</span> is a binary <strong class="pkg">GAP</strong> function that returns the image <span class="SimpleMath">μ( x, g )</span> for a point <span class="SimpleMath">x ∈ Ω</span> and a group element <span class="SimpleMath">g ∈ G</span>.</p>
164
165 <p>In <strong class="pkg">GAP</strong>, groups always act from the right, that is <span class="SimpleMath">μ( μ( x, g ), h ) = μ( x, gh )</span>.</p>
166
167 <p><strong class="pkg">GAP</strong> does not test whether the acting function <span class="SimpleMath">μ</span> satisfies the conditions for a group operation but silently assumes that is does. (If it does not, results are unpredictable.)</p>
168
169 <p>The first section of this chapter, <a href="chap41.html#X83661AFD7B7BD1D9"><span class="RefLink">41.1</span></a>, describes the various ways how operations for group actions can be called.</p>
170
171 <p>Functions for several commonly used action are already built into <strong class="pkg">GAP</strong>. These are listed in section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a>.</p>
172
173 <p>The sections <a href="chap41.html#X87F73CCA7921DE65"><span class="RefLink">41.7</span></a> and <a href="chap41.html#X7FED50ED7ACA5FB2"><span class="RefLink">41.8</span></a> describe homomorphisms and mappings associated to group actions as well as the permutation group image of an action.</p>
174
175 <p>The other sections then describe operations to compute orbits, stabilizers, as well as properties of actions.</p>
176
177 <p>Finally section <a href="chap41.html#X7FD3D2D2788709B7"><span class="RefLink">41.12</span></a> describes the concept of <q>external sets</q> which represent the concept of a <em><span class="SimpleMath">G</span>-set</em> and underly the actions mechanism.</p>
178
179 <p><a id="X83661AFD7B7BD1D9" name="X83661AFD7B7BD1D9"></a></p>
180
181 <h4>41.1 <span class="Heading">About Group Actions</span></h4>
182
183 <p>The syntax which is used by the operations for group actions is quite flexible. For example we can call the operation <code class="func">OrbitsDomain</code> (<a href="chap41.html#X86BC8B958123F953"><span class="RefLink">41.4-3</span></a>) for the orbits of the group <var class="Arg">G</var> on the domain <var class="Arg">Omega</var> in the following ways:</p>
184
185
186 <dl>
187 <dt><strong class="Mark"><code class="code">OrbitsDomain</code><span class="SimpleMath">( G, Ω[, μ] )</span></strong></dt>
188 <dd><p>The acting function <span class="SimpleMath">μ</span> is optional. If it is not given, the built-in action <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>) (which defines an action via the caret operator <code class="code">^</code>) is used as a default.</p>
189
190 </dd>
191 <dt><strong class="Mark"><code class="code">OrbitsDomain</code><span class="SimpleMath">( G, Ω, gens, acts[, μ] )</span></strong></dt>
192 <dd><p>This second version of <code class="func">OrbitsDomain</code> (<a href="chap41.html#X86BC8B958123F953"><span class="RefLink">41.4-3</span></a>) permits one to implement an action induced by a homomorphism: If the group <span class="SimpleMath">H</span> acts on <span class="SimpleMath">Ω</span> via <span class="SimpleMath">μ</span> and <span class="SimpleMath">φ : G → H</span> is a homomorphism, <span class="SimpleMath">G</span> acts on <span class="SimpleMath">Ω</span> via the induced action <span class="SimpleMath">μ'( x, g ) = μ( x, g^φ )</span>.</p>
193
194 <p>Here <span class="SimpleMath">gens</span> must be a set of generators of <span class="SimpleMath">G</span> and <span class="SimpleMath">acts</span> the images of <span class="SimpleMath">gens</span> under <span class="SimpleMath">φ</span>. <span class="SimpleMath">μ</span> is the acting function for <span class="SimpleMath">H</span>. Again, the function <span class="SimpleMath">μ</span> is optional and <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>) is used as a default.</p>
195
196 <p>The advantage of this notation is that <strong class="pkg">GAP</strong> does not need to construct this homomorphism <span class="SimpleMath">φ</span> and the range group <var class="Arg">H</var> as <strong class="pkg">GAP</strong> objects. (If a small group <span class="SimpleMath">G</span> acts via complicated objects <span class="SimpleMath">acts</span> this otherwise could lead to performance problems.)</p>
197
198 <p><strong class="pkg">GAP</strong> does not test whether the mapping <span class="SimpleMath">gens ↦ acts</span> actually induces a homomorphism and the results are unpredictable if this is not the case.</p>
199
200 </dd>
201 <dt><strong class="Mark"><code class="code">OrbitsDomain</code><span class="SimpleMath">( xset )</span></strong></dt>
202 <dd><p>A third variant is to call the operation with an external set, which then provides <span class="SimpleMath">G</span>, <span class="SimpleMath">Ω</span> and <span class="SimpleMath">μ</span>. You will find more about external sets in Section <a href="chap41.html#X7FD3D2D2788709B7"><span class="RefLink">41.12</span></a>.</p>
203
204 </dd>
205 </dl>
206 <p>For operations like <code class="func">Stabilizer</code> (<a href="chap41.html#X86FB962786397E02"><span class="RefLink">41.5-2</span></a>) of course the domain must be replaced by an element of the domain of the action.</p>
207
208 <p><a id="X81B8F9CD868CD953" name="X81B8F9CD868CD953"></a></p>
209
210 <h4>41.2 <span class="Heading">Basic Actions</span></h4>
211
212 <p><strong class="pkg">GAP</strong> already provides acting functions for the more common actions of a group. For built-in operations such as <code class="func">Stabilizer</code> (<a href="chap41.html#X86FB962786397E02"><span class="RefLink">41.5-2</span></a>) special methods are available for many of these actions.</p>
213
214 <p>If one needs an action for which no acting function is provided by the library it can be implemented via a <strong class="pkg">GAP</strong> function that conforms to the syntax</p>
215
216 <p><code class="code">actfun( omega, g )</code></p>
217
218 <p>where <code class="code">omega</code> is an element of the action domain, <code class="code">g</code> is an element of the acting group, and the return value is the image of <code class="code">omega</code> under <code class="code">g</code>.</p>
219
220 <p>For example one could define the following function that acts on pairs of polynomials via <code class="func">OnIndeterminates</code> (<a href="chap41.html#X7FA394D27E721E2B"><span class="RefLink">41.2-13</span></a>):</p>
221
222
223 <div class="example"><pre>
224 OnIndeterminatesPairs:= function( polypair, g )
225 return [ OnIndeterminates( polypair[1], g ),
226 OnIndeterminates( polypair[2], g ) ];
227 end;
228 </pre></div>
229
230 <p>Note that this function <em>must</em> implement a group action from the <em>right</em>. This is not verified by <strong class="pkg">GAP</strong> and results are unpredictable otherwise.</p>
231
232 <p><a id="X7FE417DD837987B4" name="X7FE417DD837987B4"></a></p>
233
234 <h5>41.2-1 OnPoints</h5>
235
236 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnPoints</code>( <var class="Arg">pnt</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
237 <p>returns <code class="code"><var class="Arg">pnt</var> ^ <var class="Arg">g</var></code>. This is for example the action of a permutation group on points, or the action of a group on its elements via conjugation, that is, if both <var class="Arg">pnt</var> and <var class="Arg">g</var> are elements from a common group then <code class="code"><var class="Arg">pnt</var> ^ <var class="Arg">g</var></code> is equal to <var class="Arg">g</var><span class="SimpleMath">^{-1}</span><code class="code">*</code><var class="Arg">pnt</var><code class="code">*</code><var class="Arg">g</var>. The action of a matrix group on vectors from the right is described by both <code class="func">OnPoints</code> and <code class="func">OnRight</code> (<a href="chap41.html#X7960924D84B5B18F"><span class="RefLink">41.2-2</span></a>).</p>
238
239
240 <div class="example"><pre>
241 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnPoints( 1, (1,2,3) );</span>
242 2
243 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnPoints( (1,2), (1,2,3) );</span>
244 (2,3)
245 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
246 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, 1, OnPoints );</span>
247 [ 1, 2, 3, 4 ]
248 </pre></div>
249
250 <p><a id="X7960924D84B5B18F" name="X7960924D84B5B18F"></a></p>
251
252 <h5>41.2-2 OnRight</h5>
253
254 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnRight</code>( <var class="Arg">pnt</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
255 <p>returns <code class="code"><var class="Arg">pnt</var> * <var class="Arg">g</var></code>. This is for example the action of a group on its elements via right multiplication, or the action of a group on the cosets of a subgroup. The action of a matrix group on vectors from the right is described by both <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>) and <code class="func">OnRight</code>.</p>
256
257
258 <div class="example"><pre>
259 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnRight( [ 1, 2 ], [ [ 1, 2 ], [ 3, 4 ] ] );</span>
260 [ 7, 10 ]
261 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnRight( (1,2,3), (2,3,4) );</span>
262 (1,3)(2,4)
263 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
264 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, (), OnRight );</span>
265 [ (), (1,2,3), (2,3,4), (1,3,2), (1,3)(2,4), (1,2)(3,4), (2,4,3),
266 (1,4,2), (1,4,3), (1,3,4), (1,2,4), (1,4)(2,3) ]
267 </pre></div>
268
269 <p><a id="X832DF5327ECA0E44" name="X832DF5327ECA0E44"></a></p>
270
271 <h5>41.2-3 OnLeftInverse</h5>
272
273 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnLeftInverse</code>( <var class="Arg">pnt</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
274 <p>returns <span class="SimpleMath"><var class="Arg">g</var>^{-1}</span> <code class="code">* <var class="Arg">pnt</var></code>. Forming the inverse is necessary to make this a proper action, as in <strong class="pkg">GAP</strong> groups always act from the right.</p>
275
276 <p><code class="func">OnLeftInverse</code> is used for example in the representation of a right coset as an external set (see <a href="chap41.html#X7FD3D2D2788709B7"><span class="RefLink">41.12</span></a>), that is, a right coset <span class="SimpleMath">Ug</span> is an external set for the group <span class="SimpleMath">U</span> acting on it via <code class="func">OnLeftInverse</code>.)</p>
277
278
279 <div class="example"><pre>
280 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnLeftInverse( [ 1, 2 ], [ [ 1, 2 ], [ 3, 4 ] ] );</span>
281 [ 0, 1/2 ]
282 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnLeftInverse( (1,2,3), (2,3,4) );</span>
283 (1,2,4)
284 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
285 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, (), OnLeftInverse );</span>
286 [ (), (1,3,2), (2,4,3), (1,2,3), (1,3)(2,4), (1,2)(3,4), (2,3,4),
287 (1,2,4), (1,3,4), (1,4,3), (1,4,2), (1,4)(2,3) ]
288 </pre></div>
289
290 <p><a id="X85AA04347CD117F9" name="X85AA04347CD117F9"></a></p>
291
292 <h5>41.2-4 OnSets</h5>
293
294 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnSets</code>( <var class="Arg">set</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
295 <p>Let <var class="Arg">set</var> be a proper set (see <a href="chap21.html#X80ABC25582343910"><span class="RefLink">21.19</span></a>). <code class="func">OnSets</code> returns the proper set formed by the images of all points <span class="SimpleMath">x</span> of <var class="Arg">set</var> via the action function <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>), applied to <span class="SimpleMath">x</span> and <var class="Arg">g</var>.</p>
296
297 <p><code class="func">OnSets</code> is for example used to compute the action of a permutation group on blocks.</p>
298
299 <p>(<code class="func">OnTuples</code> (<a href="chap41.html#X832CC5F87EEA4A7E"><span class="RefLink">41.2-5</span></a>) is an action on lists that preserves the ordering of entries.)</p>
300
301
302 <div class="example"><pre>
303 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnSets( [ 1, 3 ], (1,2,3) );</span>
304 [ 1, 2 ]
305 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnSets( [ (2,3), (1,2) ], (1,2,3) );</span>
306 [ (2,3), (1,3) ]
307 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
308 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, [ 1, 2 ], OnSets );</span>
309 [ [ 1, 2 ], [ 2, 3 ], [ 1, 3 ], [ 3, 4 ], [ 1, 4 ], [ 2, 4 ] ]
310 </pre></div>
311
312 <p><a id="X832CC5F87EEA4A7E" name="X832CC5F87EEA4A7E"></a></p>
313
314 <h5>41.2-5 OnTuples</h5>
315
316 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnTuples</code>( <var class="Arg">tup</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
317 <p>Let <var class="Arg">tup</var> be a list. <code class="func">OnTuples</code> returns the list formed by the images of all points <span class="SimpleMath">x</span> of <var class="Arg">tup</var> via the action function <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>), applied to <span class="SimpleMath">x</span> and <var class="Arg">g</var>.</p>
318
319 <p>(<code class="func">OnSets</code> (<a href="chap41.html#X85AA04347CD117F9"><span class="RefLink">41.2-4</span></a>) is an action on lists that additionally sorts the entries of the result.)</p>
320
321
322 <div class="example"><pre>
323 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnTuples( [ 1, 3 ], (1,2,3) );</span>
324 [ 2, 1 ]
325 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnTuples( [ (2,3), (1,2) ], (1,2,3) );</span>
326 [ (1,3), (2,3) ]
327 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
328 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, [ 1, 2 ], OnTuples );</span>
329 [ [ 1, 2 ], [ 2, 3 ], [ 1, 3 ], [ 3, 1 ], [ 3, 4 ], [ 2, 1 ],
330 [ 1, 4 ], [ 4, 1 ], [ 4, 2 ], [ 3, 2 ], [ 2, 4 ], [ 4, 3 ] ]
331 </pre></div>
332
333 <p><a id="X80DAA1D2855B1456" name="X80DAA1D2855B1456"></a></p>
334
335 <h5>41.2-6 OnPairs</h5>
336
337 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnPairs</code>( <var class="Arg">tup</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
338 <p>is a special case of <code class="func">OnTuples</code> (<a href="chap41.html#X832CC5F87EEA4A7E"><span class="RefLink">41.2-5</span></a>) for lists <var class="Arg">tup</var> of length 2.</p>
339
340 <p><a id="X7C10492081D72376" name="X7C10492081D72376"></a></p>
341
342 <h5>41.2-7 OnSetsSets</h5>
343
344 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnSetsSets</code>( <var class="Arg">set</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
345 <p>implements the action on sets of sets. <var class="Arg">set</var> must be a proper set whose entries are again proper sets (see <a href="chap21.html#X80ABC25582343910"><span class="RefLink">21.19</span></a>).</p>
346
347 <p><code class="func">OnSetsSets</code> returns the proper set whose elements are the images obtained by applying the action function <code class="func">OnSets</code> (<a href="chap41.html#X85AA04347CD117F9"><span class="RefLink">41.2-4</span></a>) to <span class="SimpleMath">x</span> and <var class="Arg">g</var>, for each element <span class="SimpleMath">x</span> of <var class="Arg">set</var>.</p>
348
349 <p>For the special case that the elements of <var class="Arg">set</var> are pairwise disjoint, it is possible to use <code class="func">OnSetsDisjointSets</code> (<a href="chap41.html#X7E23686E7A9D3A20"><span class="RefLink">41.2-8</span></a>).</p>
350
351
352 <div class="example"><pre>
353 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnSetsSets( [ [ 1, 2 ], [ 3, 4 ] ], (1,2,3) );</span>
354 [ [ 1, 4 ], [ 2, 3 ] ]
355 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
356 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, [ [ 1, 2 ], [ 3, 4 ] ], OnSetsSets );</span>
357 [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 1, 4 ], [ 2, 3 ] ],
358 [ [ 1, 3 ], [ 2, 4 ] ] ]
359 </pre></div>
360
361 <p><a id="X7E23686E7A9D3A20" name="X7E23686E7A9D3A20"></a></p>
362
363 <h5>41.2-8 OnSetsDisjointSets</h5>
364
365 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnSetsDisjointSets</code>( <var class="Arg">set</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
366 <p>implements the action on sets of pairwise disjoint sets (see also <code class="func">OnSetsSets</code> (<a href="chap41.html#X7C10492081D72376"><span class="RefLink">41.2-7</span></a>)). <var class="Arg">set</var> must be a proper set whose entries are pairwise disjoint proper sets. However, it is <em>not</em> checked that the entries of <var class="Arg">set</var> are indeed pairwise disjoint.</p>
367
368 <p><code class="func">OnSetsDisjointSets</code> returns the proper set whose elements are the images obtained by applying the action function <code class="func">OnSets</code> (<a href="chap41.html#X85AA04347CD117F9"><span class="RefLink">41.2-4</span></a>) to <span class="SimpleMath">x</span> and <var class="Arg">g</var>, for each element <span class="SimpleMath">x</span> of <var class="Arg">set</var>.</p>
369
370 <p><a id="X7ADE244E819035FF" name="X7ADE244E819035FF"></a></p>
371
372 <h5>41.2-9 OnSetsTuples</h5>
373
374 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnSetsTuples</code>( <var class="Arg">set</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
375 <p>implements the action on sets of tuples. <var class="Arg">set</var> must be a proper set of lists without holes (see <a href="chap21.html#X80ABC25582343910"><span class="RefLink">21.19</span></a>).</p>
376
377 <p><code class="func">OnSetsTuples</code> returns the proper set whose elements are the images obtained by applying the action function <code class="func">OnTuples</code> (<a href="chap41.html#X832CC5F87EEA4A7E"><span class="RefLink">41.2-5</span></a>) to <span class="SimpleMath">x</span> and <var class="Arg">g</var>, for each element <span class="SimpleMath">x</span> of <var class="Arg">set</var>.</p>
378
379
380 <div class="example"><pre>
381 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnSetsTuples( [ [ 1, 2 ], [ 3, 4 ] ], (1,2,3) );</span>
382 [ [ 1, 4 ], [ 2, 3 ] ]
383 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
384 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, [ [ 1, 2 ], [ 3, 4 ] ], OnSetsTuples );</span>
385 [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 1, 4 ], [ 2, 3 ] ],
386 [ [ 1, 3 ], [ 4, 2 ] ], [ [ 2, 4 ], [ 3, 1 ] ],
387 [ [ 2, 1 ], [ 4, 3 ] ], [ [ 3, 2 ], [ 4, 1 ] ] ]
388 </pre></div>
389
390 <p><a id="X7FF556CD7E6739A9" name="X7FF556CD7E6739A9"></a></p>
391
392 <h5>41.2-10 OnTuplesSets</h5>
393
394 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnTuplesSets</code>( <var class="Arg">tup</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
395 <p>implements the action on tuples of sets. <var class="Arg">tup</var> must be a list without holes whose entries are proper sets (see <a href="chap21.html#X80ABC25582343910"><span class="RefLink">21.19</span></a>).</p>
396
397 <p><code class="func">OnTuplesSets</code> returns the list of the corresponding images obtained by applying the action function <code class="func">OnSets</code> (<a href="chap41.html#X85AA04347CD117F9"><span class="RefLink">41.2-4</span></a>) to <span class="SimpleMath">x</span> and <var class="Arg">g</var>, for each entry <span class="SimpleMath">x</span> of <var class="Arg">tup</var>.</p>
398
399
400 <div class="example"><pre>
401 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnTuplesSets( [ [ 2, 3 ], [ 3, 4 ] ], (1,2,3) );</span>
402 [ [ 1, 3 ], [ 1, 4 ] ]
403 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:= Group( (1,2,3), (2,3,4) );;</span>
404 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit( g, [ [ 1, 2 ], [ 3, 4 ] ], OnTuplesSets );</span>
405 [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 2, 3 ], [ 1, 4 ] ],
406 [ [ 1, 3 ], [ 2, 4 ] ], [ [ 3, 4 ], [ 1, 2 ] ],
407 [ [ 1, 4 ], [ 2, 3 ] ], [ [ 2, 4 ], [ 1, 3 ] ] ]
408 </pre></div>
409
410 <p><a id="X844E902382EB4151" name="X844E902382EB4151"></a></p>
411
412 <h5>41.2-11 OnTuplesTuples</h5>
413
414 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnTuplesTuples</code>( <var class="Arg">tup</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
415 <p>implements the action on tuples of tuples. <var class="Arg">tup</var> must be a list without holes whose entries are again lists without holes.</p>
416
417 <p><code class="func">OnTuplesTuples</code> returns the list of the corresponding images obtained by applying the action function <code class="func">OnTuples</code> (<a href="chap41.html#X832CC5F87EEA4A7E"><span class="RefLink">41.2-5</span></a>) to <span class="SimpleMath">x</span> and <var class="Arg">g</var>, for each entry <span class="SimpleMath">x</span> of the list <var class="Arg">tup</var>.</p>
418
419
420 <div class="example"><pre>
421 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnTuplesTuples( [ [ 2, 3 ], [ 3, 4 ] ], (1,2,3) );</span>
422 [ [ 3, 1 ], [ 1, 4 ] ]
423 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3),(2,3,4));;</span>
424 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit(g,[[1,2],[3,4]],OnTuplesTuples);</span>
425 [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 2, 3 ], [ 1, 4 ] ],
426 [ [ 1, 3 ], [ 4, 2 ] ], [ [ 3, 1 ], [ 2, 4 ] ],
427 [ [ 3, 4 ], [ 1, 2 ] ], [ [ 2, 1 ], [ 4, 3 ] ],
428 [ [ 1, 4 ], [ 2, 3 ] ], [ [ 4, 1 ], [ 3, 2 ] ],
429 [ [ 4, 2 ], [ 1, 3 ] ], [ [ 3, 2 ], [ 4, 1 ] ],
430 [ [ 2, 4 ], [ 3, 1 ] ], [ [ 4, 3 ], [ 2, 1 ] ] ]
431 </pre></div>
432
433 <p><a id="X86DC2DD5829CAD9A" name="X86DC2DD5829CAD9A"></a></p>
434
435 <h5>41.2-12 OnLines</h5>
436
437 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnLines</code>( <var class="Arg">vec</var>, <var class="Arg">g</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
438 <p>Let <var class="Arg">vec</var> be a <em>normed</em> row vector, that is, its first nonzero entry is normed to the identity of the relevant field, see <code class="func">NormedRowVector</code> (<a href="chap23.html#X785DC60D8482695D"><span class="RefLink">23.2-1</span></a>). The function <code class="func">OnLines</code> returns the row vector obtained from first multiplying <var class="Arg">vec</var> from the right with <var class="Arg">g</var> (via <code class="func">OnRight</code> (<a href="chap41.html#X7960924D84B5B18F"><span class="RefLink">41.2-2</span></a>)) and then normalizing the resulting row vector by scalar multiplication from the left.</p>
439
440 <p>This action corresponds to the projective action of a matrix group on one-dimensional subspaces.</p>
441
442 <p>If <var class="Arg">vec</var> is a zero vector or is not normed then an error is triggered (see <a href="chap41.html#X82181CA07A5B2056"><span class="RefLink">41.3</span></a>).</p>
443
444
445 <div class="example"><pre>
446 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnLines( [ 1, 2 ], [ [ 1, 2 ], [ 3, 4 ] ] );</span>
447 [ 1, 10/7 ]
448 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">gl:=GL(2,5);;v:=[1,0]*Z(5)^0;</span>
449 [ Z(5)^0, 0*Z(5) ]
450 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">h:=Action(gl,Orbit(gl,v,OnLines),OnLines);</span>
451 Group([ (2,3,5,6), (1,2,4)(3,6,5) ])
452 </pre></div>
453
454 <p><a id="X7FA394D27E721E2B" name="X7FA394D27E721E2B"></a></p>
455
456 <h5>41.2-13 OnIndeterminates</h5>
457
458 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnIndeterminates</code>( <var class="Arg">poly</var>, <var class="Arg">perm</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
459 <p>A permutation <var class="Arg">perm</var> acts on the multivariate polynomial <var class="Arg">poly</var> by permuting the indeterminates as it permutes points.</p>
460
461
462 <div class="example"><pre>
463 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">x:=Indeterminate(Rationals,1);; y:=Indeterminate(Rationals,2);;</span>
464 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OnIndeterminates(x^7*y+x*y^4,(1,17)(2,28));</span>
465 x_17^7*x_28+x_17*x_28^4
466 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Stabilizer(Group((1,2,3,4),(1,2)),x*y,OnIndeterminates);</span>
467 Group([ (1,2), (3,4) ])
468 </pre></div>
469
470 <p><a id="X7BA8D76586F1F06E" name="X7BA8D76586F1F06E"></a></p>
471
472 <h5>41.2-14 Permuted</h5>
473
474 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Permuted</code>( <var class="Arg">list</var>, <var class="Arg">perm</var> )</td><td class="tdright">(&nbsp;method&nbsp;)</td></tr></table></div>
475 <p>The following example demonstrates <code class="func">Permuted</code> (<a href="chap21.html#X7B5A19098406347A"><span class="RefLink">21.20-17</span></a>) being used to implement a permutation action on a domain:</p>
476
477
478 <div class="example"><pre>
479 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3),(1,2));;</span>
480 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">dom:=[ "a", "b", "c" ];;</span>
481 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit(g,dom,Permuted);</span>
482 [ [ "a", "b", "c" ], [ "c", "a", "b" ], [ "b", "a", "c" ],
483 [ "b", "c", "a" ], [ "a", "c", "b" ], [ "c", "b", "a" ] ]
484 </pre></div>
485
486 <p><a id="X85124D197F0F9C4D" name="X85124D197F0F9C4D"></a></p>
487
488 <h5>41.2-15 OnSubspacesByCanonicalBasis</h5>
489
490 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnSubspacesByCanonicalBasis</code>( <var class="Arg">bas</var>, <var class="Arg">mat</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
491 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OnSubspacesByCanonicalBasisConcatenations</code>( <var class="Arg">basvec</var>, <var class="Arg">mat</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
492 <p>implements the operation of a matrix group on subspaces of a vector space. <var class="Arg">bas</var> must be a list of (linearly independent) vectors which forms a basis of the subspace in Hermite normal form. <var class="Arg">mat</var> is an element of the acting matrix group. The function returns a mutable matrix which gives the basis of the image of the subspace in Hermite normal form. (In other words: it triangulizes the product of <var class="Arg">bas</var> with <var class="Arg">mat</var>.)</p>
493
494 <p><var class="Arg">bas</var> must be given in Hermite normal form, otherwise an error is triggered (see <a href="chap41.html#X82181CA07A5B2056"><span class="RefLink">41.3</span></a>).</p>
495
496 <p><a id="X82181CA07A5B2056" name="X82181CA07A5B2056"></a></p>
497
498 <h4>41.3 <span class="Heading">Action on canonical representatives</span></h4>
499
500 <p>A variety of action functions assumes that the objects on which it acts are given in a particular form, for example canonical representatives. Affected actions are for example <code class="func">OnSetsSets</code> (<a href="chap41.html#X7C10492081D72376"><span class="RefLink">41.2-7</span></a>), <code class="func">OnSetsDisjointSets</code> (<a href="chap41.html#X7E23686E7A9D3A20"><span class="RefLink">41.2-8</span></a>), <code class="func">OnSetsTuples</code> (<a href="chap41.html#X7ADE244E819035FF"><span class="RefLink">41.2-9</span></a>), <code class="func">OnTuplesSets</code> (<a href="chap41.html#X7FF556CD7E6739A9"><span class="RefLink">41.2-10</span></a>), <code class="func">OnLines</code> (<a href="chap41.html#X86DC2DD5829CAD9A"><span class="RefLink">41.2-12</span></a>) and <code class="func">OnSubspacesByCanonicalBasis</code> (<a href="chap41.html#X85124D197F0F9C4D"><span class="RefLink">41.2-15</span></a>).</p>
501
502 <p>If orbit seeds or domain elements are not given in the required form <strong class="pkg">GAP</strong> will issue an error message:</p>
503
504
505 <div class="example"><pre>
506 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit(SymmetricGroup(5),[[2,4],[1,3]],OnSetsSets);</span>
507 Error, Action not well-defined. See the manual section
508 ``Action on canonical representatives''.
509 </pre></div>
510
511 <p>In this case the affected domain elements have to be brought in canonical form, as documented for the respective action function. For interactive use this is most easily done by acting with the identity element of the group.</p>
512
513 <p>(A similar error could arise if a user-defined action function is used which actually does not implement an action from the right.)</p>
514
515 <p><a id="X81E0FF0587C54543" name="X81E0FF0587C54543"></a></p>
516
517 <h4>41.4 <span class="Heading">Orbits</span></h4>
518
519 <p>If a group <span class="SimpleMath">G</span> acts on a set <span class="SimpleMath">Ω</span>, the set of all images of <span class="SimpleMath">x ∈ Ω</span> under elements of <span class="SimpleMath">G</span> is called the <em>orbit</em> of <span class="SimpleMath">x</span>. The set of orbits of <span class="SimpleMath">G</span> is a partition of <span class="SimpleMath">Ω</span>.</p>
520
521 <p><a id="X80E0234E7BD79409" name="X80E0234E7BD79409"></a></p>
522
523 <h5>41.4-1 Orbit</h5>
524
525 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Orbit</code>( <var class="Arg">G</var>[, <var class="Arg">Omega</var>], <var class="Arg">pnt</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
526 <p>The orbit of the point <var class="Arg">pnt</var> is the list of all images of <var class="Arg">pnt</var> under the action of the group <var class="Arg">G</var> w.r.t. the action function <var class="Arg">act</var> or <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>) if no action function is given.</p>
527
528 <p>(Note that the arrangement of points in this list is not defined by the operation.)</p>
529
530 <p>The orbit of <var class="Arg">pnt</var> will always contain one element that is <em>equal</em> to <var class="Arg">pnt</var>, however for performance reasons this element is not necessarily <em>identical</em> to <var class="Arg">pnt</var>, in particular if <var class="Arg">pnt</var> is mutable.</p>
531
532
533 <div class="example"><pre>
534 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,3,2),(2,4,3));;</span>
535 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit(g,1);</span>
536 [ 1, 3, 2, 4 ]
537 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbit(g,[1,2],OnSets);</span>
538 [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 3, 4 ], [ 2, 4 ] ]
539 </pre></div>
540
541 <p>(See Section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a> for information about specific actions.)</p>
542
543 <p><a id="X86BCAE17869BBEAA" name="X86BCAE17869BBEAA"></a></p>
544
545 <h5>41.4-2 Orbits</h5>
546
547 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Orbits</code>( <var class="Arg">G</var>, <var class="Arg">seeds</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
548 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Orbits</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
549 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Orbits</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
550 <p>returns a duplicate-free list of the orbits of the elements in <var class="Arg">seeds</var> under the action <var class="Arg">act</var> of <var class="Arg">G</var> or under <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>) if no action function is given.</p>
551
552 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">Orbits(<var class="Arg">G</var>)</code>, which returns all the orbits of its natural action on the set of points moved by it. For example the group <span class="SimpleMath">⟨ (1,2,3), (4,5) ⟩</span> has the orbits <span class="SimpleMath">{1,2,3}</span> and <span class="SimpleMath">{4,5}</span>.</p>
553
554 <p>(Note that the arrangement of orbits or of points within one orbit is not defined by the operation.)</p>
555
556 <p><a id="X86BC8B958123F953" name="X86BC8B958123F953"></a></p>
557
558 <h5>41.4-3 <span class="Heading">OrbitsDomain</span></h5>
559
560 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitsDomain</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
561 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitsDomain</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
562 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitsDomain</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
563 <p>returns a list of the orbits of <var class="Arg">G</var> on the domain <var class="Arg">Omega</var> (given as lists) under the action <var class="Arg">act</var> or under <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>) if no action function is given.</p>
564
565 <p>This operation is often faster than <code class="func">Orbits</code> (<a href="chap41.html#X86BCAE17869BBEAA"><span class="RefLink">41.4-2</span></a>). The domain <var class="Arg">Omega</var> must be closed under the action of <var class="Arg">G</var>, otherwise an error can occur.</p>
566
567 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">OrbitsDomain(<var class="Arg">G</var>)</code>, which returns all the orbits of its natural action on the set of points moved by it.</p>
568
569 <p>(Note that the arrangement of orbits or of points within one orbit is not defined by the operation.)</p>
570
571
572 <div class="example"><pre>
573 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,3,2),(2,4,3));;</span>
574 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbits(g,[1..5]);</span>
575 [ [ 1, 3, 2, 4 ], [ 5 ] ]
576 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OrbitsDomain(g,Arrangements([1..4],3),OnTuples);</span>
577 [ [ [ 1, 2, 3 ], [ 3, 1, 2 ], [ 1, 4, 2 ], [ 2, 3, 1 ], [ 2, 1, 4 ],
578 [ 3, 4, 1 ], [ 1, 3, 4 ], [ 4, 2, 1 ], [ 4, 1, 3 ],
579 [ 2, 4, 3 ], [ 3, 2, 4 ], [ 4, 3, 2 ] ],
580 [ [ 1, 2, 4 ], [ 3, 1, 4 ], [ 1, 4, 3 ], [ 2, 3, 4 ], [ 2, 1, 3 ],
581 [ 3, 4, 2 ], [ 1, 3, 2 ], [ 4, 2, 3 ], [ 4, 1, 2 ],
582 [ 2, 4, 1 ], [ 3, 2, 1 ], [ 4, 3, 1 ] ] ]
583 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OrbitsDomain(g,GF(2)^2,[(1,2,3),(1,4)(2,3)],</span>
584 <span class="GAPprompt">&gt;</span> <span class="GAPinput">[[[Z(2)^0,Z(2)^0],[Z(2)^0,0*Z(2)]],[[Z(2)^0,0*Z(2)],[0*Z(2),Z(2)^0]]]);</span>
585 [ [ &lt;an immutable GF2 vector of length 2&gt; ],
586 [ &lt;an immutable GF2 vector of length 2&gt;,
587 &lt;an immutable GF2 vector of length 2&gt;,
588 &lt;an immutable GF2 vector of length 2&gt; ] ]
589 </pre></div>
590
591 <p>(See Section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a> for information about specific actions.)</p>
592
593 <p><a id="X799910CF832EDC45" name="X799910CF832EDC45"></a></p>
594
595 <h5>41.4-4 OrbitLength</h5>
596
597 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitLength</code>( <var class="Arg">G</var>[, <var class="Arg">Omega</var>], <var class="Arg">pnt</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
598 <p>computes the length of the orbit of <var class="Arg">pnt</var> under the action function <var class="Arg">act</var> or <code class="func">OnPoints</code> (<a href="chap41.html#X7FE417DD837987B4"><span class="RefLink">41.2-1</span></a>) if no action function is given.</p>
599
600 <p><a id="X8032F73078DF2DDB" name="X8032F73078DF2DDB"></a></p>
601
602 <h5>41.4-5 <span class="Heading">OrbitLengths</span></h5>
603
604 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitLengths</code>( <var class="Arg">G</var>, <var class="Arg">seeds</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
605 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitLengths</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
606 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitLengths</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
607 <p>computes the lengths of all the orbits of the elements in <var class="Arg">seeds</var> under the action <var class="Arg">act</var> of <var class="Arg">G</var>.</p>
608
609 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">OrbitLengths(<var class="Arg">G</var>)</code>, which returns the lengths of all the orbits of its natural action on the set of points moved by it. For example the group <span class="SimpleMath">⟨ (1,2,3), (5,6) ⟩</span> has the orbit lengths 2 and 3.</p>
610
611 <p><a id="X8520E2487F7E98AF" name="X8520E2487F7E98AF"></a></p>
612
613 <h5>41.4-6 <span class="Heading">OrbitLengthsDomain</span></h5>
614
615 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitLengthsDomain</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
616 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitLengthsDomain</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
617 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitLengthsDomain</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
618 <p>computes the lengths of all the orbits of <var class="Arg">G</var> on <var class="Arg">Omega</var>.</p>
619
620 <p>This operation is often faster than <code class="func">OrbitLengths</code> (<a href="chap41.html#X8032F73078DF2DDB"><span class="RefLink">41.4-5</span></a>). The domain <var class="Arg">Omega</var> must be closed under the action of <var class="Arg">G</var>, otherwise an error can occur.</p>
621
622 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">OrbitLengthsDomain(<var class="Arg">G</var>)</code>, which returns the length of all the orbits of its natural action on the set of points moved by it.</p>
623
624
625 <div class="example"><pre>
626 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,3,2),(2,4,3));;</span>
627 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OrbitLength(g,[1,2,3,4],OnTuples);</span>
628 12
629 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OrbitLengths(g,Arrangements([1..4],4),OnTuples);</span>
630 [ 12, 12 ]
631 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3),(5,6,7));;</span>
632 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OrbitLengthsDomain(g,[1,2,3]);</span>
633 [ 3 ]
634 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">OrbitLengthsDomain(g);</span>
635 [ 3, 3 ]
636 </pre></div>
637
638 <p><a id="X797BD60E7ACEF1B1" name="X797BD60E7ACEF1B1"></a></p>
639
640 <h4>41.5 <span class="Heading">Stabilizers</span></h4>
641
642 <p>The <em>stabilizer</em> of a point <span class="SimpleMath">x</span> under the action of a group <span class="SimpleMath">G</span> is the set of all those elements in <span class="SimpleMath">G</span> which fix <span class="SimpleMath">x</span>.</p>
643
644 <p><a id="X7C34EC437EF598BF" name="X7C34EC437EF598BF"></a></p>
645
646 <h5>41.5-1 OrbitStabilizer</h5>
647
648 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitStabilizer</code>( <var class="Arg">G</var>[, <var class="Arg">Omega</var>], <var class="Arg">pnt</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
649 <p>computes the orbit and the stabilizer of <var class="Arg">pnt</var> simultaneously in a single orbit-stabilizer algorithm. Returns an immutable record with components <code class="code">orbit</code> (the orbit as a list) and <code class="code">stabilizer</code> (the point stabilizer, a subgroup of <var class="Arg">G</var>).</p>
650
651 <p>The stabilizer will have <var class="Arg">G</var> as its parent.</p>
652
653
654 <div class="example"><pre>
655 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,3,2),(2,4,3));;</span>
656 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">orbstab:=OrbitStabilizer(g,[1,2],OnSets);</span>
657 rec(
658 orbit := [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 3, 4 ],
659 [ 2, 4 ] ], stabilizer := Group([ (1,2)(3,4) ]) )
660 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">orbstab.orbit;</span>
661 [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 3, 4 ], [ 2, 4 ] ]
662 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">orbstab.stabilizer;</span>
663 Group([ (1,2)(3,4) ])
664 </pre></div>
665
666 <p><a id="X86FB962786397E02" name="X86FB962786397E02"></a></p>
667
668 <h5>41.5-2 Stabilizer</h5>
669
670 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Stabilizer</code>( <var class="Arg">G</var>[, <var class="Arg">Omega</var>], <var class="Arg">pnt</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
671 <p>computes the stabilizer in <var class="Arg">G</var> of the point <var class="Arg">pnt</var>, that is the subgroup of those elements of <var class="Arg">G</var> that fix <var class="Arg">pnt</var>. The stabilizer will have <var class="Arg">G</var> as its parent.</p>
672
673
674 <div class="example"><pre>
675 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,3,2),(2,4,3));;</span>
676 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">stab:=Stabilizer(g,4);</span>
677 Group([ (1,3,2) ])
678 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Parent(stab);</span>
679 Group([ (1,3,2), (2,4,3) ])
680 </pre></div>
681
682 <p>The stabilizer of a set or tuple of points can be computed by specifying an action of sets or tuples of points.</p>
683
684
685 <div class="example"><pre>
686 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Stabilizer(g,[1,2],OnSets);</span>
687 Group([ (1,2)(3,4) ])
688 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Stabilizer(g,[1,2],OnTuples);</span>
689 Group(())
690 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">orbstab:=OrbitStabilizer(g,[1,2],OnSets);</span>
691 rec(
692 orbit := [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 3, 4 ],
693 [ 2, 4 ] ], stabilizer := Group([ (1,2)(3,4) ]) )
694 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Parent(orbstab.stabilizer);</span>
695 Group([ (1,3,2), (2,4,3) ])
696 </pre></div>
697
698 <p>(See Section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a> for information about specific actions.)</p>
699
700 <p>The standard methods for all these actions are an orbit-stabilizer algorithm. For permutation groups backtrack algorithms are used. For solvable groups an orbit-stabilizer algorithm for solvable groups, which uses the fact that the orbits of a normal subgroup form a block system (see <a href="chapBib.html#biBSOGOS">[LNS84]</a>) is used.</p>
701
702 <p><a id="X78C3A8568414BC44" name="X78C3A8568414BC44"></a></p>
703
704 <h5>41.5-3 OrbitStabilizerAlgorithm</h5>
705
706 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; OrbitStabilizerAlgorithm</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>, <var class="Arg">blist</var>, <var class="Arg">gens</var>, <var class="Arg">acts</var>, <var class="Arg">pntact</var> )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
707 <p>This operation should not be called by a user. It is documented however for purposes to extend or maintain the group actions package (the word <q>package</q> here refers to the <strong class="pkg">GAP</strong> functionality for group actions, not to a <strong class="pkg">GAP</strong> package).</p>
708
709 <p><code class="func">OrbitStabilizerAlgorithm</code> performs an orbit stabilizer algorithm for the group <var class="Arg">G</var> acting with the generators <var class="Arg">gens</var> via the generator images <var class="Arg">gens</var> and the group action <var class="Arg">act</var> on the element <var class="Arg">pnt</var>. (For technical reasons <var class="Arg">pnt</var> and <var class="Arg">act</var> are put in one record with components <code class="code">pnt</code> and <code class="code">act</code> respectively.)</p>
710
711 <p>The <var class="Arg">pntact</var> record may carry a component <var class="Arg">stabsub</var>. If given, this must be a subgroup stabilizing <em>all</em> points in the domain and can be used to abbreviate stabilizer calculations.</p>
712
713 <p>The <var class="Arg">pntact</var> component also may contain the boolean entry <code class="code">onlystab</code> set to <code class="keyw">true</code>. In this case the <code class="code">orbit</code> component may be omitted from the result.</p>
714
715 <p>The argument <var class="Arg">Omega</var> (which may be replaced by <code class="keyw">false</code> to be ignored) is the set within which the orbit is computed (once the orbit is the full domain, the orbit calculation may stop). If <var class="Arg">blist</var> is given it must be a bit list corresponding to <var class="Arg">Omega</var> in which elements which have been found already will be <q>ticked off</q> with <code class="keyw">true</code>. (In particular, the entries for the orbit of <var class="Arg">pnt</var> still must be all set to <code class="keyw">false</code>). Again the remaining action domain (the bits set initially to <code class="keyw">false</code>) can be used to stop if the orbit cannot grow any longer. Another use of the bit list is if <var class="Arg">Omega</var> is an enumerator which can determine <code class="func">PositionCanonical</code> (<a href="chap21.html#X7B4B10AE81602D4E"><span class="RefLink">21.16-3</span></a>) values very quickly. In this situation it can be worth to search images not in the orbit found so far, but via their position in <var class="Arg">Omega</var> and use a the bit list to keep track whether the element is in the orbit found so far.</p>
716
717 <p><a id="X7A9389097BAF670D" name="X7A9389097BAF670D"></a></p>
718
719 <h4>41.6 <span class="Heading">Elements with Prescribed Images</span></h4>
720
721 <p><a id="X857DC7B085EB0539" name="X857DC7B085EB0539"></a></p>
722
723 <h5>41.6-1 RepresentativeAction</h5>
724
725 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; RepresentativeAction</code>( <var class="Arg">G</var>[, <var class="Arg">Omega</var>], <var class="Arg">d</var>, <var class="Arg">e</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
726 <p>computes an element of <var class="Arg">G</var> that maps <var class="Arg">d</var> to <var class="Arg">e</var> under the given action and returns <code class="keyw">fail</code> if no such element exists.</p>
727
728
729 <div class="example"><pre>
730 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,3,2),(2,4,3));;</span>
731 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">RepresentativeAction(g,1,3);</span>
732 (1,3)(2,4)
733 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">RepresentativeAction(g,1,3,OnPoints);</span>
734 (1,3)(2,4)
735 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">RepresentativeAction(g,(1,2,3),(2,4,3));</span>
736 (1,2,4)
737 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">RepresentativeAction(g,(1,2,3),(2,3,4));</span>
738 fail
739 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">RepresentativeAction(g,Group((1,2,3)),Group((2,3,4)));</span>
740 (1,2,4)
741 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput"> RepresentativeAction(g,[1,2,3],[1,2,4],OnSets);</span>
742 (2,4,3)
743 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput"> RepresentativeAction(g,[1,2,3],[1,2,4],OnTuples);</span>
744 fail
745 </pre></div>
746
747 <p>(See Section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a> for information about specific actions.)</p>
748
749 <p>Again the standard method for <code class="func">RepresentativeAction</code> is an orbit-stabilizer algorithm, for permutation groups and standard actions a backtrack algorithm is used.</p>
750
751 <p><a id="X87F73CCA7921DE65" name="X87F73CCA7921DE65"></a></p>
752
753 <h4>41.7 <span class="Heading">The Permutation Image of an Action</span></h4>
754
755 <p>When a group <span class="SimpleMath">G</span> acts on a domain <span class="SimpleMath">Ω</span>, an enumeration of <span class="SimpleMath">Omega</span> yields a homomorphism from <span class="SimpleMath">G</span> into the symmetric group on <span class="SimpleMath">{ 1, ..., |Ω| }</span>. In <strong class="pkg">GAP</strong>, the enumeration of <span class="SimpleMath">Ω</span> is provided by the <code class="func">Enumerator</code> (<a href="chap30.html#X7EF8910F82B45EC7"><span class="RefLink">30.3-2</span></a>) value of <span class="SimpleMath">Ω</span> which of course is <span class="SimpleMath">Ω</span> itself if it is a list.</p>
756
757 <p>For an action homomorphism, the operation <code class="func">UnderlyingExternalSet</code> (<a href="chap41.html#X8190A8247F29A5C7"><span class="RefLink">41.12-16</span></a>) will return the external set on <span class="SimpleMath">Ω</span> which affords the action.</p>
758
759 <p><a id="X78E6A002835288A4" name="X78E6A002835288A4"></a></p>
760
761 <h5>41.7-1 <span class="Heading">ActionHomomorphism</span></h5>
762
763 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ActionHomomorphism</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>][, <var class="Arg">"surjective"</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
764 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ActionHomomorphism</code>( <var class="Arg">xset</var>[, <var class="Arg">"surjective"</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
765 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ActionHomomorphism</code>( <var class="Arg">action</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
766 <p>computes a homomorphism from <var class="Arg">G</var> into the symmetric group on <span class="SimpleMath">|<var class="Arg">Omega</var>|</span> points that gives the permutation action of <var class="Arg">G</var> on <var class="Arg">Omega</var>. (In particular, this homomorphism is a permutation equivalence, that is the permutation image of a group element is given by the positions of points in <var class="Arg">Omega</var>.)</p>
767
768 <p>The result is undefined if <var class="Arg">G</var> does not act on <var class="Arg">Omega</var>.</p>
769
770 <p>By default the homomorphism returned by <code class="func">ActionHomomorphism</code> is not necessarily surjective (its <code class="func">Range</code> (<a href="chap32.html#X7B6FD7277CDE9FCB"><span class="RefLink">32.3-7</span></a>) value is the full symmetric group) to avoid unnecessary computation of the image. If the optional string argument <code class="code">"surjective"</code> is given, a surjective homomorphism is created.</p>
771
772 <p>The third version (which is supported only for <strong class="pkg">GAP</strong>3 compatibility) returns the action homomorphism that belongs to the image obtained via <code class="func">Action</code> (<a href="chap41.html#X85A8E93D786C3C9C"><span class="RefLink">41.7-2</span></a>).</p>
773
774 <p>(See Section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a> for information about specific actions.)</p>
775
776
777 <div class="example"><pre>
778 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3),(1,2));;</span>
779 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">hom:=ActionHomomorphism(g,Arrangements([1..4],3),OnTuples);</span>
780 &lt;action homomorphism&gt;
781 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Image(hom);</span>
782 Group(
783 [ (1,9,13)(2,10,14)(3,7,15)(4,8,16)(5,12,17)(6,11,18)(19,22,23)(20,21,
784 24), (1,7)(2,8)(3,9)(4,10)(5,11)(6,12)(13,15)(14,16)(17,18)(19,
785 21)(20,22)(23,24) ])
786 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Size(Range(hom));Size(Image(hom));</span>
787 620448401733239439360000
788 6
789 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">hom:=ActionHomomorphism(g,Arrangements([1..4],3),OnTuples,</span>
790 <span class="GAPprompt">&gt;</span> <span class="GAPinput">"surjective");;</span>
791 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Size(Range(hom));</span>
792 6
793 </pre></div>
794
795 <p>When acting on a domain, the operation <code class="func">PositionCanonical</code> (<a href="chap21.html#X7B4B10AE81602D4E"><span class="RefLink">21.16-3</span></a>) is used to determine the position of elements in the domain. This can be used to act on a domain given by a list of representatives for which <code class="func">PositionCanonical</code> (<a href="chap21.html#X7B4B10AE81602D4E"><span class="RefLink">21.16-3</span></a>) is implemented, for example the return value of <code class="func">RightTransversal</code> (<a href="chap39.html#X85C65D06822E716F"><span class="RefLink">39.8-1</span></a>).</p>
796
797 <p><a id="X85A8E93D786C3C9C" name="X85A8E93D786C3C9C"></a></p>
798
799 <h5>41.7-2 Action</h5>
800
801 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Action</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
802 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Action</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
803 <p>returns the image group of <code class="func">ActionHomomorphism</code> (<a href="chap41.html#X78E6A002835288A4"><span class="RefLink">41.7-1</span></a>) called with the same parameters.</p>
804
805 <p>Note that (for compatibility reasons to be able to get the action homomorphism) this image group internally stores the action homomorphism. If <var class="Arg">G</var> or <var class="Arg">Omega</var> are extremely big, this can cause memory problems. In this case compute only generator images and form the image group yourself.</p>
806
807 <p>(See Section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a> for information about specific actions.)</p>
808
809 <p>The following code shows for example how to create the regular action of a group.</p>
810
811
812 <div class="example"><pre>
813 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3),(1,2));;</span>
814 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Action(g,AsList(g),OnRight);</span>
815 Group([ (1,5,3)(2,6,4), (1,6)(2,5)(3,4) ])
816 </pre></div>
817
818 <p><a id="X86FF54A383B73967" name="X86FF54A383B73967"></a></p>
819
820 <h5>41.7-3 SparseActionHomomorphism</h5>
821
822 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; SparseActionHomomorphism</code>( <var class="Arg">G</var>, <var class="Arg">start</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
823 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; SortedSparseActionHomomorphism</code>( <var class="Arg">G</var>, <var class="Arg">start</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
824 <p><code class="func">SparseActionHomomorphism</code> computes the action homomorphism (see <code class="func">ActionHomomorphism</code> (<a href="chap41.html#X78E6A002835288A4"><span class="RefLink">41.7-1</span></a>)) with arguments <var class="Arg">G</var>, <span class="SimpleMath">D</span>, and the optional arguments given, where <span class="SimpleMath">D</span> is the union of the <var class="Arg">G</var>-orbits of all points in <var class="Arg">start</var>. In the <code class="func">Orbit</code> (<a href="chap41.html#X80E0234E7BD79409"><span class="RefLink">41.4-1</span></a>) calls that are used to create <span class="SimpleMath">D</span>, again the optional arguments given are entered.)</p>
825
826 <p>If <var class="Arg">G</var> acts on a very large domain not surjectively this may yield a permutation image of substantially smaller degree than by action on the whole domain.</p>
827
828 <p>The operation <code class="func">SparseActionHomomorphism</code> will only use <code class="func">\=</code> (<a href="chap31.html#X7EF67D047F03CA6F"><span class="RefLink">31.11-1</span></a>) comparisons of points in the orbit. Therefore it can be used even if no good <code class="func">\&lt;</code> (<a href="chap31.html#X7EF67D047F03CA6F"><span class="RefLink">31.11-1</span></a>) comparison method for these points is available. However the image group will depend on the generators <var class="Arg">gens</var> of <var class="Arg">G</var>.</p>
829
830 <p>The operation <code class="func">SortedSparseActionHomomorphism</code> in contrast will sort the orbit and thus produce an image group which does not depend on these generators.</p>
831
832
833 <div class="example"><pre>
834 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">h:=Group(Z(3)*[[[1,1],[0,1]]]);</span>
835 Group([ [ [ Z(3), Z(3) ], [ 0*Z(3), Z(3) ] ] ])
836 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">hom:=ActionHomomorphism(h,GF(3)^2,OnRight);;</span>
837 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Image(hom);</span>
838 Group([ (2,3)(4,9,6,7,5,8) ])
839 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">hom:=SparseActionHomomorphism(h,[Z(3)*[1,0]],OnRight);;</span>
840 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Image(hom);</span>
841 Group([ (1,2,3,4,5,6) ])
842 </pre></div>
843
844 <p><a id="X7FED50ED7ACA5FB2" name="X7FED50ED7ACA5FB2"></a></p>
845
846 <h4>41.8 <span class="Heading">Action of a group on itself</span></h4>
847
848 <p>Of particular importance is the action of a group on its elements or cosets of a subgroup. These actions can be obtained by using <code class="func">ActionHomomorphism</code> (<a href="chap41.html#X78E6A002835288A4"><span class="RefLink">41.7-1</span></a>) for a suitable domain (for example a list of subgroups). For the following (frequently used) types of actions however special (often particularly efficient) functions are provided. A special case is the regular action on all elements.</p>
849
850 <p><a id="X784D417D87F4E58D" name="X784D417D87F4E58D"></a></p>
851
852 <h5>41.8-1 FactorCosetAction</h5>
853
854 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; FactorCosetAction</code>( <var class="Arg">G</var>, <var class="Arg">U</var>[, <var class="Arg">N</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
855 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; FactorCosetAction</code>( <var class="Arg">G</var>, <var class="Arg">L</var> )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
856 <p>This command computes the action of the group <var class="Arg">G</var> on the right cosets of the subgroup <var class="Arg">U</var>. If a normal subgroup <var class="Arg">N</var> of <var class="Arg">G</var> is given, it is stored as kernel of this action. When calling <code class="code">FactorCosetAction</code> with a list of subgroups as the second argument, an action with image isomorphic to the subdirect product of the coset actions of all subgroups is computed. (However a degree reduction may take place if some of the actions are redundant, i.e. there is no guarantee that every subgroup in the list is represented by an orbit.)</p>
857
858
859 <div class="example"><pre>
860 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3,4,5),(1,2));;u:=SylowSubgroup(g,2);;Index(g,u);</span>
861 15
862 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">FactorCosetAction(g,u);</span>
863 [ (1,2,3,4,5), (1,2) ] -&gt; [ (1,4,7,10,13)(2,5,8,11,14)(3,6,9,12,15),\
864 (1,4)(2,6)(3,5)(7,8)(10,12)(13,14) ]
865 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">StructureDescription(Range(last));</span>
866 "S5"
867 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">FactorCosetAction(g,[u,SylowSubgroup(g,3)]);;</span>
868 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Size(Image(last));</span>
869 120
870 </pre></div>
871
872 <p>The correspondence of points with cosets will, for performance reasons, depend on the method used. It is not guaranteed that it will be the same as used by <code class="code">RightTransversal</code> or <code class="code">RightCosets</code>.</p>
873
874 <p><a id="X8561DEBA79E01ABD" name="X8561DEBA79E01ABD"></a></p>
875
876 <h5>41.8-2 RegularActionHomomorphism</h5>
877
878 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; RegularActionHomomorphism</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
879 <p>returns an isomorphism from <var class="Arg">G</var> onto the regular permutation representation of <var class="Arg">G</var>.</p>
880
881 <p><a id="X835317A7847477D4" name="X835317A7847477D4"></a></p>
882
883 <h5>41.8-3 AbelianSubfactorAction</h5>
884
885 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; AbelianSubfactorAction</code>( <var class="Arg">G</var>, <var class="Arg">M</var>, <var class="Arg">N</var> )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
886 <p>Let <var class="Arg">G</var> be a group and <span class="SimpleMath"><var class="Arg">M</var> ≥ <var class="Arg">N</var></span> be subgroups of a common parent that are normal under <var class="Arg">G</var>, such that the subfactor <span class="SimpleMath"><var class="Arg">M</var>/<var class="Arg">N</var></span> is elementary abelian. The operation <code class="func">AbelianSubfactorAction</code> returns a list <code class="code">[ <var class="Arg">phi</var>, <var class="Arg">alpha</var>, <var class="Arg">bas</var> ]</code> where <var class="Arg">bas</var> is a list of elements of <var class="Arg">M</var> which are representatives for a basis of <span class="SimpleMath"><var class="Arg">M</var>/<var class="Arg">N</var></span>, <var class="Arg">alpha</var> is a map from <var class="Arg">M</var> into a <span class="SimpleMath">n</span>-dimensional row space over <span class="SimpleMath">GF(p)</span> where <span class="SimpleMath">[<var class="Arg">M</var>:<var class="Arg">N</var>] = p^n</span> that is the natural homomorphism of <var class="Arg">M</var> by <var class="Arg">N</var> with the quotient represented as an additive group. Finally <var class="Arg">phi</var> is a homomorphism from <var class="Arg">G</var> into <span class="SimpleMath">GL_n(p)</span> that represents the action of <var class="Arg">G</var> on the factor <span class="SimpleMath"><var class="Arg">M</var>/<var class="Arg">N</var></span>.</p>
887
888 <p>Note: If only matrices for the action are needed, <code class="func">LinearActionLayer</code> (<a href="chap45.html#X7C2135B98732BBC3"><span class="RefLink">45.14-3</span></a>) might be faster.</p>
889
890
891 <div class="example"><pre>
892 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,8,10,7,3,5)(2,4,12,9,11,6),</span>
893 <span class="GAPprompt">&gt;</span> <span class="GAPinput"> (1,9,5,6,3,10)(2,11,12,8,4,7));;</span>
894 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">c:=ChiefSeries(g);;List(c,Size);</span>
895 [ 96, 48, 16, 4, 1 ]
896 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">HasElementaryAbelianFactorGroup(c[3],c[4]);</span>
897 true
898 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">SetName(c[3],"my_group");;</span>
899 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">a:=AbelianSubfactorAction(g,c[3],c[4]);</span>
900 [ [ (1,8,10,7,3,5)(2,4,12,9,11,6), (1,9,5,6,3,10)(2,11,12,8,4,7) ] -&gt;
901 [ &lt;an immutable 2x2 matrix over GF2&gt;,
902 &lt;an immutable 2x2 matrix over GF2&gt; ],
903 MappingByFunction( my_group, ( GF(2)^
904 2 ), function( e ) ... end, function( r ) ... end ),
905 Pcgs([ (2,9,3,8)(4,11,5,10), (1,6,12,7)(4,10,5,11) ]) ]
906 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">mat:=Image(a[1],g);</span>
907 Group([ &lt;an immutable 2x2 matrix over GF2&gt;,
908 &lt;an immutable 2x2 matrix over GF2&gt; ])
909 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Size(mat);</span>
910 3
911 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">e:=PreImagesRepresentative(a[2],[Z(2),0*Z(2)]);</span>
912 (2,9,3,8)(4,11,5,10)
913 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">e in c[3];e in c[4];</span>
914 true
915 false
916 </pre></div>
917
918 <p><a id="X807AA91E841D132B" name="X807AA91E841D132B"></a></p>
919
920 <h4>41.9 <span class="Heading">Permutations Induced by Elements and Cycles</span></h4>
921
922 <p>If only the permutation image of a single element is needed, it might not be worth to create the action homomorphism, the following operations yield the permutation image and cycles of a single element.</p>
923
924 <p><a id="X7807A33381DCAB26" name="X7807A33381DCAB26"></a></p>
925
926 <h5>41.9-1 <span class="Heading">Permutation</span></h5>
927
928 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Permutation</code>( <var class="Arg">g</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
929 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Permutation</code>( <var class="Arg">g</var>, <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
930 <p>computes the permutation that corresponds to the action of <var class="Arg">g</var> on the permutation domain <var class="Arg">Omega</var> (a list of objects that are permuted). If an external set <var class="Arg">xset</var> is given, the permutation domain is the <code class="func">HomeEnumerator</code> (<a href="chap41.html#X86A0CC1479A5932A"><span class="RefLink">41.12-5</span></a>) value of this external set (see Section <a href="chap41.html#X7FD3D2D2788709B7"><span class="RefLink">41.12</span></a>). Note that the points of the returned permutation refer to the positions in <var class="Arg">Omega</var>, even if <var class="Arg">Omega</var> itself consists of integers.</p>
931
932 <p>If <var class="Arg">g</var> does not leave the domain invariant, or does not map the domain injectively then <code class="keyw">fail</code> is returned.</p>
933
934 <p><a id="X81D4EA42810974A0" name="X81D4EA42810974A0"></a></p>
935
936 <h5>41.9-2 PermutationCycle</h5>
937
938 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; PermutationCycle</code>( <var class="Arg">g</var>, <var class="Arg">Omega</var>, <var class="Arg">pnt</var>[, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
939 <p>computes the permutation that represents the cycle of <var class="Arg">pnt</var> under the action of the element <var class="Arg">g</var>.</p>
940
941
942 <div class="example"><pre>
943 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Permutation([[Z(3),-Z(3)],[Z(3),0*Z(3)]],AsList(GF(3)^2));</span>
944 (2,7,6)(3,4,8)
945 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Permutation((1,2,3)(4,5)(6,7),[4..7]);</span>
946 (1,2)(3,4)
947 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">PermutationCycle((1,2,3)(4,5)(6,7),[4..7],4);</span>
948 (1,2)
949 </pre></div>
950
951 <p><a id="X80AF6E0683CA7F14" name="X80AF6E0683CA7F14"></a></p>
952
953 <h5>41.9-3 Cycle</h5>
954
955 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Cycle</code>( <var class="Arg">g</var>, <var class="Arg">Omega</var>, <var class="Arg">pnt</var>[, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
956 <p>returns a list of the points in the cycle of <var class="Arg">pnt</var> under the action of the element <var class="Arg">g</var>.</p>
957
958 <p><a id="X7F559E897B333758" name="X7F559E897B333758"></a></p>
959
960 <h5>41.9-4 CycleLength</h5>
961
962 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; CycleLength</code>( <var class="Arg">g</var>, <var class="Arg">Omega</var>, <var class="Arg">pnt</var>[, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
963 <p>returns the length of the cycle of <var class="Arg">pnt</var> under the action of the element <var class="Arg">g</var>.</p>
964
965 <p><a id="X7F3B387A7FD8AE5E" name="X7F3B387A7FD8AE5E"></a></p>
966
967 <h5>41.9-5 Cycles</h5>
968
969 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Cycles</code>( <var class="Arg">g</var>, <var class="Arg">Omega</var>[, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
970 <p>returns a list of the cycles (as lists of points) of the action of the element <var class="Arg">g</var>.</p>
971
972 <p><a id="X83040A6080C2C6C6" name="X83040A6080C2C6C6"></a></p>
973
974 <h5>41.9-6 CycleLengths</h5>
975
976 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; CycleLengths</code>( <var class="Arg">g</var>, <var class="Arg">Omega</var>[, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
977 <p>returns the lengths of all the cycles under the action of the element <var class="Arg">g</var> on <var class="Arg">Omega</var>.</p>
978
979
980 <div class="example"><pre>
981 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Cycle((1,2,3)(4,5)(6,7),[4..7],4);</span>
982 [ 4, 5 ]
983 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">CycleLength((1,2,3)(4,5)(6,7),[4..7],4);</span>
984 2
985 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Cycles((1,2,3)(4,5)(6,7),[4..7]);</span>
986 [ [ 4, 5 ], [ 6, 7 ] ]
987 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">CycleLengths((1,2,3)(4,5)(6,7),[4..7]);</span>
988 [ 2, 2 ]
989 </pre></div>
990
991 <p><a id="X87FDA6838065CDCB" name="X87FDA6838065CDCB"></a></p>
992
993 <h5>41.9-7 <span class="Heading">CycleIndex</span></h5>
994
995 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; CycleIndex</code>( <var class="Arg">g</var>, <var class="Arg">Omega</var>[, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
996 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; CycleIndex</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;function&nbsp;)</td></tr></table></div>
997 <p>The <em>cycle index</em> of a permutation <var class="Arg">g</var> acting on <var class="Arg">Omega</var> is defined as</p>
998
999 <p class="pcenter">z(<var class="Arg">g</var>) = s_1^{c_1} s_2^{c_2} ⋯ s_n^{c_n}</p>
1000
1001 <p>where <span class="SimpleMath">c_k</span> is the number of <span class="SimpleMath">k</span>-cycles in the cycle decomposition of <var class="Arg">g</var> and the <span class="SimpleMath">s_i</span> are indeterminates.</p>
1002
1003 <p>The <em>cycle index</em> of a group <var class="Arg">G</var> is defined as</p>
1004
1005 <p class="pcenter">Z(<var class="Arg">G</var>) = ( ∑_{g ∈ <var class="Arg">G</var>} z(g) ) / |<var class="Arg">G</var>| .</p>
1006
1007 <p>The indeterminates used by <code class="func">CycleIndex</code> are the indeterminates <span class="SimpleMath">1</span> to <span class="SimpleMath">n</span> over the rationals (see <code class="func">Indeterminate</code> (<a href="chap66.html#X79D0380D7FA39F7D"><span class="RefLink">66.1-1</span></a>)).</p>
1008
1009
1010 <div class="example"><pre>
1011 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=TransitiveGroup(6,8);</span>
1012 S_4(6c) = 1/2[2^3]S(3)
1013 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">CycleIndex(g);</span>
1014 1/24*x_1^6+1/8*x_1^2*x_2^2+1/4*x_1^2*x_4+1/4*x_2^3+1/3*x_3^2
1015 </pre></div>
1016
1017 <p><a id="X850A84618421392A" name="X850A84618421392A"></a></p>
1018
1019 <h4>41.10 <span class="Heading">Tests for Actions</span></h4>
1020
1021 <p><a id="X79B15750851828CB" name="X79B15750851828CB"></a></p>
1022
1023 <h5>41.10-1 <span class="Heading">IsTransitive</span></h5>
1024
1025 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsTransitive</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1026 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsTransitive</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1027 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsTransitive</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1028 <p>returns <code class="keyw">true</code> if the action implied by the arguments is transitive, or <code class="keyw">false</code> otherwise.</p>
1029
1030 <p>We say that a group <var class="Arg">G</var> acts <em>transitively</em> on a domain <span class="SimpleMath">D</span> if and only if <var class="Arg">G</var> acts on <span class="SimpleMath">D</span> and for every pair of points <span class="SimpleMath">d, e ∈ D</span> there is an element <span class="SimpleMath">g</span> in <var class="Arg">G</var> such that <span class="SimpleMath">d^g = e</span>.</p>
1031
1032 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">IsTransitive(<var class="Arg">G</var>)</code>, which tests whether the group is transitive with respect to its natural action on the set of points moved by it. For example the group <span class="SimpleMath">⟨ (2,3,4),(2,3) ⟩</span> is transitive on the set <span class="SimpleMath">{2, 3, 4}</span>.</p>
1033
1034
1035 <div class="example"><pre>
1036 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">G:= Group( (2,3,4), (2,3) );;</span>
1037 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsTransitive( G, [ 2 .. 4 ] );</span>
1038 true
1039 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsTransitive( G, [ 2, 3 ] ); # G does not act on [ 2, 3 ]</span>
1040 false
1041 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsTransitive( G, [ 1 .. 4 ] ); # G has two orbits on [ 1 .. 4 ]</span>
1042 false
1043 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsTransitive( G ); # G is transitive on [ 2 .. 4 ]</span>
1044 true
1045 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsTransitive( SL(2, 3), NormedRowVectors( GF(3)^2 ) );</span>
1046 false
1047 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsTransitive( SL(2, 3), NormedRowVectors( GF(3)^2 ), OnLines );</span>
1048 true
1049 </pre></div>
1050
1051 <p><a id="X8295D733796B7A37" name="X8295D733796B7A37"></a></p>
1052
1053 <h5>41.10-2 <span class="Heading">Transitivity</span></h5>
1054
1055 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Transitivity</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1056 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Transitivity</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1057 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Transitivity</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1058 <p>returns the degree <span class="SimpleMath">k</span> (a non-negative integer) of transitivity of the action implied by the arguments, i.e. the largest integer <span class="SimpleMath">k</span> such that the action is <span class="SimpleMath">k</span>-transitive. If the action is not transitive <code class="code">0</code> is returned.</p>
1059
1060 <p>An action is <em><span class="SimpleMath">k</span>-transitive</em> if every <span class="SimpleMath">k</span>-tuple of points can be mapped simultaneously to every other <span class="SimpleMath">k</span>-tuple.</p>
1061
1062 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">Transitivity(<var class="Arg">G</var>)</code>, which returns the degree of transitivity of the group with respect to its natural action on the set of points moved by it. For example the group <span class="SimpleMath">⟨ (2,3,4),(2,3) ⟩</span> is 3-transitive on the set <span class="SimpleMath">{2, 3, 4}</span>.</p>
1063
1064
1065 <div class="example"><pre>
1066 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,3,2),(2,4,3));;</span>
1067 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsTransitive(g,[1..5]);</span>
1068 false
1069 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Transitivity(g,[1..4]);</span>
1070 2
1071 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Transitivity(g);</span>
1072 2
1073 </pre></div>
1074
1075 <p><a id="X8166A6A17C8D6E73" name="X8166A6A17C8D6E73"></a></p>
1076
1077 <h5>41.10-3 <span class="Heading">RankAction</span></h5>
1078
1079 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; RankAction</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1080 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; RankAction</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1081 <p>returns the rank of the transitive (see <code class="func">IsTransitive</code> (<a href="chap41.html#X79B15750851828CB"><span class="RefLink">41.10-1</span></a>)) action of <var class="Arg">G</var> on <var class="Arg">Omega</var>, i. e., the number of orbits of any point stabilizer.</p>
1082
1083
1084 <div class="example"><pre>
1085 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">RankAction(g,Combinations([1..4],2),OnSets);</span>
1086 4
1087 </pre></div>
1088
1089 <p><a id="X7B77040F8543CD6E" name="X7B77040F8543CD6E"></a></p>
1090
1091 <h5>41.10-4 <span class="Heading">IsSemiRegular</span></h5>
1092
1093 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsSemiRegular</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1094 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsSemiRegular</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1095 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsSemiRegular</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1096 <p>returns <code class="keyw">true</code> if the action implied by the arguments is semiregular, or <code class="keyw">false</code> otherwise.</p>
1097
1098 <p>An action is <em>semiregular</em> if the stabilizer of each point is the identity.</p>
1099
1100 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">IsSemiRegular(<var class="Arg">G</var>)</code>, which tests whether the group is semiregular with respect to its natural action on the set of points moved by it. For example the group <span class="SimpleMath">⟨ (2,3,4) (5,6,7) ⟩</span> is semiregular on the set <span class="SimpleMath">{2, 3, 4, 5, 6, 7}</span>.</p>
1101
1102 <p><a id="X7CF02C4785F0EAB5" name="X7CF02C4785F0EAB5"></a></p>
1103
1104 <h5>41.10-5 <span class="Heading">IsRegular</span></h5>
1105
1106 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsRegular</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1107 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsRegular</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1108 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsRegular</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1109 <p>returns <code class="keyw">true</code> if the action implied by the arguments is regular, or <code class="keyw">false</code> otherwise.</p>
1110
1111 <p>An action is <em>regular</em> if it is both semiregular (see <code class="func">IsSemiRegular</code> (<a href="chap41.html#X7B77040F8543CD6E"><span class="RefLink">41.10-4</span></a>)) and transitive (see <code class="func">IsTransitive</code> (<a href="chap41.html#X79B15750851828CB"><span class="RefLink">41.10-1</span></a>)). In this case every point <var class="Arg">pnt</var> of <var class="Arg">Omega</var> defines a one-to-one correspondence between <var class="Arg">G</var> and <var class="Arg">Omega</var>.</p>
1112
1113 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">IsRegular(<var class="Arg">G</var>)</code>, which tests whether the group is regular with respect to its natural action on the set of points moved by it. For example the group <span class="SimpleMath">⟨ (2,3,4) ⟩</span> is regular on the set <span class="SimpleMath">{2, 3, 4}</span>.</p>
1114
1115
1116 <div class="example"><pre>
1117 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsSemiRegular(g,Arrangements([1..4],3),OnTuples);</span>
1118 true
1119 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsRegular(g,Arrangements([1..4],3),OnTuples);</span>
1120 false
1121 </pre></div>
1122
1123 <p><a id="X7CB1D74280F92AFC" name="X7CB1D74280F92AFC"></a></p>
1124
1125 <h5>41.10-6 <span class="Heading">Earns</span></h5>
1126
1127 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Earns</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1128 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Earns</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1129 <p>returns a list of the elementary abelian regular (when acting on <var class="Arg">Omega</var>) normal subgroups of <var class="Arg">G</var>.</p>
1130
1131 <p>At the moment only methods for a primitive group <var class="Arg">G</var> are implemented.</p>
1132
1133 <p><a id="X84C19AD68247B760" name="X84C19AD68247B760"></a></p>
1134
1135 <h5>41.10-7 <span class="Heading">IsPrimitive</span></h5>
1136
1137 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsPrimitive</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1138 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsPrimitive</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1139 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsPrimitive</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;property&nbsp;)</td></tr></table></div>
1140 <p>returns <code class="keyw">true</code> if the action implied by the arguments is primitive, or <code class="keyw">false</code> otherwise.</p>
1141
1142 <p>An action is <em>primitive</em> if it is transitive (see <code class="func">IsTransitive</code> (<a href="chap41.html#X79B15750851828CB"><span class="RefLink">41.10-1</span></a>)) and the action admits no nontrivial block systems. See <a href="chap41.html#X7E9D3D0B7A9A8572"><span class="RefLink">41.11</span></a> for the definition of block systems.</p>
1143
1144 <p>For a permutation group <var class="Arg">G</var>, one may also invoke this as <code class="code">IsPrimitive(<var class="Arg">G</var>)</code>, which tests whether the group is primitive with respect to its natural action on the set of points moved by it. For example the group <span class="SimpleMath">⟨ (2,3,4),(2,3) ⟩</span> is primitive on the set <span class="SimpleMath">{2, 3, 4}</span>.</p>
1145
1146 <p>For an explanation of the meaning of all the inputs, please refer to  <a href="chap41.html#X83661AFD7B7BD1D9"><span class="RefLink">41.1</span></a>.</p>
1147
1148 <p><em>Note:</em> This operation does not tell whether a matrix group is primitive in the sense of preserving a direct sum of vector spaces. To do this use <code class="code">IsPrimitiveMatrixGroup</code> or <code class="code">IsPrimitive</code> from the package <strong class="pkg">IRREDSOL</strong>.</p>
1149
1150
1151 <div class="example"><pre>
1152 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">IsPrimitive(g,Orbit(g,(1,2)(3,4)));</span>
1153 true
1154 </pre></div>
1155
1156 <p><a id="X7E9D3D0B7A9A8572" name="X7E9D3D0B7A9A8572"></a></p>
1157
1158 <h4>41.11 <span class="Heading">Block Systems</span></h4>
1159
1160 <p>A <em>block system</em> (system of imprimitivity) for the action of a group <span class="SimpleMath">G</span> on an action domain <span class="SimpleMath">Ω</span> is a partition of <span class="SimpleMath">Ω</span> which –as a partition– remains invariant under the action of <span class="SimpleMath">G</span>. For operations concerning block systems, <strong class="pkg">GAP</strong> assumes that <span class="SimpleMath">G</span> acts transitively on <span class="SimpleMath">Ω</span> (see <code class="func">IsTransitive</code> (<a href="chap41.html#X79B15750851828CB"><span class="RefLink">41.10-1</span></a>)). One may get wrong results or error messages (perhaps at a much later stage) if this condition is not satisfied.</p>
1161
1162 <p><a id="X84FE699F85371643" name="X84FE699F85371643"></a></p>
1163
1164 <h5>41.11-1 <span class="Heading">Blocks</span></h5>
1165
1166 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Blocks</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">seed</var>][, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1167 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; Blocks</code>( <var class="Arg">xset</var>[, <var class="Arg">seed</var>] )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1168 <p>computes a block system for the transitive (see <code class="func">IsTransitive</code> (<a href="chap41.html#X79B15750851828CB"><span class="RefLink">41.10-1</span></a>)) action of <var class="Arg">G</var> on <var class="Arg">Omega</var>. If <var class="Arg">seed</var> is not given and the action is imprimitive, a minimal nontrivial block system will be found. If <var class="Arg">seed</var> is given, a block system in which <var class="Arg">seed</var> is the subset of one block is computed.</p>
1169
1170 <p>The result is undefined if the action is not transitive.</p>
1171
1172
1173 <div class="example"><pre>
1174 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=TransitiveGroup(8,3);</span>
1175 E(8)=2[x]2[x]2
1176 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Blocks(g,[1..8]);</span>
1177 [ [ 1, 8 ], [ 2, 3 ], [ 4, 5 ], [ 6, 7 ] ]
1178 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Blocks(g,[1..8],[1,4]);</span>
1179 [ [ 1, 4 ], [ 2, 7 ], [ 3, 6 ], [ 5, 8 ] ]
1180 </pre></div>
1181
1182 <p>(See Section <a href="chap41.html#X81B8F9CD868CD953"><span class="RefLink">41.2</span></a> for information about specific actions.)</p>
1183
1184 <p><a id="X79936EB97AAD1144" name="X79936EB97AAD1144"></a></p>
1185
1186 <h5>41.11-2 <span class="Heading">MaximalBlocks</span></h5>
1187
1188 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; MaximalBlocks</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">seed</var>][, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1189 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; MaximalBlocks</code>( <var class="Arg">xset</var>[, <var class="Arg">seed</var>] )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1190 <p>returns a block system that is maximal (i.e., blocks are maximal with respect to inclusion) for the transitive (see <code class="func">IsTransitive</code> (<a href="chap41.html#X79B15750851828CB"><span class="RefLink">41.10-1</span></a>)) action of <var class="Arg">G</var> on <var class="Arg">Omega</var>. If <var class="Arg">seed</var> is given, a block system is computed in which <var class="Arg">seed</var> is a subset of one block.</p>
1191
1192 <p>The result is undefined if the action is not transitive.</p>
1193
1194
1195 <div class="example"><pre>
1196 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">MaximalBlocks(g,[1..8]);</span>
1197 [ [ 1, 2, 3, 8 ], [ 4 .. 7 ] ]
1198 </pre></div>
1199
1200 <p><a id="X7941DB6380B74510" name="X7941DB6380B74510"></a></p>
1201
1202 <h5>41.11-3 <span class="Heading">RepresentativesMinimalBlocks</span></h5>
1203
1204 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; RepresentativesMinimalBlocks</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1205 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; RepresentativesMinimalBlocks</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1206 <p>computes a list of block representatives for all minimal (i.e blocks are minimal with respect to inclusion) nontrivial block systems for the transitive (see <code class="func">IsTransitive</code> (<a href="chap41.html#X79B15750851828CB"><span class="RefLink">41.10-1</span></a>)) action of <var class="Arg">G</var> on <var class="Arg">Omega</var>.</p>
1207
1208 <p>The result is undefined if the action is not transitive.</p>
1209
1210
1211 <div class="example"><pre>
1212 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">RepresentativesMinimalBlocks(g,[1..8]);</span>
1213 [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 1, 5 ], [ 1, 6 ], [ 1, 7 ],
1214 [ 1, 8 ] ]
1215 </pre></div>
1216
1217 <p><a id="X835658B07B28EF3B" name="X835658B07B28EF3B"></a></p>
1218
1219 <h5>41.11-4 AllBlocks</h5>
1220
1221 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; AllBlocks</code>( <var class="Arg">G</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1222 <p>computes a list of representatives of all block systems for a permutation group <var class="Arg">G</var> acting transitively on the points moved by the group.</p>
1223
1224 <p>Each representative in the returned list is sorted and contains the smallest point moved by <var class="Arg">G</var>.</p>
1225
1226
1227 <div class="example"><pre>
1228 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">AllBlocks(g);</span>
1229 [ [ 1, 8 ], [ 1, 2, 3, 8 ], [ 1, 4, 5, 8 ], [ 1, 6, 7, 8 ], [ 1, 3 ],
1230 [ 1, 3, 5, 7 ], [ 1, 3, 4, 6 ], [ 1, 5 ], [ 1, 2, 5, 6 ], [ 1, 2 ],
1231 [ 1, 2, 4, 7 ], [ 1, 4 ], [ 1, 7 ], [ 1, 6 ] ]
1232 </pre></div>
1233
1234 <p>The stabilizer of a block can be computed via the action <code class="func">OnSets</code> (<a href="chap41.html#X85AA04347CD117F9"><span class="RefLink">41.2-4</span></a>):</p>
1235
1236
1237 <div class="example"><pre>
1238 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Stabilizer(g,[1,8],OnSets);</span>
1239 Group([ (1,8)(2,3)(4,5)(6,7) ])
1240 </pre></div>
1241
1242 <p>If <code class="code">bs</code> is a partition of the action domain, given as a set of sets, the stabilizer under the action <code class="func">OnSetsDisjointSets</code> (<a href="chap41.html#X7E23686E7A9D3A20"><span class="RefLink">41.2-8</span></a>) returns the largest subgroup which preserves <code class="code">bs</code> as a block system.</p>
1243
1244
1245 <div class="example"><pre>
1246 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3,4,5,6,7,8),(1,2));;</span>
1247 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">bs:=[[1,2,3,4],[5,6,7,8]];;</span>
1248 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Stabilizer(g,bs,OnSetsDisjointSets);</span>
1249 Group([ (6,7), (5,6), (5,8), (2,3), (3,4)(5,7), (1,4),
1250 (1,5,4,8)(2,6,3,7) ])
1251 </pre></div>
1252
1253 <p><a id="X7FD3D2D2788709B7" name="X7FD3D2D2788709B7"></a></p>
1254
1255 <h4>41.12 <span class="Heading">External Sets</span></h4>
1256
1257 <p>When considering group actions, sometimes the concept of a <em><span class="SimpleMath">G</span>-set</em> is used. This is a set <span class="SimpleMath">Ω</span> endowed with an action of <span class="SimpleMath">G</span>. The elements of the <span class="SimpleMath">G</span>-set are the same as those of <span class="SimpleMath">Ω</span>, however concepts like equality and equivalence of <span class="SimpleMath">G</span>-sets do not only consider the underlying domain <span class="SimpleMath">Ω</span> but the group action as well.</p>
1258
1259 <p>This concept is implemented in <strong class="pkg">GAP</strong> via <em>external sets</em>.</p>
1260
1261 <p>The constituents of an external set are stored in the attributes <code class="func">ActingDomain</code> (<a href="chap41.html#X7B9DB15D80CE28B4"><span class="RefLink">41.12-3</span></a>), <code class="func">FunctionAction</code> (<a href="chap41.html#X86153CB087394DC1"><span class="RefLink">41.12-4</span></a>) and <code class="func">HomeEnumerator</code> (<a href="chap41.html#X86A0CC1479A5932A"><span class="RefLink">41.12-5</span></a>).</p>
1262
1263 <p>Most operations for actions are applicable as an attribute for an external set.</p>
1264
1265 <p>The most prominent external subsets are orbits, see <code class="func">ExternalOrbit</code> (<a href="chap41.html#X7FB656AE7A066C35"><span class="RefLink">41.12-9</span></a>).</p>
1266
1267 <p>Many subsets of a group, such as conjugacy classes or cosets (see <code class="func">ConjugacyClass</code> (<a href="chap39.html#X7B2F207F7F85F5B8"><span class="RefLink">39.10-1</span></a>) and <code class="func">RightCoset</code> (<a href="chap39.html#X8412ABD57986B9FC"><span class="RefLink">39.7-1</span></a>)) are implemented as external orbits.</p>
1268
1269 <p>External sets also are implicitly underlying action homomorphisms, see <code class="func">UnderlyingExternalSet</code> (<a href="chap41.html#X8190A8247F29A5C7"><span class="RefLink">41.12-16</span></a>) and <code class="func">SurjectiveActionHomomorphismAttr</code> (<a href="chap41.html#X7A3D87DE809FBFD4"><span class="RefLink">41.12-17</span></a>).</p>
1270
1271 <p><a id="X8264C3C479FF0A8B" name="X8264C3C479FF0A8B"></a></p>
1272
1273 <h5>41.12-1 IsExternalSet</h5>
1274
1275 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsExternalSet</code>( <var class="Arg">obj</var> )</td><td class="tdright">(&nbsp;category&nbsp;)</td></tr></table></div>
1276 <p>An <em>external set</em> specifies a group action <span class="SimpleMath">μ: Ω × G ↦ Ω</span> of a group <span class="SimpleMath">G</span> on a domain <span class="SimpleMath">Ω</span>. The external set knows the group, the domain and the actual acting function. Mathematically, an external set is the set <span class="SimpleMath">Ω</span>, which is endowed with the action of a group <span class="SimpleMath">G</span> via the group action <span class="SimpleMath">μ</span>. For this reason <strong class="pkg">GAP</strong> treats an external set as a domain whose elements are the elements of <span class="SimpleMath">Ω</span>. An external set is always a union of orbits. Currently the domain <span class="SimpleMath">Ω</span> must always be finite. If <span class="SimpleMath">Ω</span> is not a list, an enumerator for <span class="SimpleMath">Ω</span> is automatically chosen, see <code class="func">Enumerator</code> (<a href="chap30.html#X7EF8910F82B45EC7"><span class="RefLink">30.3-2</span></a>).</p>
1277
1278 <p><a id="X7C90F648793E47DD" name="X7C90F648793E47DD"></a></p>
1279
1280 <h5>41.12-2 ExternalSet</h5>
1281
1282 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ExternalSet</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1283 <p>creates the external set for the action <var class="Arg">act</var> of <var class="Arg">G</var> on <var class="Arg">Omega</var>. <var class="Arg">Omega</var> can be either a proper set, or a domain which is represented as described in <a href="chap12.html#X7BAF69417BB925F6"><span class="RefLink">12.4</span></a> and <a href="chap30.html#X8050A8037984E5B6"><span class="RefLink">30</span></a>, or (to use less memory but with a slower performance) an enumerator (see <code class="func">Enumerator</code> (<a href="chap30.html#X7EF8910F82B45EC7"><span class="RefLink">30.3-2</span></a>) ) of this domain.</p>
1284
1285 <p>The result is undefined if <var class="Arg">G</var> does not act on <var class="Arg">Omega</var>.</p>
1286
1287
1288 <div class="example"><pre>
1289 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3),(2,3,4));;</span>
1290 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">e:=ExternalSet(g,[1..4]);</span>
1291 &lt;xset:[ 1, 2, 3, 4 ]&gt;
1292 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">e:=ExternalSet(g,g,OnRight);</span>
1293 &lt;xset:[ (), (2,3,4), (2,4,3), (1,2)(3,4), (1,2,3), (1,2,4), (1,3,2),
1294 (1,3,4), (1,3)(2,4), (1,4,2), (1,4,3), (1,4)(2,3) ]&gt;
1295 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Orbits(e);</span>
1296 [ [ (), (1,2)(3,4), (1,3)(2,4), (1,4)(2,3), (2,4,3), (1,4,2),
1297 (1,2,3), (1,3,4), (2,3,4), (1,3,2), (1,4,3), (1,2,4) ] ]
1298 </pre></div>
1299
1300 <p><a id="X7B9DB15D80CE28B4" name="X7B9DB15D80CE28B4"></a></p>
1301
1302 <h5>41.12-3 ActingDomain</h5>
1303
1304 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ActingDomain</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1305 <p>This attribute returns the group with which the external set <var class="Arg">xset</var> was defined.</p>
1306
1307 <p><a id="X86153CB087394DC1" name="X86153CB087394DC1"></a></p>
1308
1309 <h5>41.12-4 FunctionAction</h5>
1310
1311 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; FunctionAction</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1312 <p>is the acting function with which the external set <var class="Arg">xset</var> was defined.</p>
1313
1314 <p><a id="X86A0CC1479A5932A" name="X86A0CC1479A5932A"></a></p>
1315
1316 <h5>41.12-5 HomeEnumerator</h5>
1317
1318 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; HomeEnumerator</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1319 <p>returns an enumerator of the action domain with which the external set <var class="Arg">xset</var> was defined. For external subsets, this is in general different from the <code class="func">Enumerator</code> (<a href="chap30.html#X7EF8910F82B45EC7"><span class="RefLink">30.3-2</span></a>) value of <var class="Arg">xset</var>, which enumerates only the subset.</p>
1320
1321
1322 <div class="example"><pre>
1323 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">ActingDomain(e);</span>
1324 Group([ (1,2,3), (2,3,4) ])
1325 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">FunctionAction(e)=OnRight;</span>
1326 true
1327 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">HomeEnumerator(e);</span>
1328 [ (), (2,3,4), (2,4,3), (1,2)(3,4), (1,2,3), (1,2,4), (1,3,2),
1329 (1,3,4), (1,3)(2,4), (1,4,2), (1,4,3), (1,4)(2,3) ]
1330 </pre></div>
1331
1332 <p><a id="X879DE63C7858453C" name="X879DE63C7858453C"></a></p>
1333
1334 <h5>41.12-6 IsExternalSubset</h5>
1335
1336 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsExternalSubset</code>( <var class="Arg">obj</var> )</td><td class="tdright">(&nbsp;representation&nbsp;)</td></tr></table></div>
1337 <p>An external subset is the restriction of an external set to a subset of the domain (which must be invariant under the action). It is again an external set.</p>
1338
1339 <p><a id="X87D1EA1486D86233" name="X87D1EA1486D86233"></a></p>
1340
1341 <h5>41.12-7 ExternalSubset</h5>
1342
1343 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ExternalSubset</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>, <var class="Arg">start</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>], <var class="Arg">act</var> )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1344 <p>constructs the external subset of <var class="Arg">Omega</var> on the union of orbits of the points in <var class="Arg">start</var>.</p>
1345
1346 <p>The result is undefined if <var class="Arg">G</var> does not act on <var class="Arg">Omega</var>.</p>
1347
1348 <p><a id="X7E081F568407317F" name="X7E081F568407317F"></a></p>
1349
1350 <h5>41.12-8 IsExternalOrbit</h5>
1351
1352 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; IsExternalOrbit</code>( <var class="Arg">obj</var> )</td><td class="tdright">(&nbsp;representation&nbsp;)</td></tr></table></div>
1353 <p>An external orbit is an external subset consisting of one orbit.</p>
1354
1355 <p><a id="X7FB656AE7A066C35" name="X7FB656AE7A066C35"></a></p>
1356
1357 <h5>41.12-9 ExternalOrbit</h5>
1358
1359 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ExternalOrbit</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>, <var class="Arg">pnt</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>], <var class="Arg">act</var> )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1360 <p>constructs the external subset on the orbit of <var class="Arg">pnt</var>. The <code class="func">Representative</code> (<a href="chap30.html#X865507568182424E"><span class="RefLink">30.4-7</span></a>) value of this external set is <var class="Arg">pnt</var>.</p>
1361
1362 <p>The result is undefined if <var class="Arg">G</var> does not act on <var class="Arg">Omega</var>.</p>
1363
1364
1365 <div class="example"><pre>
1366 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">e:=ExternalOrbit(g,g,(1,2,3));</span>
1367 (1,2,3)^G
1368 </pre></div>
1369
1370 <p><a id="X7BAFF02B7D6DF9F2" name="X7BAFF02B7D6DF9F2"></a></p>
1371
1372 <h5>41.12-10 StabilizerOfExternalSet</h5>
1373
1374 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; StabilizerOfExternalSet</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1375 <p>computes the stabilizer of the <code class="func">Representative</code> (<a href="chap30.html#X865507568182424E"><span class="RefLink">30.4-7</span></a>) value of the external set <var class="Arg">xset</var>. The stabilizer will have the acting group of <var class="Arg">xset</var> as its parent.</p>
1376
1377
1378 <div class="example"><pre>
1379 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Representative(e);</span>
1380 (1,2,3)
1381 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">StabilizerOfExternalSet(e);</span>
1382 Group([ (1,2,3) ])
1383 </pre></div>
1384
1385 <p><a id="X867262FA82FDD592" name="X867262FA82FDD592"></a></p>
1386
1387 <h5>41.12-11 <span class="Heading">ExternalOrbits</span></h5>
1388
1389 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ExternalOrbits</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1390 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ExternalOrbits</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1391 <p>computes a list of external orbits that give the orbits of <var class="Arg">G</var>.</p>
1392
1393
1394 <div class="example"><pre>
1395 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">ExternalOrbits(g,AsList(g));</span>
1396 [ ()^G, (2,3,4)^G, (2,4,3)^G, (1,2)(3,4)^G ]
1397 </pre></div>
1398
1399 <p><a id="X7A64EF807CE8893E" name="X7A64EF807CE8893E"></a></p>
1400
1401 <h5>41.12-12 <span class="Heading">ExternalOrbitsStabilizers</span></h5>
1402
1403 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ExternalOrbitsStabilizers</code>( <var class="Arg">G</var>, <var class="Arg">Omega</var>[, <var class="Arg">gens</var>, <var class="Arg">acts</var>][, <var class="Arg">act</var>] )</td><td class="tdright">(&nbsp;operation&nbsp;)</td></tr></table></div>
1404 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ExternalOrbitsStabilizers</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1405 <p>In addition to <code class="func">ExternalOrbits</code> (<a href="chap41.html#X867262FA82FDD592"><span class="RefLink">41.12-11</span></a>), this operation also computes the stabilizers of the representatives of the external orbits at the same time. (This can be quicker than computing the <code class="func">ExternalOrbits</code> (<a href="chap41.html#X867262FA82FDD592"><span class="RefLink">41.12-11</span></a>) value first and the stabilizers afterwards.)</p>
1406
1407
1408 <div class="example"><pre>
1409 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">e:=ExternalOrbitsStabilizers(g,AsList(g));</span>
1410 [ ()^G, (2,3,4)^G, (2,4,3)^G, (1,2)(3,4)^G ]
1411 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">HasStabilizerOfExternalSet(e[3]);</span>
1412 true
1413 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">StabilizerOfExternalSet(e[3]);</span>
1414 Group([ (2,4,3) ])
1415 </pre></div>
1416
1417 <p><a id="X8048AE727A7F1A2F" name="X8048AE727A7F1A2F"></a></p>
1418
1419 <h5>41.12-13 CanonicalRepresentativeOfExternalSet</h5>
1420
1421 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; CanonicalRepresentativeOfExternalSet</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1422 <p>The canonical representative of an external set <var class="Arg">xset</var> may only depend on the defining attributes <var class="Arg">G</var>, <var class="Arg">Omega</var>, <var class="Arg">act</var> of <var class="Arg">xset</var> and (in the case of external subsets) <code class="code">Enumerator( <var class="Arg">xset</var> )</code>. It must <em>not</em> depend, e.g., on the representative of an external orbit. <strong class="pkg">GAP</strong> does not know methods for arbitrary external sets to compute a canonical representative, see <code class="func">CanonicalRepresentativeDeterminatorOfExternalSet</code> (<a href="chap41.html#X8071A8D784DC8325"><span class="RefLink">41.12-14</span></a>).</p>
1423
1424 <p><a id="X8071A8D784DC8325" name="X8071A8D784DC8325"></a></p>
1425
1426 <h5>41.12-14 CanonicalRepresentativeDeterminatorOfExternalSet</h5>
1427
1428 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; CanonicalRepresentativeDeterminatorOfExternalSet</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1429 <p>returns a function that takes as its arguments the acting group and a point. This function returns a list of length 1 or 3, the first entry being the canonical representative and the other entries (if bound) being the stabilizer of the canonical representative and a conjugating element, respectively. An external set is only guaranteed to be able to compute a canonical representative if it has a <code class="func">CanonicalRepresentativeDeterminatorOfExternalSet</code>.</p>
1430
1431 <p><a id="X85E9A6A77B8D00B8" name="X85E9A6A77B8D00B8"></a></p>
1432
1433 <h5>41.12-15 ActorOfExternalSet</h5>
1434
1435 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; ActorOfExternalSet</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1436 <p>returns an element mapping <code class="code">Representative(<var class="Arg">xset</var>)</code> to <code class="code">CanonicalRepresentativeOfExternalSet(<var class="Arg">xset</var>)</code> under the given action.</p>
1437
1438
1439 <div class="example"><pre>
1440 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">u:=Subgroup(g,[(1,2,3)]);;</span>
1441 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">e:=RightCoset(u,(1,2)(3,4));;</span>
1442 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">CanonicalRepresentativeOfExternalSet(e);</span>
1443 (2,4,3)
1444 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">ActorOfExternalSet(e);</span>
1445 (1,3,2)
1446 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">FunctionAction(e)((1,2)(3,4),last);</span>
1447 (2,4,3)
1448 </pre></div>
1449
1450 <p><a id="X8190A8247F29A5C7" name="X8190A8247F29A5C7"></a></p>
1451
1452 <h5>41.12-16 UnderlyingExternalSet</h5>
1453
1454 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; UnderlyingExternalSet</code>( <var class="Arg">acthom</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1455 <p>The underlying set of an action homomorphism <var class="Arg">acthom</var> is the external set on which it was defined.</p>
1456
1457
1458 <div class="example"><pre>
1459 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">g:=Group((1,2,3),(1,2));;</span>
1460 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">hom:=ActionHomomorphism(g,Arrangements([1..4],3),OnTuples);;</span>
1461 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">s:=UnderlyingExternalSet(hom);</span>
1462 &lt;xset:[[ 1, 2, 3 ],[ 1, 2, 4 ],[ 1, 3, 2 ],[ 1, 3, 4 ],[ 1, 4, 2 ],
1463 [ 1, 4, 3 ],[ 2, 1, 3 ],[ 2, 1, 4 ],[ 2, 3, 1 ],[ 2, 3, 4 ],
1464 [ 2, 4, 1 ],[ 2, 4, 3 ],[ 3, 1, 2 ],[ 3, 1, 4 ],[ 3, 2, 1 ], ...]&gt;
1465 <span class="GAPprompt">gap&gt;</span> <span class="GAPinput">Print(s,"\n");</span>
1466 [ [ 1, 2, 3 ], [ 1, 2, 4 ], [ 1, 3, 2 ], [ 1, 3, 4 ], [ 1, 4, 2 ],
1467 [ 1, 4, 3 ], [ 2, 1, 3 ], [ 2, 1, 4 ], [ 2, 3, 1 ], [ 2, 3, 4 ],
1468 [ 2, 4, 1 ], [ 2, 4, 3 ], [ 3, 1, 2 ], [ 3, 1, 4 ], [ 3, 2, 1 ],
1469 [ 3, 2, 4 ], [ 3, 4, 1 ], [ 3, 4, 2 ], [ 4, 1, 2 ], [ 4, 1, 3 ],
1470 [ 4, 2, 1 ], [ 4, 2, 3 ], [ 4, 3, 1 ], [ 4, 3, 2 ] ]
1471 </pre></div>
1472
1473 <p><a id="X7A3D87DE809FBFD4" name="X7A3D87DE809FBFD4"></a></p>
1474
1475 <h5>41.12-17 SurjectiveActionHomomorphismAttr</h5>
1476
1477 <div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#8227; SurjectiveActionHomomorphismAttr</code>( <var class="Arg">xset</var> )</td><td class="tdright">(&nbsp;attribute&nbsp;)</td></tr></table></div>
1478 <p>returns an action homomorphism for the external set <var class="Arg">xset</var> which is surjective. (As the <code class="func">Image</code> (<a href="chap32.html#X87F4D35A826599C6"><span class="RefLink">32.4-6</span></a>) value of this homomorphism has to be computed to obtain the range, this may take substantially longer than <code class="func">ActionHomomorphism</code> (<a href="chap41.html#X78E6A002835288A4"><span class="RefLink">41.7-1</span></a>).)</p>
1479
1480
1481 <div class="chlinkprevnextbot">&nbsp;<a href="chap0.html">[Top of Book]</a>&nbsp; <a href="chap0.html#contents">[Contents]</a>&nbsp; &nbsp;<a href="chap40.html">[Previous Chapter]</a>&nbsp; &nbsp;<a href="chap42.html">[Next Chapter]</a>&nbsp; </div>
1482
1483
1484 <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>
1485
1486 <hr />
1487 <p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
1488 </body>
1489 </html>