# Peregrine: A Language-Agnostic Packet Processing Intermediate Representation with Formal Guarantees

DevFeed: [Peregrine: A Language-Agnostic Packet Processing Intermediate Representation with Formal Guarantees](<https://devfeed.tech/articles/peregrine-a-language-agnostic-packet-processing-intermediate-representation-with-formal-guarantees-100186.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.32639>)

Author: Sean Rhee, Xiangyu Gao, Srinivas Narayana, Nate Foster, Joseph Tassarotti, Anirudh Sivaraman

Published: 2026-10-26T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Networking](<https://devfeed.tech/sources/arxiv-networking.md>)

Topics: [Programming Languages / Compilers](<https://devfeed.tech/topics/programming-languages-compilers.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [domain-specific language](<https://devfeed.tech/topics/domain-specific-language.md>), [Coq](<https://devfeed.tech/topics/coq.md>), [Automated reasoning](<https://devfeed.tech/topics/automated-reasoning.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [applications](<https://devfeed.tech/tags/applications.md>), [classification](<https://devfeed.tech/tags/classification.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [cs-ni](<https://devfeed.tech/tags/cs-ni.md>), [developers](<https://devfeed.tech/tags/developers.md>), [devices](<https://devfeed.tech/tags/devices.md>), [domain-specific-languages](<https://devfeed.tech/tags/domain-specific-languages.md>), [dsl](<https://devfeed.tech/tags/dsl.md>), [dsls](<https://devfeed.tech/tags/dsls.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [formal](<https://devfeed.tech/tags/formal.md>), [guarantees](<https://devfeed.tech/tags/guarantees.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [intermediate](<https://devfeed.tech/tags/intermediate.md>), [language](<https://devfeed.tech/tags/language.md>), [languages](<https://devfeed.tech/tags/languages.md>), [packet](<https://devfeed.tech/tags/packet.md>), [processing](<https://devfeed.tech/tags/processing.md>)

## AI overview

Peregrine is a proposed shared, language-agnostic intermediate representation for packet-processing compilers, intended to address fragmented infrastructure and unreliable compilation across programmable network DSLs. It includes formal semantics and an equivalence checker implemented and proven correct in Rocq. The abstract reports that Peregrine can express applications from several state-of-the-art network languages, and that its checker can validate untrusted compiler passes and certify packet-classification algorithms within a reasonable amount of time. The supplied evidence does not detail the experiments or performance limits.

## Source excerpt

arXiv:2610.32639v1 Announce Type: new Abstract: Many different programmable network devices and domain-specific languages (DSLs) for programming them have been developed in recent years. However, the affiliated compiler infrastructure for each DSL has not kept up, leading to unreliable compilation results and ultimately a poor experience for developers. In response to this fragmented ecosystem, we propose an intermediate representation, Peregrine, to consolidate the common compiler functionalities within this domain into a shared, open-source infrastructure. We designed Peregrine to provide formal guarantees from the beginning, rather than adding them in a later step. The language comes with a formal semantics, along with an equivalence checker written and proven correct in Rocq. Experimental results show that Peregrine is general enough to express multiple applications written in various state-of-the-art network programming languages. The equivalence checker designed in Peregrine can be used for validating the correctness of a range of untrusted compiler passes, as well as for other surprising use cases such as certifying the correctness of packet classification algorithms within a reasonable amount of time.