### Abstract

We introduce a new, demand-driven variant of Spector's bar recursion in the spirit of the Berardi–Bezem–Coquand functional of [4]. The recursion takes place over finite partial functions u, where the control parameter ω, used in Spector's bar recursion to terminate the computation at sequences s satisfying ω(s) < |s|, now acts as a guide for deciding exactly where to make bar recursive updates, terminating the computation whenever ω(s) \in dom(u). We begin by exploring theoretical aspects of this new form of recursion, then in the main part of the paper we show that demand-driven bar recursion can be directly used to give an alternative functional interpretation of classical countable choice. We provide a short case study as an illustration, in which we extract a new bar recursive program from the proof that there is no injection from N -> N to N, and compare this with the program that would be obtained using Spector's original variant. We conclude by formally establishing that our new bar recursor is primitive recursively equivalent to the original Spector bar recursion, and thus defines the same class of functionals when added to Gödel's system T.

Original language | English |
---|---|

Pages (from-to) | 887-921 |

Journal | Annals of Pure and Applied Logic |

Volume | 168 |

Issue number | 5 |

Early online date | 9 Nov 2016 |

DOIs | |

Publication status | Published - May 2017 |

## Cite this

Oliva, P., & Powell, T. (2017). Bar recursion over finite partial functions.

*Annals of Pure and Applied Logic*,*168*(5), 887-921. https://doi.org/10.1016/j.apal.2016.11.003