5D Library › 离散周期网络中的双尺度重整化、占位数分布熵与推力波叠加定理 · English

第一章 模 12 环形晶格与五虎遁映射:二对一、中国剩余定理与块映射

十个、十二个与六十个

把十个天干依次编号为 0,1,…,90, 1, \dots, 9(甲 = 0,乙 = 1……癸 = 9),十二个地支编号为 0,1,…,110, 1, \dots, 11(子 = 0,丑 = 1……亥 = 11)。干与支各自循环:天干是模 10 的计数,地支是模 12 的计数。干支纪日、纪年的做法,是让两者同时每次前进一步:第 kk 个日子(或年份)记为天干 kmod⁡10k \bmod 10、地支 kmod⁡12k \bmod 12。从甲子(k=0k=0)出发,乙丑、丙寅……一直到癸亥(k=59k=59),下一个又是甲子。

这就是本书的第一个数学对象。地支排成一个环,相邻的地支在环上相邻,每个地支对面隔六位的地支是它的「对径点」:ii 与 i+6(mod⁡12)i+6 \pmod{12}。本书把这个环称为「模 12 环形晶格」,记作 ℤ12\mathbb{Z}_{12};「晶格」一词只表示一组离散的、有相邻关系的格点,不表示任何物理晶体。

推导

定义与命题(六十甲子的群结构)。 映射 φ:ℤ60→ℤ10×ℤ12\varphi: \mathbb{Z}_{60} \to \mathbb{Z}_{10} \times \mathbb{Z}_{12},φ(k)=(kmod⁡10,kmod⁡12)\varphi(k) = (k \bmod 10,\ k \bmod 12),是一个群同态(编号相加,干支分别相加)。因为 gcd⁡(10,12)=2\gcd(10, 12) = 2,lcm⁡(10,12)=60\operatorname{lcm}(10, 12) = 60,这个同态是单射,它的像恰好是「干支同奇偶」的 60 个组合,只占全部 120 个组合的一半。逆映射有一个简洁的公式:若天干 ss 与地支 bb 同奇偶,则 k≡6s−5b(mod⁡60).k \equiv 6s – 5b \pmod{60}. 验证:6s−5b=s+5(s−b)≡s(mod⁡10)6s – 5b = s + 5(s-b) \equiv s \pmod{10},因为 s−bs – b 是偶数;同理 6s−5b=b+6(s−b)≡b(mod⁡12)6s – 5b = b + 6(s-b) \equiv b \pmod{12}。这是中国剩余定理在两个模数不互素时的形式:同余方程组 x≡s(mod⁡10)x \equiv s \pmod{10}、x≡b(mod⁡12)x \equiv b \pmod{12} 有解,当且仅当 s≡b(mod⁡2)s \equiv b \pmod{2},而且解在模 60 下唯一 (Hardy and Wright 2008)。把 60、10、12 分解为素数幂,ℤ60≅ℤ4×ℤ3×ℤ5\mathbb{Z}_{60} \cong \mathbb{Z}_4 \times \mathbb{Z}_3 \times \mathbb{Z}_5,而 ℤ10×ℤ12≅ℤ2×ℤ5×ℤ4×ℤ3\mathbb{Z}_{10} \times \mathbb{Z}_{12} \cong \mathbb{Z}_2 \times \mathbb{Z}_5 \times \mathbb{Z}_4 \times \mathbb{Z}_3,多出来的那个 ℤ2\mathbb{Z}_2,就是被「同奇偶」条件排除的一半。

推导

# The sixty-term cycle as a group. k in Z60 is sent to (k mod 10, k mod 12) in
# Z10 x Z12 (order 120). Questions: is the map an injective homomorphism, what is its
# image, and how do we invert it? Also: "days have six Jia, branches have five Zi".
from math import gcd
STEMS = "Jia Yi Bing Ding Wu Ji Geng Xin Ren Gui".split()
BRANCHES = "Zi Chou Yin Mao Chen Si Wu Wei Shen You Xu Hai".split()

