CS Paper Radar

Daily listing

2026-11-23 · cs.LO

9 papers first submitted this day (UTC) in cs.LO — Logic in Computer Science. arXiv announces a day's submissions the next evening, so the newest day fills up over ~24 h.

Score = weighted mean ofCitations 20%Upvotes 10%Code stars 10%Venue 15%Code/data 10%Novelty 15%Momentum 15%Substance 5%how it works

Software & Programming 6

Sheaf Semantics of Probabilistic Programs

cs.LO cs.PL ·2026-11-23 ·Shing Hin Ho, Nicolas Wu, Azalea Raad
top venuetheory
Abstract · Accepted to POPL 2027

Finding denotational models of probabilistic languages that support sampling from continuous distributions is difficult: the existence of continuous distributions means that measure-theoretic objects are needed to define the semantics. A challenging task on top of this is logical reasoning with respect to the semantic model: in the case of probabilistic programs, the desired properties to reason about include the distributions, expected value and the probabilistic (in)dependence of outputs. This paper introduces a monadic semantics for higher-order probabilistic programs with continuous distributions based on Simpson's theory of probability sheaves and the internal logic of atomic sheaves. We prove that our semantics forms a model of the $ν$-calculus. Furthermore, using the well-behavedness of the semantic domain and the internal logic of the topos, we derive the first higher-order probabilistic Hoare logic with rigorous treatment of continuous random variables, higher-order functions, and independence.

0.36

CrossCheck II: A Compiler Plugin for Certified Cost Bounds of Real-Time C and C++ Code, and its Evaluation

cs.LO cs.PLcs.SE ·2026-11-23 ·Luca Dall'Olio
Abstract · 23 pages. Companion of "CrossCheck I" (doi:10.5281/zenodo.24444576), which holds the theory and the Lean proofs. Code, benchmarks and Lean f…

