The boolean operations and, xor, or, and not are defined only for tuples of length 1. l1 and l2 is set to true (1) if both operands are true (1), whereas l1 xor l2 returns true (1) if exactly one of both operands is true. l1 or l2 returns true (1) if at least one of the operands is true (1). not l returns true (1) if the input is false (0), and false (0), if the input is true (1).