Skip to main content
QUICK REVIEW

[Paper Review] Propositional equality, identity types, and direct computational paths

Ruy J. G. B. de Queiroz, Anjolina Grisi de Oliveira|arXiv (Cornell University)|Jul 10, 2011
Logic, programming, and type systemsComputer Science14 citations
TL;DR

This paper proposes a computational interpretation of propositional equality in type theory by treating identity types as paths formed through sequences of rewrites and substitutions, rather than relying on a reflexive primitive. It demonstrates that multiple distinct canonical proofs of equality can exist, refuting the uniqueness of identity proofs (UIP), and aligns with homotopy type theory by modeling identity proofs as computational paths.

ABSTRACT

In proof theory the notion of canonical proof is rather basic, and it is usually taken for granted that a canonical proof of a sentence must be unique up to certain minor syntactical details (such as, e.g., change of bound variables). When setting up a proof theory for equality one is faced with a rather unexpected situation where there may not be a unique canonical proof of an equality statement. Indeed, in a (1994--5) proposal for the formalisation of proofs of propositional equality in the Curry--Howard style, we have already uncovered such a peculiarity. Totally independently, and in a different setting, Hofmann & Streicher (1994) have shown how to build a model of Martin-Löf's Type Theory in which uniqueness of canonical proofs of identity types does not hold. The intention here is to show that, by considering as sequences of rewrites and substitution, it comes a rather natural fact that two (or more) distinct proofs may be yet canonical and are none to be preferred over one another. By looking at proofs of equality as rewriting (or computational) paths this approach will be in line with the recently proposed connections between type theory and homotopy theory via identity types, since elements of identity types will be, concretely, paths (or homotopies).

Motivation & Objective

  • To resolve a foundational issue in type theory where propositional equality lacks a canonical proof structure due to the absence of explicit rewrite identifiers.
  • To challenge the assumption of uniqueness of canonical proofs for identity types, which contradicts models like Hofmann and Streicher’s groupoid model.
  • To reformulate identity types in a way that naturally captures computational paths, aligning with homotopy type theory’s view of identity as paths or homotopies.
  • To provide a proof-theoretic foundation for equality that treats sequences of rewrites and substitutions as first-class entities in the object language.
  • To validate groupoid laws for identity types and show that the system supports multiple distinct yet canonical proofs of the same equality.

Proposed method

  • Introduces a new formulation of the identity type introduction rule using explicit rewrite identifiers: $ \frac{a =_s b : A}{s(a,b) : \mathrm{Id}_A(a,b)} $, where $ s $ denotes a sequence of rewrites and substitutions.
  • Defines general equality rules (reflexivity, symmetry, transitivity) using meta-level identifiers ($ \rho, \sigma, \tau $) to denote computational paths.
  • Models proofs of equality as terms in a term rewriting system (TRS), specifically $ LND_{EQ} $-TRS, to formalize the computational behavior of equality proofs.
  • Applies recursive path ordering (RPO) to prove termination of the rewriting system, ensuring all proofs reduce to normal forms.
  • Uses the Knuth–Bendix completion procedure to establish confluence, guaranteeing that all reduction paths lead to a unique normal form.
  • Extends the recursive path ordering to handle operators derived from subterms (e.g., $ \mathrm{sub}_L, \mathrm{sub}_R $) to support complex rewriting rules.

Experimental results

Research questions

  • RQ1Can propositional equality in type theory be formalized in a way that treats sequences of rewrites and substitutions as first-class computational paths?
  • RQ2Why does the standard formulation of identity types fail to account for multiple canonical proofs of the same equality?
  • RQ3How can a proof theory of equality be constructed such that multiple distinct canonical proofs are equally valid and none is preferred?
  • RQ4To what extent can the groupoid structure of identity types be naturally captured through computational rewriting paths?
  • RQ5Does the existence of multiple canonical proofs contradict the confluence or termination of a rewriting system for equality?

Key findings

  • The paper establishes that multiple distinct canonical proofs of the same equality statement can exist, which directly contradicts the principle of uniqueness of identity proofs (UIP).
  • The rewriting system $ LND_{EQ} $-TRS is proven to be both terminating and confluent using recursive path ordering and the Knuth–Bendix completion procedure.
  • The system successfully models identity types as computational paths, where each path corresponds to a sequence of rewrites and substitutions.
  • The formulation dissolves a false dichotomy in type theory by introducing explicit identifiers for rewrite sequences, making the computational nature of equality more transparent.
  • The approach naturally validates the groupoid laws for identity types, as required by Hofmann and Streicher’s model, by treating identity proofs as paths.
  • The system's confluence ensures that all reduction paths lead to a unique normal form, even though multiple distinct canonical proofs may exist for the same equality.

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.