The class of states of the world as an -groupoid: identifying states of the world and hierarchies of belief