"Source: Text/Code/CodeZ4.text";
"Line: 586";
"Date: Thu Sep 25 14:47:47 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Code/CodeZ4.text, line: 586
// Example: H169E6 ()
print "Example: H169E6";
ei := GetEchoInput();
SetEchoInput(true);
C := GolayCodeZ4(false);
C;
CRes := BinaryResidueCode(C);
CTor := BinaryTorsionCode(C);
CRes eq CTor;
assert $1;
CRes:Minimal;
AreEq, _ := IsEquivalent( CRes, GolayCode(GF(2), false) );
AreEq;
assert $1;
C1 := Z4CodeFromBinaryChain(CRes, CTor);
C1:Minimal;
C eq C1;
assert not $1;
SetEchoInput(ei);
