Maximilian Doré ; Evan Cavallo ; Anders Mörtberg - Automating Boundary Filling in Cubical Type Theories

lmcs:16282 - Logical Methods in Computer Science, June 15, 2026, Volume 22, Issue 2 - https://doi.org/10.46298/lmcs-22(2:28)2026
Automating Boundary Filling in Cubical Type TheoriesArticle

Authors: Maximilian Doré ; Evan Cavallo ; Anders Mörtberg

When working in a proof assistant, automation is key to discharging routine proof goals such as equations between algebraic expressions. Homotopy type theory allows the user to reason about higher structures, such as topological spaces, using higher inductive types (HITs) and univalence. Cubical type theory provides computational support for HITs and univalence. A difficulty when working in cubical type theory is dealing with the complex combinatorics of higher structures, an infinite-dimensional generalisation of equational reasoning. To solve these higher-dimensional equations consists in constructing cubes with specified boundaries.

We develop a simplified cubical language in which we isolate and study two automation problems: contortion solving, where we attempt to "contort" a cube to fit a given boundary, and the more general Kan solving, where we search for solutions that involve pasting multiple cubes together. Both problems are difficult in the general case-Kan solving is even undecidable-so we focus on heuristics that perform well on practical examples. Our language encompasses different variations of cubical type theory which differ in their "contortion theory", i.e., the class of contortions they support. We provide a solver for the contortion problem for the most complex contortion theories currently being researched, the Dedekind and De Morgan contortions, by utilizing a reformulation of contortions in terms of poset maps. We solve Kan problems using constraint satisfaction programming, which is applicable independently of the underlying contortion theory. We have implemented our algorithms in an experimental Haskell solver that can be used to automatically solve many goals a user of cubical type theory might face. We illustrate this with a case study establishing the Eckmann-Hilton theorem using our solver, as well as various benchmarks.


Volume: Volume 22, Issue 2
Secondary volumes: Selected Papers of the 9th International Conference on Formal Structures for Computation and Deduction (FSCD 2024)
Published on: June 15, 2026
Accepted on: April 17, 2026
Submitted on: August 4, 2025
Keywords: Logic in Computer Science

Consultation statistics

This page has been seen 407 times.
This article's PDF has been downloaded 91 times.