← Back to blog

Published on Sat Oct 18 2025 00:00:00 GMT+0000 (Coordinated Universal Time) by Orkid Labs

Abstract

We develop a formal mathematical model of Maximal Extractable Value (MEV) as an entropy-driven process on blockchain networks. By treating information as negentropy (negative entropy) that propagates via graph diffusion, we derive coupled differential equations governing the evolution of network information $I_t$ and MEV opportunities $M_t$.

Our key results include:

  1. MEV closure equation: $\frac{dM}{dt} = a\delta_t + bH_M(t) - c,\chi(I_t),M_t$
  2. Steady-state bound: $M^* = \frac{a\delta + bH_M}{c,q^\top I^*}$
  3. Optimal control law: Information injection $s(t)$ that minimizes MEV subject to cost constraints
  4. Stability guarantees: Bounded MEV under mild conditions on information decay

We show that the FiMD (Financial Molecular Dynamics) physics engine implements this framework, providing a rigorous foundation for physics-based MEV detection.

Keywords: MEV, negentropy, graph diffusion, information theory, control theory, blockchain thermodynamics


1. Introduction

1.1 Motivation

Maximal Extractable Value (MEV) represents profit opportunities arising from transaction ordering, inclusion, and exclusion in blockchain systems. Traditional approaches model MEV as a game-theoretic or economic phenomenon. We propose an alternative: MEV as an entropy-driven thermodynamic process.

Key insight: Information reduces MEV. When searchers, validators, and liquidity providers have perfect information about market state, arbitrage opportunities close instantly. MEV exists precisely because information is imperfect, delayed, or asymmetrically distributed.

1.2 Contributions

  1. Formal model: Coupled PDEs for information diffusion and MEV dynamics
  2. Analytical results: Closed-form steady-state solutions and stability bounds
  3. Control framework: Optimal information injection strategies
  4. Implementation: Direct mapping to FMD physics engine
  • Flashbots Research: Game-theoretic MEV models, auction mechanisms
  • Nethermind Research: MEV detection, bundle simulation
  • Statistical Mechanics: Graph diffusion, entropy dynamics (Bolhuis et al., 2002)
  • Control Theory: Optimal control on networks (Mesbahi & Egerstedt, 2010)

2. Mathematical Framework

2.1 Network Model

Let $G = (V, E)$ represent the blockchain network:

  • $V$: Nodes (validators, searchers, liquidity providers)
  • $E$: Edges (communication channels, mempool connections)
  • $L \in \mathbb{R}^{|V| \times |V|}$: Graph Laplacian

The Laplacian is defined as: $$L = D - A$$

where $D$ is the degree matrix and $A$ is the adjacency matrix.

2.2 Information Dynamics

Definition 2.1 (Information Vector): Let $I_t \in \mathbb{R}^{|V|}$ where $I_t^{(i)}$ represents the information level at node $i$ at time $t$.

Assumption 2.1 (Graph Diffusion): Information propagates according to:

$$\frac{\partial I}{\partial t} = D_I (-L) I + s(t) - \gamma_I I$$

where:

  • $D_I > 0$: Information diffusion coefficient
  • $s(t) \in \mathbb{R}^{|V|}$: Information sources (price feeds, oracle updates)
  • $\gamma_I > 0$: Information decay rate (noise, censorship, Landauer erasure)

Interpretation: Information flows from high-information nodes to low-information nodes (diffusion), is injected by sources $s(t)$, and decays at rate $\gamma_I$.

2.3 MEV Dynamics

Definition 2.2 (MEV Opportunity): Let $M_t \in \mathbb{R}_+$ represent the total extractable value at time $t$.

Assumption 2.2 (MEV Evolution): MEV evolves according to:

$$\frac{dM}{dt} = a\delta_t + bH_M(t) - c,\chi(I_t),M_t$$

where:

  • $\delta_t \ge 0$: Blockchain slack (unused block space, inefficient routing)
  • $H_M(t) \ge 0$: Mempool entropy (uncertainty in transaction ordering)
  • $\chi(I_t)$: Information intensity functional
  • $a, b, c > 0$: System parameters

