Skip to main content
archive Search
Submit Donate Log in

Press Enter to search · Advanced search

Programming Languages

  • New submissions
  • Cross-lists
  • Replacements

See recent articles

Showing new listings for Friday, 4 December 2026

Total of 15 entries
Showing up to 2000 entries per page: fewer | more | all

New submissions (showing 7 of 7 entries)

[1] arXiv:2612.04467 [pdf, html, other]
Title: Bridging Tiled Domain-Specific Languages to CPU Matrix Accelerator via MLIR Nano-Kernels
Renato Golin, Julian Oppermann, Frank Schlimbach, Adam Siemieniuk, Arun Thangamani, Alexander Heinecke
Comments: 12 pages, 4 figures, 3 tables
Subjects: Programming Languages (cs.PL)

Tiled programming domain-specific languages (DSLs) such as Triton have become a common standard for expressing high-performance GPU kernels, enabling developers to encode architectural and algorithmic knowledge directly into the program structure to achieve peak throughput. In contrast, CPU execution of PyTorch graphs typically depends on library function pattern matching with opaque fusion behavior and unpredictable performance characteristics. In this work, we demonstrate that the tiling expertise captured at the DSL level can be retargeted to CPU by lowering to upstream MLIR vector-level dialects, then leveraging existing linear algebra vectorization passes in MLIR to produce efficient CPU code. Our key contribution is a common MLIR framework in which Triton, cuTile and Helion kernels, together with a PyTorch-to-Linalg compiler (Lighthouse), converge on a shared register-tiled nano-kernel form, preserving tile-level intent while enabling MLIR's x86 vectorization passes to generate AMX instruction sequences. On 24 KernelBench Level 2 kernels, the DSL paths reach geometric-mean speedups of up to 1.57x over PyTorch Eager and 1.54x over PyTorch Inductor on an AMX-enabled Intel Xeon, while the Lighthouse path, which starts from un-tiled PyTorch operations, stays below Eager (0.56x). However, Helion and Lighthouse share the same lowering from the register tiling stage down, and yet differ by 2.8x. The gap likely lies in the stages Helion avoids: pure Torch-MLIR ingress, memory tiling, and buffer management.

[2] arXiv:2612.04709 [pdf, html, other]
Title: Grade Soundness from Flexibly Graded Effect Trees
Zachery Casey, Shin-ya Katsumata, Marco Gaboardi
Comments: 27 pages
Subjects: 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.

[3] arXiv:2612.04774 [pdf, html, other]
Title: Keep, Measure, Erase: What a Quantum Loop Does with Its History
Sanad Kadu, Amr Sabry
Comments: 49 pages, 23 figures, 3 tables
Subjects: Programming Languages (cs.PL)

Quantum loops have a reputation for paradox. We study the single fact that we find common among the proposed formulations of quantum loops, namely that the history of a quantum loop, the record of how many times its body ran, is itself quantum information. We survey what happens when we leave this history implicit, keep it, or measure it. We develop our ideas in a small quantum language from the $\Pi$ family and its extensions. We first leave the history implicit by adding the coherent unitary loop to the base language, denoted by the direct-sum trace in the category of finite-dimensional Hilbert spaces and the unitaries between them. From the physics side, we show that this trace can be computed using a lossless optical network working with steady light of one frequency. To record the history of a quantum loop, either by keeping a count or by measuring the guard at each turn, we use two universal constructions on quantum processes to extend the base unitary language with the ability to allocate a finite counter and to hide, so that we can mimic measurement by discarding a fresh copy of the guard. Finally, we show when different ways of handling the history of a quantum loop behave the same. We prove that measuring the guard on every round gives the same output as keeping the exact count and then ignoring it. Leaving the count implicit and measuring the guard give the same output exactly when the same count state factors out on every input. A finite test on the loop body decides when this holds, so a compiler can safely replace a coherent loop by a measured one in any channel context, even on entangled inputs. We implement the language with all three loops and run the paper's examples in it, using a floating-point interpreter and exact checks on real rational tables.

