Smart Choices and the Selection Monad (Logical Methods in Computer Science, 2023)