This package contains a self-contained Lean 4 (v4.27.0 + Mathlib v4.27.0) formalization of the paper: Contextual Search and Bilateral Trade with a Trace-Square-Root Potential Roma ...