ZEQ · SDKzeqstate.com

Asking a question

Every computation starts as one line:

TARGET ? [EQUATION; EQUATION [or EQUATION; ...] |] ITEM, ITEM, ...

The parts

PartWhat it isExample
TARGETthe symbol you wantr_s
EQUATIONleft = right, the unknown allowed on both sidesx ? x = cos(x)
the name of a shelf identityNewton's second law
field NAME: a field equation on a gridf ? field cavity | …
dY/dT = f: integrated from Y0 at T0 to T1v ? dv/dt = g - k_d*v^2 | v0 = 0 m/s, t1 = 5 s, …
ITEMa bindingm = 2 kg
a hypothesisv = sqrt(2*g*h)
a measurement to judge againstobserved = 11 ± 1 km
a boundobserved < 0.036
TARGET in UNIT ?the answer shown in that unitE in eV ? …
orrival equation sets on one state; the one inside the gate with the smallest gap is sealed

Second-order equations are written d2Y/dT2 = f and start from Y0 and dY0. A system joins equations with ;.

Units everywhere

A quantity keeps its unit anywhere in an expression: 5 km + 300 m is 5300 m, and sin(30 deg) is 0.5. A mass bound in metres is refused. c, hbar, h, G, k_B and pi are fixed constants. The functions are sin, cos, tan, exp, ln, log, sqrt, abs, integral and sum. A symbol of your own takes none of these names.

Examples

python3 zeq.py --ask "F ? F = m*a | m = 2 kg, a = 3 m/s^2"
python3 zeq.py --ask "T ? T^2 = 4*pi^2*a_orb^3/(G*m) | a_orb = 1.496e11 m, m = 1.98841e30 kg"
python3 zeq.py --ask "E ? E = h*nu; nu = c/lam | lam = 500 nm"
python3 zeq.py --ask "Z ? integral(x^3/(exp(x) - 1), x, 0, inf)"
python3 zeq.py --ask "f ? field cavity | a_x = 22.86 mm, a_y = 10.16 mm, a_z = 30 mm, m_x = 1, m_y = 0, m_z = 1, eps_r = 2.1"

What comes back

FieldMeaning
value_si, unit, gradethe value in SI, its unit and its dimension as exponents of (M, L, T, Θ)
verificationverified, observable-differential (with its gap to a measurement), or refused
refusedwhen refused, the step that stopped it and why
residual, residual_exacthow well the equations hold at the value, in the float and in exact arithmetic
condition, error_boundsensitivity of the answer, and the bound held to the 0.1 % gate
stepsFORM → BIND → COMPUTE → MEASURE → SEAL
methodthe toolkit that found it: root route, quadrature rule, integrator and tolerances
recipe, repro_digesteverything needed to compute it again, and the digest a reproduction must match
certifieswhat the residual proves: the computation, never that the equations are laws

Through the API the answer arrives inside a sealed envelope, signed by the machine and written into its log. See Verify an answer.

The shelf

With every module plugged in, the machine holds about 1,780 named identities in 39 domains, 41 field equations, the 42 kinematic operators and the operator registry. Each identity is tiered:

--find WORD and GET /find?q=WORDS search the shelf; GET /shelf lists it. Model-dependent constructs of the framework itself (the 1.287 Hz carrier's identities, the awareness operators) live in the frontier module, tiered model-dependent, and every answer built on them says so.