We study property testing of properties that are definable in first-order logic (FO) in the bounded-degree graph and relational structure models. We show that any FO property that is defined by a formula with quantifier prefix $\exists^*\forall^*$ is testable (i.e., testable with constant query complexity), while there exists an FO property that is expressible by a formula with quantifier prefix $\forall^*\exists^*$ that is not testable. In the dense graph model, a similar picture is long known (Alon, Fischer, Krivelevich, Szegedy, Combinatorica 2000), despite the very different nature of the two models. In particular, we obtain our lower bound by a first-order formula that defines a class of bounded-degree expanders, based on zig-zag products of graphs. We expect this to be of independent interest. We then prove testability of some first-order properties that speak about isomorphism types of neighbourhoods, including testability of $1$-neighbourhood-freeness, and $r$-neighbourhood-freeness under a mild assumption on the degrees.
翻译:我们研究了在一阶逻辑(FO)中可定义的、约束度图形和关系结构模型中的属性测试。我们表明,任何由公式定义的、带有一个量化前缀的公式的FO属性是可测试的(即,可以不断测试的质询复杂度),而存在一种以公式前缀的公式表示的、无法测试的FO属性。在密集的图形模型中,类似的图像是众所周知的(Alon、Fischer、Krivelevich、Szegedy、Compatorica 2000),尽管这两种模型的性质截然不同。特别是,我们得到了一个以图表的zig-zag产品为基础、定义一个约束度扩张器类别的第一阶公式的较低约束。我们期望这具有独立的兴趣。然后,我们证明了一些直线式社区类型的第一阶属性的可测试性,包括1美元接近度自由度的测试性,以及低度的低度假设。