<?xml version="1.0" encoding="UTF-8"?>

<modsCollection xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd">
<mods version="3.3">

<genre>conference paper</genre>

<titleInfo><title>A recipe for modular verification of generic tree traversals</title></titleInfo>


<note type="publicationStatus">published</note>


<note type="qualityControlled">yes</note>

<name type="personal">
  <namePart type="given">Laila</namePart>
  <namePart type="family">Elbeheiry</namePart>
  <role><roleTerm type="text">author</roleTerm> </role></name>
<name type="personal">
  <namePart type="given">Michael Joachim</namePart>
  <namePart type="family">Sammler</namePart>
  <role><roleTerm type="text">author</roleTerm> </role><identifier type="local">510d3901-2a03-11ee-914d-d9ae9011f0a7</identifier></name>
<name type="personal">
  <namePart type="given">Robbert</namePart>
  <namePart type="family">Krebbers</namePart>
  <role><roleTerm type="text">author</roleTerm> </role></name>
<name type="personal">
  <namePart type="given">Derek</namePart>
  <namePart type="family">Dreyer</namePart>
  <role><roleTerm type="text">author</roleTerm> </role></name>
<name type="personal">
  <namePart type="given">Deepak</namePart>
  <namePart type="family">Garg</namePart>
  <role><roleTerm type="text">author</roleTerm> </role></name>







<name type="corporate">
  <namePart></namePart>
  <identifier type="local">MiSa</identifier>
  <role>
    <roleTerm type="text">department</roleTerm>
  </role>
</name>



<name type="conference">
  <namePart>CPP: Conference on Certified Programs and Proofs</namePart>
</name>






<abstract lang="eng">Data structures based on trees and tree traversals are ubiquitous in computer systems. Many low-level programs, including some implementations of critical systems like page tables and the web browser DOM, rely on generic tree-traversal functions that traverse tree nodes in a pre-determined order, applying a client-provided operation to each visited node. Developing a general approach to specifying and verifying such traversals is tricky since the client-provided per-node operation can be stateful and may potentially depend on or modify the structure of the tree being traversed.
In this paper, we present a recipe for (semi-)automated verification of such generic, stateful tree traversals. Our recipe is (a) general: it applies to a range of tree traversals, in particular, pre-, post- and in-order depth-first traversals; (b) modular: parts of a traversal’s proof can be reused in verifying other similar traversals; (c) expressive: using the specification of a tree traversal, we can verify clients that use the traversal in a variety of different ways; and (d) automatable: many proof obligations can be discharged automatically.
At the heart of our recipe is a novel use of tree zippers to represent a logical abstraction of the tree traversal state, and zipper transitions as an abstraction of traversal steps. We realize our recipe in the RefinedC framework in Rocq, which allows us to verify a number of different tree traversals and their clients written in C.</abstract>

<relatedItem type="constituent">
  <location>
    <url displayLabel="2026_CPP_Elbeheiry.pdf">https://research-explorer.ista.ac.at/download/21133/21225/2026_CPP_Elbeheiry.pdf</url>
  </location>
  <physicalDescription><internetMediaType>application/pdf</internetMediaType></physicalDescription><accessCondition type="restrictionOnAccess">no</accessCondition>
</relatedItem>
<originInfo><publisher>Association for Computing Machinery</publisher><dateIssued encoding="w3cdtf">2026</dateIssued><place><placeTerm type="text">Rennes, France</placeTerm></place>
</originInfo>
<language><languageTerm authority="iso639-2b" type="code">eng</languageTerm>
</language>



<relatedItem type="host"><titleInfo><title>Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs</title></titleInfo>
  <identifier type="isbn">9798400723414</identifier><identifier type="doi">10.1145/3779031.3779110</identifier>
<part><extent unit="pages">339-352</extent>
</part>
</relatedItem>


<extension>
<bibliographicCitation>
<chicago>Elbeheiry, Laila, Michael Joachim Sammler, Robbert Krebbers, Derek Dreyer, and Deepak Garg. “A Recipe for Modular Verification of Generic Tree Traversals.” In &lt;i&gt;Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs&lt;/i&gt;, 339–52. Association for Computing Machinery, 2026. &lt;a href=&quot;https://doi.org/10.1145/3779031.3779110&quot;&gt;https://doi.org/10.1145/3779031.3779110&lt;/a&gt;.</chicago>
<mla>Elbeheiry, Laila, et al. “A Recipe for Modular Verification of Generic Tree Traversals.” &lt;i&gt;Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs&lt;/i&gt;, Association for Computing Machinery, 2026, pp. 339–52, doi:&lt;a href=&quot;https://doi.org/10.1145/3779031.3779110&quot;&gt;10.1145/3779031.3779110&lt;/a&gt;.</mla>
<apa>Elbeheiry, L., Sammler, M. J., Krebbers, R., Dreyer, D., &amp;#38; Garg, D. (2026). A recipe for modular verification of generic tree traversals. In &lt;i&gt;Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs&lt;/i&gt; (pp. 339–352). Rennes, France: Association for Computing Machinery. &lt;a href=&quot;https://doi.org/10.1145/3779031.3779110&quot;&gt;https://doi.org/10.1145/3779031.3779110&lt;/a&gt;</apa>
<ama>Elbeheiry L, Sammler MJ, Krebbers R, Dreyer D, Garg D. A recipe for modular verification of generic tree traversals. In: &lt;i&gt;Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs&lt;/i&gt;. Association for Computing Machinery; 2026:339-352. doi:&lt;a href=&quot;https://doi.org/10.1145/3779031.3779110&quot;&gt;10.1145/3779031.3779110&lt;/a&gt;</ama>
<short>L. Elbeheiry, M.J. Sammler, R. Krebbers, D. Dreyer, D. Garg, in:, Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs, Association for Computing Machinery, 2026, pp. 339–352.</short>
<ieee>L. Elbeheiry, M. J. Sammler, R. Krebbers, D. Dreyer, and D. Garg, “A recipe for modular verification of generic tree traversals,” in &lt;i&gt;Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs&lt;/i&gt;, Rennes, France, 2026, pp. 339–352.</ieee>
<ista>Elbeheiry L, Sammler MJ, Krebbers R, Dreyer D, Garg D. 2026. A recipe for modular verification of generic tree traversals. Proceedings of the 15th ACM SIGPLAN International Conference on Certified Programs and Proofs. CPP: Conference on Certified Programs and Proofs, 339–352.</ista>
</bibliographicCitation>
</extension>
<recordInfo><recordIdentifier>21133</recordIdentifier><recordCreationDate encoding="w3cdtf">2026-02-01T23:01:43Z</recordCreationDate><recordChangeDate encoding="w3cdtf">2026-02-16T08:43:24Z</recordChangeDate>
</recordInfo>
</mods>
</modsCollection>
