Shades of Iteration: from Elgot to Kleene

Sergey Goncharov
1/15/2023
cs.LOcs.CL

No confident code implementation found for this paper.

Abstract

Notions of iteration range from the arguably most general Elgot iteration to a very specific Kleene iteration. The fundamental nature of Elgot iteration has been extensively explored by Bloom and Esik in the form of iteration theories, while Kleene iteration became extremely popular as an integral part of (untyped) formalisms, such as automata theory, regular expressions and Kleene algebra. Here, we establish a formal connection between Elgot iteration and Kleene iteration in the form of Elgot monads and Kleene monads, respectively. We also introduce a novel class of while-monads, which like Kleene monads admit a relatively simple description in algebraic terms. Like Elgot monads, while-monads cover a large variety of models that meaningfully support while-loops, but may fail the Kleene algebra laws, or even fail to support a Kleen iteration operator altogether.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{goncharov2023shades,
  title  = {Shades of Iteration: from Elgot to Kleene},
  author = {Sergey Goncharov},
  year   = {2023},
  eprint = {2301.06202},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.06202v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.06202.svg)](https://codeofpaper.com/paper/2301.06202)

Discussion