2026-11-26 15:40 UTC

MachCSL paper reports hardware-level xv6 verification with AI-agent assistance

state: seedheat: mediumuncertainty: mediumrelevance: highformal-verification ai-agents operating-systemsM. Frans KaashoekNickolai Zeldovich

What is this?

M. Frans Kaashoek and Nickolai Zeldovich’s arXiv paper presents MachCSL, a framework that adapts concurrent separation logic to verify system software against low-level RISC-V hardware semantics from the Sail model. Their xv6 case study covers a 6,657-line kernel and reports a console-behavior theorem that also covers several user-space programs. The current arXiv page identifies version 3, revised October 12, 2026; its abstract reports 11 xv6 bugs, one bug in Sail’s RISC-V semantics, one in Sail’s Lean extraction, and 102 days for the effort including framework development. Earlier version-1 search results report nine xv6 bugs and 77 days, so the totals changed across revisions. The paper says LLM-based agents can help with the tedious low-level reasoning, but the supplied sources do not quantify the agents’ role or independently validate the results.

Why it matters

This is a notable step toward machine-assisted formal verification of systems software: the method reasons about details such as address translation, interrupts, DMA, and instruction execution that higher-level proofs may abstract away. If the approach scales, it could make stronger kernel correctness guarantees more achievable and expose defects in hardware models and verification tooling as well as in the software. The evidence is a research paper’s case study on xv6, not proof that the method is ready for production kernels or that AI agents can autonomously verify them.

Current assessment

New: the arXiv paper describes MachCSL, which extends Iris-based concurrent separation logic to low-level RISC-V execution semantics from Sail, and reports a verification of xv6. The authors state that the proof covers the kernel and specified initial user-space binaries, including a theorem constraining console output for an example command. They report 11 xv6 bugs plus one in Sail’s RISC-V semantics and one in Sail’s Lean extraction; the effort took 102 days including framework development. A search result pointing to version 1 instead reports nine xv6 bugs and 77 days, indicating material revision differences; use the current version-3 abstract for the latest supplied figures, while the precise changes are not established here. The authors frame LLM-based agents as capable of assisting with tedious reasoning, but the sources do not establish how much work agents performed, whether the findings were fixed, or how the approach performs beyond xv6 and this RISC-V setup. The result is potentially important for making hardware-aware kernel verification more tractable, but remains a paper-reported research demonstration rather than evidence of broad deployment.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 2041h
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

09-02 14:00⭐ origin echo-reconstructedThe paper describes MachCSL and reports a verification case study of xv6 on RISC-V, including bugs found and a theorem about console-level b
M. Frans Kaashoek and Nickolai Zeldovich on paper (echo) · attributed from hn.story.50527277
—
11-17 04:03first on hacker news · published · +1814.1hExtending separation logic to verify the xv6 OS kernel on RISC-V with AI agents
chubot
—
11-17 04:03amplified on hacker news 👑hn.story.50527277
chubot
peak 1 · 0 comments · 103% of case engagement
11-17 04:20our radar first saw it · +1814.3hdiscovery anchor: hn.story.50527277—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnExtending separation logic to verify the xv6 OS kernel on RISC-V with AI agents
Retrieved article excerpt

Open article · Retrieved 2026-11-17T04:21:20.369580+00:00

# Computer Science > Logic in Computer Science

**arXiv:2609.04043** (cs)

