Is there such a thing as a social contract between citizens and government? In the point of view of Denis Diderot

Yes, Denis Diderot believed in the existence of a social contract between citizens and government. He saw the social contract as an agreement between individuals and the state, where citizens gave up certain rights and freedoms in exchange for protection and guidance from the government. Diderot believed that the government had a responsibility to serve the interests of the people and ensure their well-being, and that citizens had a duty to obey the laws and contribute to the common good. This idea of a social contract can be seen in his writings, such as "Essay on the Rules of Morality."