[4] arXiv:2612.05654 [pdf, html, other]
Title: TensorLean: Formal Verification of Production GPU Kernels
Wei Qiang, Ganxiang Yang, Yi Rong, Ronghui Gu
Comments: Wei Qiang and Ganxiang Yang contributed equally
Subjects: Programming Languages (cs.PL); Distributed, Parallel, and Cluster Computing (cs.DC); Machine Learning (cs.LG)

GPU kernels are the computational core of modern AI, yet a single correctness bug can silently corrupt frontier models and ML frameworks, putting training and inference at risk. Formal verification promises correctness across all inputs, launch configurations, and schedules, but it has never reached production GPU kernels. We present TensorLean, the first framework to formally verify production GPU kernels. To reduce manual effort, TensorLean verifies the kernel's compiled PTX against tensor-level specifications that can be shared across kernels and their thousands of instances. Given the kernel's PTX, TensorLean builds a symbolic happens-before graph over formalized PTX semantics to capture all valid inputs, launch configurations, and concurrent schedules in a single run. On this graph, it first verifies data-race freedom and termination, thereby reducing concurrent executions to finite, sequential ones. It then uses a push/pull model to compute PTX memory updates and proves their functional correctness against the specification over reals with SMT solvers. Finally, TensorLean extends the correctness guarantee to the kernel's actual floating-point PTX via inductive round-off bound inference. For scalability, TensorLean further automatically infers tile-loop invariants and decomposes proof goals via user-provided assertion hints. We mechanize the PTX semantics and soundness proofs in Lean 4 and evaluate TensorLean on 2,078 kernel instances covering all 143 kernels in FlashAttention-2, -3, and -4, DeepSeek DeepGEMM, and LinkedIn Liger Kernel. It proves 1,180 instances correct and uncovers 66 unique, previously unknown correctness bugs in 888 of the remaining instances, all reported to developers.

[5] arXiv:2612.05751 [pdf, other]
Title: Erlang in ACL2: A Continuation-Passing Style Evaluator
Kuter Bora (Max Planck Institute for Security and Privacy), Mark R. Greenstreet (The University of British Columbia)
Comments: In Proceedings ACL2-2026, arXiv:2612.03645
Journal-ref: EPTCS 459, 2026, pp. 167-181
Subjects: Programming Languages (cs.PL)

We present an evaluator in ACL2 for Erlang, a functional language for concurrent programming. The evaluator is written in two parts: an AST evaluator and a scheduler. The AST evaluator uses continuation-passing style. At each point in an execution, each process has a current continuation that holds all state needed for further execution of the process. Thus, the global state of an Erlang program is a mapping from Erlang process identifiers to their continuations. The scheduler provides a non-deterministic interleaving of processes between globally visible actions such as process spawns and message sends and receives. We demonstrate the evaluator by proving some properties of a few simple Erlang programs.

[6] arXiv:2612.05851 [pdf, html, other]
Title: Semantically Descriptive Similarity
Oskar Hovmøller Dinesen, Christian Gram Kalhauge
Comments: Submitted to Workshop on Program Equivalence and Relational Reasoning 2026
Subjects: Programming Languages (cs.PL); Software Engineering (cs.SE)

Program equivalence is a notoriously undecidable problem, consequently, all approaches to determining whether two programs are equivalent are either imprecise or incomplete. In practical applications, developers often rely on proxy measures, such as the syntactic similarity of programs. In this paper, we formalize what it means for a similarity measure to be semantically descriptive and provide a framework for ranking measures based on their ability to differentiate between equivalent and non-equivalent program pairs. We refer to this metric as the average semantic loss of the similarity measure. We evaluate 17 established similarity measures, including ones based on edit-distance, compression, and vector embeddings. Using a subset of 450 thousand program pairs from the IBM ProjectCodeNet benchmark, we show that our semantic loss score replicates previous findings based on classifier performance. Finally, using this score, we demonstrate that compression-based measures outperform state-of-the-art vector-embedding-based approaches, such as CodeBERT and GraphCodeBERT, on unformatted code, but lag behind when the code is formatted or compiled and then decompiled. This indicates that these approaches are sensitive to the varying formatting of code.

