关于「原典考辨:《管子》轻重平准与白芝浩的《伦巴第街》」,《做市损耗与三明治上界》给出的定量结论是什么?

结论:第七章考辨《管子·国蓄》的轻重平准与白芝浩 1873 年的《伦巴第街》。

数据口径:书中参数为示意,全部计算由书中程序生成。 本书是非个人化投资风险分析,不构成投资建议,不推荐任何代币、协议或交易;加密资产高风险,可能全部损失。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库

A. three seasonal cycles, daily steps, deposit 10,000
amp granary gain R merchants' take pool P&L take/R
0.145.68 45.68 0.00 1.000
0.357.54 57.54 0.00 1.000
0.594.86 94.86 0.00 1.000
B. Guanzi: deadline and price concession on goods sold
10 days: concession 1/100.10; on 10,000: 1,000
8 days: concession 1/50.20; on 10,000: 2,000
5 days: concession 1/20.50; on 10,000: 5,000
0 days: concession 9/100.90; on 10,000: 9,000
查看完整验算程序
# Chapter 7. p71: a price-stabilising granary that trades at stale
# prices hands its gain to the merchants.
# Model A: the price follows a seasonal cycle, ln p = amp sin(2 pi t / T)
# plus small noise, sampled daily for three whole cycles (it ends where
# it began). A granary that holds the constant-product mix x(p) and
# trades with everyone at the market price earns the rebalancing gain
# R = sum x_t (p_{t+1} - p_t): it buys when cheap and sells when dear.
# A constant-product pool holds the same mix but trades only after the
# price has moved, so merchants (arbitrageurs) take the exact amount
# L sqrt(p) (sqrt(q/p) - 1)^2 per step. Identity: pool P&L = R - take.
# Part B: Guanzi's urgency schedule, read as a declared concession.
# Amplitudes illustrative; deposit 10,000.
import math
import random
from fractions import Fraction

V0 = 10000.0
L = V0 / 2.0


def cycle_path(rng, amp, days=365 * 3, period=365):
    z = [amp * math.sin(2 * math.pi * t / period) for t in range(days + 1)]
    eps = [0.0] + [rng.gauss(0.0, 0.004) for _ in range(days - 1)] + [0.0]
    return [a + b for a, b in zip(z, eps)]


if __name__ == "__main__":
    rng = random.Random(20261120)
    print("A. three seasonal cycles, daily steps, deposit 10,000")
    print("   amp   granary gain R   merchants' take   pool P&L  take/R")
    for amp in (0.1, 0.3, 0.5):
        lp = cycle_path(rng, amp)
        r_terms, take = [], []
        for a, b in zip(lp, lp[1:]):
            p, q = math.exp(a), math.exp(b)
            r_terms.append(L / math.sqrt(p) * (q - p))
            take.append(L * math.sqrt(p) * (math.sqrt(q / p) - 1.0) ** 2)
        r, t = math.fsum(r_terms), math.fsum(take)
        pnl = round(2 * L * math.sqrt(math.exp(lp[-1])) - V0, 2) + 0.0
        print("  {:.1f}  {:>15,.2f}  {:>16,.2f}  {:>9.2f}  {:>6.3f}".format(
            amp, r, t, pnl, t / r))
    print("B. Guanzi: deadline and price concession on goods sold")
    for days, cut in ((10, Fraction(1, 10)), (8, Fraction(2, 10)),
                      (5, Fraction(5, 10)), (0, Fraction(9, 10))):
        print("  {:>2} days: concession {} = {:.2f}; on 10,000: {:>6,}"
              .format(days, cut, float(cut), int(cut * 10000)))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《集中流动性做市商重平衡损耗(LVR)、链上三明治抢跑边界与去中心化金库风控母典》第 7 章「原典考辨:《管子》轻重平准与白芝浩的《伦巴第街》」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-344 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026344,
  author    = {Fan, Yafu},
  title     = {Concentrated-Liquidity Loss-Versus-Rebalancing, On-Chain Sandwich Bounds and Decentralised Vault Risk Control},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论