We describe a plugin for the Clang compiler that bounds the cost of C and C++ functions intended for real-time use, and rejects at compile time the functions that allocate, throw, call through pointers, or contain a loop or a recursion for which no bound is found. Loops are bounded by affine ranking potentials synthesized with an SMT solver through Farkas' Lemma, or by logarithmic ones, recursion by depth and size potentials, and callees are analyzed in the calling context in which they are used. For functions in a linear fragment, the plugin emits a cost certificate that a checker, compiled from a Lean~4 definition proved sound in a companion paper, validates with integer arithmetic only; the bound then depends neither on the analyzer nor on the solver. On the 29 kernels of the TACLeBench collection, without annotations, the plugin bounds 142 of 220 loops in the calling contexts of the programs, 131 of them exactly as the benchmarks' flow facts, and 161 of the 165 bounded functions receive a certificate that the checker accepts, 152 of them also validated against an independent description of the source. On the CMSIS-DSP library for Cortex-M (786 functions), with assumed input ranges, it bounds 616 functions. We compare the loop bounds with loop counts observed by running the kernels and with five existing analyzers (LLVM's ScalarEvolution, KoAT2, CoFloCo, Infer and oRange), and the plugin with KoAT2 and CoFloCo on the C programs of the Termination and Complexity Competition: without annotations, 147 of 553 programs receive a certified bound that holds for all inputs, where the two tools bound 288 and 264. Loop bounds, exported annotations and the checker program are also tested on random programs and on mutated certificates.

0.31

Complexity of the Infinity and the Modulo-Counting Quantifiers in Automatic Structures

cs.FL cs.LO ·2026-11-23 ·Vincent Klimmer, Dietrich Kuske, Sebastian Pfau
publishedtheory
Abstract · Appears in the Proceedings of the 52nd International Conference on Current Trends in Theory and Practice of Computer Science (Sofsem 2027)

Automatic structures allow us to decide their first-order theory using automata-theoretic techniques. The complexity of this decision problem for formulas in prenex normal form depends on the quantifier alternation depth, e.g., it is PSPACE-complete for formulas with quantifier-prefix $\exists\exists\cdots\exists$. Blumensath observed that the decidability also holds if one extends first-order logic with the infinity quantifier. His decision procedure introduces many more quantifier alternations such that, even for formulas with quantifier prefix $\exists^\infty\exists^\infty\cdots\exists^\infty$ of length $n$, his decision procedure runs in $(2n-1)$-fold exponential space. We show that this is not necessary. To be more precise, we prove that handling the infinity quantifier is not more costly than handling the existential quantifier. On the other hand, we also show that addition of the modulo-counting quantifier to first-order logic results in a much higher complexity.

0.28

Tableau Consequence under Positive Contexts: A Reconstruction of Walukiewicz's Completeness Proof

cs.LO math.LO ·2026-11-23 ·Kuniaki Tamura
theory
Abstract · 56 pages, 8 figures. Revises and supersedes arXiv:1408.3560

We establish a positive-context lifting theorem for tableau consequence in the modal $μ$-calculus: under explicit syntactic hypotheses, $\mathcal T_B\Rightarrow\mathcal T_C$ induces $\mathcal T_{A(B)}\Rightarrow\mathcal T_{A(C)}$. The proof orders instances of the given relation by birth time and assigns overlapping formula occurrences to the oldest supporting instance. A corollary gives bidirectional replacement by automaton normal form inside positive contexts. Together with a separate unfolding consequence lemma and ANF bisimulation, the lifting theorem yields a self-contained reconstruction of Walukiewicz's completeness proof for Kozen's axiomatisation and makes its least-fixpoint step more transparent. We also give a finite parity-game proof of regular-refutation existence and a two-sided transfer from tableau consequence to thin refutations.

0.26

CrossCheck I: Cost Bounds of Imperative Programs as Constrained Optimization, with a Sound Cost Logic and a Verified Certificate Checker

cs.LO cs.PL ·2026-11-23 ·Luca Dall'Olio
theory
Abstract · 43 pages. Lean 4 formalization and code: doi:10.5281/zenodo.24425070

Static analysis of imperative programs often relies on iterative fixed-point approximations or concrete path exploration. We show that structured imperative control flow---while loops, linear recursion and branching recursion---can be mapped into constrained optimization problems over the free monoid of execution traces and the free algebra of computation trees. Ordering traces and trees by an intensional \textit{order-by-composition} ($\sqsubseteq$), halting is characterized as finding the minimal trace or tree that satisfies the exit condition, and we prove that this characterization coincides with the standard big-step semantics. Exact state recurrences are undecidable in general, so we relax them into cost envelopes, using ranking potentials and the tropical $(\max,+)$ reading of the timing schema, and obtain sound upper bounds on execution cost. The bounds compose over whole programs in a cost logic for a small language with nondeterministic actions, procedures, recursion and assumed contracts, which we prove sound for terminating and non-terminating executions. A linear instance of the logic has certificates---programs annotated with invariants, potentials and Farkas multipliers---and a checker that validates them with integer arithmetic only; an accepted certificate bounds the cost of every execution. All results, the checker and the worked examples are machine-checked in Lean~4. A companion paper describes a Clang plugin that produces such certificates and its evaluation.

0.26

Depth of leaves in closed linear $λ$-terms: exact recurrence, limit law and edge window

cs.LO math.CO ·2026-11-23 ·Olivier Bodini
theory
Abstract

Let $K_n$ (resp.\ $D_n$) be the depth of a uniform leaf (resp.\ node) in a uniform closed linear $λ$-term of size $n$. A bijective \emph{grafting identity} yields an exact polynomial-time recurrence for the full depth profile. By the method of moments, $K_n/n$ converges in law to the density $3x/\sqrt{1-2x}$ on $[0,\frac12]$, i.e.\ $2K_n/n\to\Beta(2,\frac12)$, with $\mathbb E[K_n^r]/n^r\to3(r+1)!/(2r+3)!!$; likewise $1-2D_n/n\to\Beta(\frac12,1)$. A backward Markov chain gives the corresponding local limits for $k\le(\frac12-\varepsilon)n$. The limit density diverges at $\frac12$, and the profile has a second scale: a window of width $\sqrt n$ around $n/2$, which carries a fraction of order $n^{-1/4}$ of the nodes, at a density $n^{1/4}$ times larger than in the bulk. We prove that a single explicit function describes both regimes: uniformly in $d$, \[ n^{3/4}\,\mathbb P(D_n=d)=g\Bigl(\tfrac{d-n/2}{\sqrt n}\Bigr)+O(n^{-1/16}),\qquad n^{3/4}\,\mathbb P(K_n=d)=\tfrac{3d}{n}\,g\Bigl(\tfrac{d-n/2}{\sqrt n}\Bigr)+O(n^{-1/16}), \] where $g(y)=2^{-1/2}e^{-y^2}D_{-1/2}(2y)$ is a parabolic cylinder function. In particular $\mathbb P(K_n>n/2)\sim\frac34\,\mathbb E|Z|^{1/2}\,n^{-1/4}\approx0.6166\,n^{-1/4}$ with $Z$ standard Gaussian. The proofs rest on harmonic functions of the heat equation evaluated along the backward chain.

0.25