[Submitted on 3 Sep 2026 ([v1](https://arxiv.org/abs/2609.04043v1)), last revised 12 Oct 2026 (this version, v3)]

# Title:Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents

Authors:[M. Frans Kaashoek](https://arxiv.org/search/cs?searchtype=author&query=Kaashoek,+M+F), [Nickolai Zeldovich](https://arxiv.org/search/cs?searchtype=author&query=Zeldovich,+N)

View a PDF of the paper titled Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents, by M. Frans Kaashoek and Nickolai Zeldovich

[View PDF](https://arxiv.org/pdf/2609.04043)
[HTML (experimental)](https://arxiv.org/html/2609.04043v3)
> Abstract:MachCSL is a framework for verifying system software, such as an OS kernel, on top of low-level semantics of a RISC-V computer, based on the Sail RISC-V semantics. The key idea behind MachCSL is to adapt concurrent separation logic, based on Iris, to reasoning about low-level hardware execution at the sub-instruction level: page-table translation, TLB, privilege levels, configuration registers, instruction fetch/decode/execute, traps and interrupts, DMA, shared memory, power failures, etc. Reasoning at this level of detail ensures that the system software correctly manages all of the hardware details.
>   
> Verifying software at this low level of abstraction is tedious, but LLM-based agents are capable of reasoning about such low-level details. As a case study, we verify the xv6 OS kernel (6,657 lines of C and assembly code), which provides a traditional Unix system call interface (processes, file system, file descriptors, and preemptive scheduling) and has substantial internal concurrency (multi-core support with fine-grained locking, shared memory, interrupts, DMA, etc.). In the verification process, we uncovered 11 bugs in the xv6 implementation, as well as one bug in the Sail RISC-V semantics, and one bug in Sail's Lean extraction. The verification effort took us 102 days, including the time to develop the MachCSL framework.
>   
> On top of the verified xv6 kernel, we prove a theorem about console-level behavior: e.g., if the user types echo hello world as input on the UART console, the only output the system can produce is hello world (if there are no crashes or other errors). This theorem covers both the kernel and the init, sh, echo, cat, grep, sync, and seccomp binaries in the initial file system image.

|  |  |
| --- | --- |
| Subjects: | Logic in Computer Science (cs.LO); Operating Systems (cs.OS) |
| Cite as: | [arXiv:2609.04043](https://arxiv.org/abs/2609.04043) [cs.LO] |
|  | (or  [arXiv:2609.04043v3](https://arxiv.org/abs/2609.04043v3) [cs.LO] for this version) |
|  | <https://doi.org/10.48550/arXiv.2609.04043> Focus to learn more  arXiv-issued DOI via DataCite |

## Submission history

From: Nickolai Zeldovich [[view email](https://arxiv.org/show-email/a54cf0b4/2609.04043)]

Full-text links:

## Access Paper:

View a PDF of the paper titled Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents, by M. Frans Kaashoek and Nickolai Zeldovich

- [View PDF](https://arxiv.org/pdf/2609.04043)
- [HTML (experimental)](https://arxiv.org/html/2609.04043v3)
- [TeX Source](https://arxiv.org/src/2609.04043)

[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")

### Additional Features

- [Audio Summary](https://arxiv.org/audio/2609.04043)

### Current browse context:

cs.LO

[< prev](https://arxiv.org/prevnext?id=2609.04043&function=prev&context=cs.LO "previous in cs.LO (accesskey p)")
  |   
[next >](https://arxiv.org/prevnext?id=2609.04043&function=next&context=cs.LO "next in cs.LO (accesskey n)")

[new](https://arxiv.org/list/cs.LO/new)
 | 
[recent](https://arxiv.org/list/cs.LO/recent)
 | [2026-09](https://arxiv.org/list/cs.LO/2026-09)

Change to browse by:

[cs](https://arxiv.org/abs/2609.04043?context=cs)  
[cs.OS](https://arxiv.org/abs/2609.04043?context=cs.OS)

### References & Citations

- [SciX](https://scixplorer.org/abs/arXiv:2609.04043)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2609.04043)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2609.04043)

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/2609.04043&description=Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2609.04043&title=Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents "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/2609.04043) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))
chubot10
🟧 echo.paper ⭐The paper describes MachCSL and reports a verification case study of xv6 on RISC-V, including bugs found and a theorem about console-level bM. Frans Kaashoek and Nickolai Zeldovich——

Interpretation history

Decision trace