Skip to main content
QUICK REVIEW

[Paper Review] Explicit Computational Paths

Arthur Ramos, Ruy J. G. B. de Queiroz|arXiv (Cornell University)|Sep 16, 2016
Formal Methods in VerificationComputer Science3 citations
TL;DR

This paper proposes an algebraic approach to homotopy type theory using computational paths—formal sequences of rewrites that serve as syntactic proofs of equality. By extending the $LND_{EQ}-TRS$ term rewrite system and directly modeling path spaces via computational paths, the authors construct the fundamental group of the circle and prove it is isomorphic to $\mathbb{Z}$, offering a syntax-based alternative to the standard code-encode-decode method.

ABSTRACT

The treatment of equality as a type in type theory gives rise to an interesting type-theoretic structure known as `identity type'. The idea is that, given terms $a,b$ of a type $A$, one may form the type $Id_{A}(a,b)$, whose elements are proofs that $a$ and $b$ are equal elements of type $A$. A term of this type, $p : Id_{A}(a,b)$, makes up for the grounds (or proof) that establishes that $a$ is indeed equal to $b$. Based on that, a proof of equality can be seen as a sequence of substitutions and rewrites, also known as a `computational path'. One interesting fact is that it is possible to rewrite computational paths using a set of reduction rules arising from an analysis of redundancies in paths. These rules were mapped by De Oliveira in 1994 in a term rewrite system known as $LND_{EQ}-TRS$. Here we use computational paths and this term rewrite system to develop the main foundations of homotopy type theory, i.e., we develop the lemmas and theorems connected to the main types of this theory, types such as products, coproducts, identity type, transport and many others. We also show that it is possible to directly construct path spaces through computational paths. To show this, we construct the natural numbers and the fundamental group of the circle, showing results connected to these structures.

Motivation & Objective

  • To establish a syntactic, computational foundation for homotopy type theory using computational paths as formal proofs of equality.
  • To overcome the semantic limitations of homotopical paths by introducing a formal, rewrite-based system for equality reasoning.
  • To demonstrate that computational paths can directly simulate path spaces without relying on complex techniques like code-encode-decode.
  • To extend the $LND_{EQ}-TRS$ term rewrite system with new reduction rules to support path algebra and type-theoretic constructions.
  • To reconstruct key results in homotopy type theory—such as the isomorphism of the fundamental group of the circle with $\mathbb{Z}$—using only computational paths.

Proposed method

  • Defining computational paths as sequences of rewrites derived from type theory axioms and rules, forming a formal syntax for equality.
  • Using the $LND_{EQ}-TRS$ term rewrite system to reduce and normalize computational paths, eliminating redundancies through a set of 47 reduction rules.
  • Introducing new reduction rules (e.g., $\tau(\mu(r),\mu(s))=_{tf}\mu(\tau(r,s))$) to model path composition, transport, and identity types algebraically.
  • Constructing path spaces directly via computational paths, avoiding semantic interpretations or external encoding schemes.
  • Defining path composition, inverse paths ($\sigma$), and identity paths ($\rho$) as syntactic operations within the path algebra.
  • Proving isomorphism between the fundamental group of the circle and $\mathbb{Z}$ by mapping paths $loop^n$ to integers $n$, using recursive path construction and inverse functions.

Experimental results

Research questions

  • RQ1Can computational paths serve as a fully syntactic foundation for homotopy type theory, replacing semantic or encoding-based approaches?
  • RQ2How can the $LND_{EQ}-TRS$ rewrite system be extended to support the full algebra of computational paths in type theory?
  • RQ3Can the fundamental group of the circle be constructed directly from computational paths without the code-encode-decode technique?
  • RQ4What reduction rules are necessary to ensure path normalization and consistency in the presence of identity types and path composition?
  • RQ5Is the path space of the natural numbers and the fundamental group of the circle isomorphic to standard algebraic structures via computational paths?

Key findings

  • The fundamental group of the circle, $\Pi_1(S^1, a)$, is isomorphic to $\mathbb{Z}$, with paths represented as $loop^n$ for $n \in \mathbb{Z}$, where $n$ corresponds to the winding number.
  • A direct isomorphism between $\Pi_1(S^1, a)$ and $\mathbb{Z}$ is constructed via two inverse functions: $toInteger$ and $toPath$, both defined recursively on path structure.
  • The authors extend $LND_{EQ}-TRS$ with 7 new reduction rules (e.g., $\mu_{f}( ho_x) =_{mxp} \rho_{f(x)}$) to model path transport and identity types algebraically.
  • The path algebra supports all core constructions of homotopy type theory, including products, coproducts, identity types, and transport, via rewrite-based normalization.
  • The approach avoids the need for the code-encode-decode method by directly modeling path spaces through computational paths, offering a syntactic alternative to semantic constructions.
  • The path algebra refutes uniqueness of identity proofs, confirming a key result from Hofmann & Streicher (1995) via a groupoid model based on computational paths.

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.