arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24845cs.AImath.CO
收藏

使用加权一阶模型计数解决组合计数问题

Solving Combinatorial Counting Problems with Weighted First-Order Model Counting

School of Artificial Intelligence, Jilin University, Changchun, China;State Key Laboratory of Complex \& Critical Software Environment, Beihang University, China;National Research Center for Educational Materials, China;Tengen Intelligence Institute, China;Czech Technical University in Prague, Prague, Czech Republic

Yuanhong Wang, Juhua Pu, Yuxu Zhou, Yuyi Wang, Ondřej Kuželka

AI总结:

提出Cofola语言,通过类型化声明式编程和加权一阶模型计数(WFOMC)编译流水线,统一解决集合、多重集、排列、划分等组合计数问题。

摘要:

组合计数问题遍及人工智能、统计学和离散数学。无论是枚举子集、多重集、排列、划分还是在结构和算术约束下的组合,解决它们仍然是一项顽固的手动练习。封闭形式的推导强大但脆弱,而将问题朴素编码为命题模型计数或约束满足会破坏使计数易于处理的交换性。我们提出了Cofola(组合计数语言与一阶逻辑),一种类型化声明式语言,其原语是日常计数问题中反复出现的组合对象,包括集合、袋子、元组、序列、圆圈、划分和组合,以及它们之上的自然关系和算术约束。指称语义将每个Cofola程序映射到一个明确定义的组合计数问题,一个三阶段编译流水线(预处理、分解和对称保持编码)将该问题简化为一个加权一阶模型计数(WFOMC)实例,并附加系数提取约束。为了尽可能保持在已知的可域提升片段内,编码将不可区分的实体分组,按字典序打破无序分组的对称性,并通过顺序公理编码序列和圆圈。在一系列代表性的组合计数问题上,从教科书数学问题到最接近的先前框架无法表达的多对象场景,Cofola生成了简洁的规范和统一的求解流水线,端到端实用。

英文摘要:

Combinatorial counting problems pervade artificial intelligence, statistics, and discrete mathematics. Whether the task is enumerating subsets, multisets, permutations, partitions, or compositions under structural and arithmetic constraints, solving it remains a stubbornly manual exercise. Closed-form derivations are powerful but brittle, while naive encodings to propositional model counting or constraint satisfaction destroy the exchangeability that makes counting tractable in the first place. We present Cofola (COmbinatorial counting LAnguage with First-Order logic), a typed declarative language whose primitives are the combinatorial objects that recur in everyday counting questions, including sets, bags, tuples, sequences, circles, partitions, and compositions, together with natural relational and arithmetic constraints over them. A denotational semantics maps every Cofola program to a well-defined combinatorial counting problem, and a three-phase compilation pipeline (preprocessing, decomposition, and symmetry-preserving encoding) reduces this problem to a weighted first-order model counting (WFOMC) instance augmented with coefficient-extraction constraints. To stay inside known domain-liftable fragments whenever possible, the encoding groups indistinguishable entities, breaks the symmetry of unordered groupings lexicographically, and encodes sequences and circles via order axioms. On a suite of representative combinatorial counting problems, ranging from textbook math problems to multi-object scenarios that the closest prior framework cannot express, Cofola produces concise specifications and a uniform solving pipeline that is practical end-to-end.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