A social contract sets out the rules and roles for this kind of cooperation. One kind of social contract is a constitution – which outlines to some extent what society in a given state is intended to look like.