Mathematical foundations for symmetric programming and reasoning
Ohad Kammar, Matija Pretnar
Key points
From the paper's conclusion- We develop a mathematical abstraction for uniformly exploiting symmetries in programming and reasoning based on the mathematical proof principle `without-loss-of-generality' (w.l.o.g.).
Abstract
We develop a mathematical abstraction for uniformly exploiting symmetries in programming and reasoning based on the mathematical proof principle `without-loss-of-generality' (w.l.o.g.). Given: group actions that describe symmetries of the input and the output; and a canoniser, which captures how arbitrary inputs get sent to canonical ones, our construction extends any function from the canonical inputs to the whole domain. We characterise the conditions on the canonisers which guarantee that the construction gives the unique equivariant (i.e. symmetry-preserving) extension. Furthermore, we adapt the construction to a dependently-typed setting, where it captures traditional symmetric w.l.o.g. arguments via the Curry-Howard correspondence. Finally, we extend the construction to algebraic data types, where the symmetries of the constructors both uniquely determine the symmetries of the data type and pave the way for efficient execution.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- How to prove equations using diagrams: A categorical and operational semantics for e-graphsarXiv · 2026
- Foundations for an Abstract Proof Theory in the Context of Horn RulesACM Transactions on Computational Logic · 2026
- Unit: a type checker for dependent type theoryarXiv · 2026
- Hashing Theorems Modulo Rewrites and Binder Permutation Enables Equivalence Search over 200k Mathlib TheoremsarXiv · 2026
- Higher-order bialgebraic semanticsJournal of Functional Programming · 2026
- Hereditary permutations for simple types revisited: A baby case for University AlgebraarXiv · 2026