What does Inhibition Matrices, Windows and Enzyme Competition conclude, in numbers, about “The Seven Relations”?

Answer: Chapter 7 writes the seven relations of the Shennong pharmacopoeia as a matrix, finding 47 of the 55 pairs acting alone, 7 in opposition and 1 assisting, and compares the four dosing-hour rules quoted in the preface to the Bencao gangmu with the arithmetic, which agrees on all four while the book argues that the agreement comes from the author's own mapping.

Scope of the numbers: Its parameters are illustrative or synthetic; all figures are produced by the programs printed in the book; the book is not medical advice, does not diagnose, and must not be used to start, stop or change any supplement or medicine. Marked boxes separate published evidence, runnable Python calculations (sixteen 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. printed values that match the answer: 47, 55

unordered pairs scored55
case pairs share
acting alone47 0.8545
mutual reinforcement0 0.0000
one assisting another1 0.0182
one restraining or spoiling0 0.0000
mutual opposition7 0.1273
the pairs that are not acting alone:
case first second effects
one assisting another curcumin piperine +0.556 -0.444
mutual opposition magnesium zinc-0.333 -0.537
mutual opposition magnesium calcium-0.328 -0.541
mutual opposition magnesium iron-0.441 -0.450
mutual opposition zinc calcium-0.413 -0.422
mutual opposition zinc iron-0.532 -0.336
mutual opposition calcium iron-0.535 -0.332
mutual opposition vitamin D3 vitamin K2 -0.329 -0.264
strongest opposition: magnesium and calcium at -0.328 and -0.541
pairs in which anything is raised at all1
so in this cupboard the classical cases are not evenly
filled0.8545 of pairs act alone and 0.1273 oppose
Show the full program
# Chapter 7. p13: The seven relations, written as a matrix. The
# Shennong pharmacopoeia sorts what one substance does to another into
# seven cases: acting alone, mutual reinforcement, one assisting
# another, one being restrained by another, one spoiling another, and
# mutual opposition. That is a classification of ordered pairs by the
# sign and the symmetry of their effect on each other, which is exactly
# what the interaction model of this book produces. Each of the 55
# unordered pairs of the eleven items is scored twice, once in each
# direction, and sorted into the classical cases by the rule below.
# The model sees delivery, not toxicity, so the case in which one
# substance restrains another's harm cannot be told apart from the case
# in which it spoils another's benefit; the two are reported together.
ITEMS = (
    ("magnesium",     400.00,  24.305, "divalent",  4.0000),
    ("zinc",           25.00,  65.380, "divalent",  0.1500),
    ("calcium",       500.00,  40.080, "divalent",  5.0000),
    ("iron",           18.00,  55.850, "divalent",  0.0800),
    ("vitamin D3",      0.10, 384.600, "micelle",   0.0004),
    ("vitamin K2",      0.18, 444.700, "micelle",   0.0005),
    ("NAD precursor", 300.00, 255.200, "nrk",       1.0000),
    ("curcumin",      500.00, 368.400, "conjugate", 1.0000),
    ("piperine",       10.00, 285.300, "conjugate", 0.0500),
    ("theanine",      200.00, 174.200, "amino",     1.0000),
    ("caffeine",      100.00, 194.200, "cyp1a2",    0.5000),
)
ENH_MAX, ENH_K = 1.60, 0.020
BOOSTS = {("piperine", "curcumin")}      # ordered: first raises second
THR = 0.05

def mmol(dose_mg, molar_mass):
    return dose_mg / molar_mass

def delivery(i, partner):
    name, dose, mm, site, km = ITEMS[i]
    s = mmol(dose, mm)
    alone = s / (km + s)
    extra = 0.0
    if partner is not None and ITEMS[partner][3] == site:
        extra = mmol(ITEMS[partner][1], ITEMS[partner][2]) / ITEMS[partner][4]
    out = s / (km * (1.0 + extra) + s)
    if partner is not None and (ITEMS[partner][0], name) in BOOSTS:
        p = mmol(ITEMS[partner][1], ITEMS[partner][2])
        out *= 1.0 + ENH_MAX * p / (ENH_K + p)
    return out / alone

def classify(a, b):
    # a is what the second does to the first, b the other way round
    up_a, up_b = a > THR, b > THR
    dn_a, dn_b = a < -THR, b < -THR
    if not (up_a or up_b or dn_a or dn_b):
        return "acting alone"
    if up_a and up_b:
        return "mutual reinforcement"
    if up_a or up_b:
        # one of the two is raised, whatever happens to the other
        return "one assisting another"
    if dn_a and dn_b:
        return "mutual opposition"
    return "one restraining or spoiling"

ORDER = ("acting alone", "mutual reinforcement", "one assisting another",
         "one restraining or spoiling", "mutual opposition")

if __name__ == "__main__":
    n = len(ITEMS)
    counts = {k: 0 for k in ORDER}
    rows = []
    for i in range(n):
        for j in range(i + 1, n):
            a = delivery(i, j) - 1.0
            b = delivery(j, i) - 1.0
            c = classify(a, b)
            counts[c] += 1
            rows.append((c, ITEMS[i][0], ITEMS[j][0], a, b))
    print("   unordered pairs scored: {}".format(n * (n - 1) // 2))
    print("   case                          pairs   share")
    for c in ORDER:
        print("   {:<30}{:<8d}{:.4f}"
              .format(c, counts[c], counts[c] / len(rows)))
    print("   the pairs that are not acting alone:")
    print("   case                        first        second     effects")
    for c in ORDER[1:]:
        for cc, a_name, b_name, a, b in rows:
            if cc == c:
                print("   {:<28}{:<13}{:<11}{:+.3f} {:+.3f}"
                      .format(c[:27], a_name[:12], b_name[:10], a, b))
    strongest = min(rows, key=lambda r: min(r[3], r[4]))
    print("   strongest opposition: {} and {} at {:+.3f} and {:+.3f}"
          .format(strongest[1], strongest[2], strongest[3], strongest[4]))
    helps = [r for r in rows if max(r[3], r[4]) > THR]
    print("   pairs in which anything is raised at all: {}"
          .format(len(helps)))
    print("   so in this cupboard the classical cases are not evenly")
    print("   filled: {:.4f} of pairs act alone and {:.4f} oppose"
          .format(counts["acting alone"] / len(rows),
                  (counts["mutual opposition"]
                   + counts["one restraining or spoiling"]) / len(rows)))

Single source and citation

Fan, Y. (2026). Polypharmacy Supplement Interactions, Chronotherapy Dosing Windows and Cytochrome Enzyme Competition (Version 1.0.0), Chapter 7: The Seven Relations. 5D Library. https://doi.org/10.5281/zenodo.24090250

DOI: 10.5281/zenodo.24090250 · Read the monograph · 5DL-B-096 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026096,
  author    = {Fan, Yafu},
  title     = {Polypharmacy Supplement Interactions, Chronotherapy Dosing Windows and Cytochrome Enzyme Competition},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24090250},
  url       = {https://doi.org/10.5281/zenodo.24090250}
}

Other chapter answers in this book