>The Static Analyzer

Point a static analyzer at the occult tradition and it doesn't render a verdict on whether divination works. It reports which texts are coherent, sourced, and genuine — and most aren't.
>STAT institutional_bind
The Shushu Lei (術數類) — the "Arts of Calculation" section — occupies juan 108 through 111, filed under Masters (子部) beside philosophy, agriculture, medicine, and military arts. The scholars who compiled it were the same men who elsewhere demolished forged classics and applied rigorous bibliography to everything they touched. Now they had to review astrology, geomancy, physiognomy, fate calculation, and hexagram divination.
The problem wasn't only intellectual. Emperor Qianlong himself used these systems. The court maintained an Astronomical Bureau (欽天監) for calendar computation and celestial prognostication; the emperor's tombs were sited by geomancers; court rituals were timed by diviners — even the Siku project's own schedule was checked for auspicious dates. You cannot tell the emperor the traditions he relies on are nonsense. But you also cannot, as a rigorous critic, pretend a forged manual is genuine. The Shushu Lei is the record of navigating that bind.
>READ preface
The preface opens with a move both bold and cautious: 術數之興,多在秦漢以後。要其旨,不出乎陰陽五行,生克制化,實皆《易》之支派,傅以雜說耳 — "the rise of the occult arts mostly postdates the Qin and Han. In essence they do not go beyond yin-yang and the five phases... all really branch streams of the Yijing, overlaid with miscellaneous theories."
That's the foundation: all divination is downstream of the Book of Changes. The Yijing is canonical — one of the Five Classics, commented on by Confucius himself. By defining divination as a branch of the Yijing, the scholars give it a legitimate pedigree and avoid defending it on its own terms. Then comes the assessment that would have been unprintable without the safety of an imperial commission: 其餘則皆百偽一真,遞相煽動 — "the rest are ninety-nine parts falsehood to one part truth, each inflaming the next." They have just told the emperor that 99% of the divination tradition is fabricated, in a document bearing the imperial imprimatur. This is the language of men doing their job under constraints.
>ENUM taxonomy
The compilers sorted divination into six sub-categories, and the taxonomy itself is a statement — name six methods and no more, and everything outside is unrecognized. Numerology (數學) — cosmological number theory, the most respectable category; Yang Xiong's Tai Xuan Jing and Shao Yong's Huangji Jingshi Shu land here, sixteen admitted. Prognostication (占候) — celestial and weather omens; only two admitted, valued not for predictions but for preserving older quotations: "the art can be discarded, but the book has material worth salvaging" (其術可廢,其書則有可采). Geomancy (相宅相墓) — eight admitted, eighteen excluded. Divination proper (占卜) — five admitted, including Jiao Yanshou's Yi Lin (易林). Physiognomy and fate calculation (命書相書). Yin-yang and Five Phases (陰陽五行) — the catch-all, including the imperial texts. The overall numbers: 45 admitted, 122 excluded. Three of four divination books failed review.
>WARN grudging_concessions
The cognitive dissonance shows when the scholars hit texts they can't dismiss but won't endorse. The pattern: acknowledge the system appears to function, document it carefully, never profess belief. The Lingqi Jing (靈棋經) earned praise not for divinatory accuracy but for the literary quality of Liu Ji's (劉基) commentary — "elegant and refined" (馴雅). The concession is to a practitioner's intelligence, not to divination.
Jiao Yanshou's Yi Lin (易林) — the Han text generating 4,096 omen verses from hexagram pairs — forced a different concession. They couldn't deny its antiquity (the Dong Guan Han Ji records Emperor Ming using it in 62 CE), so they accepted its core while noting "practitioners may have added interpolations over time" (方伎家輾轉附益). Then they reclassified it: Jiao Yanshou belongs with the diviners, not the Yijing commentators, because his tradition "does not originate from the classical Yijing lineage" (其源實不出於經師). A quiet act of intellectual hygiene — moving the Yi Lin out of the Classics into the Arts of Calculation preserved the text while quarantining its influence from the canonical commentary tradition.
>RUN demolitions
Where they felt free to demolish, they did so with relish. The cunmu sections — juan 110 and 111 — hold over a hundred reviews dismantling texts with the same methods applied to forged military classics. The Zhengyi Xinfa (正易心法), attributed to the legendary Mayi Daozhe (麻衣道者), was demolished using Zhu Xi's own detective work: Zhu Xi tracked down the actual author, a minor official named Dai Shiyu, and quoted the verdict — "its language is vulgar and modern, nothing like writing from one or two hundred years ago." The Yuchi Jing (玉尺經), a geomancy text attributed to Liu Bingzhong with commentary by Liu Ji, fell to a single anachronism: the commentary names Guizhou province, but Guizhou didn't exist as a province until the Yongle reign, decades after Liu Ji's death. Forgery detection is forgery detection, regardless of subject. A fake feng shui manual and a fake military treatise fail for the same reason: words, institutions, and place-names that didn't exist when they claim to have been written.
>GREP classical_vs_folk
The deepest move is the line between "classical" divination and folk practice. Classical divination is rooted in the Yijing — hexagram combinatorics, yin-yang and five-phase structure, number theory. It has lineage, coherence, depth. Folk practice is what itinerant practitioners accumulated, inventing methods, attributing them to famous names, selling them to anxious clients. The preface: 其可通者存其理,其不可通者姑存其說可也 — "where the reasoning is sound, preserve the principle; where it is not, preserve the account and leave it at that." The final position: curate, don't prohibit. They can't stop people consulting fortune-tellers, but they can establish which texts have genuine content and which are fabrications.
>QUERY method_over_belief
What emerges is not a statement about whether divination works — the scholars never engage that question. Instead they apply bibliographic method to every text and let the results speak: genuinely ancient or forged? internally consistent or contradictory? traceable through reliable records or pure invention? These are answerable regardless of belief. And the method, applied consistently, produced the same result across all categories: most of what passes for traditional knowledge is poorly sourced, internally contradictory, and of recent vintage. The narrow tradition they endorsed — grounded in the Yijing's combinatorial logic, documented in textual lineages, checked for consistency — is a small fraction of the total.
The unspoken presence throughout is the emperor himself, whose own practices the scholars had to keep on the right side of the line. They distinguished his classical, scholar-administered divination from the popular kind invented "last Tuesday by someone who wants to charge you." The distinction is real. They just drew it exactly where it needed to be. The rationalists did not defeat the occult — they curated it.
>FAQ
- What did the Siku Quanshu say about the divination tradition?
- Its preface judged the occult arts "ninety-nine parts falsehood to one part truth" (百偽一真), declaring all divination a downstream branch of the Yijing. Of the texts reviewed in the Arts of Calculation (術數類, juan 108–111), 45 were admitted and 122 excluded — three of four failed.
- Did the Siku scholars decide whether divination actually works?
- No. They never engaged the empirical question. They applied bibliographic method — testing each text for genuine antiquity, internal consistency, and traceable lineage — and let those answerable questions stand in for belief.
- Why did the compilers move Jiao Yanshou's Yi Lin out of the Yijing section?
- Because his tradition "does not originate from the classical Yijing lineage" (其源實不出於經師), they reclassified the Yi Lin from canonical commentary into divination practice — preserving the text while quarantining its influence from the orthodox commentary tradition.
>RELATED TRANSMISSIONS
The Terrain Renderer
The Emperor's LibraryThe Qing scholars authenticated exactly eight feng shui texts and rejected eighteen. The line they drew runs between reading the actual terrain and plugging numbers into a lookup table — and the emperor's own tombs sat on the authenticated side.
The Rejected Pull Requests
The Emperor's LibraryThe cunmu section holds the compilers' takedowns of 319 rejected Yijing commentaries. A plain reject queue stays silent. This one ships a review with every closed PR — and some of the reviews are devastating.
The Most-Forked Repo
The Emperor's LibraryThe Siku scholars reviewed 485 commentaries on the Book of Changes — more than any other text in the entire catalog. The Yijing was the most contested codebase in Chinese history, and the count proves it.