Difficulties in using .dist and pm.Potential for inference

Thanks - I am worried that it worked in pymc3+theano, and aesara is supposed to be a successor of theano. So it is a bit confusing if that’s not the case