Skip to main content
QUICK REVIEW

[Paper Review] An interpretation of system F through bar recursion

Valentin Blot|arXiv (Cornell University)|Jun 20, 2017
Logic, programming, and type systemsComputer Science12 references4 citations
TL;DR

This paper presents the first compositional translation of System F into a simply-typed total language with bar recursion, using realizability to extract termination bounds for each F term. By leveraging these bounds via primitive recursion, it computes normal forms, offering a new bridge between polymorphic typing and bar recursion-based computation.

ABSTRACT

There are two possible computational interpretations of second-order arithmetic: Girard's system F or Spector's bar recursion and its variants. While the logic is the same, the programs obtained from these two interpretations have a fundamentally different computational behavior and their relationship is not well understood. We make a step towards a comparison by defining the first translation of system F into a simply-typed total language with a variant of bar recursion. This translation relies on a realizability interpretation of second-order arithmetic. Due to Godel's incompleteness theorem there is no proof of termination of system F within second-order arithmetic. However, for each individual term of system F there is a proof in second-order arithmetic that it terminates, with its realizability interpretation providing a bound on the number of reduction steps to reach a normal form. Using this bound, we compute the normal form through primitive recursion. Moreover, since the normalization proof of system F proceeds by induction on typing derivations, the translation is compositional. The flexibility of our method opens the possibility of getting a more direct translation that will provide an alternative approach to the study of polymorphism, namely through bar recursion.

Motivation & Objective

  • To establish a formal connection between System F and bar recursion, two distinct computational interpretations of second-order arithmetic.
  • To address the lack of understanding in the computational relationship between System F and bar recursion despite their logical equivalence.
  • To develop a translation from System F into a total language with bar recursion that preserves typing structure and enables normalization.
  • To overcome the limitations imposed by Gödel's incompleteness theorem by using realizability to extract finite termination bounds for individual terms.

Proposed method

  • Using realizability interpretation of second-order arithmetic to associate each System F term with a bound on its reduction steps to normal form.
  • Leveraging the fact that for each individual System F term, second-order arithmetic proves its termination, yielding a computable bound.
  • Computing the normal form of each System F term through primitive recursion using the extracted termination bound.
  • Constructing a compositional translation by induction on typing derivations, ensuring structural preservation.
  • Employing a variant of bar recursion as the computational foundation in a simply-typed total language.
  • Establishing a systematic, recursive translation that maps each type and term in System F to a corresponding term in the bar recursion framework.

Experimental results

Research questions

  • RQ1Can a compositional translation from System F into a total language with bar recursion be constructed, preserving typing structure?
  • RQ2How can realizability interpretations of second-order arithmetic be used to extract finite bounds on reduction steps for System F terms?
  • RQ3To what extent can primitive recursion simulate normalization of System F terms using these extracted bounds?
  • RQ4What is the computational relationship between System F and bar recursion, given their logical equivalence but differing computational behaviors?
  • RQ5Can this translation serve as a foundation for a new, bar recursion-based approach to studying polymorphism?

Key findings

  • The paper successfully constructs the first compositional translation from System F into a simply-typed total language extended with a variant of bar recursion.
  • For every individual term in System F, the realizability interpretation yields a finite bound on the number of reduction steps to reach normal form.
  • These bounds are used to compute the normal form of each term via primitive recursion, enabling full normalization within the target language.
  • The translation is compositional, relying on induction over typing derivations, which ensures structural fidelity and extensibility.
  • The method provides a new pathway to study polymorphism through bar recursion, offering an alternative to traditional System F semantics.
  • The approach circumvents Gödel's incompleteness theorem by focusing on individual term termination rather than global consistency proofs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.