R2C2 uses AI agents to build Rocq-checked proofs for C-to-Rust translations
state: seedheat: mediumuncertainty: mediumrelevance: highai-assisted-verification software-translation rust formal-methodsEunsu KimSukyoung RyuJaemin Hong
What is this?
R2C2 is a research method from Eunsu Kim, Sukyoung Ryu, and Jaemin Hong for checking whether a C-to-Rust translation preserves behavior. In their arXiv preprint, submitted November 13, 2026, the authors describe AI agents constructing refinement proofs between the programs’ LLVM IR representations, with Rocq checking the proofs so the agents themselves need not be trusted. They report proving 486 of 519 benchmark translations correct without bounding executions, and finding counterexamples for three incorrect translations. The supplied evidence is the paper abstract and summaries, not an independent replication; it does not explain the status of the other 30 cases in detail.
Why it matters
This is a notable step toward using AI to help produce machine-checked evidence for a consequential software migration, rather than relying only on tests or bounded checks. If the approach scales, it could make it easier to assess whether Rust rewrites of legacy C software preserve behavior, while keeping proof validity anchored in a trusted checker rather than the AI agent. The results are promising research evidence, not yet proof that the method is broadly deployable or covers all aspects of real-world migrations.
Current assessment
The new development is R2C2, presented in an arXiv preprint by Kim, Ryu, and Hong. The paper says it validates translation by proving that the Rust program refines the C program after both are compiled to LLVM IR; it uses a shared abstraction for differing C and Rust data representations and a chain of refinement relations, with only one relation proved per program at validation time. AI agents automate proof construction, while Rocq checks the proofs. Authors report proofs for 486 of 519 LLM-translated benchmark programs without bounding executions, plus valid counterexamples for three incorrect translations that, they say, existing translation-validation tools could not find. They also describe a small real-world image-compression-library case study involving file operations. The remaining benchmark cases and practical costs or limitations are not established by the supplied abstract. These are author-reported results from a preprint; the evidence supplied includes no independent evaluation, adoption data, or code availability confirmation. The approach could help make C-to-Rust migration safer, but refinement is a specific correctness relation, not a blanket guarantee of security or overall equivalence.
Measured heat
now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 338h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
pace: p26 vs 1845 stories at the 336h mark (now 338h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted ProofRetrieved article excerptOpen article · Retrieved 2026-11-19T23:22:47.977858+00:00 # Computer Science > Programming Languages
**arXiv:2611.18036** (cs)
[Submitted on 13 Nov 2026]
# Title:C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof
Authors:[Eunsu Kim](https://arxiv.org/search/cs?searchtype=author&query=Kim,+E), [Sukyoung Ryu](https://arxiv.org/search/cs?searchtype=author&query=Ryu,+S), [Jaemin Hong](https://arxiv.org/search/cs?searchtype=author&query=Hong,+J)
View a PDF of the paper titled C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof, by Eunsu Kim and 2 other authors
[View PDF](https://arxiv.org/pdf/2611.18036)
[HTML (experimental)](https://arxiv.org/html/2611.18036v1)
> Abstract:Migrating C codebases to Rust is a promising approach to securing legacy software, but existing translators do not guarantee that a translated Rust program preserves the behavior of the C program. Neither rule-based nor large language model (LLM)-based translators have been formally verified, and existing approaches to checking translation correctness are limited to testing and bounded checks, which cannot reason about all possible executions. In this work, we present R2C2, which validates C-to-Rust translation by proving in Rocq that the Rust program refines the C program, i.e., every behavior on the Rust side is also a behavior on the C side. Since no formal semantics defines the behaviors of C and Rust programs in the same terms, we prove refinement between the two programs compiled to the LLVM intermediate representation (LLVM IR). In addition, to resolve the discrepancies between the data representations of C and Rust, we introduce a common abstraction that relates two corresponding representations through an abstract value, and specify the behavior of each library function over abstract values. We construct the refinement proof as a chain of refinement relations, where only one relation is program-specific and proved at validation time, while the others are proved for all programs in advance. Proof construction is automated by AI agents, and since Rocq checks the proofs, the agents need not be trusted. We evaluate R2C2 on LLM translations of 519 C programs drawn from a benchmark suite used in prior work on C-to-Rust translation validation. R2C2 proves the translations of 486 programs correct without bounding their executions and discovers three incorrect translations, providing valid counterexamples that existing translation validation tools cannot find. We also conduct a case study on a small real-world image compression library and demonstrate how R2C2 can handle file operations.
| |
| --- |
| Comments: |
| Subjects: | Programming Languages (cs.PL) |
| Cite as: | [arXiv:2611.18036](https://arxiv.org/abs/2611.18036) [cs.PL] |
| | (or [arXiv:2611.18036v1](https://arxiv.org/abs/2611.18036v1) [cs.PL] for this version) |
| | <https://doi.org/10.48550/arXiv.2611.18036> Focus to learn more arXiv-issued DOI via DataCite (pending registration) |
## Submission history
From: Jaemin Hong [[view email](https://arxiv.org/show-email/9172145e/2611.18036)]
**[v1]**
Fri, 13 Nov 2026 11:05:17 UTC (732 KB)
Full-text links:
## Access Paper:
View a PDF of the paper titled C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof, by Eunsu Kim and 2 other authors
- [View PDF](https://arxiv.org/pdf/2611.18036)
- [HTML (experimental)](https://arxiv.org/html/2611.18036v1)
- [TeX Source](https://arxiv.org/src/2611.18036)
[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")
### Additional Features
- [Audio Summary](https://arxiv.org/audio/2611.18036)
### Current browse context:
cs.PL
[< prev](https://arxiv.org/prevnext?id=2611.18036&function=prev&context=cs.PL "previous in cs.PL (accesskey p)")
|
[next >](https://arxiv.org/prevnext?id=2611.18036&function=next&context=cs.PL "next in cs.PL (accesskey n)")
[new](https://arxiv.org/list/cs.PL/new)
|
[recent](https://arxiv.org/list/cs.PL/recent)
| [2026-11](https://arxiv.org/list/cs.PL/2026-11)
Change to browse by:
[cs](https://arxiv.org/abs/2611.18036?context=cs)
### References & Citations
- [SciX](https://scixplorer.org/abs/arXiv:2611.18036)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2611.18036)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2611.18036)
export BibTeX citation
Loading...
## BibTeX formatted citation
×
loading...
Data provided by:
### Bookmark
[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2611.18036&description=C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2611.18036&title=C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof "Bookmark on Reddit")
Bibliographic Tools
# Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*
Connected Papers Toggle
Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*
Litmaps Toggle
Litmaps *([What is Litmaps?](https://www.litmaps.co/))*
scite.ai Toggle
scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*
Code, Data, Media
# Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*
Links to Code Toggle
CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*
DagsHub Toggle
DagsHub *([What is DagsHub?](https://dagshub.com/))*
GotitPub Toggle
Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*
Huggingface Toggle
Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*
ScienceCast Toggle
ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*
Demos
# Demos
Replicate Toggle
Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*
Spaces Toggle
Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*
Spaces Toggle
TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*
Related Papers
# Recommenders and Search Tools
Link to Influence Flower
Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*
Core recommender toggle
CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*
- Author
- Venue
- Institution
- Topic
About arXivLabs
# arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).
[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2611.18036) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html)) | matt_d | 3 | 0 |
| 🟧 echo.paper ⭐ | The paper presents R2C2, which validates C-to-Rust translations by proving refinement between their LLVM IR representations, with proof cons | Eunsu Kim, Sukyoung Ryu, and Jaemin Hong | — | — |
Interpretation history
2026-11-19T23:23:56Z
audience grounding: high — This is a notable step toward using AI to help produce machine-checked evidence for a consequential software migration, rather than relying only on tests or bounded checks. If the approach scales, it could make it easier to assess whether Rust rewrites of legacy C software preserve behavior, while keeping proof validity anchored in a trusted checker rather than the AI agent. The results are promising research evidence, not yet proof that the method is broadly deployable or covers all aspects of real-world migrations.
Decision trace
- 11-20 10:25attention_candidatecreate
- 11-20 10:23groundThis is a notable step toward using AI to help produce machine-checked evidence for a consequential software migration, rather than relying only on tests or bounded checks. If the approach scales, it
- 11-20 10:23createThe paper reports a concrete verification method and benchmark results, while its practical scope is not yet independently established.