Skip to main content

Encoding Familiar Mathematics

A ground-up derivation of the box arithmetic encoding — from zero and the natural numbers through polynumbers, incommensurability, multivariate algebra, and on-chain invariants.

📄️ 10. Linear Algebra Primitives: Pixels, Vexels, Maxels

The polynumber layer of box arithmetic — Polynumber, Multinumber, degree truncation — gives us a powerful tool for encoding scalar invariants. But DeFi protocols do not operate on scalars alone. A portfolio is a vector of balances. A swap is a linear map between token spaces. A routing graph is a directed structure over token indices. These are linear-algebraic objects, and box arithmetic has a natural foundation for them that requires no fractions, no floating point, and no division.