A Totally Predictable Outcome: An Investigation of Traversals of Infinite Structures

07/20/2022
by   Gershom Bazerman, et al.
0

Functors with an instance of the Traversable type class can be thought of as data structures which permit a traversal of their elements. This has been made precise by the correspondence between traversable functors and finitary containers (also known as polynomial functors) – established in the context of total, necessarily terminating, functions. However, the Haskell language is non-strict and permits functions that do not terminate. It has long been observed that traversals can at times in fact operate over infinite lists, for example in distributing the Reader applicative. The result of such a traversal remains an infinite structure, however it nonetheless is productive – i.e. successive amounts of finite computation yield either termination or successive results. To investigate this phenomenon, we draw on tools from guarded recursion, making use of equational reasoning directly in Haskell.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/20/2023

Proving Termination of C Programs with Lists

There are many techniques and tools to prove termination of C programs, ...
research
07/20/2023

Automated Termination Proofs for C Programs with Lists (Short WST Version)

There are many techniques and tools for termination of C programs, but u...
research
01/17/2022

Infinite Hex is a draw

We introduce the game of infinite Hex, extending the familiar finite gam...
research
12/09/2022

Several new infinite classes of 0-APN power functions over 𝔽_2^n

The investigation of partially APN functions has attracted a lot of rese...
research
10/27/2022

Several classes of 0-APN power functions over 𝔽_2^n

Recently, the investigation of Partially APN functions has attracted a l...
research
01/30/2023

Big Ramsey degrees and infinite languages

This paper investigates big Ramsey degrees of unrestricted relational st...
research
08/09/2019

Cyclic Oritatami Systems Cannot Fold Infinite Fractal Curves

RNA cotranscriptional folding is the phenomenon in which an RNA transcri...

Please sign up or login with your details

Forgot password? Click here to reset