[math-fun] polyhedral "state machines" ?