Search Results

Documents authored by Wong, Wind


Artifact
Software
Artifact for Symmetries in Sorting

Authors: Vikraman Choudhury and Wind Wong


Abstract

Cite as

Vikraman Choudhury, Wind Wong. Artifact for Symmetries in Sorting (Software, Formalization). Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2026)


Copy BibTex To Clipboard

@misc{choudhuryAgdasymmetries2025,
   title = {{Artifact for Symmetries in Sorting}}, 
   author = {Choudhury, Vikraman and Wong, Wind},
   note = {Software, 101106046, 101115046, swhId: \href{https://archive.softwareheritage.org/swh:1:dir:5e86a19fe276e62519af96e6bf3c8ec42f8fe4f2;origin=https://github.com/windtf/agda-symmetries;visit=swh:1:snp:ee1178405c990e0e7f94b69c8029d18a6fff6ded;anchor=swh:1:rev:58ed7d1d33bc9b12cb95d1e31dfb49446a7d3119}{\texttt{swh:1:dir:5e86a19fe276e62519af96e6bf3c8ec42f8fe4f2}} (visited on 2026-07-30)},
   url = {https://github.com/windtf/agda-symmetries},
   doi = {10.4230/artifacts.26218},
}
Document
Symmetries in Sorting

Authors: Vikraman Choudhury and Wind Wong

Published in: LIPIcs, Volume 384, 31st International Conference on Types for Proofs and Programs (TYPES 2025)


Abstract
Sorting algorithms are fundamental to computer science, and their correctness criteria are well understood as rearranging elements of a list according to a specified total order on the underlying set of elements. As mathematical functions, they are functions on lists that perform combinatorial operations on the representation of the input list. In this paper, we study sorting algorithms conceptually as abstract sorting functions. There is a canonical surjection from the free monoid on a set (lists of elements) to the free commutative monoid on the same set (multisets of elements). We show that sorting functions determine a section (right inverse) to this surjection satisfying two axioms, that do not presuppose a total order on the underlying set. Then, we establish an equivalence between (decidable) total orders on the underlying set and correct sorting functions. The first part of the paper develops concepts from universal algebra from the point of view of functorial signatures, and gives constructions of free monoids and free commutative monoids in (univalent) type theory. Using these constructions, the second part of the paper develops the axiomatisation of sorting functions. The paper uses informal mathematical language, and comes with an accompanying formalisation in Cubical Agda.

Cite as

Vikraman Choudhury and Wind Wong. Symmetries in Sorting. In 31st International Conference on Types for Proofs and Programs (TYPES 2025). Leibniz International Proceedings in Informatics (LIPIcs), Volume 384, pp. 3:1-3:23, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2026)


Copy BibTex To Clipboard

@InProceedings{choudhury_et_al:LIPIcs.TYPES.2025.3,
  author =	{Choudhury, Vikraman and Wong, Wind},
  title =	{{Symmetries in Sorting}},
  booktitle =	{31st International Conference on Types for Proofs and Programs (TYPES 2025)},
  pages =	{3:1--3:23},
  series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN =	{978-3-95977-441-3},
  ISSN =	{1868-8969},
  year =	{2026},
  volume =	{384},
  editor =	{Nordvall Forsberg, Fredrik and McKinna, James},
  publisher =	{Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.TYPES.2025.3},
  URN =		{urn:nbn:de:0030-drops-270210},
  doi =		{10.4230/LIPIcs.TYPES.2025.3},
  annote =	{Keywords: universal algebra, type theory, homotopy type theory, cubical Agda, constructive mathematics, univalent mathematics, sorting, combinatorics, formalisation}
}
Any Issues?
X

Feedback on the Current Page

CAPTCHA

Thanks for your feedback!

Feedback submitted to Dagstuhl Publishing

Could not send message

Please try again later or send an E-mail