Common choices for $\chi(I_t)$:

  1. Linear: $\chi(I_t) = q^\top I_t$ for some $q \in \mathbb{R}^{|V|}_+$
  2. Quadratic: $\chi(I_t) = I_t^\top K I_t$ for positive definite $K$
  3. Nonlinear: $\chi(I_t) = |I_t|_p^p$ for $p \ge 1$

Interpretation: MEV is created by slack and mempool entropy, and closed proportionally to both information intensity and current MEV level.

2.4 Effective Entropy

Definition 2.3 (Effective Block Entropy): The entropy experienced by the market is:

$$S_{\text{eff}}^{\text{blk}}(t) = S_M(t) - \kappa,\Phi[I_t]$$

where:

  • $S_M(t)$: Mempool entropy (Shannon entropy of transaction ordering)
  • $\Phi[I_t]$: Information functional (e.g., $\Phi = q^\top I_t$)
  • $\kappa > 0$: Coupling constant

Proposition 2.1: MEV is an increasing function of effective entropy:

$$M_t = \mathcal{M}(S_{\text{eff}}^{\text{blk}}(t))$$

where $\mathcal{M}: \mathbb{R}+ \to \mathbb{R}+$ is monotone increasing ($\mathcal{M}’ > 0$).

Proof: Higher effective entropy → more uncertainty → more arbitrage opportunities. $\square$


3. Analytical Results

3.1 Steady-State Analysis

Theorem 3.1 (Steady-State MEV): Assume constant sources $s(t) = s_0$ and constant slack/entropy $(\delta, H_M)$. Then the steady-state information is:

$$I^* = (D_I L + \gamma_I I)^{-1} s_0$$

and the steady-state MEV is:

$$M^* = \frac{a\delta + bH_M}{c,\chi(I^*)}$$

Proof: Set $\frac{\partial I}{\partial t} = 0$ and $\frac{dM}{dt} = 0$. Solve for $I^$ and $M^$. $\square$

Corollary 3.1: Increasing information sources $s_0$ increases $I^$, which decreases $M^$ (assuming $\chi$ is increasing).

Practical implication: More price feeds, better oracles, and faster mempool propagation reduce equilibrium MEV.

3.2 Stability and Boundedness

Theorem 3.2 (Boundedness): Assume:

  1. $\sup_t \delta_t < \infty$ and $\sup_t H_M(t) < \infty$
  2. $\inf_t \chi(I_t) > 0$ (information never vanishes)

Then:

$$\limsup_{t \to \infty} M(t) \le \frac{a\sup\delta + b\sup H_M}{c,\inf\chi}$$

Proof: From the MEV equation:

$$\frac{dM}{dt} \le a\sup\delta + b\sup H_M - c,\inf\chi \cdot M$$

This is a linear ODE with solution bounded by $\frac{a\sup\delta + b\sup H_M}{c,\inf\chi}$. $\square$

Corollary 3.2: MEV remains bounded even in high-volatility regimes, provided information intensity stays above a minimum threshold.

3.3 Convergence Rate

Theorem 3.3 (Exponential Convergence): Under the conditions of Theorem 3.2, MEV converges to steady-state exponentially:

$$|M(t) - M^| \le |M(0) - M^| e^{-c,\inf\chi \cdot t}$$

Proof: Standard exponential stability for linear ODEs. $\square$

Practical implication: The convergence rate is proportional to $c,\inf\chi$. Higher information intensity → faster MEV closure.


4. Optimal Control

4.1 Problem Formulation

Objective: Minimize total MEV over time horizon $[0, T]$ subject to information injection cost:

$$\min_{s(\cdot)} \int_0^T \Big( M(t) + \eta,|s(t)|^2 \Big) dt$$

subject to: $$\frac{\partial I}{\partial t} = D_I (-L) I + s(t) - \gamma_I I$$ $$\frac{dM}{dt} = a\delta_t + bH_M(t) - c,\chi(I_t),M_t$$

where $\eta > 0$ is the cost parameter.

4.2 Hamiltonian Formulation

Define the Hamiltonian:

$$\mathcal{H}(I, M, s, \lambda_I, \lambda_M) = M + \eta|s|^2 + \lambda_I^\top (D_I(-L)I + s - \gamma_I I) + \lambda_M(a\delta + bH_M - c\chi(I)M)$$

Theorem 4.1 (Optimal Control): The optimal information injection is:

