Fixing Non-determinism


Alexander Vandenbroucke and Tom Schrijvers and Frank Piessens.
Proceedings of the 27th Symposium on the Implementation and Application of Functional Programming Languages.
pp. 5:1--5:12, ACM, 2016.

Abstract

Non-deterministic computations are conventionally modelled by lists of their outcomes. This approach provides a concise declarative description of certain problems, as well as a way of generically solving such problems. However, the traditional approach falls short when the non-deterministic problem is allowed to be recursive: the recursive problem may have infinitely many outcomes, giving rise to an infinite list. Yet there are usually only finitely many distinct relevant results. This paper shows that this set of interesting results corresponds to a least fixed point. We provide an implementation based on algebraic effect handlers to compute such least fixed points in a finite amount of time, thereby allowing non-determinism and recursion to meaningfully co-occur in a single program.

BibTeX

@inproceedings{ifl2015post,
  title = {Fixing Non-determinism},
  author = {Alexander Vandenbroucke and Tom Schrijvers and Frank Piessens},
  year = {2016},
  booktitle = {Proceedings of the 27th Symposium on the Implementation and Application of Functional Programming Languages},
  series = {IFL '15},
  pages = {5:1--5:12},
  doi = {10.1145/2897336.2897342},
  publisher = {ACM},
  address = {New York, NY, USA},
  url = {/Research/papers/ifl2015_post.pdf},
  abstract = {Non-deterministic computations are conventionally modelled by lists of their
outcomes. This approach provides a concise declarative description of certain
problems, as well as a way of generically solving such problems.  However, the
traditional approach falls short when the non-deterministic problem is
allowed to be recursive: the recursive problem may have infinitely many
outcomes, giving rise to an infinite list.  Yet there are usually only finitely
many distinct relevant results. This paper shows that this set of interesting
results corresponds to a least fixed point. We provide an implementation based
on algebraic effect handlers to compute such least fixed points in a finite
amount of time, thereby allowing non-determinism and recursion to meaningfully
co-occur in a single program.
},
}