thumbnail for Polynomial-Time Program Equivalence for Machine Knitting

Polynomial-Time Program Equivalence for Machine Knitting

Canonicalization steps applied to an algebraic representation of a knit object.

Abstract

We present an algorithm that canonicalizes the algebraic representations of the topological semantics of machine knitting programs. Machine knitting is a staple technology of modern textile production where hundreds of mechanical needles are manipulated to form yarn into interlocking loop structures. Our semantics are defined using a variant of a monoidal category, and they closely correspond to string diagrams. We formulate our canonicalization as an Abstract Rewriting System (ARS) over words in our category, and prove that our algorithm is correct and runs in polynomial time.

Files

Citation

Nathan Hurtig, Jenny Han Lin, Thomas S. Price, Adriana Schulz, James McCann, and Gilbert Louis Bernstein. 2025. Polynomial-Time Program Equivalence for Machine Knitting. Proc. ACM Program. Lang. 9, ICFP. In press.