Portfolio Preferences, Relative Entropy, and Post-Trade Elasticity
A liquidity pool is a portfolio. Its reserve and price updates define an investment strategy: which assets it accumulates, which it releases, and the terms on which it changes its composition.
Multiswap's post-trade elasticity model expresses that strategy with one elasticity parameter, while retaining a rich accounting and safety structure. A natural extension is to give the portfolio an explicit preferred composition. The question is whether that preference can enter through a coherent valuation rule, preserve the post-trade framework, and strengthen the response to scarce inventory.
This article develops one such candidate. Its central result is an exact identity: the composition-sensitive part of portfolio valuation equals reference-priced holdings discounted by relative entropy from the preferred composition. The resulting prices favor acquiring underrepresented assets, retain exact invariance under uniform reserve scaling, and develop stronger elasticity near depletion.
Status and assumptions: This is a proposed mathematical extension, not the current Solidity implementation or an adopted replacement for PTE. We assume at least two assets, positive reserves and reference prices, positive reference fractions, fixed reference parameters, exact arithmetic, and zero-fee post-trade execution. The numerical examples are controlled calculations, not historical simulations. The safety result below concerns a fixed valuation surface; reference updates and protocol implementation require separate analysis.
1. Begin with the portfolio and its accounting
Reserve Asset has amount , scale , and pool price :
Scale measures value in the pool's common internal numeraire. For an LP Token supply , the derived LP Token price is . The pool's current value fractions are . They are derived quantities, not independent state variables.
A trade changes reserves by , giving . A positive change supplies the pool; a negative change withdraws from it. A closed post-trade swap satisfies
Every leg is valued at its ending price. Token conservation and the underlying same-token ledger entries remain separate requirements; this equation expresses the value-flow closure of the reserve exchange.
In the fixed-elasticity PTE model,
For swaps with fixed coefficients, the finite updates are
The coefficients describe the price surface; they need not be stored to apply the updates to reserves and scales. This is the form used by the repository's PTE quote math.
For , PTE prices already diverge as an individual reserve approaches zero. Small makes that response weak until depletion is extremely close. Post-trade execution reinforces it by valuing the entire withdrawal at the elevated ending price. The extension considered here changes the state-dependent price response as well as retaining post-trade execution.
2. Express an investment mandate through a reference portfolio
Choose positive reference reserves and reference prices , and derive
The reference fractions express the preferred portfolio composition. They are fixed parameters derived from the reference scales, rather than an instruction to overwrite current weights after every trade. Reference prices provide a fixed relative-value anchor. They are not assumed to follow an external oracle during the calculations below.
Two valuations express complementary objectives. First, the value of the holdings at reference prices is
This values each additional unit at the same reference price regardless of inventory. Second, define the composition-sensitive valuation
The finite portfolio rule assigns each asset's reserve multiplier its preferred reference fraction:
This expresses a multiplicative investment policy. A finite proportional change in an asset contributes to the valuation multiplier with exponent . Successive updates compose exactly because each intermediate reserve amount cancels between its adjacent ratios. The fractions sum to one, so a uniform reserve multiplier produces that same multiplier in .
Starting from and applying this finite rule directly from the reference state gives the stated geometric valuation. This is a choice of portfolio policy with an exact composition law; specifying a preferred portfolio alone does not uniquely determine it.
The proposed combined valuation is
This is an explicit policy choice to combine inventory-independent reference valuation with composition-sensitive valuation. It is an additive combination of objectives, not a claim that two separately traded sub-portfolios exist. The preferred composition motivates the construction; it does not uniquely compel this particular blend.
3. Define scales and execute at the post-trade state
Allocate scale at each state according to the combined portfolio policy:
The reference-valued contribution follows actual holdings; the geometric contribution assigns its scale according to the preferred fractions. Pool prices follow from the native accounting relation:
For a proposed finite trade, evaluate the complete ending state:
The trade must satisfy
These finite equations determine execution. The price-response and safety results below follow directly from these ending-state expressions and weighted mean inequalities.
Summing gives the accounting identity
At the reference state, and . At a uniform multiple , while prices remain .
Every price depends on the entire reserve vector through . Thus a trade can change the price and scale of an asset whose reserve amount did not change. This coupling is a substantive difference from the separable PTE update and an implementation obligation for any future protocol version.
4. Exact scaling symmetry and finite composition
Both valuations are homogeneous of degree one:
Consequently,
Reserve prices are exactly unchanged, with fixed reference parameters and without a gauge transformation. If LP supply also scales by , its price is unchanged too. If supply stays fixed, the enlarged reserves increase value per LP Token.
Even uniformly scaling all reference reserves leaves unchanged: the increase in cancels the reference denominators because . The reference introduces composition and relative-price preferences, not an absolute liquidity size. Multiplying every reference price by a common factor instead multiplies all scales and prices by that factor, preserving relative prices.
The finite geometric update is
Therefore
With a fixed reference, endpoint price ratios compose exactly through successive states. This is a full-state composition property, not the original per-asset power law in . Finite execution can still depend on how a trade is split because each transaction uses its own ending prices.
Resetting the reference to the pre-trade reserves and prices before every transaction changes the strategy. Every trade would start at its new reference composition, restoring the same reference price-response rule each time. The rule would lose a persistent measure of accumulated departure from the original portfolio. Even if a reset matches current prices, it changes the valuation surface, so the fixed-surface safety proof below would not establish safety of the reset policy.
5. Relative entropy emerges from the portfolio valuation
Define the current composition at reference prices:
The are derived reference-valued fractions. The are derived fractions at current pool prices. Keeping these valuations distinct is essential.
From the definitions,
Substitution into , using , gives
The Kullback–Leibler divergence, also called relative entropy, is
It is dimensionless, nonnegative, and zero exactly when . It diverges when an asset with positive preferred fraction disappears. Its arguments have different roles: generally and differ. It is not a symmetric geometric distance. All logarithms here are natural logarithms.
We obtain the exact identities
and
At a fixed reference value , the preferred composition maximizes whenever . Departure from the mandate discounts the composition-sensitive valuation. For the total discount is bounded by , even though marginal scarcity prices can become unbounded.
Relative entropy was not introduced as an extra modeling assumption. It follows algebraically from the geometric valuation. The financial interpretation is a preference-adjusted portfolio valuation; is also the pool's internally marked total scale. It is not an assertion that the portfolio's external dollar market value has suffered the same discount.
6. How the investment mandate enters quotes
Prices can now be written as
For ,
An asset that is relatively underrepresented receives a higher price adjustment than an asset that is relatively overrepresented. This improves the terms for supplying scarce inventory and raises the terms for withdrawing it, relative to the reference price ratio. External prices still determine whether an actual trader finds those terms attractive.
The current pool fractions are
Thus current pool fractions lie between the reference-valued composition and the preferred fractions. At , exactly. At , prices are fixed and .
For intermediate , this is a soft preference. The geometric term's fraction of total scale, , decreases as relative entropy increases. The model does not hold current weights tightly around the preference, or promise that market trading will restore them.
For example, , , and give
and current pool fractions of approximately and . Substantial inventory movement remains possible.
7. Exact finite price response and depletion
Divide the ending price by its opening value, using :
This is an exact finite price multiplier. The opening composition determines the geometric share , and the complete vector of reserve multipliers determines the ending response. Relative price changes are obtained by dividing the multiplier for one asset by that for another.
At the reference state, the geometric share of each price is , so
To compare a specified finite relative-price change with PTE, define its finite log-ratio elasticity:
This is defined when the denominator is nonzero. It measures the price response between two actual states; it is not a derivative or an additional model parameter. For fixed-elasticity PTE it equals exactly. Here it depends on the opening composition and the chosen finite changes. For a many-asset update, other reserves also affect the result. A pair with an unchanged reserve ratio has an undefined log-ratio elasticity under this definition, even when both of its prices are well defined.
An especially transparent finite state comparison changes only reserve , holding every other reserve fixed. The exact response reduces to
A one-reserve state comparison diagnoses the price rule; by itself it is not a closed swap. The expression shows a constant contribution and a scarcity contribution with exponent . For ten equal reference fractions that exponent is . Small reduces its starting contribution but does not remove its dominance sufficiently close to depletion.
If approaches zero while other reserves remain positive and fixed, then, for ,
For , the other prices approach their positive floors along this particular state comparison. Simultaneous depletion of several assets must be assessed separately. Uniform scaling of every reserve leaves all reserve prices unchanged.
The finite execution rule supplies the trading consequence. In a pair swap with a fixed finite positive input, the received asset's endpoint-valued withdrawal diverges near its depletion, while the paid leg's endpoint value stays bounded. Complete depletion therefore cannot satisfy that finite pair trade's closure.
8. Finite composition replaces a separable elasticity rule
Fixed-elasticity PTE gives each asset its own price multiplier . The reference model instead couples the reserve multipliers through . A constant per-asset power exponent is therefore not required to describe its finite price updates.
For three successive positive reserve vectors , , and , the geometric update composes exactly:
The full reference state determines prices uniquely. This finite consistency statement does not assert that two executed trades produce the same ending reserves as one combined trade: their separate post-trade closure equations still determine their execution.
9. Exact finite scale production
The safety calculation uses the weighted arithmetic–geometric mean inequality. For positive numbers and positive fractions summing to one, their weighted arithmetic mean is at least their weighted geometric mean, with equality exactly when all the numbers coincide.
Directly expand the ending-price value flow:
Subtract this from . Using gives
Finally substitute the exact geometric update:
The bracket is precisely the weighted arithmetic–geometric mean gap of the inverse reserve multipliers. This identity is exact for every pair of positive states with the same reference parameters, whether or not those states satisfy closed-swap execution.
For a closed post-trade swap, the boundary value flow vanishes. Since , the mean gap becomes the exact production of total scale:
For , equality requires every reserve multiplier to coincide. A common multiplier gives boundary flow , so a closed swap then requires . Every nontrivial closed swap therefore increases total scale strictly. At , a closed swap conserves total scale exactly.
For fixed LP supply , this also gives . The exact logarithmic change per LP Token is
This supplies a finite certificate for the fixed-reference backing result discussed in the projective Bregman safety law. No differentiation or integration is needed for the certificate above. Multiplying all reference prices by a common positive factor scales both sides of the scale-production identity equally and leaves its sign and the logarithmic ratio unchanged.
The certificate does not establish the original PTE componentwise coefficient order for the coupled model, protection against losses at external market prices, or safety of changing reference parameters. Deposits, withdrawals, surplus, and rounding rules require their own accounting and implementation checks.
10. Restoring versus worsening trades
The portfolio mandate suggests a connection to the earlier target-based kappa-stableness idea: favor trades that restore inventory. We can check the finite execution behavior without assuming that a favorable quote means zero price impact.
Use two illustrative tokens, Reserve Asset 1 and Reserve Asset 2, with , , and . Starting reserves are and . The resulting prices and scales are
Each comparison starts from this same state. Restoring trades supply Asset 1 and withdraw Asset 2; worsening trades do the reverse. Input sizes have equal value at the starting pool prices. The output is solved from . All restoring examples stop before the preferred composition.
For a single pay and receive leg, measure execution loss against the starting quote by
The units are basis points. This is neither the ending spot-price change nor a comparison against an external market quote.
| Input value / initial pool value | Restoring execution loss | Worsening execution loss |
|---|---|---|
| 0.1% | 1.77 bp | 1.79 bp |
| 1% | 16.75 bp | 19.01 bp |
| 5% | 68.29 bp | 134.00 bp |
The exact finite quotes show lower restoring impact for these sizes. The difference becomes more pronounced for the larger trades in the table. The comparison does not require assigning a derivative-based elasticity to either trade.
We can also prove positive execution cost against opening prices using finite mean gaps. Direct expansion gives
This time the bracket is the mean gap of the reserve multipliers themselves. Combined with the preceding scale-production identity, a nontrivial closed swap with satisfies
There is positive execution cost against the starting pool prices even for a restoring trade. The numerical comparison demonstrates lower finite impact in this specified case; it is not a theorem for every multi-asset direction, initial state, or trade that overshoots the preference. Inventory-dependent finite asymmetry is also not unique to this construction.
11. Endpoint policies within the finite model
At , and
The pool maintains the preferred fractions exactly at its own prices. Finite post-trade closure becomes
This follows by substituting into the value-flow equation and cancelling the positive common factor . It does not require ; a nontrivial closed swap increases by the finite scale-production identity.
For two equal reference fractions and initial reserves of one unit each, an input gives
The output is approximately units, obtained directly from ending-state closure.
At , prices equal their reference values, valuation is linear, and closure is . This endpoint has no scarcity response. Intermediate combines these two portfolio policies while retaining the same finite post-trade execution rule.
12. Reproduce the calculations and define the next question
The article's verification script uses Python's standard library and downloads no data:
python3 work/proofs/2026-09-06-reference-portfolio/verify.py
It reproduces the table and composition example, checks exact scaling and valuation identities numerically, checks finite price multipliers and composition, verifies both finite mean-gap identities, post-trade closure, and valuation nondecrease, and checks the closed-form finite execution example at . These checks supplement the derivations; they are not an onchain implementation audit.
The reference portfolio supplies a financial mandate. The geometric contribution follows from a finite multiplicative portfolio rule, and relative entropy gives an exact measure of the composition discount. Coupled pricing permits state-dependent finite elasticity, while post-trade closure converts a weighted mean gap into exact nonnegative scale production.
The construction therefore has a financial interpretation beyond smoother simulated weights. The remaining design question is whether this particular soft portfolio preference produces the inventory and execution behavior desired for Multiswap. That requires specifying and testing the mandate, including persistent market-price changes and reference-update policy, before adopting it as a protocol model.