[7] arXiv:2612.05963 [pdf, html, other]
Title: Tracepiler: Reasoning Traces as Programs: A Language and Checked Verdicts for Natural-Language Reasoning
Yeqi Gao, Xujie Si
Comments: 27 pages
Subjects: 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.

Cross submissions (showing 3 of 3 entries)

[8] arXiv:2612.05749 (cross-list from cs.LO) [pdf, other]
Title: Smtlink 3: Rewrite-driven Compilation to SMT-LIB
Christopher 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.03645
Journal-ref: EPTCS 459, 2026, pp. 140-157
Subjects: 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.

[9] arXiv:2612.05755 (cross-list from cs.LO) [pdf, other]
Title: Verifying RustCrypto's Fixsliced AES-128 in ACL2: An Aeneas Backend and an Executable MIR Semantics
Eric McCarthy (Kestrel Institute)
Comments: In Proceedings ACL2-2026, arXiv:2612.03645
Journal-ref: EPTCS 459, 2026, pp. 233-248
Subjects: 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.

[10] arXiv:2612.05775 (cross-list from cs.LO) [pdf, html, other]
Title: Towards Formalizing the Semantics of Lifting Argument Frames When Evaluating Remora Expressions
Ruben Gamboa
Comments: In Proceedings ACL2-2026, arXiv:2612.03645
Journal-ref: EPTCS 459, 2026, pp. 158-166
Subjects: 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.

Replacement submissions (showing 5 of 5 entries)

[11] arXiv:2608.07026 (replaced) [pdf, html, other]
Title: PyFlow: An Inter-procedural Static Analysis Framework for Python
Peisen Yao, Zinan Gu, Haoxiang Yan
Subjects: Programming Languages (cs.PL)

Static program analysis infers program properties automatically. Yet precise interprocedural analysis remains challenging, and dynamically typed languages amplify the difficulty. Python is particularly problematic: dynamic dispatch, first-class functions, metaprogramming, pervasive exceptions, and an object model based on descriptors and attribute-driven lookup collectively impede precise reasoning.
We present PyFlow, a generic IFDS-based static-analysis framework for Python. PyFlow provides a multi-stage intermediate-representation pipeline and a generic IFDS solver parameterized by abstract domains. Analysis developers implement only the dataflow semantics; the framework constructs the supergraph, performs fixed-point iteration, and caches summaries.
We implement a taint analysis in \pyflow and evaluate it against eight Python SAST tools (DevSkim, Dlint, Bandit, Bearer, CodeQL, Pysa, Semgrep, and Snyk) on the synthetic and real-world benchmarks from a recent ICSE~'26 study. On the synthetic benchmark, PyFlow achieves the best aggregate recall and F1 score among all nine tools. On the real-world benchmark, it attains the highest recall and F1 score while maintaining precision competitive with taint-based engines. We conclude with lessons learned from building IFDS analyses for Python.

[12] arXiv:2610.36669 (replaced) [pdf, html, other]
Title: Proof Repair and (Co)algebra Equivalences
E.G Plante III, Eric Paul, Cosmo Viola, G.A. Kavvos, Talia Ringer
Comments: 31 pages, 1 figure. Code: this https URL ; artifact: this https URL
Subjects: Programming Languages (cs.PL)

Maintaining formal proofs in response to breaking changes in their dependencies is a major challenge of proof engineering. Proof repair is a kind of proof automation that lessens the burden of this challenge by automatically adapting proofs in response to those changes. While proof repair is well understood through an algorithmic lens, it has, until now, been poorly understood through a theoretical lens. We address this gap by giving the first foundational treatment of proof repair, focusing in particular on type-theoretic proof repair in response to changes in datatypes. Our key insight is that the core component of a proof repair algorithm---a ``configuration''---is exactly an algebra isomorphism. We formalize and prove this insight, answering open questions from prior work. We then take this one step further and show that, by taking the dual of this representation, we obtain proof repair over coinductive types. All of our results are formalized in Agda.

[13] arXiv:2511.21878 (replaced) [pdf, html, other]
Title: MockingBird: Context-aware Repository-level Code Translation with Isolated Validation
Kaiyao Ke, Ali Reza Ibrahimzada, Rangeet Pan, Saurabh Sinha, Reyhaneh Jabbarvand
Subjects: Software Engineering (cs.SE); Programming Languages (cs.PL)

