From Coefficient Differentials to General Safe Operations
The Post-Trade Elasticity Model was initially developed around a small set of actions: Reserve Asset swaps, single-asset liquidity, proportional liquidity, and LP Token burns. Those actions were proved to satisfy the coefficient order individually and then composed into more elaborate transactions such as Surplus settlement.
The coefficient safety conditions reveal that the known actions are not the whole design space. They are particular paths through a larger region of admissible state transitions.
The differential of each coefficient identifies the local coefficient-order directions. Its exact finite form identifies the complete endpoint envelope induced by that order. The envelope admits direct permanent-reserve allocations, general LP under-minting, more general withdrawals, and multi-asset liquidity operations that need not share one common complement multiplier.
Execution pricing enters at a different layer. Coefficient order determines whether an endpoint is admissible. The execution rule determines whether value-flow balance reaches such an endpoint automatically. For positive scale elasticity, post-trade execution is the unique fixed linear execution rule that makes every finite fixed-coefficient reserve-only swap coefficient-safe without an additional admissibility check or protocol subsidy.
This article develops those results from first principles. It assumes exact arithmetic, positive reserves and scales, and homogeneous elasticities unless a section states otherwise.
The article describes the mathematical design space. The newly identified transitions are candidates for protocol operations, not claims about actions already exposed by the current implementation. A candidate becomes supported only after its consideration, account movements, rounding, and property tests have been specified and implemented.
1. Multiswap state
Let a Multiswap pool contain Reserve Assets. Reserve Asset has reserve
scale
and marginal price
Scale elasticity and price elasticity satisfy
For most of the article,
and therefore
The elasticity coefficient of Reserve Asset is
Equivalently,
and
The LP Token has reserve , scale
price
and coefficient
The coefficient partial order is
for every Reserve Asset, and
for the LP Token.
Reserve Asset coefficients may remain fixed or contract. The LP Token coefficient may remain fixed or expand. These directions multiply under composition, so a sequence of individually compliant transitions remains compliant at its endpoint.
Coefficient order is a state-safety condition. It does not by itself specify consideration, token funding, ownership, or execution fairness. Those requirements remain part of every complete operation.
2. The coefficient differential
Differentiate
The relative differential is
Using
the same result can be written
The local Reserve Asset condition is therefore
For the LP Token, the safe direction is reversed:
Together with
these linear inequalities define a local coefficient-order transition cone at every positive state.
2.1 The price form
Because
the coefficient differential is also
Reserve Asset safety becomes
The fixed-coefficient elastic curve is the boundary. A Reserve Asset price may move farther in the conservative direction, but not less.
2.2 Known operations inside the cone
The differential reproduces the coefficient direction of the currently studied primitives.
An ordinary fixed-coefficient swap leg satisfies
so
A nonparticipating Reserve Asset in a supported single-asset liquidity operation has
and
so
An LP Token burn without a reserve withdrawal has
and
so
The known actions occupy boundaries and interior directions of the same cone. That observation turns coefficient analysis from a verification tool into an operation-discovery tool.
3. The exact finite envelope
A differential condition is local. Checking it only at the initial state does not certify a finite jump. A finite operation must remain inside the cone along its path or satisfy the exact endpoint inequalities.
For every Reserve Asset,
For the LP Token,
Equivalently, define the finite coefficient multiplier
Then require
for every Reserve Asset and
for the LP Token.
For a sequence indexed by ,
The finite certificates therefore compose exactly.
4. New operations inside the finite coefficient-order envelope
The endpoint inequalities identify coefficient-order admissible state transitions more general than the originally supported formulas. They establish state admissibility, not a complete user-facing operation. Each construction still needs funded token movements and valid consideration.
4.1 Direct permanent-reserve allocation
Suppose Surplus contributes
directly to Reserve Asset without minting LP Tokens:
and
Leave every other Reserve Asset unchanged. If only scale changes, the aggregate identity gives
Because LP Token supply remains fixed, LP coefficient safety requires
and therefore
Reserve Asset safety supplies the upper bound:
An entire interval is coefficient-safe:
At the lower endpoint, and remain fixed while contracts. At the upper endpoint, remains fixed while expands. Every point between them moves both coefficients in their permitted directions.
This transition could replace a compound
sequence with one direct protocol-funded reserve allocation.
Removing the explicit burn does not remove the allocation economics. Supplying reserves without issuing LP Tokens benefits whoever owns the existing LP Token supply. Temporary liquidity can still enter before the allocation and leave afterward to capture part of that benefit. Coefficient safety and allocation policy remain separate questions.
4.2 General LP under-minting
Suppose a funded reserve operation changes total LP scale from to
LP coefficient safety requires
Conditional on every Reserve Asset satisfying its own endpoint coefficient inequality, the maximum final LP Token supply permitted by the LP Token coefficient condition is
The maximum LP Token mint permitted by that condition is therefore
Minting exactly preserves . Minting less expands . Minting nothing produces permanent reserve growth. Minting the maximum and then burning part of the result is endpoint-equivalent to under-minting initially.
This gives a continuous design space between ordinary liquidity issuance and permanent liquidity.
4.3 General withdrawals
If an operation reduces total Reserve Asset scale so that
then LP coefficient safety again requires
The operation must burn at least
Conditional on every Reserve Asset satisfying its own endpoint coefficient inequality, this inequality identifies the minimum LP Token burn permitted by the LP Token coefficient condition. It does not determine the fair reserve amounts owed for the LP Tokens burned. That consideration rule must be derived separately.
4.4 General multi-asset liquidity
The common construction used in supported liquidity actions is one efficient sufficient condition. It contracts every complement Reserve Asset coefficient by one multiplier
The finite envelope permits a larger region. A multi-asset operation may use different contractions for different Reserve Assets as long as
for every Reserve Asset,
and
The common remains valuable because it can update an entire complement set through a shared coefficient rather than touching every asset. The differential analysis shows that this computationally efficient construction is a subset of a larger mathematically admissible region.
5. Admissibility is not consideration
An authorized transition could remain inside coefficient order while transferring value away from existing LP Token holders. Coefficient contraction is permitted state motion; it is not proof that the party receiving its economic benefit paid for it.
A complete operation must specify:
- which account funds every positive reserve change;
- which account receives every negative reserve change;
- the execution or other consideration rule;
- LP Token issuance or destruction;
- aggregate scale consistency;
- reserve and scale positivity;
- pool-favorable rounding;
- user minimum receive or maximum pay conditions.
The design rule is
The differential discovers candidates. The finite inequalities certify endpoints. The settlement rule establishes who paid whom.
6. Execution price as a separate layer
Let be the opening marginal price of leg , its marginal-price change, and
its final marginal price.
Consider the linear execution rule
Thus:
- is opening-price execution;
- is endpoint-midpoint execution;
- is post-trade execution.
The parameter describes execution price. It does not describe an intermediate reserve point.
For a fixed-coefficient Reserve Asset leg, define
Then
and
The execution price becomes
The signed execution value flow is
The general execution value-flow identity couples the LP Token leg to the Reserve Asset legs:
An ordinary reserve-only swap has no LP Token flow, so
and the general identity reduces to
At ,
which is the Post-Trade Elasticity value flow.
7. Exact scale decomposition for general
The exact discrete product rule is
The final-price value of the traded reserve can be decomposed as
Therefore
Summing the Reserve Asset scale changes and applying the general value-flow identity gives
For an ordinary reserve-only swap, , so this reduces to
For every nonzero fixed-coefficient leg,
When the pool receives more of an asset, its marginal price falls. When it sends an asset, its marginal price rises.
The term
is therefore negative for , zero for , and positive for . Execution before the final price introduces a negative difference between the execution value and the final marginal value of the traded reserve.
At , the traded reserve is valued at its final marginal price and this difference vanishes exactly.
8. The exact LP coefficient condition
A reserve-only swap leaves fixed. LP coefficient safety is therefore equivalent to
For a computed general- swap, define opening-reserve revaluation
and execution-to-final-price shortfall
Then
The exact LP coefficient test is
When , the computed endpoint is safe precisely when
This threshold is transaction-specific. The endpoint, and therefore , depends on the pool state, the full trade vector, and the execution rule used to solve value-flow balance.
Post-trade execution is special because it eliminates the shortfall term rather than attempting to offset it.
9. The small-trade boundary
For small relative reserve changes,
Value-flow conservation implies
Meanwhile,
Combining the expansions gives
For :
- if , every sufficiently small nontrivial swap decreases ;
- if , sufficiently small swaps increase ;
- if , the quadratic term vanishes and higher-order asymmetry determines the sign.
Midpoint execution is second-order neutral. It is not generally safe.
10. The global finite-trade result for
Post-trade execution makes every finite fixed-coefficient reserve-only swap LP-coefficient-safe.
For , each leg admits the exact decomposition
where
To see the sign directly, set
and divide by . The remaining function is
It satisfies
and
Thus decreases toward zero on and increases away from zero on . Its unique minimum is , so for every nonzero leg.
The inequality is strict for every nonzero leg when . For a reserve-only swap, the general value-flow identity specializes to
the LP scale change is
for every nontrivial finite swap.
Every Reserve Asset coefficient remains fixed, remains fixed, and increases.
10.1 Why every fixed eventually fails
For any fixed
there are finite pool states and swaps with
Consider a pay leg with
Its final marginal price approaches zero. For , its execution price approaches
so its positive execution value grows linearly:
Its scale, however, grows only as
which is sublinear because .
Choose a receive leg with a fixed relative reserve reduction in and choose its positive initial scale to balance the pay leg's execution value. Its scale must then grow linearly with . The receive leg's negative scale change also grows linearly and eventually dominates the pay leg's sublinear positive scale change.
Thus
for sufficiently large finite .
Within the ordinary range
post-trade execution is therefore the unique fixed linear execution rule that automatically makes every admissible finite reserve-only swap coefficient-safe:
Other values of can be used with state-dependent trade limits, an explicit endpoint coefficient check, or a compensating protocol-funded action.
10.2 The domain of
When , the execution-to-final-price term is pool-favorable. But a sufficiently large pay leg receives a negative execution price.
Positivity requires
For a pay leg ,
Every therefore imposes a hard finite input domain. It cannot support arbitrary positive reserve inputs.
11. Design consequences
The analysis changes the operation-design process.
Ordinary swaps
Use post-trade execution when every finite trade should be admitted without a separate LP coefficient or global-potential check.
For , either:
- compute the endpoint and require when ;
- restrict trade size and pool states to a domain where the relevant condition is proved;
- or add an explicit protocol-funded compensation such as sufficient LP Token burning or external reserve contribution.
Reserve coefficient contraction cannot repair a negative . It reduces total Reserve Asset scale further. Compensation must act through LP Token supply, external value, or another permitted transition that increases the LP coefficient.
Liquidity operations
Treat the common- formulas as efficient sufficient constructions, not the definition of all coefficient-order admissible liquidity. Use the finite coefficient-order envelope to discover broader candidates, then derive consideration independently.
Permanent liquidity
Direct protocol-funded reserve allocation and LP under-minting form one continuum. Burning after a maximum mint is only one endpoint implementation. Every choice must address temporary-liquidity allocation capture.
12. Implementation and property-test requirements
For every primitive and randomized composition with , verify:
Positive state
Aggregate scale
Reserve Asset coefficient direction
for every Reserve Asset.
LP Token coefficient direction
Execution value flow
For every value-flow-coupled action, require
For reserve-only swaps, , so also verify
The test suite should include:
- direct permanent-reserve allocations across their full safe interval;
- LP Token mints below, at, and above the coefficient-safe maximum;
- generalized withdrawals with burns below, at, and above the required minimum;
- heterogeneous multi-asset coefficient contractions;
- general- swaps near the small-trade boundary;
- asymmetric finite swaps demonstrating failure for every tested ;
- execution-price positivity boundaries;
- integer conversion and pool-favorable rounding.
Property tests should report every componentwise coefficient margin. Aggregate diagnostics must not replace exact token conservation, funded account movements, or user protection checks.
Conclusion
The coefficient differential
reveals a local cone of coefficient-order admissible Multiswap state transitions. Its finite form
for Reserve Assets, together with the reversed LP Token inequality, reveals a much larger operation space than the initially studied primitives.
Direct permanent-reserve allocation, LP under-minting, generalized withdrawal, and heterogeneous multi-asset liquidity are all candidate operations inside that space. Coefficient admissibility does not establish fair consideration, so each still needs funded movement, settlement, LP accounting, and user protection.
Execution price determines whether an ordinary swap reaches the admissible region automatically. For
post-trade execution
is the unique fixed linear execution rule in that makes every finite fixed-coefficient reserve-only swap LP-coefficient-safe.
The emerging hierarchy is
This framework does not force every coefficient-order admissible operation into one invariant or one implementation pattern. It separates the questions cleanly enough to search the wider design space without losing the coefficient-order boundary.
