ARTFEED — Contemporary Art Intelligence

Cofola: A Declarative Language for Combinatorial Counting Problems

publication · 2026-05-26

There's a new paper on arXiv that introduces Cofola, which stands for COmbinatorial counting LAnguage with First-Order logic. This typed declarative language is designed to tackle issues related to combinatorial counting. These problems, often found in areas like artificial intelligence, statistics, and discrete math, involve counting subsets, multisets, permutations, partitions, or compositions under various conditions. Current methods can be either tedious and unreliable or slow in computation. Cofola offers features such as sets, bags, tuples, sequences, circles, partitions, and compositions, along with relational and arithmetic constraints. It clearly links each Cofola program to a specific combinatorial counting issue through its denotational semantics.

Key facts

  • Cofola is a typed declarative language for combinatorial counting.
  • It addresses problems in AI, statistics, and discrete mathematics.
  • Primitives include sets, bags, tuples, sequences, circles, partitions, and compositions.
  • It supports relational and arithmetic constraints.
  • Denotational semantics maps programs to counting problems.
  • Current methods are either brittle or inefficient.
  • Paper published on arXiv under ID 2605.24845.
  • Announcement type is new.

Entities

Institutions

  • arXiv

Sources