Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
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
Project: cocalc-sagemath-dev-slelievre
Views: 4183461[1X3 [33X[0;0YFarey symbols and their properties[133X[101X23[33X[0;0YA Farey symbol is a compact and useful way to represent a subgroup of finite4index in [22XSL_2(ℤ)[122X from which one can deduce independent generators for this5subgroup. It consists of two components, namely a so-called generalised6Farey sequence ([3Xgfs[103X) and an ordered list of labels, giving additional7structure to the [3Xgfs[103X.[133X89[33X[0;0YA generalised Farey sequence (g.F.S.) is an ordered list of the form10[22X-infinity, x_0, x_1, ... , x_n, infinity[122X, where[133X1112[33X[0;0Y1. the [22Xx_i = a_i/b_i[122X are rational numbers in reduced form arranged in13increasing order for [22Xi = 0, ... , n[122X;[133X1415[33X[0;0Y2. [22Xx_0, ... , x_n ∈ Z[122X, and some [22Xx_i = 0[122X;[133X1617[33X[0;0Y3. we define [22Xx_-1=-infinity=-1/0[122X and [22Xx_n+1=infinity=1/0[122X;[133X1819[33X[0;0Y4. [22Xa_i+1b_i-a_ib_i+1=1[122X for [22Xi=-1, ... ,n[122X.[133X2021[33X[0;0YThe ordered list of labels of a Farey symbol gives an additional structure22to the [3Xgfs[103X. The labels correspond to each consecutive pair of [22Xx_i[122X's and are23of the following types:[133X2425[33X[0;0Y1. even,[133X2627[33X[0;0Y2. odd,[133X2829[33X[0;0Y3. a natural number, which occurs in the list of labels exactly twice or not30at all.[133X3132[33X[0;0YNote that the actual values of numerical labels are not important; it is the33pairing of two intervals that matters.[133X3435[33X[0;0YThe package [5XCongruence[105X provides functions to construct Farey symbols by the36given generalised Farey sequence and corresponding list of labels. The37returned Farey symbol will belong to the category [10XIsFareySymbol[110X and will38have the representation [10XIsFareySymbolDefaultRep[110X.[133X394041[1X3.1 [33X[0;0YConstruction of Farey symbols[133X[101X4243[1X3.1-1 FareySymbolByData[101X4445[29X[2XFareySymbolByData[102X( [3Xgfs[103X, [3Xlabels[103X ) [32X function4647[33X[0;0YThis constructor creates the Farey symbol with the given generalized Farey48sequence and list of labels. It also checks conditions from the definition49of Farey symbol and returns an error if they are not satisfied. The data50used to create the Farey symbol are stored as its attributes51[2XGeneralizedFareySequence[102X ([14X3.2-1[114X) and [2XLabelsOfFareySymbol[102X ([14X3.2-4[114X).[133X5253[4X[32X Example [32X[104X54[4X[28X[128X[104X55[4X[25Xgap>[125X [27Xfs:=FareySymbolByData([infinity,0,1,2,infinity],[1,2,2,1]); [127X[104X56[4X[28X[ infinity, 0, 1, 2, infinity ][128X[104X57[4X[28X[ 1, 2, 2, 1 ][128X[104X58[4X[28X[128X[104X59[4X[32X[104X6061[1X3.1-2 IsValidFareySymbol[101X6263[29X[2XIsValidFareySymbol[102X( [3Xfs[103X ) [32X function6465[33X[0;0YThis function is used in [2XFareySymbolByData[102X ([14X3.1-1[114X) to validate its output.[133X6667[4X[32X Example [32X[104X68[4X[28X[128X[104X69[4X[25Xgap>[125X [27XIsValidFareySymbol(fs);[127X[104X70[4X[28Xtrue[128X[104X71[4X[28X[128X[104X72[4X[32X[104X737475[1X3.2 [33X[0;0YProperties of Farey symbols[133X[101X7677[1X3.2-1 GeneralizedFareySequence[101X7879[29X[2XGeneralizedFareySequence[102X( [3Xfs[103X ) [32X attribute8081[33X[0;0YReturns the generalized Farey sequence [3Xgfs[103X of the Farey symbol.[133X8283[4X[32X Example [32X[104X84[4X[28X[128X[104X85[4X[25Xgap>[125X [27XGeneralizedFareySequence(fs);[127X[104X86[4X[28X[ infinity, 0, 1, 2, infinity ][128X[104X87[4X[28X[128X[104X88[4X[32X[104X8990[1X3.2-2 NumeratorOfGFSElement[101X9192[29X[2XNumeratorOfGFSElement[102X( [3Xgfs[103X, [3Xi[103X ) [32X function93[6XReturns:[106X [33X[0;10Yinteger[133X9495[33X[0;0YReturns the numerator of the i-th term of the generalised Farey sequence96[3Xgfs[103X: for the 1st infinite entry returns -1, for the last one returns 1, for97all other entries returns the usual numerator.[133X9899[4X[32X Example [32X[104X100[4X[28X[128X[104X101[4X[25Xgap>[125X [27XList([1..5], i -> NumeratorOfGFSElement(GeneralizedFareySequence(fs),i));[127X[104X102[4X[28X[ -1, 0, 1, 2, 1 ][128X[104X103[4X[28X[128X[104X104[4X[32X[104X105106[1X3.2-3 DenominatorOfGFSElement[101X107108[29X[2XDenominatorOfGFSElement[102X( [3Xgfs[103X, [3Xi[103X ) [32X function109[6XReturns:[106X [33X[0;10Yinteger[133X110111[33X[0;0YReturns the denominator of the i-th term of the generalised Farey sequence112[3Xgfs[103X: for both infinite entries returns 0, for the other ones returns the113usual denominator.[133X114115[4X[32X Example [32X[104X116[4X[28X[128X[104X117[4X[25Xgap>[125X [27XList([1..5], i -> DenominatorOfGFSElement(GeneralizedFareySequence(fs),i)); [127X[104X118[4X[28X[ 0, 1, 1, 1, 0 ][128X[104X119[4X[28X[128X[104X120[4X[32X[104X121122[1X3.2-4 LabelsOfFareySymbol[101X123124[29X[2XLabelsOfFareySymbol[102X( [3Xfs[103X ) [32X attribute125126[33X[0;0YReturns the list of labels of the Farey symbol. This list has "odd", "even"127and paired integers as entries.[133X128129[4X[32X Example [32X[104X130[4X[28X[128X[104X131[4X[25Xgap>[125X [27XLabelsOfFareySymbol(fs);[127X[104X132[4X[28X[ 1, 2, 2, 1 ][128X[104X133[4X[28X[128X[104X134[4X[32X[104X135136137138