If L1 and L2 are formal languages, then the right quotient of L1 with L2 is the language consisting of strings w such that wx is in L1 for some string x in L2. In symbols, we write:
Some common closure properties of quotient include:
There is a related notion of left quotient, which keeps the postfixes of L1 without the prefixes in L2. Sometimes, though, "right quotient" is written simply as "quotient". The above closure properties hold for both left and right quotients.