Mathematical Foundation of Computer Science

(Chris Devlin) #1
DHARM

160 MATHEMATICAL FOUNDATION OF COMPUTER SCIENCE

Example 6.8. Show that lattice of Fig. 6.7 is not a distributive lattice.
Sol. Since, we can see that all elements of the lattice doesn’t satisfies the distributive equalities.
For example, between the elements y, z and r
GLB(y, LUB (z, r))
= GLB(y, x)= y; RHS
and LUB(GLB(y, z), GLB(y, r) = LUB(s, s) = s; LHS
Therefore RHS ≠ LHS, hence shown lattice is not a distributive lattice.
x


r

s

y z

Fig. 6.7
Remember that lattices similar to the lattice of Fig. 6.7 are called ‘diamond lattices’ and
they are not distributive lattices.
Example 6.9. We can further see that lattice shown in the Fig. 6.8 is not a distributive lattice.
Sol. A lattice is distributive if all of its elements follow distributive property so let we verify
the distributive property between the elements n, l and m.
p

m

n

l

o
Fig. 6.8
GLB(n, LUB(l, m)) = GLB(n, p)[∴LUB(l, m) = p]
= n (LHS)
also LUB(GLB(n, l), GLB(n, m)) = LUB(o, n); [∴GLB(n, l) = o and GLB(n, m) = n]
= n (RHS)
so LHS = RHS.
But GLB(m, LUB(l, n)) = GLB(m, p)[∴LUB(l, n) = p]
= m (LHS)
also LUB(GLB(m, l), GLB(m, n)) = LUB(o, n); [∴GLB(m, l) = o and GLB(m, n) = n]
= n (RHS)
Thus, LHS ≠ RHS hence distributive property doesn’t hold by the lattice so lattice is not
distributive.

Free download pdf