Mathematical foundations for symmetric programming and reasoning
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.
Related
- Theoretical Foundations of Sequential Dynamic Programming
- On the foundations of anthropic reasoning: Implications for life across the universe
- Mathematical Foundations of Large–Small Model Collaboration in the Internet of Vehicles: A Survey
- Mathematical Foundations of the Subject-Centred Model: Resolution of the Paradoxes of Consciousness and the Topological Invariant of AGI
- Mathematical foundations of second quantization: an introduction through spin-boson models
BibTeX
@misc{kammar2026mathematical,
title = {{Mathematical foundations for symmetric programming and reasoning}},
author = {Ohad Kammar and Matija Pretnar},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.17106},
eprint = {2611.17106},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.17106},
note = {CC BY-SA 4.0},
}
RIS
TY - UNPB
TI - Mathematical foundations for symmetric programming and reasoning
AU - Ohad Kammar
AU - Matija Pretnar
PY - 2026
DA - 2026/11/12
PB - arXiv
DO - 10.48550/arxiv.2611.17106
UR - https://arxiv.org/abs/2611.17106
AB - 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.
ER -