What does Seven Governors: Astronomy and Error conclude, in numbers, about “Ziqi and the Lattice of Conventions: Can a Purely Calendrical Point Be Identified?”?

Answer: Chapter 3 shows that Ziqi is a purely calendrical point whose two readings give different mansions for 0.6027 of the time, and that any two of eight programs built from three conventions agree completely in only 0.3479 of cases.

Scope of the numbers: Its parameters are illustrative or sourced; all calculations are generated by its programs; it analyses only the structure and probabilities of the system, makes no personal reading of any kind, and is not advice of any kind. Marked boxes separate published evidence, runnable Python calculations (21 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.6027

circle (du): 365.25
mean width / widest / narrowest (du): 13.04 / 33 (Jing) / 2 (Zi)
dwell in Jing / Zi under U (years): 2.530 / 0.153
largest U - S gap (du): 20.69
share of time in another mansion: 0.6027
share of time in another palace: 0.2589
Show the full program
# Chapter 3. p31: Ziqi, a purely calendrical point, under two readings
# Widths: Han equatorial lunar-mansion widths in Chinese degrees (du),
# 365.25 du to the circle, as transmitted for the Sifen calendar.
# Reading U: Ziqi moves uniformly, one circuit in 28 years.
# Reading S: Ziqi spends exactly one year in each mansion, whatever its
# width ("one mansion a year"). Both start at the first degree of Jiao.
# Sampled 20 times a day over one 28-year cycle.
import bisect
import math

NAMES = ("Jiao Kang Di Fang Xin Wei Ji Dou Niu Nu Xu Wei2 Shi Bi "
         "Kui Lou Wei3 Mao Bi2 Zi Shen Jing Gui Liu Xing Zhang Yi Zhen")
NAMES = NAMES.split()
W = [12, 9, 15, 5, 5, 18, 11, 26.25, 8, 12, 10, 17, 16, 9,
     16, 12, 14, 11, 16, 2, 9, 33, 4, 15, 7, 18, 18, 17]
CIRC = math.fsum(W)
EDGE = [0.0]
for w in W:
    EDGE.append(EDGE[-1] + w)


def mansion(x):
    return bisect.bisect_right(EDGE, x % CIRC) - 1


steps = 28 * 365 * 20
diff_m = diff_p = 0
worst = 0.0
for k in range(steps):
    y = 28.0 * k / steps
    u = CIRC * y / 28.0
    i = int(y)
    s = EDGE[i] + W[i] * (y - i)
    d = abs((u - s + CIRC / 2) % CIRC - CIRC / 2)
    worst = max(worst, d)
    diff_m += mansion(u) != mansion(s)
    diff_p += int(u // (CIRC / 12)) != int(s // (CIRC / 12))
print("circle (du)                         : {:.2f}".format(CIRC))
print("mean width / widest / narrowest (du): {:.2f} / {} ({}) / {} ({})"
      .format(CIRC / 28, max(W), NAMES[W.index(max(W))], min(W),
              NAMES[W.index(min(W))]))
print("dwell in Jing / Zi under U (years)  : {:.3f} / {:.3f}".format(
    28 * 33 / CIRC, 28 * 2 / CIRC))
print("largest U - S gap (du)              : {:.2f}".format(worst))
print("share of time in another mansion    : {:.4f}".format(diff_m / steps))
print("share of time in another palace     : {:.4f}".format(diff_p / steps))

Single source and citation

Fan, Y. (2026). Seven Governors and Four Remainders: Ecliptic Lunar-Mansion Perturbations, Shadow-Node Orbits and Error Propagation in Dongwei Limits (Version 1.0.0), Chapter 3: Ziqi and the Lattice of Conventions: Can a Purely Calendrical Point Be Identified?. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-155 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026155,
  author    = {Fan, Yafu},
  title     = {Seven Governors and Four Remainders: Ecliptic Lunar-Mansion Perturbations, Shadow-Node Orbits and Error Propagation in Dongwei Limits},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book