source stringclasses 8
values | kind stringclasses 2
values | branch stringclasses 12
values | position int64 1 4 | stem_raw stringclasses 25
values | stem stringclasses 10
values | element stringclasses 5
values | role stringclasses 3
values | days float64 3 23 ⌀ | weight float64 0.1 0.6 ⌀ | note stringclasses 13
values | quote stringclasses 48
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
sanming-a | classical | 寅 | 1 | 艮土 | null | 土 | null | 5 | null | 原文作「艮土」,只言屬土,不言戊己 | 寅中有艮土用事五日丙火長生五日甲木二十日 |
sanming-a | classical | 寅 | 2 | 丙火 | 丙 | 火 | null | 5 | null | null | 寅中有艮土用事五日丙火長生五日甲木二十日 |
sanming-a | classical | 寅 | 3 | 甲木 | 甲 | 木 | null | 20 | null | null | 寅中有艮土用事五日丙火長生五日甲木二十日 |
sanming-a | classical | 卯 | 1 | 甲木 | 甲 | 木 | null | 7 | null | null | 卯中有甲木用事七日乙木二十三日 |
sanming-a | classical | 卯 | 2 | 乙木 | 乙 | 木 | null | 23 | null | null | 卯中有甲木用事七日乙木二十三日 |
sanming-a | classical | 辰 | 1 | 乙木 | 乙 | 木 | null | 7 | null | null | 辰中有乙木用事七日壬水墓庫五日戊土一十八日 |
sanming-a | classical | 辰 | 2 | 壬水 | 壬 | 水 | null | 5 | null | null | 辰中有乙木用事七日壬水墓庫五日戊土一十八日 |
sanming-a | classical | 辰 | 3 | 戊土 | 戊 | 土 | null | 18 | null | null | 辰中有乙木用事七日壬水墓庫五日戊土一十八日 |
sanming-a | classical | 巳 | 1 | 戊土 | 戊 | 土 | null | 7 | null | null | 巳中有戊土七日庚金長生五日丙火一十八日 |
sanming-a | classical | 巳 | 2 | 庚金 | 庚 | 金 | null | 5 | null | null | 巳中有戊土七日庚金長生五日丙火一十八日 |
sanming-a | classical | 巳 | 3 | 丙火 | 丙 | 火 | null | 18 | null | null | 巳中有戊土七日庚金長生五日丙火一十八日 |
sanming-a | classical | 午 | 1 | 丙火 | 丙 | 火 | null | 7 | null | null | 午中丙火用事七日丁火二十三日 |
sanming-a | classical | 午 | 2 | 丁火 | 丁 | 火 | null | 23 | null | null | 午中丙火用事七日丁火二十三日 |
sanming-a | classical | 未 | 1 | 丁火 | 丁 | 火 | null | 7 | null | null | 未中有丁火用事七日甲木墓庫五日巳土一十八日 |
sanming-a | classical | 未 | 2 | 甲木 | 甲 | 木 | null | 5 | null | null | 未中有丁火用事七日甲木墓庫五日巳土一十八日 |
sanming-a | classical | 未 | 3 | 巳土 | 己 | 土 | null | 18 | null | 原文作「巳土」,據文意讀作己土 | 未中有丁火用事七日甲木墓庫五日巳土一十八日 |
sanming-a | classical | 申 | 1 | 坤土 | null | 土 | null | 5 | null | 原文作「坤土」,只言屬土,不言戊己 | 申中有坤土用事五日壬水長生五日庚金二十日 |
sanming-a | classical | 申 | 2 | 壬水 | 壬 | 水 | null | 5 | null | null | 申中有坤土用事五日壬水長生五日庚金二十日 |
sanming-a | classical | 申 | 3 | 庚金 | 庚 | 金 | null | 20 | null | null | 申中有坤土用事五日壬水長生五日庚金二十日 |
sanming-a | classical | 酉 | 1 | 庚金 | 庚 | 金 | null | 7 | null | null | 酉中有庚金用事七日辛金二十三日 |
sanming-a | classical | 酉 | 2 | 辛金 | 辛 | 金 | null | 23 | null | null | 酉中有庚金用事七日辛金二十三日 |
sanming-a | classical | 戌 | 1 | 辛金 | 辛 | 金 | null | 7 | null | null | 戌中有辛金用事七日丙火墓庫五日戊土一十八日 |
sanming-a | classical | 戌 | 2 | 丙火 | 丙 | 火 | null | 5 | null | null | 戌中有辛金用事七日丙火墓庫五日戊土一十八日 |
sanming-a | classical | 戌 | 3 | 戊土 | 戊 | 土 | null | 18 | null | null | 戌中有辛金用事七日丙火墓庫五日戊土一十八日 |
sanming-a | classical | 亥 | 1 | 戊土 | 戊 | 土 | null | 5 | null | null | 亥中有戊土五日甲木長生五日壬水用事二十日 |
sanming-a | classical | 亥 | 2 | 甲木 | 甲 | 木 | null | 5 | null | null | 亥中有戊土五日甲木長生五日壬水用事二十日 |
sanming-a | classical | 亥 | 3 | 壬水 | 壬 | 水 | null | 20 | null | null | 亥中有戊土五日甲木長生五日壬水用事二十日 |
sanming-a | classical | 子 | 1 | 壬水 | 壬 | 水 | null | 7 | null | null | 子中有壬水用事七日癸水二十三日 |
sanming-a | classical | 子 | 2 | 癸水 | 癸 | 水 | null | 23 | null | null | 子中有壬水用事七日癸水二十三日 |
sanming-a | classical | 丑 | 1 | 癸水 | 癸 | 水 | null | 7 | null | null | 丑中有癸水用事七日庚金墓庫五日巳土一十八日 |
sanming-a | classical | 丑 | 2 | 庚金 | 庚 | 金 | null | 5 | null | null | 丑中有癸水用事七日庚金墓庫五日巳土一十八日 |
sanming-a | classical | 丑 | 3 | 巳土 | 己 | 土 | null | 18 | null | 原文作「巳土」,據文意讀作己土 | 丑中有癸水用事七日庚金墓庫五日巳土一十八日 |
sanming-b | classical | 寅 | 1 | 已土 | 己 | 土 | null | 7 | null | 原文作「已土」,據文意讀作己土 | 已土七日丙火五日甲木十八日 |
sanming-b | classical | 寅 | 2 | 丙火 | 丙 | 火 | null | 5 | null | null | 已土七日丙火五日甲木十八日 |
sanming-b | classical | 寅 | 3 | 甲木 | 甲 | 木 | null | 18 | null | null | 已土七日丙火五日甲木十八日 |
sanming-b | classical | 卯 | 1 | 乙 | 乙 | 木 | null | 18 | null | null | 乙十八日甲九日癸三日 |
sanming-b | classical | 卯 | 2 | 甲 | 甲 | 木 | null | 9 | null | null | 乙十八日甲九日癸三日 |
sanming-b | classical | 卯 | 3 | 癸 | 癸 | 水 | null | 3 | null | null | 乙十八日甲九日癸三日 |
sanming-b | classical | 辰 | 1 | 戊 | 戊 | 土 | null | 18 | null | null | 戊十八日乙九日癸三日 |
sanming-b | classical | 辰 | 2 | 乙 | 乙 | 木 | null | 9 | null | null | 戊十八日乙九日癸三日 |
sanming-b | classical | 辰 | 3 | 癸 | 癸 | 水 | null | 3 | null | null | 戊十八日乙九日癸三日 |
sanming-b | classical | 巳 | 1 | 丙 | 丙 | 火 | null | 18 | null | null | 丙十八日戊七日庚五日 |
sanming-b | classical | 巳 | 2 | 戊 | 戊 | 土 | null | 7 | null | null | 丙十八日戊七日庚五日 |
sanming-b | classical | 巳 | 3 | 庚 | 庚 | 金 | null | 5 | null | null | 丙十八日戊七日庚五日 |
sanming-b | classical | 午 | 1 | 丁 | 丁 | 火 | null | 18 | null | null | 丁十八日丙九日乙三日 |
sanming-b | classical | 午 | 2 | 丙 | 丙 | 火 | null | 9 | null | null | 丁十八日丙九日乙三日 |
sanming-b | classical | 午 | 3 | 乙 | 乙 | 木 | null | 3 | null | null | 丁十八日丙九日乙三日 |
sanming-b | classical | 未 | 1 | 已 | 己 | 土 | null | 18 | null | 原文作「已」,讀作己 | 已十八日乙五日丁七日 |
sanming-b | classical | 未 | 2 | 乙 | 乙 | 木 | null | 5 | null | null | 已十八日乙五日丁七日 |
sanming-b | classical | 未 | 3 | 丁 | 丁 | 火 | null | 7 | null | null | 已十八日乙五日丁七日 |
sanming-b | classical | 申 | 1 | 庚 | 庚 | 金 | null | 17 | null | null | 庚十七日已七日戊三日壬三日 |
sanming-b | classical | 申 | 2 | 已 | 己 | 土 | null | 7 | null | 原文作「已」,讀作己 | 庚十七日已七日戊三日壬三日 |
sanming-b | classical | 申 | 3 | 戊 | 戊 | 土 | null | 3 | null | null | 庚十七日已七日戊三日壬三日 |
sanming-b | classical | 申 | 4 | 壬 | 壬 | 水 | null | 3 | null | null | 庚十七日已七日戊三日壬三日 |
sanming-b | classical | 酉 | 1 | 辛 | 辛 | 金 | null | 20 | null | null | 辛二十日庚七日丁五日 |
sanming-b | classical | 酉 | 2 | 庚 | 庚 | 金 | null | 7 | null | null | 辛二十日庚七日丁五日 |
sanming-b | classical | 酉 | 3 | 丁 | 丁 | 火 | null | 5 | null | null | 辛二十日庚七日丁五日 |
sanming-b | classical | 戌 | 1 | 戊 | 戊 | 土 | null | 18 | null | null | 戊十八日辛七日丁五日 |
sanming-b | classical | 戌 | 2 | 辛 | 辛 | 金 | null | 7 | null | null | 戊十八日辛七日丁五日 |
sanming-b | classical | 戌 | 3 | 丁 | 丁 | 火 | null | 5 | null | null | 戊十八日辛七日丁五日 |
sanming-b | classical | 亥 | 1 | 壬 | 壬 | 水 | null | 18 | null | null | 壬十八日甲五日戊七日 |
sanming-b | classical | 亥 | 2 | 甲 | 甲 | 木 | null | 5 | null | null | 壬十八日甲五日戊七日 |
sanming-b | classical | 亥 | 3 | 戊 | 戊 | 土 | null | 7 | null | null | 壬十八日甲五日戊七日 |
sanming-b | classical | 子 | 1 | 癸 | 癸 | 水 | null | 18 | null | null | 癸十八日壬五日辛三日 |
sanming-b | classical | 子 | 2 | 壬 | 壬 | 水 | null | 5 | null | null | 癸十八日壬五日辛三日 |
sanming-b | classical | 子 | 3 | 辛 | 辛 | 金 | null | 3 | null | null | 癸十八日壬五日辛三日 |
sanming-b | classical | 丑 | 1 | 已 | 己 | 土 | null | 18 | null | 原文作「已」,讀作己 | 已十八日癸七日辛五日 |
sanming-b | classical | 丑 | 2 | 癸 | 癸 | 水 | null | 7 | null | null | 已十八日癸七日辛五日 |
sanming-b | classical | 丑 | 3 | 辛 | 辛 | 金 | null | 5 | null | null | 已十八日癸七日辛五日 |
yuanhai-zangdun | classical | 子 | 1 | 癸水 | 癸 | 水 | null | null | null | null | 子宫癸水在其中 |
yuanhai-zangdun | classical | 丑 | 1 | 癸 | 癸 | 水 | null | null | null | null | 丑癸辛金己土同 |
yuanhai-zangdun | classical | 丑 | 2 | 辛金 | 辛 | 金 | null | null | null | null | 丑癸辛金己土同 |
yuanhai-zangdun | classical | 丑 | 3 | 己土 | 己 | 土 | null | null | null | null | 丑癸辛金己土同 |
yuanhai-zangdun | classical | 寅 | 1 | 甲木 | 甲 | 木 | null | null | null | null | 寅宫甲木兼丙戊 |
yuanhai-zangdun | classical | 寅 | 2 | 丙 | 丙 | 火 | null | null | null | null | 寅宫甲木兼丙戊 |
yuanhai-zangdun | classical | 寅 | 3 | 戊 | 戊 | 土 | null | null | null | null | 寅宫甲木兼丙戊 |
yuanhai-zangdun | classical | 卯 | 1 | 乙木 | 乙 | 木 | null | null | null | null | 卯宫乙木独相逢 |
yuanhai-zangdun | classical | 辰 | 1 | 乙 | 乙 | 木 | null | null | null | null | 辰藏乙戊三分癸 |
yuanhai-zangdun | classical | 辰 | 2 | 戊 | 戊 | 土 | null | null | null | null | 辰藏乙戊三分癸 |
yuanhai-zangdun | classical | 辰 | 3 | 癸 | 癸 | 水 | null | null | null | null | 辰藏乙戊三分癸 |
yuanhai-zangdun | classical | 巳 | 1 | 庚金 | 庚 | 金 | null | null | null | null | 巳中庚金丙戊丛 |
yuanhai-zangdun | classical | 巳 | 2 | 丙 | 丙 | 火 | null | null | null | null | 巳中庚金丙戊丛 |
yuanhai-zangdun | classical | 巳 | 3 | 戊 | 戊 | 土 | null | null | null | null | 巳中庚金丙戊丛 |
yuanhai-zangdun | classical | 午 | 1 | 丁火 | 丁 | 火 | null | null | null | null | 午宫丁火并己土 |
yuanhai-zangdun | classical | 午 | 2 | 己土 | 己 | 土 | null | null | null | null | 午宫丁火并己土 |
yuanhai-zangdun | classical | 未 | 1 | 乙 | 乙 | 木 | null | null | null | null | 未宫乙己丁共宗 |
yuanhai-zangdun | classical | 未 | 2 | 己 | 己 | 土 | null | null | null | null | 未宫乙己丁共宗 |
yuanhai-zangdun | classical | 未 | 3 | 丁 | 丁 | 火 | null | null | null | null | 未宫乙己丁共宗 |
yuanhai-zangdun | classical | 申 | 1 | 庚金 | 庚 | 金 | null | null | null | null | 申位庚金壬水戊 |
yuanhai-zangdun | classical | 申 | 2 | 壬水 | 壬 | 水 | null | null | null | null | 申位庚金壬水戊 |
yuanhai-zangdun | classical | 申 | 3 | 戊 | 戊 | 土 | null | null | null | null | 申位庚金壬水戊 |
yuanhai-zangdun | classical | 酉 | 1 | 辛金 | 辛 | 金 | null | null | null | null | 酉宫辛金独丰隆 |
yuanhai-zangdun | classical | 戌 | 1 | 辛金 | 辛 | 金 | null | null | null | null | 戌宫辛金及丁戊 |
yuanhai-zangdun | classical | 戌 | 2 | 丁 | 丁 | 火 | null | null | null | null | 戌宫辛金及丁戊 |
yuanhai-zangdun | classical | 戌 | 3 | 戊 | 戊 | 土 | null | null | null | null | 戌宫辛金及丁戊 |
yuanhai-zangdun | classical | 亥 | 1 | 壬 | 壬 | 水 | null | null | null | null | 亥藏壬甲是真踪 |
yuanhai-zangdun | classical | 亥 | 2 | 甲 | 甲 | 木 | null | null | null | null | 亥藏壬甲是真踪 |
yuanhai-anzang | classical | 寅 | 1 | 丙火 | 丙 | 火 | null | null | null | 「念三」未能確定是天數還是日序,不取數 | 立春念三丙火用,餘日甲木旺提纲 |
yuanhai-anzang | classical | 寅 | 2 | 甲木 | 甲 | 木 | null | null | null | null | 立春念三丙火用,餘日甲木旺提纲 |
yuanhai-anzang | classical | 卯 | 1 | 乙木 | 乙 | 木 | null | null | null | null | 惊蛰乙木未用事;春分乙未正相当 |
from datasets import load_dataset
rows = load_dataset("Shann5/bazi-hidden-stems") # one row per (source, branch, stem)
compare = load_dataset("Shann5/bazi-hidden-stems", "compare") # one row per branch, one column per source
Mirror of hidden-stems/ in
Shann5/bazi-open-data — the GitHub copy is canonical
(JSON version, source texts, build). Corrections belong there as issues.
Hidden stems (藏干) across sources
Every earthly branch stores one to three heavenly stems. Chart apps print them as if the table were settled. It is settled for one question and not for the other:
- What does a branch contain? (藏干, the contents) — the modern engines agree with each other and with one 16th-century verse, word for word.
- Which stem is in command on which days of the month? (人元司令, the command) — no two classical tables agree for all twelve branches, and one book disagrees with itself.
This folder puts the sources side by side, each classical row with a verbatim quote that the build checks against the source text.
Sources
| id | question | what it is |
|---|---|---|
sanming-a |
command | Sanming Tonghui 三命通會 vol. 2, 論人元司事, main text (Siku Quanshu edition) — days per stem |
sanming-b |
command | same section, the month-by-month table annotated with solar terms — a different set of days |
yuanhai-anzang |
command | Yuanhai Ziping 淵海子平, 論天干地支暗藏總訣 — a verse by solar term; only explicit numbers are taken |
yuanhai-zangdun |
contents | Yuanhai Ziping, 又地支藏遁歌 — the verse the modern table comes from |
lunar-typescript |
contents | LunarUtil.ZHI_HIDE_GAN (MIT), v1.8.6 |
tyme4ts-nominal |
command | SolarDay.getHideHeavenStemDay (MIT), v1.5.2 — the table encoded in its source |
tyme4ts-as-run |
command | the same function, counted day by day over a real year |
auspice-engine |
contents | the weights our own strength calculation puts on each hidden stem |
The Wikisource text of Yuanhai Ziping names no base edition; treat those two rows as a weaker witness than the Sanming Tonghui rows.
What the comparison shows
Contents: 12 of 12 branches agree. lunar-typescript reproduces the 藏遁歌 exactly, main stem first.
Command: the four tables never all agree on a branch. Some of the difference is
wording (sanming-a writes 艮土 / 坤土, "earth of Gen / Kun", without saying 戊 or 己;
the 暗藏總訣 verse skips stems). What remains is real:
sanming-a |
sanming-b |
tyme4ts-nominal |
|
|---|---|---|---|
| storage stem in 辰 | 壬 5 days | 癸 3 | 癸 3 |
| storage stem in 丑 | 庚 5 | 辛 5 | 辛 3 |
| storage stem in 未 | 甲 5 | 乙 5 | 乙 3 |
| storage stem in 戌 | 丙 5 | 丁 5 | 丁 3 |
| 己 in 午 | none | none (乙 3 instead) | 己 9 |
| main stem days in 寅 (甲) | 20 | 18 | 16 |
The same section of the Sanming Tonghui also quotes a critic, 醉醒子, who rejects day counts altogether: 「又豈可以三五七日為限哉」 — "how can it be limited to three, five or seven days?"
tyme4ts, nominal vs as run. Run day by day, the first segment of every month is one day longer than the encoded table (子: 壬 11 days, not 10), because the solar-term day itself is counted into it. Whether that is intended is a convention question; both versions are recorded.
Weights. Our engine weights hidden stems 0.6 / 0.3 / 0.1 by position. A branch with one stem (子 卯 酉) therefore totals 0.6, two stems (午 亥) 0.9, three stems 1.0.
Files
hidden-stems.long.csv(JSON on GitHub) — one row per (source, branch, stem): position, role, days, weight, note, verbatim quotehidden-stems.compare.csv— one row per branch, one column per source- source texts and the build are in the GitHub repo,
hidden-stems/classical/(python3 build.py; engine rows fromnode engines.cjs engines.json)
What this is not
A record of what the sources say, not a ruling on which is right. The days in the command tables are conventions for weighting the month; nothing here predicts anything. Structured data CC BY 4.0; the classical texts are in the public domain.
中文摘要
藏干分两个问题:支里藏什么(成分)——现代引擎与《渊海子平·藏遁歌》逐字一致,12/12; 一月之内谁当令几天(人元司令)——四份表没有一支完全一致。三命通会正文把四库的墓气写成阳干 (辰壬、丑庚、未甲、戌丙),两份三命通会表的午里都没有己,寅中甲木的天数从 20 到 16 不等。 同一节还录了醉醒子的反对:「又豈可以三五七日為限哉」。每条古籍记录附原文,build 逐字核对。
- Downloads last month
- -