Guest User

Untitled

a guest
May 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. LoadPackage("qpa");
  2.  
  3. DirectSumOfMaps := function(maps)
  4. local M, N, p, q, i, result;
  5.  
  6. if IsEmpty(maps) then
  7. return fail;
  8. fi;
  9.  
  10. M := DirectSumOfQPAModules(List(maps, f -> Source(f)));
  11. N := DirectSumOfQPAModules(List(maps, f -> Range(f)));
  12.  
  13. p := DirectSumProjections(M);
  14. q := DirectSumInclusions(N);
  15.  
  16. result := ZeroMapping(M, N);
  17.  
  18. for i in [1..Length(maps)] do
  19. result := result + p[i]*maps[i]*q[i];
  20. od;
  21.  
  22. return result;
  23. end;
  24.  
  25. StrongTiltingModule := function(A)
  26. local n, i, j, S, F, L, s, r, t, q, g, d, T;
  27.  
  28. if not IsRadicalSquareZeroAlgebra(A) then
  29. Error("this is not a radical-square-zero algebra,n");
  30. fi;
  31.  
  32. S := SimpleModules(A);
  33. n := Length(S);
  34.  
  35. Perform(S, s -> ProjDimensionOfModule(s, n));
  36.  
  37. F := DirectSumOfQPAModules(Filtered(S, s -> HasProjDimension(s)));
  38. if F = fail then
  39. F := ZeroModule(A);
  40. fi;
  41.  
  42. L := [];
  43. for s in S do
  44. if HasProjDimension(s) then
  45. Add(L, IdentityMapping(s));
  46. else
  47. r := KernelInclusion(ProjectiveCover(s));
  48. t := TraceOfModule(F, Source(r));
  49. q := IdentityMapping(Range(r));
  50. Add(L, MorphismOnCoKernel(t*r, r, t, q));
  51. fi;
  52. od;
  53.  
  54. T := [];
  55. for i in [1..n] do
  56. if HasProjDimension(S[i]) then
  57. q := CoKernelProjection(InjectiveEnvelope(S[i]));
  58. d := DimensionVector(Range(q));
  59. g := [];
  60. for j in [1..n] do
  61. Append(g, ListWithIdenticalEntries(d[j], L[j]));
  62. od;
  63. if IsEmpty(g) then
  64. Add(T, Source(q));
  65. else
  66. Add(T, Source(PullBack(q, DirectSumOfMaps(g))[1]));
  67. fi;
  68. else
  69. Add(T, Source(L[i]));
  70. fi;
  71. od;
  72.  
  73. return DirectSumOfQPAModules(T);
  74. end;
Add Comment
Please, Sign In to add comment