Pith. sign in

REVIEW 3 cited by

PyVeritas: On Verifying Python via LLM-Based Transpilation and Bounded Model Checking for C

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2508.08171 v1 pith:VRZ5PKOR submitted 2025-08-11 cs.SE cs.AI

PyVeritas: On Verifying Python via LLM-Based Transpilation and Bounded Model Checking for C

classification cs.SE cs.AI
keywords pythonmodelverificationcheckingfaultlocalisationpyveritastranspilation
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
Share X Bluesky LinkedIn Reddit HN
read the original abstract

Python has become the dominant language for general-purpose programming, yet it lacks robust tools for formal verification. In contrast, programmers working in languages such as C benefit from mature model checkers, for example CBMC, which enable exhaustive symbolic reasoning and fault localisation. The inherent complexity of Python, coupled with the verbosity and low-level nature of existing transpilers (e.g., Cython), have historically limited the applicability of formal verification to Python programs. In this paper, we propose PyVeritas, a novel framework that leverages Large Language Models (LLMs) for high-level transpilation from Python to C, followed by bounded model checking and MaxSAT-based fault localisation in the generated C code. PyVeritas enables verification and bug localisation for Python code using existing model checking tools for C. Our empirical evaluation on two Python benchmarks demonstrates that LLM-based transpilation can achieve a high degree of accuracy, up to 80--90% for some LLMs, enabling effective development environment that supports assertion-based verification and interpretable fault diagnosis for small yet non-trivial Python programs.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Why3-py: A Tool for Formal Verification of Hypothesis Testing and Meta-Analysis in Python

    cs.SE 2026-07 accept novelty 6.0

    Why3-py is a Python front-end to Why3 plus an extended StatWhy that verifies annotated hypothesis-testing and meta-analysis programs by discharging assumption and interpretation obligations.

  2. MaxSAT-Based Feedback for Guiding Vision-Language Models in Sudoku

    cs.AI 2026-07 conditional novelty 5.0

    MaxSAT-based feedback that keeps Sudoku rules hard and VLM placements soft improves logical consistency and solve rates of vision-language models on Sudoku.

  3. MaxSAT-Based Feedback for Guiding Vision-Language Models in Sudoku

    cs.AI 2026-07 conditional novelty 5.0

    Adding MaxSAT-based conflict feedback to a vision-language model increases solved Sudoku instances across all tested models, most notably GPT-5.5 in full-board mode (45 to 73 solved).