APPENDIX A
Some Interesting Star-Free Identities
In the course of this work many properties of star-free expressions were studied and some interesting properties not relevant to the main body of work were encountered. They have been included here.
Sometimes it is useful to manipulate the complement of an expression instead of the expression itself. Consider the following example:
| R=(λ+0)'(λ+1)' | |
| =(1+IA2)(0+IA2) | (i) |
| =10+IA20+1IA2+IA2IA2 | (ii) |
| =10+IA20+1IA2+IA4 | (iii) |
| =10+A20+1A2+IA4 | (iv) |
| hence R'=λ+0+1+00+01+11+001+011 | (v) |
| =(λ+0)(λ+0+1)(λ+1) | (vi) |
| hence (λ+0)'(λ+1)'=((λ+0)(λ+0+1)(λ+1))' |
(vii) |
For completeness the steps taken above are explained:
- Taking words of length zero, there is one, λ and it is contained in λ+0, hence not in (λ+0)'. Taking words of length one, there are 0 and 1; only 0 is contained in λ+0, therefore 1 must be contained in (λ+0)'. There are no words of length two or greater in λ+0; hence all of these must be contained in (λ+0)'. A2 represents all words of length 2, while IA2 represents all words of length 2 or greater. Hence (λ+0)'=(1+IA2).
- This step is simply a multiplication, keeping in mind that our multiplication (concatenation) is not commutative.
- All words of length two or more followed by all words of length two or more is obviously just all words of length four or more. Alternatively, it can be shown that I and A2 commute and that II=I, hence IA2IA2=IA4.
- IA20 is all words of length two or more followed by 0 or all words of length three or more ending in 0. All words of length four or more are already contained in IA4 hence IA20+IA4=A20+IA4.
- (A20+1A2) contains all words of length three ending in 0 or starting with 1. Hence (A20+1A2)' contains all words starting with 0 and ending in 1, namely 0A1=001+011.
- This step is merely a factoring.
This has been merely an example of the technique. Now we will turn to some
generalizations. Consider the expressions:
R=(λ+X1)'(λ+X2)' where X1, X2 ⊆A
hence R=(A-X1+IA2)(A-X2+IA2)
=(A-X1)(A-X2)+(A-X1)IA2+IA2(A-X2)+IA4
=(A-X1)(A-X2)+(A-X1)A2+A2(A-X2)+IA4
hence R'=λ+A+X1A+AX2+X1AX2
=(λ+X1)(λ+A)(λ+X2)
hence (λ+X1)'(λ+X2)'=((λ+X1)(λ+A)(λ+X2))'
If we set A=0,1, X1=0, X1=1 we have
(λ+0)'(λ+1)'=((λ+0)(λ+0+1)(λ+1))'
which was the result found in the first example. We may generalize this further. Consider:
P=(λ+A+A2+...+Ak-1+X1)'(λ+A+A2+...Al-1+X2)'
where X1⊆Ak,X2⊆Al
P=((Ak-X1)+IAk+1)((Al-X2)+IAl+1)
=(Ak-X1)(Al-X2) [length k+l]
+(Ak-X1)Al+1+Ak+1(Al-X2) [length k+l+1]
+IAk+l+2 [length k+l+2]
hence P'=Σi=0k+l-1Ai+X1Al+AkX2+X1AX2
=(λ+A+A2+ ... +Ak-1+X1)(λ+A)(λ+A+A2+ ... +Al-1+X2
hence (λ+A+A2+ ... +Ak-1+X1)'(λ+A+A2+ ... +Al-1+X2)'
=((λ+A+A2+ ... +Ak-1+X1)(λ+A)(λ+A+A2+ ... +Al-1+X2))'
Consider also:
P=(X1)'(λ+X2)'(λ+X3)'...(λ+Xn)' where Xi⊆A for i=1,n.
P=(λ+A-X1+IA2)(A-X2+IA2)(λ+X3)'...(λ+Xn)'
=(λ+X2)'(λ+X3)' ... (λ+Xn)'
Hence terms not including λ are absorbed in the presence of terms including λ.
Consider now an expression of terms all without λ:
P=(X1)'(X2)'...(Xn)' where Xi⊆A for i=1 to n
=(λ+A-X1+IA2)(λ+A-X2+IA2)...(λ+A-Xn+IA2)
=λ+A-X1+A-X2...+A-Xn+IA2
hence P'=X1∩X2∩...∩Xn
hence P=(X1∩X2∩...∩Xn)'
Hence all terms not including λ can be reduced to one term not containing λ but containing the intersection of the contents of the original terms. So far we have shown the following:
(λ+X1)'(λ+X2)'=((λ+X1)(λ+A)(λ+X2))'
(X1)'(X2)'...(Xn)'=(X1∩X2∩...∩Xn)'
(X1)'(λ+X2)'(λ+X3)'...(λ+Xn)'=(λ+X2)'(λ+X3)'...(λ+Xn)'
for any Xi⊆A for any A
Also:
(λ+A+A2+...+Ak-1+Xk)'(λ+A+A2+...Al-1+Xl)'
=((λ+A+A2+...+Ak-1+Xk)(λ+A)(λ+A+A2+...Al-1+Xl))'
for any Xk⊆Ak, Xl⊆Al for any A
We can also show the following:
(λ+X1)'(λ+X2)'(λ+X3)'=((λ+X1)(λ+A)(λ+X2)(λ+A)(λ+X3))'
((λ+X1)(λ+X2))'((λ+X3)(λ+X4))'=((λ+X1)(λ+X2)(λ+A)(λ+X3)(λ+X4))'
A logical extension would be:
(λ+X1)'(λ+X2)'...(λ+Xn)'
=((λ+X1)(λ+A)(λ+X2)(λ+A)...(λ+A)(λ+Xn))'
and a proof has been attempted but appears elusive. An attempt follows:
P=(λ+X1)'(λ+X2)'...(λ+Xn)'
=(A-X1+IA2)(A-X2+IA2)...(A-Xn+IA2)
=IA2n [length 2n]
+(A-X1)A2n-2+A2((A-X2+IA2)A2n-4+...+A2n-2(A-Xn) [length 2n-1]
+(A-X1)(A-X2)A2n-2+...
+A2p-2(A-Xp)A2q-2p-2(A-Xq)A2n-2q+...
+A2n-4(A-Xn-1)(A-Xn) [length 2n-2]
+A2(A-X2)...(A-Xn)
+(A-X2)...(A-Xp)A2(A-Xp+2)...(A-Xn)
+...
+(A-X1)...(A-Xn-1)A2 [length n+1]
+(A-X1)(A-X2)...(A-Xn) [length n]
Note: There are no terms of length <n. All terms of length ≥2n
are included. Also the I's may be removed from lines of length 2n-1
to n+1 because the words represented in each case with the I's included
are included in the line above.
Q=((λ+X1)(λ+A)(λ+X2)(λ+A)...(λ+A)(λ+Xn))'
Q'=(λ+X1)(λ+A)(λ+X2)(λ+A)...(λ+A)(λ+Xn)
=λ+A+A2+...+An-1 [length <n]
+X1An-1+AX2An-2+...+Ar-1XrAn-r+...An-1Xn [length n]
+X1AX2An-2+...+Ap-1XpAq-pXqAn-q+...+An-2Xn-1AXn [length n+1]
+AX2AX3A...AXn+X1AAX3A...AXn+...X1AX2A...AXn-1A [length 2n-2]
+X1AX2A...AXn [length 2n-1]
Note: All terms of length <n are present. No terms of length ≥2n are present.
Comparing P and Q':
- terms of length <n are in Q' and not in P.
- terms of length ≥2n are in P and not in Q'.
Hence we need only consider terms of length m such that n≤m<2n.
- Consider terms of length 2n-1:
P contains all such terms whose first letter is not in X1, or whose third letter is not in X2, ... or whose last letter is not in Xn. Hence the only words of length 2n-1 remaining outside of P are exactly those words whose first letter is in X1 and whose third letter is in X2 ... and whose last letter is in Xn, that is X1AX2AX3A...AXn and this is exactly the term contained in Q'. Hence the terms of length 2n-1 in P and Q' are complementary.
- Consider terms of length 2n-2:
For every term tpq in P with A-Xp in position 2p-1 and A-Xq in position 2q-2, each term in Q' has either Xp in postion 2p-1 or Xq in position 2q-2 or both. Hence any tpq in P is not in Q'. For every term ts in Q' missing Xs, P has all Xp such that p<s in position 2p-1, and all Xq such that q>s in position 2q-2. Hence any ts in Q' is not in P. It is thus apparent that terms of length 2n-2 are complementary in P and Q'.
- Similarly, it can be shown that terms of length 2n-3 to n+1 are complementary.
- Consider terms of length n:
Q' contains all terms whose first letter is in X1 or whose second letter is in X2, etc. The only words of length n remaining are those whose first letter is not in X1 and whose second letter is not in X2, etc., which is exactly the term of length n in P. Hence the words of length n in P and Q' are complementary.
Hence P=Q.
A rigorous proof of this relationship and further relationships are left as work for future study.