5D Library › Books › 5DL-B-064
六维超立方体游走、卦变马尔可夫链与模运算星宫晶格
布尔立方体谱隙、蓍草与铜钱概率偏置及十二宫二面体群投影
Six-Dimensional Hypercube Walks, Hexagram Mutation Markov Chains and Modular Star-Palace Lattices: Boolean Cube Spectral Gaps, Yarrow-versus-Coin Probability Biases and Twelve-Palace Dihedral Projections
DOI10.5281/zenodo.24090176摘要
六爻起卦与紫微斗数排盘都是在有限集合上运算的规则系统。本书把六十四卦写成六维布尔立方体,把起卦与变卦写成概率与马尔可夫链,把十二宫写成模 12 的整数与二面体群,计算这些规则本身的概率、对称与信息损失。本书不主张、也不检验任何占断是否应验;全部数据为程序生成。
第一章说明错卦与综卦生成一个四元群,把六十四卦分成 20 个轨道,通行卦序按综卦与错卦配成 32 对;互卦是中间四爻上的滑动窗口,一次把 64 卦折叠为 16 卦,二次折叠为 4 卦,其中乾坤为不动点、既济未济为二周期,而不是四个吸引子。第二章精确计算两种起卦法:动爻的个数在两者下同为二项分布,无动爻的概率为 0.1780;铜钱法下老阴老阳各 1/8,蓍草法下老阳 3/16 是老阴 1/16 的三倍,所以之卦偏阴;这个三倍在自然分蓍下精确到四位小数,在均匀分蓍下变为 4.082。第三章把本卦到之卦写成立方体上的乘积马尔可夫链:两种方法的谱隙都是 1/2,三步之内遗忘出发点,一次只变一爻的游走则需要 8 步;蓍草法的链不对称,乾变坤是坤变乾的 729 倍。第四章计算朱熹变占规则下 450 段文字被读到的概率:两种方法的主读文字分布相差 0.178;以爻位为基础的吉凶分数是低阶布尔函数,本卦与之卦分数的相关系数恰为 0.4167。
第五章把命宫、五行局与安紫微星诀写成模 12 的分段仿射映射:天府是紫微关于寅申轴的反射,十四主星只有 12 种排布。第六章把三方四正写成十二宫环上的卷积:等权三合丢失 12 个谐波中的 8 个;两套都说得通的星曜赋值对 144 种情形排序的秩相关只有 0.606。第七章与《系辞》大衍之数、朱熹《筮仪》、邵雍先天图与《紫微斗数》的版本问题并读,先天图恰为二进制计数,文王卦序与二进制的秩相关为 −0.004。第八章给出四步核查与一项预注册的盲法配对检验(349 名参与者)。书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说。
关键词:周易;易经;六十四卦;布尔立方体;汉明距离;克莱因四元群;伯恩赛德引理;互卦;大衍筮法;三钱法;概率;马尔可夫链;谱隙;混合时间;沃尔什—傅里叶分析;噪声算子;朱熹;邵雍;二进制;莱布尼茨;紫微斗数;模运算;分段仿射映射;二面体群;循环卷积;离散傅里叶变换;配对检验;预注册
Abstract
The six-line hexagram method and Zi Wei Dou Shu are systems of rules that compute on finite sets. This book writes the sixty-four hexagrams as the six-dimensional Boolean cube, casting and changing as probability and Markov chains, and the twelve palaces as the integers modulo 12 with the dihedral group, and computes the probabilities, symmetries and losses of information of the rules themselves. It neither claims nor tests that any reading comes true; all data are generated by its programs.
Chapter 1 shows that complement and reversal generate a group of four that divides the hexagrams into 20 orbits, and that the received order pairs them into 32 pairs by reversal and complement; the nuclear hexagram is a sliding window on the middle four lines that folds 64 hexagrams onto 16 and then onto 4, of which Qian and Kun are fixed points and Ji Ji and Wei Ji a 2-cycle, not four attractors. Chapter 2 computes the two casting methods exactly: the number of moving lines is binomial under both, with no moving line at 0.1780; with coins old yin and old yang are 1/8 each, with yarrow old yang at 3/16 is three times old yin at 1/16, so the changed hexagram leans yin; the factor of three holds to four decimals under a natural split of the stalks and becomes 4.082 under an evenly spread split. Chapter 3 writes the change from cast to changed hexagram as a product Markov chain on the cube: both methods have spectral gap 1/2 and forget their start within three steps, against 8 for a one-line walk; the yarrow chain is not symmetric, Qian changing into Kun 729 times as often as Kun into Qian. Chapter 4 computes the chance of reading each of 450 texts under Zhu Xi's rules: the two methods' main-text distributions differ by 0.178; a good-or-bad score built on line positions is a low-degree Boolean function, and the correlation between cast and changed scores is exactly 0.4167.
Chapter 5 writes the Life palace, the element bureau and the Zi Wei placement verse as piecewise affine maps modulo 12: Tian Fu is the reflection of Zi Wei across the Yin-Shen axis, and the fourteen main stars have only 12 layouts. Chapter 6 writes "three sides and four squares" as a convolution on the ring of twelve palaces: equal trines lose 8 of 12 harmonics, and two defensible sets of star values rank 144 cases with a rank correlation of only 0.606. Chapter 7 reads the number of the great expansion, Zhu Xi's divination procedure, Shao Yong's Before-Heaven diagrams and the textual history of the Zi Wei Dou Shu; the Before-Heaven diagrams are exactly binary counting, and the King Wen order has a rank correlation of −0.004 with binary value. Chapter 8 gives a four-step check and a pre-registered blind matching test (349 participants). Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses.
Keywords: Yijing; I Ching; hexagram; Boolean cube; Hamming distance; Klein four-group; Burnside lemma; nuclear hexagram; yarrow stalk method; three-coin method; probability; Markov chain; spectral gap; mixing time; Walsh-Fourier analysis; noise operator; Zhu Xi; Shao Yong; binary numbers; Leibniz; Zi Wei Dou Shu; modular arithmetic; piecewise affine map; dihedral group; circular convolution; discrete Fourier transform; matching test; pre-registration
目录 · Contents
- 序:卦与星宫的有限数学English 中文Preface: The Finite Mathematics of Hexagrams and Star Palaces
- 第一章 六十四卦是六维立方体English 中文Chapter 1. The Sixty-Four Hexagrams Are a Six-Dimensional Cube
- 第二章 蓍草与铜钱:两种起卦法的精确概率English 中文Chapter 2. Yarrow Stalks and Coins: the Exact Odds of the Two Methods
- 第三章 卦变的马尔可夫链与谱隙English 中文Chapter 3. The Markov Chain of Changing Hexagrams and Its Spectral Gap
- 第四章 读哪一段文字:变占规则与吉凶判别函数English 中文Chapter 4. Which Text Is Read: the Rules for Moving Lines and a Good-or-Bad Function
- 第五章 紫微斗数的安星法则是模 12 的映射English 中文Chapter 5. The Placement Rules of Zi Wei Dou Shu Are Maps Modulo 12
- 第六章 三方四正是十二宫环上的卷积English 中文Chapter 6. "Three Sides and Four Squares" Is a Convolution on the Ring of Twelve Palaces
- 第七章 大衍之数、先天图与《紫微斗数》的来历English 中文Chapter 7. The Number of the Great Expansion, the Before-Heaven Diagrams and the Origins of the *Zi Wei Dou Shu*
- 第八章 四步核查与一项预注册的配对检验English 中文Chapter 8. A Four-Step Check and a Pre-Registered Matching Test
How to cite · 引用
Fan, Y. (2026). Six-Dimensional Hypercube Walks, Hexagram Mutation Markov Chains and Modular Star-Palace Lattices: Boolean Cube Spectral Gaps, Yarrow-versus-Coin Probability Biases and Twelve-Palace Dihedral Projections [六维超立方体游走、卦变马尔可夫链与模运算星宫晶格] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090176
BibTeX
@book{fan2026hypercube,
title = {{Six-Dimensional Hypercube Walks, Hexagram Mutation Markov Chains and Modular Star-Palace Lattices}: Boolean Cube Spectral Gaps, Yarrow-versus-Coin Probability Biases and Twelve-Palace Dihedral Projections},
author = {Fan, Yafu},
year = {2026},
publisher = {5D Library},
edition = {Version 1.0.0},
doi = {10.5281/zenodo.24090176},
url = {https://doi.org/10.5281/zenodo.24090176},
note = {Chinese title: 六维超立方体游走、卦变马尔可夫链与模运算星宫晶格}
}
| DOI | https://doi.org/10.5281/zenodo.24090176 |
|---|---|
| DOI(全部版本 all versions) | https://doi.org/10.5281/zenodo.24090175 |
| ORCID | https://orcid.org/0009-0004-3519-1203 |
| 5D Library ID | 5DL-B-064 |
| 版本 Version | 1.0.0 · 中英双语版 Bilingual edition |
| 出版日期 Date | 2026-11-08 |
| 网址 Online | https://5dlibrary.com/books/hypercube-hexagram-transitions-modular-astrological-lattices/ |
| SHA-256 · hypercube-hexagram-transitions-modular-astrological-lattices_bilingual_v1.0.0.pdf | 024266e1e48e8716391079d4d37e952cdf45e9bfc50a2a4f4b9d91d3f3203a7b |
| SHA-256 · hypercube-hexagram-transitions-modular-astrological-lattices_en_v1.0.0.pdf | ec1d034dda01fc5cf86ca98132f20e6ede3ba555141c29854b72136ff999cbc6 |
| SHA-256 · hypercube-hexagram-transitions-modular-astrological-lattices_zh_v1.0.0.pdf | d77e69f73c740fb63bfa647ed97d6c0c01ee74f7a0477a85aea2473abdb7a754 |
| Licence · 许可 | Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0). https://creativecommons.org/licenses/by-nc-nd/4.0/ |
Disclosure. The author uses the works of 5D Library, including this book, as the methodological basis of his community courses, the 5D Ascension Cards (Dimensional Shift Card Decks) and the Yafu AI knowledge base, and develops and runs paid online reading software and services built on traditional divinatory symbol systems (six-line hexagram casting, Zi Wei Dou Shu charts, chart matching and date selection); the models of this book are the mathematical basis of those programs' algorithms, so he has a direct commercial interest in its subject. The book promotes no software, course, card deck or service, uses no user data from the author's businesses, and accepts no sponsorship. All its models are offered for mathematical study and teaching only and constitute no promise of divinatory prediction and no advice on any decision. The test in Chapter 8 must be carried out with pre-registered code by an independent analyst who has no financial relationship with the author and does not know where the readings came from, and its results will be published whether positive or negative.