Despite advances in repository-level code translation, automated type resolution across differing type systems and translation validation (functional-equivalence checking) remain challenging. This paper proposes MockingBird, combining context-aware type resolution with mock-based isolated validation. MockingBird retrieves API documentation and contextual code information per source-language type, prompting an LLM to resolve precise cross-language type mappings, reducing the manual effort of existing approaches. Using this automatically constructed type map, MockingBird employs custom serialization/deserialization to generate equivalent target-language mock objects, validating each translation unit in isolation without test translation, eliminating test-overfitting risks and translation challenges. On 10 Java-to-Python tasks from the AlphaTrans benchmark, MockingBird improves functional equivalence from the state-of-the-art 25.14% to 52.8%, with no manual type-mapping correction needed. A 700-fragment study shows MockingBird achieves 0.1% false positives and 0.3% false negatives, substantially outperforming GraalVM (2.1% false positives, 14.0% false negatives) and MatchFixAgent (11.0% combined mislabel rate). The pipeline is also LLM-agnostic, maintaining these gains with both DeepSeekCoder-33B and the smaller Devstral-24B.

[14] arXiv:2612.01505 (replaced) [pdf, html, other]
Title: RelLens: Relational Reasoning for Floating-Point Constraint Solving
Junjie Li, Yufeng Zhang, Kenli Li, Zhenbang Chen, Ji Wang
Subjects: 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.

[15] arXiv:2612.03431 (replaced) [pdf, html, other]
Title: svlang-sdk: A Zero-Dependency Multi-Domain Compiler SDK for Modular VLSI Frontend Verification and EDA
Mayur Kubavat, Milan Kubavat, Yash Kubavat
Comments: 10 pages, 7 figures, 5 tables; v2: added co-authors Milan Kubavat and Yash Kubavat
Subjects: Hardware Architecture (cs.AR); Programming Languages (cs.PL); Software Engineering (cs.SE)

VLSI frontend flows parse the same chip five times across SystemVerilog, UPF, SDC, SystemRDL/IP-XACT, and SystemC. Disconnected tools maintain separate elaboration graphs, cache stale state, and expose unstable C++ ABIs or text dumps, forcing brittle glue scripts while IDEs and AI agents stall on full-chip re-elaboration and megabyte JSON payloads.
We present svlang-sdk, a 73,892-line zero-dependency C++23 (-fno-exceptions -fno-rtti) hardware compiler spine and frozen C11 SDK (libsvlang_sdk_c). Five acyclic layers separate: (0) a Salsa-style incremental query host (AnalysisHost/AnalysisSnapshot) with durability tiers, early cutoff, cooperative cancellation, and epoch-scoped arenas; (1) five pluggable frontends (SV, UPF 3.1, SystemC 3.0, SDC, RDL/IP-XACT) bound onto one dense EntityId graph with OpenUSD-style overlays and ExplainValueSource provenance; (2) a word-level SSA RTL netlist, immutable .svdb snapshots, Hydra-style merging views, and macro-aware AtomicChange refactoring; (3) a dual-plane ABI pairing 39 C11 symbols (zero leaked C++ _Z* symbols) with the header-only Apache Arrow C Data Interface and C++23, Python, Rust, and TypeScript bindings; and (4) LSP 3.17, MCP 2026-07-28, DAP v1.71, and Surfer WCP servers.
Linking svlang-sdk deleted 16,351 duplicated frontend lines from our 88,254-line sv++ simulator, drives 436 lint rules in svlang-lint, and isolates a 42,472-line consolidation seam in our 159,225-line Rust formal verifier InFormal. On arm64 macOS, all 14 C++23 test suites pass under Debug, ASan+UBSan, TSan, and Release; comment edits hit early cutoff in 10 us with flat RSS across 1,000 epochs; Arrow exports 53,005 entities in 0.9 ms (37.3x faster than JSON); and four polyglot small-tool proofs each fit under 150 lines.

Total of 15 entries
Showing up to 2000 entries per page: fewer | more | all
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)