Table of Contents
Fetching ...

The Complexity and Expressive Power of Second-Order Extended Logic

Shiguang Feng, Xishun Zhao

TL;DR

This paper investigates the expressive power of second-order extended Horn logics on all finite structures to understand their relation to PTIME and co-NP. It introduces intermediary formalisms, notably DATALOG$^{*}$, DATALOG$^{r}$, DATALOG$^{*r}$ and stratified versions, and proves a series of collapses and separations among Horn fragments and DATALOG, culminating in SO-HORN$^{r}$ and SO-HORN$^{*r}$ collapsing to FO$(LFP)$ while SO-HORN$^{*}$ remains strictly weaker. It further shows that DATALOG$^{r}$ and S-DATALOG$^{r}$ are equivalent to FO$(LFP)$, whereas DATALOG$^{*}$ is a proper sublogic, and demonstrates that SO-EHORN$^{r}$ is equivalent to $\Pi_{1}^{1}$, thereby capturing co-NP on all finite structures. Collectively, these results clarify the landscape of Horn-like logics, their relation to datalog and FO$(LFP)$, and implications for descriptive complexity in finite-model theory. The findings advance our understanding of which logical frameworks can capture PTIME or co-NP on finite structures, with potential implications for complexity-theoretic characterizations and logical encodings of computational problems.

Abstract

We study the expressive powers of SO-HORN$^{*}$, SO-HORN$^{r}$ and SO-HORN$^{*r}$ on all finite structures. We show that SO-HORN$^{r}$, SO-HORN$^{*r}$, FO(LFP) coincide with each other and SO-HORN$^{*}$ is proper sublogic of SO-HORN$^{r}$. To prove this result, we introduce the notions of DATALOG$^{*}$ program, DATALOG$^{r}$ program and their stratified versions, S-DATALOG$^{*}$ program and S-DATALOG$^{r}$ program. It is shown that, on all structures, DATALOG$^{r}$ and S-DATALOG$^{r}$ are equivalent and DATALOG$^{*}$ is a proper sublogic of DATALOG$^{r}$. SO-HORN$^{*}$ and SO-HORN$^{r}$ can be treated as the negations of DATALOG$^{*}$ and DATALOG$^{r}$, respectively. We also show that SO-EHORN$^{r}$ logic which is an extended version of SO-HORN captures co-NP on all finite structures.

The Complexity and Expressive Power of Second-Order Extended Logic

TL;DR

This paper investigates the expressive power of second-order extended Horn logics on all finite structures to understand their relation to PTIME and co-NP. It introduces intermediary formalisms, notably DATALOG, DATALOG, DATALOG and stratified versions, and proves a series of collapses and separations among Horn fragments and DATALOG, culminating in SO-HORN and SO-HORN collapsing to FO while SO-HORN remains strictly weaker. It further shows that DATALOG and S-DATALOG are equivalent to FO, whereas DATALOG is a proper sublogic, and demonstrates that SO-EHORN is equivalent to , thereby capturing co-NP on all finite structures. Collectively, these results clarify the landscape of Horn-like logics, their relation to datalog and FO, and implications for descriptive complexity in finite-model theory. The findings advance our understanding of which logical frameworks can capture PTIME or co-NP on finite structures, with potential implications for complexity-theoretic characterizations and logical encodings of computational problems.

Abstract

We study the expressive powers of SO-HORN, SO-HORN and SO-HORN on all finite structures. We show that SO-HORN, SO-HORN, FO(LFP) coincide with each other and SO-HORN is proper sublogic of SO-HORN. To prove this result, we introduce the notions of DATALOG program, DATALOG program and their stratified versions, S-DATALOG program and S-DATALOG program. It is shown that, on all structures, DATALOG and S-DATALOG are equivalent and DATALOG is a proper sublogic of DATALOG. SO-HORN and SO-HORN can be treated as the negations of DATALOG and DATALOG, respectively. We also show that SO-EHORN logic which is an extended version of SO-HORN captures co-NP on all finite structures.
Paper Structure (3 sections, 3 theorems, 24 equations)

This paper contains 3 sections, 3 theorems, 24 equations.

Key Result

lemma thmcounterlemma

Every second-order formula $\forall x\exists R\phi(x,\bar{x})$ is equivalent to a formula of the form $\exists R'\forall x\phi[R\bar{y}_{1}/R'x\bar{y}_{1},\cdots,R\bar{y}_{n}/R'x\bar{y}_{n}](x,\bar{x})$ where $x$ occurs free in $\phi$, $R$ is an $r$-ary relation symbol, $R'$ is an $r+1$-ary relation

Theorems & Definitions (7)

  • definition thmcounterdefinition
  • lemma thmcounterlemma
  • proof
  • proposition thmcounterproposition
  • proof
  • corollary thmcountercorollary
  • definition thmcounterdefinition