def to_pair(k):
    return k % 10, k % 12

def from_pair(s, b):
    """Inverse on the image (requires s = b mod 2): k = 6s - 5b (mod 60)."""
    assert (s - b) % 2 == 0, "stem and branch must have the same parity"
    return (6 * s - 5 * b) % 60

if __name__ == "__main__":
    pairs = [to_pair(k) for k in range(60)]
    print("lcm(10, 12) =", 10 * 12 // gcd(10, 12), "| gcd =", gcd(10, 12))
    print("injective:", len(set(pairs)) == 60)
    hom = all(to_pair((x + y) % 60) == ((x + y) % 10, (x + y) % 12)
              for x in range(60) for y in range(60))
    print("homomorphism (labels add when indices add):", hom)
    same_parity = {(s, b) for s in range(10) for b in range(12) if (s - b) % 2 == 0}
    print("image = all 60 same-parity pairs out of 120:", set(pairs) == same_parity)
    print("inverse k = 6s - 5b (mod 60) correct on the image:",
          all(from_pair(*to_pair(k)) == k for k in range(60)))
    print("no k gives an odd-even pair such as (Jia, Chou) = (0, 1):",
          (0, 1) not in set(pairs))
    jia = sum(1 for s, _ in pairs if s == 0); zi = sum(1 for _, b in pairs if b == 0)
    print(f"Jia stems in one cycle: {jia}; Zi branches: {zi}; {jia} + {zi} = {jia + zi}")
    # Prime-power pieces: Z60 = Z4 x Z3 x Z5, Z10 x Z12 = Z2 x Z5 x Z4 x Z3.
    print("elements that generate Z60 (Euler phi(60)):",
          sum(1 for k in range(60) if gcd(k, 60) == 1))
    # Gregorian year Y (counted from Li Chun, start of spring) -> index (Y - 4) mod 60.
    for y in (1984, 2024, 2026):
        k = (y - 4) % 60
        s, b = to_pair(k)
        print(f"year {y}: index {k:2d}, pair ({s}, {b:2d}) = {STEMS[s]}-{BRANCHES[b]}")
# lcm(10, 12) = 60 | gcd = 2
# injective: True
# homomorphism (labels add when indices add): True
# image = all 60 same-parity pairs out of 120: True
# inverse k = 6s - 5b (mod 60) correct on the image: True
# no k gives an odd-even pair such as (Jia, Chou) = (0, 1): True
# Jia stems in one cycle: 6; Zi branches: 5; 6 + 5 = 11
# elements that generate Z60 (Euler phi(60)): 16
# year 1984: index  0, pair (0,  0) = Jia-Zi
# year 2024: index 40, pair (0,  4) = Jia-Chen
# year 2026: index 42, pair (2,  6) = Bing-Wu

程序逐一验证了上面的命题:映射是单射、是同态,像是全部 60 个同奇偶组合;不存在「甲丑」这样一奇一偶的组合。一个周期中,天干甲出现 6 次,地支子出现 5 次,6+5=116 + 5 = 11。第七章会看到,《汉书·律历志》中「日有六甲,辰有五子,十一而天地之道毕」一句,说的正是这两个数。最后三行把公历年份换算为干支:公历年 YY(以立春为年界)对应编号 (Y−4)mod⁡60(Y-4) \bmod 60,1984 年为甲子,2024 年为甲辰,2026 年为丙午。

左:天干(行)与地支(列)的 120 个组合中,只有同奇偶的 60 个出现在六十甲子中(蓝色与金色格,格中数字为编号 k = 6s - 5b \bmod 60),金色为五个寅月。右:年干 a 到正月月干 2a+2 \pmod{10} 的映射,十个年干只映到五个阳干。

五虎遁:一个二对一的仿射映射

月份也可以用干支连续记数。按干支历法的习惯,一年从寅月开始(寅 = 2),寅月是正月,依次是卯月、辰月……丑月。月的地支是固定的:正月总是寅,二月总是卯。月的天干则要连续往下数,跨年也不中断。作者框架中的「双尺度五虎遁重整化映射」,指的就是由年干推出正月月干的规则,口诀的第一句是「甲己之年丙作首」:甲年与己年的正月是丙寅。

推导

推导。 设年份编号为 YY(年干为 Ymod⁡10Y \bmod 10),这一年第 mm 个月(m=0m = 0 为寅月)的连续编号为 T=12Y+mT = 12Y + m。若月份在六十甲子中连续记数,并且甲年的寅月为丙寅(编号 2),则第 TT 个月的干支编号为 (T+2)mod⁡60(T + 2) \bmod 60。于是正月的月干为 f(a)≡12a+2≡2a+2(mod⁡10),f(a) \equiv 12a + 2 \equiv 2a + 2 \pmod{10}, 其中 aa 是年干。这就是作者框架所说的「模 10 仿射映射」。

命题。 ff 不是 ℤ10\mathbb{Z}_{10} 上的置换。证明:f(a+5)=2a+10+2≡f(a)f(a + 5) = 2a + 10 + 2 \equiv f(a),所以 aa 与 a+5a+5 总有相同的像;ff 是二对一的,像集是 {0,2,4,6,8}\{0, 2, 4, 6, 8\},即甲、丙、戊、庚、壬五个阳干。一般地,仿射映射 x↦ux+v(mod⁡10)x \mapsto ux + v \pmod{10} 是置换,当且仅当 gcd⁡(u,10)=1\gcd(u, 10) = 1,即 u∈{1,3,7,9}u \in \{1, 3, 7, 9\};这样的置换共有 4×10=404 \times 10 = 40 个。u=2u = 2 不在其中。

推导

# The five-tigers rule as arithmetic. Stems 0-9 (Jia = 0), branches 0-11 (Zi = 0); months
# counted continuously, month T = 12Y + m (m = 0: Yin month) has label (T + 2) mod 60.
# Is the year-stem -> first-month-stem map f(a) = 2a + 2 (mod 10) a permutation?
STEMS = "Jia Yi Bing Ding Wu Ji Geng Xin Ren Gui".split()
BRANCHES = "Zi Chou Yin Mao Chen Si Wu Wei Shen You Xu Hai".split()

label = lambda k: STEMS[k % 10] + "-" + BRANCHES[k % 12]     # label of index k
first_month = lambda y: (12 * y + 2) % 60                    # index of the Yin month

if __name__ == "__main__":
    # 1. Continuous month count over 60 years: the first-month stem always equals 2a + 2.
    ok = all(first_month(y) % 10 == (2 * (y % 10) + 2) % 10 for y in range(60))
    print("first-month stem = 2a + 2 (mod 10) in all 60 years:", ok)
    print("year stem  -> first month   (pairs with the same first month)")
    for a in range(5):
        print(f"  {STEMS[a]:4s} or {STEMS[a + 5]:4s} -> {label(first_month(a))}")
    image = sorted({(2 * a + 2) % 10 for a in range(10)})
    fibres = [[STEMS[a] for a in range(10) if (2 * a + 2) % 10 == s] for s in image]
    print("image of f:", [STEMS[s] for s in image], "size", len(image))
    print("every image point has", {len(f) for f in fibres}, "pre-images -> f is 2-to-1")
    # 2. Kernel of x -> 2x in Z10: the pairs above are its cosets.
    kernel = [x for x in range(10) if 2 * x % 10 == 0]
    print("kernel of x -> 2x (mod 10):", [STEMS[x] for x in kernel])
    # 3. Which affine maps x -> a*x + b (mod 10) ARE permutations? Only gcd(a, 10) = 1.
    perm = sorted({a for a in range(10) for b in range(10)
                   if len({(a * x + b) % 10 for x in range(10)}) == 10})
    print("multipliers a giving a permutation of Z10:", perm, "->", 10 * len(perm),
          "affine permutations")
    # 4. The same arithmetic one scale down: 12 double-hours per day give the hour rule.
    ok_h = all((12 * d) % 10 == (2 * d) % 10 for d in range(60))
    print("Zi-hour stem = 2d (mod 10) for day stem d:", ok_h,
          "| e.g. Yi day ->", label(12 * 1))
# first-month stem = 2a + 2 (mod 10) in all 60 years: True
# year stem  -> first month   (pairs with the same first month)
#   Jia  or Ji   -> Bing-Yin
#   Yi   or Geng -> Wu-Yin
#   Bing or Xin  -> Geng-Yin
#   Ding or Ren  -> Ren-Yin
#   Wu   or Gui  -> Jia-Yin
# image of f: ['Jia', 'Bing', 'Wu', 'Geng', 'Ren'] size 5
# every image point has {2} pre-images -> f is 2-to-1
# kernel of x -> 2x (mod 10): ['Jia', 'Ji']
# multipliers a giving a permutation of Z10: [1, 3, 7, 9] -> 40 affine permutations
# Zi-hour stem = 2d (mod 10) for day stem d: True | e.g. Yi day -> Bing-Zi

结果可以列成一张表:甲己之年正月为丙寅,乙庚为戊寅,丙辛为庚寅,丁壬为壬寅,戊癸为甲寅。十个年干只给出五个不同的正月,即五个「寅月」;寅在十二生肖中是虎,这正是「五虎」一名的由来。所以作者框架中的「置换算子」需要更正:这是一个二对一的映射。

这个映射还有一个整齐的代数结构。乘以 2 的映射 x↦2xx \mapsto 2x 是 ℤ10\mathbb{Z}_{10} 到自身的群同态,它的核是 {0,5}\{0, 5\},即 {\{甲, 己}\};同一个正月对应的两个年干——甲己、乙庚、丙辛、丁壬、戊癸——恰好是这个核的五个陪集。在术数传统中,这五对被称为「天干五合」;本书只把它们当作陪集来讨论。ℤ10\mathbb{Z}_{10} 对核的商群 ℤ10/{0,5}≅ℤ5\mathbb{Z}_{10}/\{0,5\} \cong \mathbb{Z}_5,与像集 {0,2,4,6,8}≅ℤ5\{0,2,4,6,8\} \cong \mathbb{Z}_5 同构,这是同态基本定理的一个最简单的例子 (Dummit and Foote 2004)。

程序最后一行说明,同样的算术在小一级的尺度上再出现一次。一天分为十二个时辰,若时辰也在六十甲子中连续记数,并且甲日的子时为甲子,则日干为 dd 的那一天,子时的天干为 12d≡2d(mod⁡10)12d \equiv 2d \pmod{10}:乙日的子时为丙子。术数中有一个对应的「五鼠遁」口诀,规则与五虎遁同构,只是常数项不同。

注

历法细节与本书的范围。 上面的推导假设月份在六十甲子中连续记数、每年恰好十二个月。实际的干支历以节气划分月份:立春开始寅月,惊蛰开始卯月,依此类推,闰月不单独占用干支,所以这个假设与干支历的做法一致。另一方面,现行农历以正月初一为岁首,国家标准《农历的编算和颁行》(GB/T 33661—2017)对此有明确规定 (国家质量监督检验检疫总局、国家标准化管理委员会 2017);干支历的年(年支)则以立春的交节时刻(太阳视黄经 315°)为界,月(月支)以十二个「节」的交节时刻为界(第八章用程序计算),两种年界在两者之间的一段日子里不一致(正月初一在公历 1 月 21 日到 2 月 20 日之间,立春在 2 月 4 日前后)。这些都是历法规则,本书只讨论它们的算术结构 (Reingold and Dershowitz 2018)。

两个尺度之间:同态、块抽取与「重整化」

作者框架把年与月的关系称为「宏观十年尺度与微观十二月尺度的自相似分形同构」,并称之为「重整化」。这几个词在数学与物理中都有严格的含义,这一节逐一核对。

推导

命题(年—月同态)。 把年份编号 YY 送到它的正月编号的偏移量 12Y(mod⁡60)12Y \pmod{60},得到同态 ψ:ℤ60→ℤ60\psi: \mathbb{Z}_{60} \to \mathbb{Z}_{60},ψ(Y)=12Y\psi(Y) = 12Y。它的像是 {0,12,24,36,48}≅ℤ5\{0, 12, 24, 36, 48\} \cong \mathbb{Z}_5,核是 {0,5,10,…,55}≅ℤ12\{0, 5, 10, \dots, 55\} \cong \mathbb{Z}_{12}。推论:(1) 每过 5 年,全年各月的干支完全重复;(2) 反过来,知道一个月的干支,就知道它是一年中的第几个月,也知道年份编号模 5 的值,但年干只能确定到两个之一(例如甲或己)。

块抽取。 对干支序列 L(T)=(T+2)mod⁡60L(T) = (T + 2) \bmod 60 每隔 12 项取一项,得到 L(12j)=(12j+2)mod⁡60L(12j) = (12j + 2) \bmod 60,步长为 12,周期为 5;再每隔 12 项取一项,步长为 144≡24144 \equiv 24,周期仍为 5;继续下去,步长依次为 12、24、48、36、12……在 4 种之间循环。原因是:在像集 ℤ5\mathbb{Z}_5 上,乘以 12 相当于乘以 2,而 2 在模 5 下的阶是 4。

推导

# Two scales, one cycle: month T = 12Y + m has label L(T) = (T + 2) mod 60. What does a
# label say about the year? Image and kernel of Y -> 12Y? Self-similar under decimation?
from math import gcd

L = lambda t: (t + 2) % 60

def period(seq):
    for p in range(1, len(seq) + 1):
        if all(seq[i] == seq[i % p] for i in range(len(seq))):
            return p

if __name__ == "__main__":
    # (1) The label determines the month-in-year m and the year only modulo 5.
    seen = {}
    for y in range(60):
        for m in range(12):
            seen.setdefault(L(12 * y + m), set()).add((y % 10, m))
    years = {len({ys for ys, _ in v}) for v in seen.values()}
    months = {len({mm for _, mm in v}) for v in seen.values()}
    print("year stems compatible with one month label:", years,
          "| months compatible:", months)
    same = all(L(12 * y + m) == L(12 * (y + 5) + m) for y in range(60) for m in range(12))
    print("month labels repeat every 5 years:", same)
    # (2) phi(Y) = 12 Y on Z60: image and kernel.
    image = sorted({12 * y % 60 for y in range(60)})
    kernel = [y for y in range(60) if 12 * y % 60 == 0]
    print("image of Y -> 12Y (mod 60):", image, "| kernel:", kernel[:4], "...",
          len(kernel), "elements")
    # (3) Decimation: keep every 12th label, repeatedly.
    seq = [L(t) for t in range(60 * 12 ** 4)]
    print("level  keep every  step mod 60  period of labels")
    for level in range(5):
        sub = seq[:: 12 ** level][:60]
        step = (sub[1] - sub[0]) % 60
        print(f"  {level}     {12 ** level:6d}       {step:2d}           {period(sub)}")
    print("order of x -> 12x on the image {0,12,24,36,48}:",
          next(r for r in range(1, 9) if pow(12, r + 1, 60) == 12))
    print("a decimated sequence never has the original period 60 again; gcd(12, 60) =",
          gcd(12, 60))
# year stems compatible with one month label: {2} | months compatible: {1}
# month labels repeat every 5 years: True
# image of Y -> 12Y (mod 60): [0, 12, 24, 36, 48] | kernel: [0, 5, 10, 15] ... 12 elements
# level  keep every  step mod 60  period of labels
#   0          1        1           60
#   1         12       12           5
#   2        144       24           5
#   3       1728       48           5
#   4      20736       36           5
# order of x -> 12x on the image {0,12,24,36,48}: 4
# a decimated sequence never has the original period 60 again; gcd(12, 60) = 12

程序的第一行显示,一个月的干支对应两个可能的年干、唯一的月序;第二行显示月的干支每 5 年重复一次。块抽取的表格说明了「自相似」为什么不成立:原序列的周期是 60,抽取一次以后周期变为 5,以后无论再抽取多少次,周期都是 5,步长在 12、24、48、36 之间循环,永远回不到原来的步长 1。严格意义上的自相似,要求粗粒化以后的结构与原结构相同(至多相差一个重新标度);这里粗粒化以后得到的是一个更小的群,结构变了。

证据

「重整化」与「分形」的严格含义。 在统计物理中,卡达诺夫 1966 年提出的「块自旋」做法,把相邻的若干个格点合并为一个块,用块的平均状态代替原来的格点,然后问:合并以后,系统的有效参数怎样变化 (Kadanoff 1966)。重整化群讨论的,正是这种参数变换的流动及其不动点;在临界点附近,系统在粗粒化下保持不变,才出现标度律。分形一词由曼德布罗提出,指在一系列尺度上(至少在一个很宽的尺度范围内)呈现相似结构、常常具有非整数维数的几何对象 (Mandelbrot 1982)。有限的循环群没有连续的尺度,也没有非整数维数。

所以,本书对这一部分的结论是:年—月与日—时两对尺度之间,确实有完全相同的代数结构(都是同态 x↦12xx \mapsto 12x),这是一个严格的命题;但它来自「一个单位分为 12 个子单位」这一共同的设计,不来自尺度不变性。「重整化」与「分形」在这里只能作为类比:每隔 12 项抽取一项,相当于一次块映射或粗粒化,它把信息丢掉了(年干只能确定到二选一),而且没有不动点意义上的标度不变性。

本章小结

六十甲子是 ℤ10×ℤ12\mathbb{Z}_{10} \times \mathbb{Z}_{12} 中同奇偶组合构成的子群,与 ℤ60\mathbb{Z}_{60} 同构,逆映射为 k≡6s−5b(mod⁡60)k \equiv 6s – 5b \pmod{60}。五虎遁的正月月干 ≡2a+2(mod⁡10)\equiv 2a + 2 \pmod{10},是二对一的仿射映射而不是置换:像集只有五个阳干,对应五个寅月,同一正月的年干对恰好是同态 x↦2xx \mapsto 2x 的核的陪集。年与月之间的关系是同态 Y↦12YY \mapsto 12Y,月的干支每 5 年重复;日与时之间有完全相同的结构。块抽取把周期从 60 变为 5,并在四种步长之间循环,所以「自相似分形」不成立,「重整化」只能作类比。下一章把十二个格子当作容器,看粒子放进去以后,熵与峰值之间有哪些能证明的关系。

参考文献

Dummit, David S., and Richard M. Foote. 2004. Abstract Algebra. 3rd ed. Wiley.
Hardy, G. H., and E. M. Wright. 2008. An Introduction to the Theory of Numbers. 6th ed. Oxford University Press.
Kadanoff, Leo P. 1966. “Scaling Laws for Ising Models Near TcT_c.” Physics Physique Fizika 2 (6): 263–72. https://doi.org/10.1103/PhysicsPhysiqueFizika.2.263.
Mandelbrot, Benoit B. 1982. The Fractal Geometry of Nature. W. H. Freeman.
Reingold, Edward M., and Nachum Dershowitz. 2018. Calendrical Calculations: The Ultimate Edition. 4th ed. Cambridge University Press.
国家质量监督检验检疫总局、国家标准化管理委员会. 2017. 农历的编算和颁行(GB/T 33661—2017). 中华人民共和国国家标准.

Fan, Y. (2026). Two-Scale Renormalization, Occupancy Entropy and Thrust-Wave Superposition in Discrete Cyclical Networks: Algebraic Topology and Monte Carlo Verification on a Twelve-Node Ring Lattice [离散周期网络中的双尺度重整化、占位数分布熵与推力波叠加定理] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23796761 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).