arXiv Science⌕ Search

arXiv subjects

Ziyue Jin

Publications and source records attributed to Ziyue Jin.

2 recordsLinked to original sources

Higher-Order Generation of First-Order Theories

We introduce a logic whose formulae are finite descriptions of possibly infinite first-order theories. A theory is a set of first-order sentences, generated in our setting by a higher-order recursion scheme. Such a scheme is a finite grammar whose parameters may denote trees or operations on trees. We consider two interpretations: a model must satisfy every generated sentence under the conjunctive interpretation, and at least one under the disjunctive interpretation. For schemes of order $k=0$, these theories coincide with the regular first-order theories of Mathur et al. (POPL 2025). We generalize this representation by allowing higher-order schemes, while retaining first-order quantification in every generated sentence. We study the expressive power, model checking, and satisfiability of this logic. Over finite ordered structures, we show that disjunctive theories of existential sentences generated at order at most $k$ capture $k$-EXPTIME, for every $k\geq0$. Allowing unrestricted first-order sentences captures $(k+1)$-EXPTIME at the same scheme order, where $0$-EXPTIME denotes polynomial time. We also give model-checking algorithms in the corresponding time classes for each fixed signature, variable-name set, and order bound. For satisfiability under either interpretation, we extend several decidability results for regular theories to every order. However, we show that conjunctive satisfiability of quantifier-free theories, decidable at order zero, becomes undecidable already at order one. Finally, we recover decidable conjunctive satisfiability at every order by separating higher-order generation of Boolean structure from independent regular generation of ground atoms. Together, these results show how higher-order generation of first-order syntax captures the exponential-time hierarchy while retaining decidable satisfiability in restricted fragments.

cs.LO↗

A Program Logic for Under-approximating Worst-case Resource Usage

Understanding and predicting the worst-case resource usage is crucial for software quality; however, existing methods either over-approximate with potentially loose bounds or under-approximate without asymptotic guarantees. This paper presents a program logic to under-approximate worst-case resource usage, adapting incorrectness logic (IL) to reason quantitatively about resource consumption. We propose quantitative forward and backward under-approximate (QFUA and QBUA) triples, which generalize IL to identify execution paths leading to high resource usage. We also introduce a variant of QBUA that supports reasoning about high-water marks. Our logic is proven sound and complete with respect to a simple IMP-like language, and all meta-theoretical results are mechanized and verified in Rocq. We implement a prototype checker for all three variants of our logic and demonstrate its utility through a few examples and four case studies.

cs.LO↗