/* 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, 0, 1]; F := NumberField(g); ZF := Integers(F); NN := ideal; primesArray := [ [2,i+1], [5,i+2], [5,i-2], [3,3], [13,i+5], [13,i-5], [17,i+4], [17,i-4], [29,i+12], [29,i-12], [37,i+6], [37,i-6], [41,i+9], [41,i-9], [7,7], [53,i+23], [53,i-23], [61,i+11], [61,i-11], [73,i+27], [73,i-27], [89,i+34], [89,i-34], [97,i+22], [97,i-22], [101,i+10], [101,i-10], [109,i+33], [109,i-33], [113,i+15], [113,i-15], [11,11], [137,i+37], [137,i-37], [149,i+44], [149,i-44], [157,i+28], [157,i-28], [173,i+80], [173,i-80], [181,i+19], [181,i-19], [193,i+81], [193,i-81], [197,i+14], [197,i-14], [229,i+107], [229,i-107], [233,i+89], [233,i-89], [241,i+64], [241,i-64], [257,i+16], [257,i-16], [269,i+82], [269,i-82], [277,i+60], [277,i-60], [281,i+53], [281,i-53], [293,i+138], [293,i-138], [313,i+25], [313,i-25], [317,i+114], [317,i-114], [337,i+148], [337,i-148], [349,i+136], [349,i-136], [353,i+42], [353,i-42], [19,19], [373,i+104], [373,i-104], [389,i+115], [389,i-115], [397,i+63], [397,i-63], [401,i+20], [401,i-20], [409,i+143], [409,i-143], [421,i+29], [421,i-29], [433,i+179], [433,i-179], [449,i+67], [449,i-67], [457,i+109], [457,i-109], [461,i+48], [461,i-48], [509,i+208], [509,i-208], [521,i+235], [521,i-235], [23,23], [541,i+52], [541,i-52], [557,i+118], [557,i-118], [569,i+86], [569,i-86], [577,i+24], [577,i-24], [593,i+77], [593,i-77], [601,i+125], [601,i-125], [613,i+35], [613,i-35], [617,i+194], [617,i-194], [641,i+154], [641,i-154], [653,i+149], [653,i-149], [661,i+106], [661,i-106], [673,i+58], [673,i-58], [677,i+26], [677,i-26], [701,i+135], [701,i-135], [709,i+96], [709,i-96], [733,i+353], [733,i-353], [757,i+87], [757,i-87], [761,i+39], [761,i-39], [769,i+62], [769,i-62], [773,i+317], [773,i-317], [797,i+215], [797,i-215], [809,i+318], [809,i-318], [821,i+295], [821,i-295], [829,i+246], [829,i-246], [853,i+333], [853,i-333], [857,i+207], [857,i-207], [877,i+151], [877,i-151], [881,i+387], [881,i-387], [929,i+324], [929,i-324], [937,i+196], [937,i-196], [941,i+97], [941,i-97], [953,i+442], [953,i-442], [31,31], [977,i+252], [977,i-252], [997,i+161], [997,i-161], [1009,i+469], [1009,i-469], [1013,i+45], [1013,i-45], [1021,i+374], [1021,i-374], [1033,i+355], [1033,i-355], [1049,i+426], [1049,i-426], [1061,i+103], [1061,i-103], [1069,i+249], [1069,i-249], [1093,i+530], [1093,i-530], [1097,i+341], [1097,i-341], [1109,i+354], [1109,i-354], [1117,i+214], [1117,i-214], [1129,i+168], [1129,i-168], [1153,i+140], [1153,i-140], [1181,i+243], [1181,i-243], [1193,i+186], [1193,i-186], [1201,i+49], [1201,i-49], [1213,i+495]]; primes := [ideal : I in primesArray]; heckePol := x; K := Rationals(); e := 1; heckeEigenvaluesList := [* -1, 2, 2, 0, 6, 6, 6, 6, -2, -2, -10, -10, 2, 2, -14, 6, 6, -2, -2, 10, 10, 2, 2, 10, 10, 10, 10, -10, -10, -6, -6, -22, -18, -18, -6, -6, -2, -2, 22, 22, 14, 14, -14, -14, 2, 2, 6, 6, -10, -10, -6, -6, -14, -14, 6, 6, 22, 22, 10, 10, 14, 14, -22, -22, 6, 6, -22, -22, -2, -2, 22, 22, 1, -10, -10, -30, -30, 14, 14, -38, -38, -14, -14, 14, 14, -14, -14, 2, 2, -6, -6, 18, 18, 22, 22, -14, -14, -30, 14, 14, -30, -30, -6, -6, 18, 18, 30, 30, 10, 10, 6, 6, -2, -2, -38, -38, -14, -14, 6, 6, -46, -46, 22, 22, 18, 18, 38, 38, 46, 46, 38, 38, -50, -50, 18, 18, -18, -18, 6, 6, -26, -26, 42, 42, -10, -10, 22, 22, -30, -30, -34, -34, 38, 38, -34, -34, -22, -22, 22, 22, -38, -38, 2, 42, 42, -58, -58, -6, -6, -54, -54, -2, -2, 10, 10, 38, 38, 26, 26, -18, -18, -34, -34, 42, 42, 10, 10, 6, 6, 2, 2, -38, -38, 14, 14, 2, 2, -46, -46, -50 *]; heckeEigenvalues := AssociativeArray(); for i in [1..#heckeEigenvaluesList] do heckeEigenvalues[primes[i]] := heckeEigenvaluesList[i]; end for; ALEigenvalues := AssociativeArray(); 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;