Voluntary contributions to a public good when partial contribution is a dominant strategy