/* This code can be loaded, or copied and pasted, into Magma. It will load the data associated to the BMF, including the field, level, and Hecke and Atkin-Lehner eigenvalue data. At the *bottom* of the file, there is code to recreate the Bianchi modular form in Magma, by creating the BMF space and cutting out the corresponding Hecke irreducible subspace. From there, you can ask for more eigenvalues or modify as desired. It is commented out, as this computation may be lengthy. */ P := PolynomialRing(Rationals()); g := P![1, -1, 1]; F := NumberField(g); ZF := Integers(F); NN := ideal; primesArray := [ [3,a+1], [2,2], [7,a+2], [7,a-3], [13,a+3], [13,a-4], [19,a+7], [19,a-8], [5,5], [31,a+5], [31,a-6], [37,a+10], [37,a-11], [43,a+6], [43,a-7], [61,a+13], [61,a-14], [67,a+29], [67,a-30], [73,a+8], [73,a-9], [79,a+23], [79,a-24], [97,a+35], [97,a-36], [103,a+46], [103,a-47], [109,a+45], [109,a-46], [11,11], [127,a+19], [127,a-20], [139,a+42], [139,a-43], [151,a+32], [151,a-33], [157,a+12], [157,a-13], [163,a+58], [163,a-59], [181,a+48], [181,a-49], [193,a+84], [193,a-85], [199,a+92], [199,a-93], [211,a+14], [211,a-15], [223,a+39], [223,a-40], [229,a+94], [229,a-95], [241,a+15], [241,a-16], [271,a+28], [271,a-29], [277,a+116], [277,a-117], [283,a+44], [283,a-45], [17,17], [307,a+17], [307,a-18], [313,a+98], [313,a-99], [331,a+31], [331,a-32], [337,a+128], [337,a-129], [349,a+122], [349,a-123], [367,a+83], [367,a-84], [373,a+88], [373,a-89], [379,a+51], [379,a-52], [397,a+34], [397,a-35], [409,a+53], [409,a-54], [421,a+20], [421,a-21], [433,a+198], [433,a-199], [439,a+171], [439,a-172], [457,a+133], [457,a-134], [463,a+21], [463,a-22], [487,a+232], [487,a-233], [499,a+139], [499,a-140], [523,a+60], [523,a-61], [23,23], [541,a+129], [541,a-130], [547,a+40], [547,a-41], [571,a+109], [571,a-110], [577,a+213], [577,a-214], [601,a+24], [601,a-25], [607,a+210], [607,a-211], [613,a+65], [613,a-66], [619,a+252], [619,a-253], [631,a+43], [631,a-44], [643,a+177], [643,a-178], [661,a+296], [661,a-297], [673,a+255], [673,a-256], [691,a+253], [691,a-254], [709,a+227], [709,a-228], [727,a+281], [727,a-282], [733,a+307], [733,a-308], [739,a+320], [739,a-321], [751,a+72], [751,a-73], [757,a+27], [757,a-28], [769,a+360], [769,a-361], [787,a+379], [787,a-380], [811,a+130], [811,a-131], [823,a+174], [823,a-175], [829,a+125], [829,a-126], [29,29], [853,a+220], [853,a-221], [859,a+260], [859,a-261], [877,a+282], [877,a-283], [883,a+337], [883,a-338], [907,a+384], [907,a-385], [919,a+52], [919,a-53], [937,a+322], [937,a-323], [967,a+142], [967,a-143], [991,a+113], [991,a-114], [997,a+304], [997,a-305], [1009,a+374], [1009,a-375], [1021,a+368], [1021,a-369], [1033,a+195], [1033,a-196], [1039,a+140], [1039,a-141], [1051,a+180], [1051,a-181], [1063,a+343], [1063,a-344], [1069,a+86], [1069,a-87], [1087,a+257], [1087,a-258], [1093,a+151], [1093,a-152], [1117,a+120], [1117,a-121], [1123,a+33], [1123,a-34], [1129,a+387], [1129,a-388], [1153,a+502], [1153,a-503], [1171,a+420], [1171,a-421], [1201,a+570], [1201,a-571], [1213,a+217], [1213,a-218], [1231,a+126]]; primes := [ideal : I in primesArray]; heckePol := x; K := Rationals(); e := 1; heckeEigenvaluesList := [* -1, -3, 4, 4, 2, 2, -1, -1, 1, 0, 0, -6, -6, 8, 8, 14, 14, -4, -4, -14, -14, 16, 16, -10, -10, 16, 16, -2, -2, -6, -8, -8, -4, -4, 0, 0, -18, -18, 0, 0, 22, 22, 22, 22, 0, 0, 12, 12, -24, -24, -26, -26, -22, -22, 24, 24, 22, 22, -16, -16, -30, -12, -12, 10, 10, -28, -28, 22, 22, 30, 30, -20, -20, 34, 34, 4, 4, -2, -2, 10, 10, 14, 14, 6, 6, 8, 8, 10, 10, -4, -4, 8, 8, 20, 20, -4, -4, -30, 30, 30, 4, 4, -12, -12, 18, 18, 18, 18, -16, -16, -42, -42, -20, -20, 0, 0, -40, -40, -18, -18, 30, 30, -4, -4, 6, 6, 4, 4, -26, -26, 28, 28, -24, -24, -50, -50, 50, 50, -44, -44, 28, 28, -20, -20, -2, -2, -54, -2, -2, 36, 36, 42, 42, -16, -16, 28, 28, -16, -16, 18, 18, -20, -20, -40, -40, -26, -26, -38, -38, -34, -34, -6, -6, 24, 24, 12, 12, -40, -40, 14, 14, -44, -44, 10, 10, 42, 42, 36, 36, -22, -22, -2, -2, 20, 20, 50, 50, -26, -26, 56 *]; heckeEigenvalues := AssociativeArray(); for i in [1..#heckeEigenvaluesList] do heckeEigenvalues[primes[i]] := heckeEigenvaluesList[i]; end for; ALEigenvalues := AssociativeArray(); ALEigenvalues[ideal] := 1; ALEigenvalues[ideal] := 1; ALEigenvalues[ideal] := 1; ALEigenvalues[ideal] := -1; // EXAMPLE: // pp := Factorization(2*ZF)[1][1]; // heckeEigenvalues[pp]; print "To reconstruct the Bianchi newform f, type f, iso := Explode(make_newform());"; function make_newform(); M := BianchiCuspForms(F, NN); S := NewSubspace(M); // SetVerbose("Bianchi", 1); NFD := NewformDecomposition(S); newforms := [* Eigenform(U) : U in NFD *]; if #newforms eq 0 then; print "No Bianchi newforms at this level"; return 0; end if; print "Testing ", #newforms, " possible newforms"; newforms := [* f: f in newforms | IsIsomorphic(BaseField(f), K) *]; print #newforms, " newforms have the correct Hecke field"; if #newforms eq 0 then; print "No Bianchi newform found with the correct Hecke field"; return 0; end if; autos := Automorphisms(K); xnewforms := [* *]; for f in newforms do; if K eq RationalField() then; Append(~xnewforms, [* f, autos[1] *]); else; flag, iso := IsIsomorphic(K,BaseField(f)); for a in autos do; Append(~xnewforms, [* f, a*iso *]); end for; end if; end for; newforms := xnewforms; for P in primes do; if Valuation(NN,P) eq 0 then; xnewforms := [* *]; for f_iso in newforms do; f, iso := Explode(f_iso); if HeckeEigenvalue(f,P) eq iso(heckeEigenvalues[P]) then; Append(~xnewforms, f_iso); end if; end for; newforms := xnewforms; if #newforms eq 0 then; print "No Bianchi newform found which matches the Hecke eigenvalues"; return 0; else if #newforms eq 1 then; print "success: unique match"; return newforms[1]; end if; end if; end if; end for; print #newforms, "Bianchi newforms found which match the Hecke eigenvalues"; return newforms[1]; end function;