CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
2
3 Farey symbols and their properties
3
4
A Farey symbol is a compact and useful way to represent a subgroup of finite
5
index in SL_2(ℤ) from which one can deduce independent generators for this
6
subgroup. It consists of two components, namely a so-called generalised
7
Farey sequence (gfs) and an ordered list of labels, giving additional
8
structure to the gfs.
9
10
A generalised Farey sequence (g.F.S.) is an ordered list of the form
11
-infinity, x_0, x_1, ... , x_n, infinity, where
12
13
1. the x_i = a_i/b_i are rational numbers in reduced form arranged in
14
increasing order for i = 0, ... , n;
15
16
2. x_0, ... , x_n ∈ Z, and some x_i = 0;
17
18
3. we define x_-1=-infinity=-1/0 and x_n+1=infinity=1/0;
19
20
4. a_i+1b_i-a_ib_i+1=1 for i=-1, ... ,n.
21
22
The ordered list of labels of a Farey symbol gives an additional structure
23
to the gfs. The labels correspond to each consecutive pair of x_i's and are
24
of the following types:
25
26
1. even,
27
28
2. odd,
29
30
3. a natural number, which occurs in the list of labels exactly twice or not
31
at all.
32
33
Note that the actual values of numerical labels are not important; it is the
34
pairing of two intervals that matters.
35
36
The package Congruence provides functions to construct Farey symbols by the
37
given generalised Farey sequence and corresponding list of labels. The
38
returned Farey symbol will belong to the category IsFareySymbol and will
39
have the representation IsFareySymbolDefaultRep.
40
41
42
3.1 Construction of Farey symbols
43
44
3.1-1 FareySymbolByData
45
46
FareySymbolByData( gfs, labels )  function
47
48
This constructor creates the Farey symbol with the given generalized Farey
49
sequence and list of labels. It also checks conditions from the definition
50
of Farey symbol and returns an error if they are not satisfied. The data
51
used to create the Farey symbol are stored as its attributes
52
GeneralizedFareySequence (3.2-1) and LabelsOfFareySymbol (3.2-4).
53
54
 Example 
55

56
gap> fs:=FareySymbolByData([infinity,0,1,2,infinity],[1,2,2,1]); 
57
[ infinity, 0, 1, 2, infinity ]
58
[ 1, 2, 2, 1 ]
59

60

61
62
3.1-2 IsValidFareySymbol
63
64
IsValidFareySymbol( fs )  function
65
66
This function is used in FareySymbolByData (3.1-1) to validate its output.
67
68
 Example 
69

70
gap> IsValidFareySymbol(fs);
71
true
72

73

74
75
76
3.2 Properties of Farey symbols
77
78
3.2-1 GeneralizedFareySequence
79
80
GeneralizedFareySequence( fs )  attribute
81
82
Returns the generalized Farey sequence gfs of the Farey symbol.
83
84
 Example 
85

86
gap> GeneralizedFareySequence(fs);
87
[ infinity, 0, 1, 2, infinity ]
88

89

90
91
3.2-2 NumeratorOfGFSElement
92
93
NumeratorOfGFSElement( gfs, i )  function
94
Returns: integer
95
96
Returns the numerator of the i-th term of the generalised Farey sequence
97
gfs: for the 1st infinite entry returns -1, for the last one returns 1, for
98
all other entries returns the usual numerator.
99
100
 Example 
101

102
gap> List([1..5], i -> NumeratorOfGFSElement(GeneralizedFareySequence(fs),i));
103
[ -1, 0, 1, 2, 1 ]
104

105

106
107
3.2-3 DenominatorOfGFSElement
108
109
DenominatorOfGFSElement( gfs, i )  function
110
Returns: integer
111
112
Returns the denominator of the i-th term of the generalised Farey sequence
113
gfs: for both infinite entries returns 0, for the other ones returns the
114
usual denominator.
115
116
 Example 
117

118
gap> List([1..5], i -> DenominatorOfGFSElement(GeneralizedFareySequence(fs),i)); 
119
[ 0, 1, 1, 1, 0 ]
120

121

122
123
3.2-4 LabelsOfFareySymbol
124
125
LabelsOfFareySymbol( fs )  attribute
126
127
Returns the list of labels of the Farey symbol. This list has "odd", "even"
128
and paired integers as entries.
129
130
 Example 
131

132
gap> LabelsOfFareySymbol(fs);
133
[ 1, 2, 2, 1 ]
134

135

136
137
138