"Source: Text/Code/CodeRng.text";
"Line: 819";
"Date: Tue Nov  5 09:08:43 2019";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Code/CodeRng.text, line: 819
// Example: H168E9 ()
print "Example: H168E9";
ei := GetEchoInput();
SetEchoInput(true);
R<w> := GR(9,2);
P<x> := PolynomialRing(R);
g := x^2 + 7*w*x + 1;
C := CyclicCode(5, g);
C;

C1 := sub< C | C.1 >;
C1;
C2 := sub< C | C.4 >;
C2;
C3 := sub< C | { C.1 , C.4} >;
C3;
(C1 + C2) eq C3;
assert $1;
(C1 meet C3) eq C1;
assert $1;
SetEchoInput(ei);
