"Source: Text/Code/CodeZ4.text";
"Line: 1130";
"Date: Thu Jun 16 15:04:46 2022";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/Code/CodeZ4.text, line: 1130
// Example: H165E12 ()
print "Example: H165E12";
ei := GetEchoInput();
SetEchoInput(true);
C := LinearCode<Integers(4), 4 | [[1,0,0,3],[0,1,1,3]]>;
L := CosetRepresentatives(C);
Set(RSpace(Integers(4),4)) eq {v+ci : v in Set(C), ci in L};
K := KernelZ2CodeZ4(C);
L := CosetRepresentatives(C, K);
{C!0} join Set(KernelCosetRepresentatives(C)) eq L;
Set(C) eq {v+ci : v in Set(K), ci in L};
SetEchoInput(ei);
