On the generalized boolean algebra generated by a distributive lattice