$$s^*(t) = -\frac{1}{2\eta} \lambda_I(t)$$

where $\lambda_I(t)$ satisfies the adjoint equation:

$$\frac{d\lambda_I}{dt} = -(D_I(-L) - \gamma_I I)^\top \lambda_I + c,M,\nabla\chi(I)^\top \lambda_M$$

Proof: Apply Pontryagin’s maximum principle. $\square$

Practical implication: Optimal information injection is proportional to the shadow price $\lambda_I$ of information.


5. Connection to FMD Physics Engine

5.1 Implementation Mapping

The FMD physics engine implements this framework:

Mathematical ObjectFMD Implementation
$I_t$ (information vector)Market state (pool reserves, prices)
$\chi(I_t)$ (information intensity)Committor function $q(x)$ (TPS)
$\frac{dM}{dt}$ (MEV dynamics)Profit potential energy landscape
$S_{\text{eff}}^{\text{blk}}$ (effective entropy)Rare event probability
$H_M(t)$ (mempool entropy)Temperature (Nose-Hoover thermostat)
Graph diffusionCPMD Langevin dynamics
Saddle points ($\frac{dM}{dt} = 0$)Transition states (TSS)

5.2 Committor as Information Intensity

Proposition 5.1: The committor function $q(x)$ from TPS is a valid choice for $\chi(I_t)$.

Proof:

  1. $q(x) \in [0, 1]$ (probability)
  2. $q(x)$ increases with information (better prediction)
  3. $q(x) = 1$ → perfect information → MEV closes instantly

Therefore $\chi(I_t) = q(x)$ satisfies all requirements. $\square$

5.3 Regime Detection as Phase Transition

The TSS shooting algorithm finds saddle points where:

$$\frac{dM}{dt} = 0 \implies \chi(I^) = \frac{a\delta + bH_M}{c,M^}$$

These are transition states between high-MEV and low-MEV regimes.


6. Numerical Simulations

6.1 Setup

  • Network: $|V| = 100$ nodes (Erdős-Rényi graph, $p = 0.1$)
  • Parameters: Calibrated to match empirical blockchain data (proprietary)
  • Initial conditions: $I_0 = \mathbf{0}$ (no initial information), $M_0 = 10$ (initial MEV = $10)
  • Time horizon: $T = 100$ blocks (Ethereum: ~20 minutes)

6.2 Results

Scenario 1: Constant Information Injection

  • $s(t) = s_0 = \mathbf{1}$ (uniform injection)
  • Steady-state: $M^* \approx 2.3$ (77% reduction from $M_0 = 10$)
  • Convergence time: $\tau \approx 15$ blocks

Scenario 2: Optimal Control

  • Cost parameter: Calibrated to production constraints (proprietary)
  • Steady-state: $M^* \approx 1.8$ (82% reduction)
  • Total cost: Optimized for real-world deployment

Scenario 3: High Volatility

  • $H_M(t) = 5 + 2\sin(0.1t)$ (oscillating mempool entropy)
  • $M(t)$ oscillates around $M^* \approx 3.5$
  • Amplitude decreases with higher $\chi(I_t)$

7. Discussion

7.1 Theoretical Implications

  1. Information is the MEV killer: The model rigorously shows that information reduces MEV
  2. Network topology matters: Graph Laplacian $L$ determines information propagation speed
  3. Optimal strategies exist: Control theory provides optimal information injection policies

7.2 Practical Implications

  1. For searchers: Invest in information infrastructure (fast mempools, price feeds)
  2. For protocols: Design for information transparency (public mempools, fair ordering)
  3. For validators: Information asymmetry creates MEV; reducing it benefits users

7.3 Limitations

  1. Linearity: The model assumes linear information diffusion (may not hold for adversarial networks)
  2. Homogeneity: All nodes treated equally (in reality, validators have privileged information)
  3. Determinism: No stochastic shocks (real markets have random events)

8. Conclusion

We have presented a formal mathematical model of MEV as an entropy-driven process on blockchain networks. By treating information as negentropy that propagates via graph diffusion, we derived analytical results for MEV closure rates, steady-state bounds, and optimal control strategies.

