Goral, Andreas, et al. “Model Counting and Sampling via Semiring Extensions”. Proceedings of the AAAI Conference on Artificial Intelligence, vol. 38, no. 18, Mar. 2024, pp. 20395-03, doi:10.1609/aaai.v38i18.30022.