"Source: Text/Algebra/AlgLie.text";
"Line: 511";
"Date: Thu Nov  7 07:18:13 2019";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/Algebra/AlgLie.text, line: 511
// Example: H107E5 ()
print "Example: H107E5";
ei := GetEchoInput();
SetEchoInput(true);
L<z,y,x>:= FreeLieAlgebra(Rationals(), 3);
IsLeaf(x);
m := 2*((x, y), z); 
m;
il, a, b := IsLeaf(m);
il, a, b;
m eq (a, b);
assert not $1;
m eq LeadingCoefficient(m)*(a,b);
assert $1;
SetEchoInput(ei);
