Logic in Computer Science
See recent articles
Showing new listings for Friday, 4 December 2026
- [1] arXiv:2612.04642 [pdf, html, other]
-
Title: Revisiting the Behavior of Opposition Relations under Translation. An Institutional Model-Theoretic ApproachComments: 27 pages, 18 figures (16 tikzcd diagrams, 2 tikzpicture)Subjects: Logic in Computer Science (cs.LO)
Facing the multitude of different versions of geometries of opposition, there have been recent attempts to understand the Square of Opposition in the categorical framework of Institutional Model Theory (or Institution-Independent Model Theory). Those attempts aim at a unifying framework of reference for the Square of Opposition to be treated in, utilizing a higher level of abstraction. The aim of this paper is to expand on those attempts in two directions. In the first direction, we will attempt to transfer the relations corresponding to the closure of opposition and implication semantics constructed by Smessaert and Demey to the institutional setting, and understand them in terms of classes of models. In the second direction, we will study the behavior of the square of opposition under translation inside a logical system (i.e signature morphisms), and under translation between different logical systems (i.e institution comorphisms). We will attempt to construct a typology of those behaviors, corresponding to the partition of possible oppositional states two sentences can be in, considering both opposition and implication relationships.
- [2] arXiv:2612.04693 [pdf, html, other]
-
Title: A Tactic-Based Prover for Dependent Session Types: Exploiting Curry-Howard to Develop Correct-by-Construction Concurrent ProcessesSubjects: Logic in Computer Science (cs.LO)
STILL is an interactive, tactic-based theorem prover for dependent session types with polymorphism and coinduction. Under the Curry-Howard correspondence between session types and intuitionistic linear logic, propositions are session types and proofs are processes, so STILL extracts correct-by-construction $\pi$-calculus processes from proofs. STILL provides tactic engines and kernels for two dependent type systems: a session type layer for specifying protocols and a functional layer, the Extended Calculus of Constructions, for the data and computations within processes. A central challenge for goal-directed proof construction in linear logic is managing linear resources. The multiplicative connectives require the linear context to be partitioned before the needs of the resulting subproofs are known. STILL implements a novel nondeterministic representation of linear contexts that lets users delay this choice. The nondeterminism in partial derivations is resolved as tactic validations are constructed, and the resulting proof is checked by a small kernel. The technique leaves the proof rules of the underlying logic unchanged and applies to other tactic-based provers for substructural logics. We have verified in Isabelle/HOL that the technique is sound and complete for the propositional core of intuitionistic linear logic, i.e., tactic derivations that consume all linear resources prove exactly the derivable sequents. We have used STILL to verify protocols from the dependent session type literature and a polymorphic, coinductive auction. To evaluate usability, we gave an LLM coding agent (Claude Opus 4.7) the documentation for STILL and a proof-checking harness. Without prior exposure to STILL, it verified three protocols from the literature and specified and verified a TCP-like handshake. Our interventions concerned documentation and specifications, not tactics.
- [3] arXiv:2612.04726 [pdf, html, other]
-
Title: Rely-Guarantee Verification of Queue Locks with Proof Support in Isabelle/HOLSubjects: Logic in Computer Science (cs.LO)
We present an extension to Isabelle/HOL's built-in rely-guarantee library, used here to verify a hierarchy of queue locks. The extension incorporates recent Isabelle features to enable flexible syntax, assertion annotations, and tactics for both automated and structured proofs. Together, these afford an elegant top-down specification style, which we demonstrate on a hierarchy of locks ranging from an Abstract Queue Lock down to the more concrete Ticket Lock, Circular Buffer Lock, and MCS Lock.
- [4] arXiv:2612.05047 [pdf, html, other]
-
Title: Observational full completeness for multiplicative linear logic in Chu spacesSubjects: Logic in Computer Science (cs.LO)
We study the interpretation of unit-free multiplicative linear logic (MLL) without mix in Chu(Set,2), in which a proof of a formula F denotes a logical element of F: a family of Chu morphisms from 1 to F(A), indexed by tuples A of Chu spaces over a two-element alphabet, that respects all binary Chu relations. The interpretation is faithful: distinct cut-free proof nets have distinct denotations. It is fully complete up to coherence-space observation: restricting logical elements to Girard's coherence spaces, represented as Chu spaces, yields exactly the coherence-space denotations of the cut-free proof nets of F, and the cut-free proof nets of F are in bijection with its logical elements modulo the equivalence that identifies two elements with the same restriction. For semisimple formulas (pairs of tensors of literals) this equivalence makes no identification beyond that of Chu points with equal rows, and the interpretation is fully complete and faithful. Whether the same holds for all formulas remains open.
- [5] arXiv:2612.05161 [pdf, html, other]
-
Title: InFormal: An Open-Source Formal Verifier for SystemVerilogComments: 11 pages, 6 figures, 6 tables. Apache-2.0 source code at this https URL and this https URL (tag svlang-sdk-v1.0.0)Subjects: Logic in Computer Science (cs.LO); Hardware Architecture (cs.AR); Software Engineering (cs.SE)
Hardware teams rely on formal property verification (FPV) to prove control invariants and catch deep bugs. Commercial FPV tools, however, forbid publishing engine comparisons, hide netlist transforms, and block custom solver integration. Existing open tools either read bit-level models without a SystemVerilog front end or rely on synthesis front ends that guess silently.
We present InFormal, an Apache-2.0 formal property verifier and open testbed in Rust. InFormal compiles IEEE 1800-2023 SystemVerilog and SVA through svlang to word-level Btor2. It runs a parallel engine portfolio behind a JasperGold- and VC Formal-style Tcl 8.6 shell, desktop workbench, and review-gated MCP server. Two soundness rules govern the flow. First, the front end refuses unmodeled constructs instead of guessing, pairing explicit two-state and reset rules with a four-state contract (proven, cex, vacuous, and not modeled). Second, preprocessing and bit-level solving stay outside the trusted computing base. Every in-house bit-level SAFE or UNSAFE verdict is re-checked on a fresh encoding of the un-preprocessed model. Each proof is screened for conflicting assumptions and unreachable antecedents, and exported for Certifaiger and aigsim. Built as a 29-crate workspace linked to svlang-sdk (svlang-sdk-v1.0.0), InFormal exposes TOML and Rust engine hooks, Btor2/AIGER inputs, and a declarative differential benchmark runner. At pinned baseline commits (2608cf9 / 0ce7ca7), svlang passes 1,024/1,024 non-simulation sv-tests and lowers 1,096/1,567 (69.9%) open-RTL modules strictly (87.0% with waivers). Across 936 properties on 167 SystemVerilog designs, InFormal reads 162 designs (97.0%) and decides 782 properties (versus 467 for SymbiYosys and 134 for EBMC), agreeing on 467/467 (100%) with SymbiYosys and 599/602 (99.5%) overall. - [6] arXiv:2612.05559 [pdf, other]
-
Title: Characterization of free exponential by finitary approximantsSubjects: Logic in Computer Science (cs.LO); Category Theory (math.CT)
We develop in this paper a proof method to characterize when the exponential of a model of Linear Logic is Lafont. We provide many examples of application of our method in web models and in probabilistic models. Some applications are revisits of already known proofs, but some are news: we prove that the category of integrable cones is Lafont, and that the category of K{ö}the spaces is not. We also exhibit the central role played by Taylor expansion in all these examples.
- [7] arXiv:2612.05561 [pdf, html, other]
-
Title: Insertable Tensor Representations for Trees in PyTorchSubjects: Logic in Computer Science (cs.LO); Artificial Intelligence (cs.AI); Machine Learning (cs.LG)
We propose InserTable Tensor Representations (ITTR) for Trees, which are a representation of first-order formulas in terms of PyTorch tensors. We take advantage of PyTorch to develop our own API for ITTR objects which avoids the use of pythonic loops. We sketch an application of ITTR to saturation based theorem proving.
- [8] arXiv:2612.05729 [pdf, other]
-
Title: Formalizing the Connectivity Theorem for the Matrix Multiplication Flip Graph in ACL2Quan Luu (Northeastern University), Zeke Medley (Northeastern University), Panagiotis Manolios (Northeastern University)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 122-139Subjects: Logic in Computer Science (cs.LO); Symbolic Computation (cs.SC)
The vertices of the matrix multiplication flip graph are ways to compute the product of matrices; some ways require fewer scalar multiplications than others. Several recent records for computing the matrix product with as few multiplications as possible have been found by searching the flip graph. One important property for search is that the graph is connected: all unknown schemes are reachable from known ones. We give a complete ACL2 formalization of a proof of flip graph connectivity over F_2, and prove that the vertices of the graph are exactly the bilinear matrix multiplication algorithms up to a natural equivalence. We also report our experience using a large language model as a proof-engineering assistant, including an experiment in which a model formalized the same theorem unassisted, and what makes such assistance effective for ACL2 developments.
- [9] arXiv:2612.05731 [pdf, other]
-
Title: A Mechanical Proof of Stirling's Approximation in ACL2(r)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 1-17Subjects: Logic in Computer Science (cs.LO)
Stirling's approximation to the factorial function is used extensively in science, appearing, for example, in thermal physics, where it is used to calculate entropy. It is also relevant to computer science, where it can be used to estimate the log of the factorial function, resulting in the familiar O(n log n) bound for sorting. This paper describes a formalization in ACL2(r) of Stirling's approximation to the factorial function and its logarithm. Following the original mathematical derivation, the proofs proceed by first showing that Stirling's formula is correct up to a constant factor, then showing what the value of the constant must be. Along the way, an important equation due to Wallis is needed. This equation is especially significant to the ACL2 community, since its proof relies heavily on induction. The proof of Stirling's theorem and Wallis's formula also rely on the calculation of many integrals and the principle of integration by parts. As such, this formal proof serves both to validate ACL2(r)'s theory of integration, and to suggest some possible improvements.
- [10] arXiv:2612.05734 [pdf, other]
-
Title: An Alternative Proof in ACL2(r) of Euler's Solution to the Basel ProblemComments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 18-31Subjects: Logic in Computer Science (cs.LO)
Leonhard Euler showed in 1735 that the sum of the squares of the reciprocals of the positive integers is exactly pi^2/6. The problem was originally posed in 1650, but it eluded even the greatest mathematical minds of the time, including the Bernoullis, Leibniz, Stirling, and de Moivre. When a young Euler solved this problem, his reputation as a top mathematician was ensured. In this paper, we present a proof in ACL2(r) of this remarkable result. Rather than formalizing Euler's original proof, we use a more modern argument that is more suitable to the logic of ACL2(r). This proof is an entirely algebraic version of the "Lighthouse Proof" which uses a geometric argument to motivate the appearance of pi in the final formula.
- [11] arXiv:2612.05735 [pdf, other]
-
Title: An Integration of Axiomatic Set Theory with ACL2Matt Kaufmann (The University of Texas at Austin, Austin, TX, USA (retired))Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 32-35Subjects: Logic in Computer Science (cs.LO)
We discuss ACL2(zfc), which integrates first-order set theory with ACL2.
- [12] arXiv:2612.05743 [pdf, other]
-
Title: Treesets: Efficient Finite Sets with Unique RepresentationsGrant Jurgensen (Kestrel Institute)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 70-87Subjects: Logic in Computer Science (cs.LO)
Unique representations allow ACL2 users to reason about data structures with ordinary equality rather than weaker equivalence relations. The osets library uses totally ordered lists to uniquely model finite sets, but this representation results in linear time for core primitives like membership, insertion, and deletion. We present the new treeset library, an alternative representation of ordered finite sets based on hash-ordered treaps. Like osets, the data structure is purely functional with a unique representation, while achieving expected logarithmic time for the basic search and update primitives. The core operations are functionally verified and an isomorphism is established with osets. Performance is supported empirically through benchmarking. Finally, we implement and verify a bidirectional iterator over treesets based on zippers.
- [13] arXiv:2612.05746 [pdf, other]
-
Title: Arrayset RevisitedDavid Hardin (Collins Aerospace)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 88-103Subjects: Logic in Computer Science (cs.LO); Hardware Architecture (cs.AR)
Rust has gained significant popularity as a modern, type-safe, memory-safe, and formally analyzable programming language. We also see potential for Rust as a High-Level Synthesis (HLS) language, providing hardware/software co-assurance for critical systems, and have crafted a Rust subset for this purpose inspired by Russinoff's Restricted Algorithmic C (RAC), a language we have imaginatively named Restricted Algorithmic Rust (RAR). In this paper, we revisit an array-backed set (technically, a multiset) data structure, suitable for hardware implementation and previously implemented using a number of formal and semi-formal tools. We describe a revised implementation of the RAR arrayset, which has allowed us to prove full functional correctness for arbitrary-sized backing arrays in ACL2. We compare and contrast the ACL2 formalization to that accomplished in Verus, an SMT-based verification tool employing requires/ensures annotations. Verus is used in various development efforts at Amazon Web Services, and has been integrated into the INSPECTA Model-Based Systems Engineering toolchain for the DARPA PROVERS program. On the PROVERS effort, we have adopted a hybrid approach, in which Verus establishes basic correctness properties, and an interactive theorem prover such as ACL2 is employed as needed to discharge more difficult theorems. We also report on progress toward hardware synthesis capability for the INSPECTA toolchain, allowing engineers to allocate verified system functionality to either hardware or software, and to revisit those allocations as differing product variants are developed from the same basic system model.
- [14] arXiv:2612.05748 [pdf, other]
-
Title: Formalizing the Chandy-Lamport Distributed Snapshot Reordering Theorem in ACL2Mohammad Bin Monjil (Analog Devices Inc.), Sandip Ray (University of Florida)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 104-121Subjects: Logic in Computer Science (cs.LO); Distributed, Parallel, and Cluster Computing (cs.DC)
The correctness of the Chandy Lamport snapshot algorithm relies on a reordering argument that relates the recorded snapshot to a reachable global state. The original proof observes that, whenever a postrecording event immediately precedes a prerecording event, the two events can be exchanged without changing the relevant execution state. Repeated application of this transformation yields an equivalent execution in which all prerecording events occur before all postrecording events. We present an ACL2 formalization of this argument. Our model captures process steps, FIFO communication channels, checkpoint and marker behavior, and the partition of events relative to the snapshot cut. We prove the local swap property and use it to establish the global reordering theorem, showing that the reordered computation preserves process-local states and channel contents.
- [15] arXiv:2612.05749 [pdf, other]
-
Title: Smtlink 3: Rewrite-driven Compilation to SMT-LIBChristopher K. Chen (The University of British Columbia), Mark R. Greenstreet (The University of British Columbia), Margo I. Seltzer (The University of British Columbia)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 140-157Subjects: Logic in Computer Science (cs.LO); Programming Languages (cs.PL)
There is a long history of integration between the ACL2 theorem prover and satisfiability modulo theories (SMT) solvers. While both systems operate over first-order logic, translating between their languages requires careful consideration of their differing semantics and typing disciplines. Many projects have taken an ad hoc approach to translation, validating the results through proof reconstruction. Another approach is to write a compiler and verify it, but this poses a substantial proof burden. In this paper, we present Smtlink 3, which uses the ACL2 rewriter to infer types and translate proof terms by applying known theorems. We show a substantial reduction in complexity and trusted code compared to previous versions of Smtlink.
- [16] arXiv:2612.05752 [pdf, other]
-
Title: Mechanized Verification of Complex-to-Vector Derivations in a Three-Phase AC Machine ModelPablo Oscar Cayuela (Universidad Tecnológica Nacional, Córdoba, Argentina)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 182-197Subjects: Logic in Computer Science (cs.LO); Computational Engineering, Finance, and Science (cs.CE)
We use ACL2 and ACL2(r) as an independent proof checker for a chain of hand-derived algebraic steps in a vectorial reformulation of the classical complex-domain model of the symmetric three-phase AC machine (Leonhard, Control of Electrical Drives). Complex numbers and planar vectors are represented as pairs of ACL2 numbers; the few transcendental facts needed (Euler's formula, angle-difference identities) are isolated in an encapsulate. We mechanically prove the complex/dot/cross-product correspondences, the three-phase collapse lemma, the algebraic core of the space-vector angle, and a theorem that fixes the sign of the exponent in the torque equation, confirming an apparent sign error in the originally published derivation. A more general collapse lemma for an arbitrary root of w^2+w+1=0 is made unconditional in ACL2(r) by constructing e^(j2pi/3) from acl2-cosine/acl2-sine, and the hypothesis s3^2=3 used throughout is shown to be satisfiable there. The air-gap integral is not mechanized; we report how far an attempt got. All books are certified and publicly available.
- [17] arXiv:2612.05753 [pdf, other]
-
Title: Mechanized Verification of q-Pulse Rectifier Voltage Equations in ACL2(r): Certified Results and a Refined RoadmapPablo Oscar Cayuela (Universidad Tecnológica Nacional, Córdoba, Argentina)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 198-213Subjects: Logic in Computer Science (cs.LO); Computational Engineering, Finance, and Science (cs.CE)
Closed-form expressions for the average and RMS output voltage of q-pulse rectifiers are usually quoted topology by topology. We mechanize in ACL2(r) the unified model of a companion paper, built on the sampling function Sa(x)=sin(x)/x: thirteen certified theorems give exact values of Sa, confirm a frequently misquoted three-phase bridge coefficient, expose an inconsistency in a published table row, and prove three semi-converter cross-checks. Most are instances of facts in the trigonometric library, and the circuits are ideal; we also locate the differentiability fact that the integral-based master theorem needs.
- [18] arXiv:2612.05754 [pdf, other]
-
Title: Inductive Definitions via Inference Rules in ACL2Alessandro Coglio (Kestrel Institute), Grant Jurgensen (Kestrel Institute)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 214-232Subjects: Logic in Computer Science (cs.LO)
Certain predicates are best defined inductively as the smallest ones that satisfy some inference rules. Prime examples are typing judgments and evaluation reductions in programming language semantics, and logical assertions in formal deductive systems. While inference rules are readily expressible as logical implications, the 'smallest' requirement needs some machinery to be expressed in ACL2. This paper describes a tool to automate that machinery: given signatures for one or more predicates, and inference rules involving the predicates, the tool generates definitions of the predicates, theorems saying that they are the smallest ones that satisfy the rules, and facilities for reasoning about them.
- [19] arXiv:2612.05755 [pdf, other]
-
Title: Verifying RustCrypto's Fixsliced AES-128 in ACL2: An Aeneas Backend and an Executable MIR SemanticsEric McCarthy (Kestrel Institute)Comments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 233-248Subjects: Logic in Computer Science (cs.LO); Programming Languages (cs.PL)
Aeneas translates safe Rust programs into pure functional code by symbolically resolving borrows, with existing backends for F*, Rocq, HOL4, and Lean. We present an ACL2 backend for Aeneas, together with supporting changes to Aeneas and to its Rust front end Charon, and use it to verify a real-world cryptographic implementation: the RustCrypto project's 32-bit fixsliced AES-128, extracted essentially verbatim from the upstream crate. We prove that the extracted encryption and decryption functions, key schedule included, equal the existing ACL2 AES-128 specification for all keys and blocks, with every bounds check and assertion proven to pass. The proofs combine GL bit-blasting for bit-level facts about the bitsliced S-box and state packing with structured rewriting for the round ladders' mask and frame algebra, over fueled recursive models of the upstream loops. To reduce the trust placed in the unverified Rust-to-ACL2 translation chain, we also present an executable MIR semantics in ACL2 covering every operation the crate uses, with a loader for the compiled crate's MIR: the interpreter runs the same AES inside ACL2, reproduces the FIPS-197 vectors, and agrees with the same AES-128 specification on differential tests, independently of the Aeneas translation --- a step toward translation validation of the extraction.
- [20] arXiv:2612.05775 [pdf, html, other]
-
Title: Towards Formalizing the Semantics of Lifting Argument Frames When Evaluating Remora ExpressionsComments: In Proceedings ACL2-2026, arXiv:2612.03645Journal-ref: EPTCS 459, 2026, pp. 158-166Subjects: Logic in Computer Science (cs.LO); Programming Languages (cs.PL)
Based on APL, Remora is a rank-polymorphic language designed to simplify the task of writing efficient, GPU-aware code. As such, it avoids using iteration (including loops and recursion) by defining a "lifting" mechanism that automatically runs a function that expects an argument of a given dimension over all matching parts of a higher-dimension argument. In simple cases, this is straightforward; e.g., calling ABS on a vector performs an implicit MAP, so it returns a new vector with the absolute value of each of its elements. More generally, the exact mechanics of this lifting process are quite complicated, as they depend on all arguments to the function, which need only partially match in shape. In this paper, we describe a methodology that we follow to reason about the behavior of lifting primitive operations over compatible arguments.
- [21] arXiv:2612.06123 [pdf, html, other]
-
Title: Uniform Subexponential $\mathsf{TC}^0$-Frege Refutations of CNFsSubjects: Logic in Computer Science (cs.LO); Computational Complexity (cs.CC)
We give a deterministic algorithm that writes a bounded-depth threshold Frege ($\mathsf{TC}^0$-Frege) refutation of every unsatisfiable CNF in subexponential time. Up to polynomial factors in the input length, both the running time and the proof size are $2^{o(n)}$ for fixed-width CNFs on $n$ variables and $2^{O(m/\log\log m)}$ for arbitrary CNFs with $m$ literal occurrences. The refutations use only the input variables. We use a determinant to express the satisfaction test as a signed sum. We sum the squared values of the current expression over one block of bits at a time and prove each identity in constant depth. A sum of integer squares is zero only if every term is zero. Working backward from the final zero, we prove that the satisfaction test vanishes on every assignment. We formalize the algorithm and prove these bounds in Lean 4 with Mathlib.
We also obtain three applications. (1) Every unsatisfiable $3$-CNF on $n$ variables has an ordinary Frege refutation of size $2^{o(n)}$. On inputs of length polynomial in $n$, we can write it in $2^{o(n)}$ time. The size bound also holds for Extended Frege, answering a question of Szeider unconditionally. (2) $\mathsf{TC}^0$-Frege simulates Hitting in polynomial time. Filmus et al. proved this for Extended Frege and asked how weak a proof system would suffice. (3) Fix $0<\varepsilon<1/8$ and take a random $3$-CNF at a suitable constant density. With high probability, we can write in $2^{o(n)}$ time a $\mathsf{TC}^0$-Frege proof that every assignment satisfies at most a $7/8+\varepsilon$ fraction of its clauses. On the same instances, Atserias and Hakoniemi showed that any sum-of-squares proof of an upper bound below $1$ requires $2^{\Omega(n)}$ monomials.
New submissions (showing 21 of 21 entries)
- [22] arXiv:2612.04376 (cross-list from cs.AR) [pdf, html, other]
-
Title: Verifier-Guided Repair of LLM-Generated TLA+ Specifications: A Skill-Mediated Agentic Loop for NASA DDMR-26Comments: 7 pages, 2 figures, 4 tables. Accepted manuscript of the paper presented at the 2026 IEEE International Conference on Emerging Trends in Engineering and Computing (ETECOM), Paris, France; to appear in IEEE Xplore. Code: this https URL artifacts: this https URLSubjects: Hardware Architecture (cs.AR); Artificial Intelligence (cs.AI); Logic in Computer Science (cs.LO)
Large language models (LLMs) can draft formal specifications from natural-language requirements, but a draft is useful only if a model checker can execute it and its encoded properties hold. We evaluate a bounded, verifier-guided workflow for LLM-generated TLA+ specifications: TLC verification gates repair; failing specifications are regenerated once using TLC diagnostics and a matching reusable repair skill; passing specifications bypass repair. On 100 paired trials for NASA requirement DDMR-26 with GPT-4o, TLC accepts and explores 20/100 initial and 88/100 final specifications (executable pass; 68 of 80 failing trials rescued). The pipeline's generated TLC configurations omitted the encoded invariants in 87 of the 88 passing runs; re-checking all passing specifications against TypeOK and DDMR26 gives 19/100 initial and 75/100 final passes (property pass; 56 of 80 rescued). Repairability depends on failure class: unknown-operator failures were rescued in 40/45 trials and missing next-state assignments in 27/27 (21/27 under property pass), whereas IF/THEN/ELSE parse errors (0/4) and Boolean-evaluation errors (0/3) were never rescued. The study is a pilot: one requirement, one LLM, one repair attempt, a persistent order-dependent skill registry, and no no-skill control, so it does not isolate the contribution of skills or of human-approved skill synthesis.
- [23] arXiv:2612.04709 (cross-list from cs.PL) [pdf, html, other]
-
Title: Grade Soundness from Flexibly Graded Effect TreesComments: 27 pagesSubjects: Programming Languages (cs.PL); Logic in Computer Science (cs.LO)
Graded monads attach a grade index to the monadic type of a computation to describe its computational effects. Grade soundness states that the grade of a computation bounds the computational effects it performs. We develop an operational approach to proving grade soundness in type theories with a graded monad. Our monadic small-step semantics runs a term to a tree of its executed operations. We grade the tree flexibly so that each leaf carries the grade of what remains to be run. The grade of the tree then bounds every trace through it followed by the grade of what remains at its end. We prove this bound once for any typed partially ordered monoid of grades. A type theory inherits the bound through a grade-preserving evaluation. When erasing the grades commutes with this evaluation, the bound also holds for the ungraded computation that actually runs. We instantiate the approach for a call-by-name graded monadic PCF with general recursion. It also yields effect soundness for a call-by-value type-and-effect system. Read as languages, grades contain every terminating trace. Typed grades can also enforce a lock order against deadlock or express Hoare triples. We mechanize our development in Lean 4.
- [24] arXiv:2612.04782 (cross-list from cs.CC) [pdf, html, other]
-
Title: Feasible Proofs of the Lovász Local LemmaComments: Full version. Accepted at ITCS 2027Subjects: Computational Complexity (cs.CC); Logic in Computer Science (cs.LO); Logic (math.LO)
We study feasible proofs of the Lovász Local Lemma (LLL) in the framework of Bounded Arithmetic. Our main result resolves an open problem of Lê by formalising the Moser-Tardos theorem in the theory $\mathsf{APC}_1$, under the standard LLL condition, for instances in which the conditional probabilities of the bad events can be computed efficiently, such as those arising from $k$-CNF formulas. For such instances, our proof moreover yields a deterministic polynomial-time many-one reduction of the LLL good-assignment search problem to a single instance of $\mathsf{LossyCode}$. For bad events given only by their indicator circuits, we formalise the general Moser-Tardos theorem in $\mathsf{APC}_2$, using Jeřábek's approximate counting by hashing.
We also formalise several variants of the LLL under stronger hypotheses or in more restricted settings within weaker theories. In $\mathsf{PV}_1$, we formalise the Chandrasekaran-Goyal-Haeupler algorithm under constant exponent slack, as well as the deterministic Moser-Tardos construction for fixed dependency degree and fixed multiplicative slack. In $\mathsf{VNC}^2$, we formalise the Haeupler-Harris parallel construction with a single maximal-independent-set computation in the symmetric atomic-event setting.
Together, these results give a proof-theoretic comparison of randomised, deterministic, and parallel forms of the LLL, and show how slack and algorithmic structure affect the strength of the theory needed to prove them. - [25] arXiv:2612.05016 (cross-list from cs.SE) [pdf, html, other]
-
Title: Do dive planners keep their own gradient factors? An audit of four open-source decompression codes with Lean-proved endpoint theoremsComments: 19 pages, 4 figures, 5 tables. Code, Lean proofs and data: this https URL, archived at this https URLSubjects: Software Engineering (cs.SE); Logic in Computer Science (cs.LO)
Planners implementing the Bühlmann ZHL-16C model with gradient factors (GF) are rarely tested against their own settings. We asked whether four open-source planners (dive-deco, OSTC4, hwOS, Subsurface) keep the GF line reconstructed from their settings and reported anchor depths, and which code is responsible when they do not. We proved in Lean 4 when endpoint ceiling checks certify a whole constant-rate ascent and built an interval-arithmetic scorer on these theorems. Each planner, built at a pinned commit on a host computer, planned 720 air profiles; observation builds logged internal state and comparison builds made one change each. dive-deco violated 372 of 720 schedules (required GF up to 0.101 above the line; schedules up to 2.30 m shallower than the ceiling); recomputing all compartments removed every violation. Subsurface violated 64 at surfacing through a 1-mbar rounding, removed by an unrounded final check. hwOS's own state left its line in 178 of 719 plans and none after an exact ceiling round-up; its displayed schedules violated in 90, then 57. In OSTC4, four 10-s exposure-table entries are mistyped; with tissues updated every second as in the firmware, 283 of 720 schedules violated on reference coefficients and 2 after correcting them; on OSTC4's own constants 407 and 225 did on rebuilt stop tables, but only 15 of 605 along the ascent the corrected planner adopted. In a US Navy trial pair with equal stop time, the deep-stop schedule had the lower certified GF (0.762 vs 0.943) and more decompression sickness (10/198 vs 3/192). A certified GF measures compliance with a model, not risk.
- [26] arXiv:2612.05167 (cross-list from cs.CC) [pdf, html, other]
-
Title: DNFs and d-Ds are Superpolynomially SeparatedSubjects: Computational Complexity (cs.CC); Logic in Computer Science (cs.LO)
We observe that the arithmetic circuit lower bound used to prove the recent $\mathrm{VP}\ne\mathrm{VNP}$ result of Claude (2026) allows us to construct a family of DNFs whose d-Ds require superpolynomial size. When taken together with earlier results of Bova et al. (2016), Čepek and Chromý (2020), and Van den Broeck (2026), this makes all succinctness comparisons in the knowledge compilation map of Darwiche and Marquis (2002)---some of which were originally conditional on the polynomial hierarchy ($\mathrm{PH}$) not collapsing---unconditional.
- [27] arXiv:2612.05405 (cross-list from math.LO) [pdf, html, other]
-
Title: A proof-theoretic generalization of the Logic of Proofs to sequent calculusSubjects: Logic (math.LO); Logic in Computer Science (cs.LO)
We introduce $\mathsf{LGP(S4)}$, in which proof terms correspond to Gentzen-style sequent proofs, in contrast to Artemov's Logic of Proofs $\mathsf{LP}$, whose proof terms we read as reflecting the structure of Hilbert-style proofs. Our proof system, $\mathcal{G}\mathsf{LGP(S4)}$, is a cut-free Gentzen-style sequent system, consisting of rules operating on sequents carrying terms that encode the structure of their proofs. We show that $\mathcal{G}\mathsf{LGP(S4)}$ enjoys the subformula and subterm properties, and prove the decidability of $\mathsf{LGP(S4)}$. Furthermore, $\mathsf{LGP(S4)}$, like $\mathsf{LP}$, internalizes its own proofs and realizes $\mathsf{S4}$, both in strengthened forms. In particular, we demonstrate that cut-free $\mathsf{S4}$ sequent proofs can be realized directly, rule by rule, by proofs in $\mathcal{G}\mathsf{LGP(S4)}$. This realization process readily extends to $\mathsf{LGP}$ counterparts of other modal logics and their sublogics, including their intuitionistic and substructural variants.
- [28] arXiv:2612.05963 (cross-list from cs.PL) [pdf, html, other]
-
Title: Tracepiler: Reasoning Traces as Programs: A Language and Checked Verdicts for Natural-Language ReasoningComments: 27 pagesSubjects: Programming Languages (cs.PL); Artificial Intelligence (cs.AI); Logic in Computer Science (cs.LO)
Language models now write out their reasoning, and people act on it. Yet a right answer can rest on a step that is false, or on one that is true and does not follow from the reason it gives. Checking the answer sees neither, and a prover that finds its own proof of the final claim says nothing about the inference the text made. We treat a reasoning trace as a program: its steps are actions on a reasoning world, and checking the trace is giving that program a semantics. Ore is a small language in which a model rewrites a trace step by step. Every action, right or wrong, has a defined effect on the world and owes two obligations: that its claim follows from the world, and that it follows from the reason the step states. A claim refuted by a checked countermodel is withdrawn, which makes the first error of a trace well defined and keeps the world consistent. A domain is a library written in Ore, with definitions, checked theorems, and named assumptions that verdicts carry. Evidence is found by untrusted search and accepted only by small checkers and a kernel. On word problems, Tracepiler certifies every correct trace and is more accurate than the strongest of seven models used as judges, and Lean independently re-proves every verdict; a substantial share of the correct traces contain a true step that its stated reason does not support. On olympiad number theory Tracepiler locates more first errors than any judge, and a small language model used as an untrusted prover, each proof checked by Lean, proves most of the obligations its own search leaves open.
- [29] arXiv:2612.06013 (cross-list from cs.SE) [pdf, html, other]
-
Title: Who Checks the Model Checkers: Hardened Testing of TLA+ ToolsSubjects: Software Engineering (cs.SE); Logic in Computer Science (cs.LO)
In 2026, frontier AI tools have adopted the TLA+ trifecta (TLC, Apalache, and TLAPS) for protocol verification, alongside Lean 4. As LLMs rely on the verdicts of model checkers and proof assistants to guide specification and verification, these formal verification tools must themselves be as free of bugs as possible. Until recently, soundness and completeness issues in these tools were mostly found by human experts. A bug in a verification tool has two consequences: (1) a false negative may misguide AI-driven proof search, and, more importantly, (2) a false positive may give designers false confidence in a protocol, which an attacker's AI tool can exploit.
We present FuzzTLA -- a framework for systematic, hardened testing of the two TLA+ model checkers, TLC and Apalache. Following differential testing, we run both checkers on generated inputs and cross-check their results; for features unsupported by Apalache, we compare single-worker TLC against multi-worker TLC. Test generation combines property-based, mutation, and metamorphic testing with random graph generation. Running the framework in August-December 2026, while building it, we found 110 issues, including 4 parsing bugs in SANY (one regression), 4 defects causing incorrect verdicts in TLC (one a race condition), 17 in Apalache, 21 issues in Manyan (one causing incorrect verdicts), 2 issues in the Java overrides of the TLA+ Community Modules, and 9 performance issues.
This work would not have been feasible for a single researcher in several months without frontier AI tools. We report how we used Anthropic Claude Code, OpenAI Codex, and Moonshot Kimi to develop the framework and triage the findings. - [30] arXiv:2612.06284 (cross-list from cs.FL) [pdf, html, other]
-
Title: DFA Primality is EXPSPACE-CompleteComments: 23 pages, 5 figuresSubjects: Formal Languages and Automata Theory (cs.FL); Logic in Computer Science (cs.LO)
A deterministic finite automaton (DFA) is composite if there exists a family of strictly smaller DFAs whose languages intersected are equal to the language of the given DFA. Otherwise, the DFA is prime. Prime-DFA is the problem of deciding primality for a given DFA. It was defined by Kupferman and Mosheiff in 2015, who proved that it was NL-hard and in EXPSPACE. The lower bound was recently improved by Spenner to NP, who also proved that there exist composite DFAs whose decompositions require exponentially many DFAs. We prove that Prime-DFA is EXPSPACE-complete, matching the original upper bound of Kupferman and Mosheiff.
Cross submissions (showing 9 of 9 entries)
- [31] arXiv:2312.14587 (replaced) [pdf, html, other]
-
Title: Measuring well quasi-ordered finitary powersetsComments: 32 pagesSubjects: Logic in Computer Science (cs.LO); Discrete Mathematics (cs.DM)
The complexity of a well-quasi-order (wqo) can be measured through three ordinal invariants: the width as a measure of antichains, height as a measure of chains, and maximal order type as a measure of bad sequences.
We study these ordinal invariants for the finitary powerset, i.e., the collection Pf(A) of finite subsets of a wqo A ordered with the Hoare embedding relation. We show that the invariants of Pf(A) cannot be expressed as a function of the invariants of A, and provide tight upper and lower bounds for them.
We then focus on a family of well-behaved wqos, for which these invariants can be computed compositionally, using a newly defined ordinal invariant called the approximate maximal order type. This family is built from multiplicatively indecomposable ordinals, using classical operations such as disjoint unions, products, finite words, finite multisets, and the finitary powerset construction. - [32] arXiv:2501.17250 (replaced) [pdf, other]
-
Title: Weihrauch problems as containersComments: 26 pages, fixed typos and Example 4Subjects: Logic in Computer Science (cs.LO); Logic (math.LO)
We note that Weihrauch problems can be regarded as containers over the category of projective represented spaces and that Weihrauch reductions correspond exactly to container morphisms. We also show that Bauer's extended Weihrauch degrees and the posetal reflection of containers over partition assemblies are equivalent. Using this characterization, we show how a number of operators over Weihrauch degrees, such as the composition product, also arise naturally from the abstract theory of polynomial functors.
- [33] arXiv:2502.08476 (replaced) [pdf, html, other]
-
Title: Low rank MSOComments: 33 pagesSubjects: Logic in Computer Science (cs.LO)
We introduce a new logic for describing properties of graphs, which we call low rank MSO. This is the fragment of monadic second-order logic in which set quantification is restricted to vertex sets of bounded cutrank. We prove the following statements about the expressive power of low rank MSO.
- Over any class of graphs that is weakly sparse, low rank MSO has the same expressive power as separator logic. This equivalence does not hold over all graphs.
- Over any class of graphs that has bounded VC dimension, low rank MSO has the same expressive power as flip-connectivity logic. This equivalence does not hold over all graphs.
- Over all graphs, low rank MSO has the same expressive power as flip-reachability logic.
Here, separator logic is an extension of first-order logic by basic predicates for checking connectivity, which was proposed by Bojańczyk [ArXiv 2107.13953] and by Schirrmacher, Siebertz, and Vigny [ACM ToCL 2023]. Flip-connectivity logic and flip-reachability logic are analogues of separator logic suited for non-sparse graphs, which we propose in this work. In particular, the last statement above implies that every property of undirected graphs expressible in low rank MSO can be decided in polynomial time. - [34] arXiv:2605.08990 (replaced) [pdf, html, other]
-
Title: Well-Scoped Locally Nameless Representation of SyntaxComments: 23 pages, 5 figuresSubjects: Logic in Computer Science (cs.LO)
When using interactive theorem provers based on dependent type theory to define and reason about languages involving binding constructs, we advocate the use of a well-scoped version of the locally nameless method of representing syntax. This paper describes generic code for this style of syntax representation within the Agda theorem prover, parameterized by a notion of binding signature due to Aczel and Plotkin. It gives a proof of its adequacy with respect to naïve nameful syntax modulo alpha-conversion and discusses some examples of its use.
- [35] arXiv:2608.09305 (replaced) [pdf, html, other]
-
Title: Dilatations of categories, via their lean formalizationSubjects: Logic in Computer Science (cs.LO); Category Theory (math.CT)
Given a category $\calC$ and a center, that is a collection of pairs $(d_i, N_i)$ consisting of a morphism $d_i$ and a sieve $N_i$ over its codomain, the dilatation of $\calC$ is a new category $\calC'$ in which every $n \in N_i$ factors, uniquely and functorially, through $d_i$. This paper presents the theory of dilatations of categories through a full formalization of the construction and its main theorems in the Lean~4 proof assistant, on top of the Mathlib library. An appendix collects a systematic dictionary between the mathematical statements and the Lean declarations that formalize them.
- [36] arXiv:2608.16406 (replaced) [pdf, html, other]
-
Title: SATisfying the High School Identities but not Wilkie's IdentityComments: originally submitted to SAT 2026, superseded by arXiv:2608.08421Subjects: Logic in Computer Science (cs.LO)
We settle an open question related to Tarski's High School Algebra problem by showing that no 11-element algebra can satisfy the High School Identities while refuting Wilkie's identity. We encode the search as a SAT instance and independently verify the result. As a byproduct, we obtain a new 12-element countermodel that is not isomorphic to the previously known one.
- [37] arXiv:2609.07097 (replaced) [pdf, html, other]
-
Title: Optimising Metamath Proofs for Human Working MemoryComments: Submitted version. The final version appeared in CICM 2026, LNAI, SpringerJournal-ref: Intelligent Computer Mathematics. CICM 2026. Lecture Notes in Computer Science, vol 16907. Springer, ChamSubjects: Logic in Computer Science (cs.LO)
Mathematical proofs vary in legibility. While most proof optimisation techniques seek to minimise proof size, the strategic reordering of inferences can reduce the working memory demand of proof checking without altering overall size. Metamath serves as a prime case study for this approach: its verification architecture requires proof steps to be ordered in a manner that prioritises algorithmic efficiency over readability. In this paper, we introduce algorithms to minimise both peak and cumulative memory consumption, applying the latter as a novel proxy for sustained human cognitive effort. We achieve this by representing proofs as directed acyclic graphs and modelling their execution as a pebbling game. Finding an optimal ordering via brute force is computationally infeasible, so we use heuristics to provide approximations. We apply these algorithms across Metamath's ZFC set theory library and present case studies demonstrating how automated reordering systematically improves the presentation of formal mathematics.
- [38] arXiv:2611.20781 (replaced) [pdf, html, other]
-
Title: Verification-Guided Safety-Repair of Learned ControllersFabian Kresse, Sobhan Gharanfoli, Nikolaus Vertovec, Alessandro Abate, Thomas A. Henzinger, Christoph H. LampertSubjects: Logic in Computer Science (cs.LO); Systems and Control (eess.SY)
Formal verification can certify that a learned controller is safe. But what should be done when verification fails? Simply suppressing actions that lead to unsafe next states is insufficient because the dangerous action that ultimately caused the safety violation might have occurred many steps earlier. Retraining modifies the policy globally, thereby potentially introducing new failures. Instead, we introduce ReachECO, a verification-guided repair procedure that exploits the information of failed multi-step reachability analysis for synthesizing explicit constraints on controller behavior. For Differentiable Weightless Controllers, the repairs compile into exact circuit patches that leave the controller unchanged everywhere outside the targeted policy cells. We prove soundness and termination of the repair procedure for ReachECO, as well as, assuming exhaustive continuation search, completeness relative to the reachability abstraction. Empirically, we demonstrate \method's ability to successfully repair otherwise unsafe controllers in three continuous-control benchmarks: ACC, Docking2D and Car2D.
- [39] arXiv:2612.01505 (replaced) [pdf, html, other]
-
Title: RelLens: Relational Reasoning for Floating-Point Constraint SolvingSubjects: Logic in Computer Science (cs.LO); Programming Languages (cs.PL)
We present Rellens, a floating-point constraint solver that extends interval-based CP with relational reasoning. To support this reasoning, we develop rounding-aware Taylor models for arithmetic expressions in floating-point constraints. Each Taylor model consists of a polynomial part and an interval remainder. The former captures dependencies among the original variables, while the latter bounds higher-order terms and accumulated rounding errors. Building on these models, Rellens strengthens floating-point constraint solving in three ways. First, Taylor model-based contraction strengthens domain contraction within individual constraints beyond interval propagation. Second, joint conflict detection detects conflicts across constraints by checking the satisfiability of joint linear relaxations derived from these models. Third, Taylor model-guided search exploits the retained relational information to guide variable selection and branch ordering. Finally, we show that integrating these techniques yields a floating-point CP solver that is both sound and complete.
We conduct extensive experiments comparing Rellens with five complete and six incomplete floating-point solvers on SMT-LIB and program-derived benchmarks. Compared with the state-of-the-art (SOTA) complete baselines, Rellens solves the most instances on both benchmark sets, solving all 40,651 SMT-LIB instances and 1,637 of the 1,678 program-derived instances. It further achieves PAR-2 reductions of 98.6% and 44.9%, respectively. On the common satisfiable subsets supported by all incomplete solvers, Rellens solves the most instances, finding models for all 240 SMT-LIB instances and all 834 program-derived instances. It further achieves PAR-2 reductions of 99.0% and 98.6%, respectively, relative to the corresponding SOTA incomplete baselines. An ablation study further demonstrates the effectiveness of the key components. - [40] arXiv:2401.04606 (replaced) [pdf, html, other]
-
Title: The Importance of Parameters in Database QueriesSubjects: Databases (cs.DB); Logic in Computer Science (cs.LO)
We propose and study a framework for quantifying the importance of the choices of parameter values to the result of a query over a database. These parameters occur as constants in logical queries, such as conjunctive queries. In our framework, the importance of a parameter is its SHAP score - a popular instantiation of the game-theoretic Shapley value to measure the importance of feature values in machine learning models. We make the case for the rationale of using this score by explaining the intuition behind SHAP, and by showing that we arrive at this score in two different, apparently opposing, approaches to quantifying the contribution of a parameter. The application of SHAP requires two components in addition to the query and the database: (a) a probability distribution over the combinations of parameter values, and (b) a utility function that measures the similarity between the result for the original parameters and the result for hypothetical parameters. The main question addressed in the paper is the complexity of calculating the SHAP score for different distributions and similarity measures. In particular, we devise polynomial-time algorithms for the case of full acyclic conjunctive queries for certain (natural) similarity functions. We extend our results to conjunctive queries with parameterized filters (e.g., inequalities between variables and parameters). We also illustrate the application of our results to "why-not" explanations (aiming to explain the absence of a query answer), where we consider the task of quantifying the contribution of query components to the elimination of a non-answer in consideration. Finally, we discuss a simple approximation technique for the case of correlated parameters.
- [41] arXiv:2611.29559 (replaced) [pdf, html, other]
-
Title: A detailed verification of Neary's PCP(5) constructionSubjects: Formal Languages and Automata Theory (cs.FL); Logic in Computer Science (cs.LO)
Neary proved that the Post correspondence problem remains undecidable for instances with five pairs of words. We give a detailed verification of his construction. We first verify the undecidability of the restricted binary tag-system halting problem used in the reduction. We then prove both directions of the reduction to the five-pair problem, using the longer closing pair proposed by Rote. In particular, we show that every solution of the constructed PCP instance yields a halting computation of the simulated tag system. A companion Lean development verifies that the constructed PCP instance has exactly five pairs and admits a solution if and only if the source machine halts.
- [42] arXiv:2612.03871 (replaced) [pdf, html, other]
-
Title: A definability principle for coherent theories and computability structures in arithmeticComments: Fixes Remark 47Subjects: Logic (math.LO); Logic in Computer Science (cs.LO); Category Theory (math.CT)
We prove a synthetic definability principle that holds in the internal logic of the classifying topos of any coherent theory, generalising the related duality axioms for Horn theories that have seen recent use in synthetic mathematics. In the case of the classifying topos of a coherent theory of arithmetic, the definability principle substantiates a new analogy between synthetic computability and arithmetic. In particular, we show that its generic model $\mathsf{N}$ in its classifying topos satisfies Church's thesis; we also have a dominance $\Sigma$ of definable propositions, equivalently $\mathsf{N}$-semi-decidable propositions, which satisfies the enumerability axiom $\mathsf{N} \twoheadrightarrow \Sigma^{\mathsf{N}}$ from synthetic computability. This makes $\Sigma$ a Lawvere fixed-point object, corresponding to Gödel's fixed-point construction. We also prove the second incompleteness theorem for coherent arithmetic via the definability principle, by constructing the internal provability predicate $\square \colon \Sigma \to \Sigma$ and showing it has strong Löb induction.