Beliefs, precedent, and the dynamics of access to justice: A bayesian microfounded model