paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A Simple Algorithm for Consistent Query Answering under Primary Keys

主键约束下一致查询回答的一个简单算法
LMCS vol.Volume 21, Issue 12025匹配度 1/10 · 该论文研究主键约束下一致查询回答的逻辑复杂性与不动点算法,属于数据库理论/逻辑与自动机方向,未涉及静态分析、浮点程序分析、贝叶斯程序分析或 LLM/Agent 交叉。引用 6 inbox
Diego Figueira, Anantha Padmanabha, Luc Segoufin, Cristina Sirangelo
crossref: 2026-09-10

AI 速览

一句话:提出一个多项式时间膨胀不动点算法,用于主键约束下一致查询回答的必然性判定,并覆盖已知部分二分情形。

本文研究主键约束下一致查询回答的二分猜想:对每个固定布尔合取查询 q,判定 q 是否在给定不一致数据库的所有修复上均为真,要么是多项式时间,要么是 coNP 完全;该猜想已在无自连接查询和路径查询上得到验证。作者提出一个简单的膨胀不动点算法:对输入数据库,朴素地计算事实子集集合 Δ,其中子集大小至多为查询大小 k。算法先初始化所有满足 q 的至多 k 个事实的子集,再在存在共享同一主键的极大事实块 B 且对每个 a∈B 都有 S'⊆S∪{a} 且 S'∈Δ 时,把 S 加入 Δ;最终 Δ 包含空集当且仅当回答 q 必然。该算法可在多项式时间内运行,并在已知无自连接和路径查询二分的多项式情形下正确判定必然性。对任意布尔合取查询,它给出欠近似:若算法判定必然,则查询确实必然;但存在带自连接的多项式时间必然查询无法被它识别。

问题
主键约束下的一致查询回答中,判定固定布尔合取查询的必然性属于多项式时间还是 coNP 完全,是二分猜想的核心问题。
方法
提出一个多项式时间的膨胀不动点算法,通过枚举至多 k 个事实的子集并利用主键事实块条件迭代扩展集合 Δ,以空集是否出现判定查询必然性。
评估
从理论上分析算法复杂度,并证明其在无自连接查询和路径查询的已知多项式二分情形下正确;对一般布尔合取查询证明其为欠近似,并指出带自连接情形下存在未被识别的多项式时间必然查询。
原文摘要(Abstract)

We consider the dichotomy conjecture for consistent query answering under primary key constraints. It states that, for every fixed Boolean conjunctive query q, testing whether q is certain (i.e. whether it evaluates to true over all repairs of a given inconsistent database) is either polynomial time or coNP-complete. This conjecture has been verified for self-join-free and path queries. We propose a simple inflationary fixpoint algorithm for consistent query answering which, for a given database, naively computes a set $\Delta$ of subsets of facts of the database of size at most k, where k is the size of the query q. The algorithm runs in polynomial time and can be formally defined as: (1) Initialize $\Delta$ with all sets $S$ of at most $k$ facts such that $S\models q$. (2) Add any set $S$ of at most k facts to $\Delta$ if there exists a block $B$ (i.e., a maximal set of facts sharing the same key) such that for every fact $a \in B$ there is a set $S' \subseteq S \cup \{a\}$ such that $S'\in \Delta$. For an input database $D$, the algorithm answers "q is certain" iff $\Delta$ eventually contains the empty set. The algorithm correctly computes certainty when the query q falls in the polynomial time cases of the known dichotomies for self-join-free queries and path queries. For arbitrary Boolean conjunctive queries, the algorithm is an under-approximation: the query is guaranteed to be certain if the algorithm claims so. However, there are polynomial time certain queries (with self-joins) which are not identified as such by the algorithm.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@article{FigueiraPSS23,
  title = {A Simple Algorithm for Consistent Query Answering under Primary Keys},
  author = {Diego Figueira and Anantha Padmanabha and Luc Segoufin and Cristina Sirangelo},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 21, Issue 1},
  year = {2025},
  doi = {10.46298/lmcs-21(1:18)2025}
}