The FiMD physics engine implements this framework, providing a rigorous foundation for physics-based MEV detection. Our results show that:

  • Information reduces MEV (Theorem 3.1)
  • MEV remains bounded under mild conditions (Theorem 3.2)
  • Optimal information injection minimizes MEV subject to cost constraints (Theorem 4.1)

Future work includes:

  1. Stochastic extensions (Brownian motion, jump processes)
  2. Adversarial models (Byzantine nodes, censorship)
  3. Multi-chain dynamics (cross-chain MEV, bridge arbitrage)

Built by Cadence System · “Research and infrastructure for MEV strategy and execution.”


References

  1. Bolhuis, P. G., Chandler, D., Dellago, C., & Geissler, P. L. (2002). “Transition Path Sampling: Throwing Ropes Over Rough Mountain Passes, in the Dark.” Annual Review of Physical Chemistry, 53, 291-318.

  2. Landauer, R. (1961). “Irreversibility and Heat Generation in the Computing Process.” IBM Journal of Research and Development, 5(3), 183-191.

  3. Mesbahi, M., & Egerstedt, M. (2010). Graph Theoretic Methods in Multiagent Networks. Princeton University Press.

  4. Shannon, C. E. (1948). “A Mathematical Theory of Communication.” Bell System Technical Journal, 27(3), 379-423.

  5. Flashbots Research. (2023). “MEV-Boost: Merge-Ready Flashbots Architecture.” https://writings.flashbots.net

  6. Brillouin, L. (1953). “Negentropy Principle of Information.” Journal of Applied Physics, 24(9), 1152-1163.


Full mathematical derivation: See fmd-physics/negentropy_blockchain_thermodynamics_formal_model_v_1.md

Code implementation: See fmd-physics/src/ (Rust) and src/services/tycho/FMDRouteOptimizer.ts (TypeScript)

Written by Orkid Labs

← Back to blog

Technical bridge

Move from analysis into a forwardable technical asset

This post is closest to technical review, routing logic, or infrastructure design. The strongest next move is to connect it to the protocol packet, then decide whether the team needs a launch brief or a commercial lane.

Try it now

Swap on Orkid

9 bps flat fee, gasless, MEV-protected. Live on Base, Ethereum, and Unichain. No ETH needed — the solver pays gas.

Open swap →

Technical packet

Review the Protocol Packet

Use the packet when the team needs a shared view of settlement mechanics, remediation framing, and audit posture before the next internal review.

Open packet →

Operator context

Get the field guide

Move into the field guide if the team needs practical operator framing before deciding on a deeper technical or commercial step.

Get field guide →

Shortlist and fit

Use comparisons or alternatives

When the question is no longer category education but shortlist fit, use the comparison surfaces to support an honest vendor evaluation.

See comparisons →
  • ZK Proving Systems Compared: Halo2, SP1, Plonky2, and STARKs

    ZK Proving Systems Compared: Halo2, SP1, Plonky2, and STARKs

    Eight zero-knowledge proving systems compared across proving time, proof size, verification, trusted setup, and ecosystem. A developer's guide to choosing a ZK system.

  • What Is Tokenized Credit Infrastructure?

    What Is Tokenized Credit Infrastructure?

    Tokenized credit is more than putting a loan on-chain. It is a full stack: SPV, token registry, compliance layer, and distribution. Here is how it works and why ERC-6909 matters.

  • What Is Surplus in DEX Aggregation?

    What Is Surplus in DEX Aggregation?

    When an aggregator routes your swap better than the quoted price, the difference is surplus. Some aggregators keep it. Some return it. Here is why that matters for your total cost.

  • What Is MEV and How to Protect Against It

    What Is MEV and How to Protect Against It

    Maximal extractable value costs DEX users millions. Here is what MEV is, how sandwich attacks work, and the four approaches to protection — private mempools, batch auctions, intent-based execution, and threshold encryption.

  • What Is ISO 20022 and Why It Matters for Blockchain

    What Is ISO 20022 and Why It Matters for Blockchain

    ISO 20022 is the global messaging standard for payments. Here is what it is, how it works, why banks are migrating to it, and what it means for blockchain settlement.

  • What Is Intent-Based Swap Execution?

    What Is Intent-Based Swap Execution?

    Intent-based execution lets users sign a message describing what they want, and solvers compete to fill it. Here is how the model works and why it's different from traditional DEX trading.

LLM Resource Index llms.txt