A symbolic generalization of probability theory