Before you run
A successful run ends with veto and signature assertions passed. A traceback is a failed assert — a failed claim, not a rounding nuisance. Use this starter only as an output shape; the derivation is yours.
def check():
# 1. define the constants and the constraint
# 2. assert the stated benchmarks
# 3. assert the undefined / boundary case explicitly
print("veto and signature assertions passed")
if __name__ == "__main__":
check()
The full worked asserts follow. Type them out; do not paste them.
[MATHEMATICAL] · [MODEL-DEPENDENT] · ASSERT CHECK
Book I — dimensional veto challenge
[MATHEMATICAL] This is not a quiz about remembering formulas. Write the assertions yourself and run them. You must verify the signatures of v² and gy, of PV and nRT, and the undefined case where two different scales are added. If an assert fails, the claim fails; a plot cannot rescue it.
[MATHEMATICAL] Signature order is (M, L, T, Θ, N). Multiply quantities by adding exponents; raise a quantity to a power by multiplying exponents. The check is run before any graph is drawn. [EXPERIMENTAL] A Lab Evidence Record proves a recorded session, not mastery.
Reproduce the verification suite
# Standard library only. Save as a .py file and run with python3.
BOUNDARY_VIOLATION = "incompatible dimensional signatures"
MASS = (1, 0, 0, 0, 0)
LENGTH = (0, 1, 0, 0, 0)
TIME = (0, 0, 1, 0, 0)
TEMPERATURE = (0, 0, 0, 1, 0)
AMOUNT = (0, 0, 0, 0, 1)
VELOCITY = (0, 1, -1, 0, 0)
ACCELERATION = (0, 1, -2, 0, 0)
PRESSURE = (1, -1, -2, 0, 0)
VOLUME = (0, 3, 0, 0, 0)
GAS_CONSTANT = (1, 2, -2, -1, -1)
C_SIGNATURE = (0, 1, -1, 0, 0)
def power(sig, exponent):
return tuple(exponent * e for e in sig)
def product(left, right):
return tuple(a + b for a, b in zip(left, right))
def sum_of_terms(left, right):
if left != right:
raise ValueError(BOUNDARY_VIOLATION)
return left
# 1. Free fall: v^2 and gy must share one signature before plotting.
v_squared = power(VELOCITY, 2)
g_times_y = product(ACCELERATION, LENGTH)
assert v_squared == (0, 2, -2, 0, 0)
assert g_times_y == (0, 2, -2, 0, 0)
assert sum_of_terms(v_squared, g_times_y) == v_squared
# 2. Gas law: PV and nRT must share the energy signature.
p_times_v = product(PRESSURE, VOLUME)
n_r_t = product(product(AMOUNT, GAS_CONSTANT), TEMPERATURE)
assert p_times_v == (1, 2, -2, 0, 0)
assert n_r_t == (1, 2, -2, 0, 0)
assert sum_of_terms(p_times_v, n_r_t) == p_times_v
# 3. Undefined case: 3 metres + 2 seconds has no dimensional signature.
try:
sum_of_terms(LENGTH, TIME)
except ValueError as err:
assert str(err) == BOUNDARY_VIOLATION
else:
raise AssertionError("the dimensional veto did not fire")
# 4. One exact Book I number: c = 299792458 m/s, and c^2 keeps the energy-per-mass form.
C = 299792458
assert C * C == 89875517873681764
assert product(MASS, power(C_SIGNATURE, 2)) == (1, 2, -2, 0, 0)
print("veto and signature assertions passed")
[MATHEMATICAL] The undefined case is ⊥, never zero and never a smaller residual. In machine-readable form the refusal is BOUNDARY_VIOLATION: the candidate has been rejected before a chart, a slider or a fitted curve is allowed to speak. [MODEL-DEPENDENT] Passing these asserts certifies dimensional admissibility only; it does not certify a measured law.
Rubric
[MATHEMATICAL] Four rungs, mapped to Book III’s description, prediction and explanation tiers. Each rung has a pass condition and a failure signature.
| Rung | Tier | Pass condition | Failure signature |
|---|---|---|---|
| Observe | Description | Names the five-signature order and records v, g, y, P, V, n, R, T with units. |
Treats units as captions added after plotting. |
| Manipulate | Description → Prediction | Computes the signatures of v², gy, PV and nRT by exponent arithmetic and gets the two shared vectors. |
Moves a control and reports a story instead of a tuple. |
| Predict | Prediction | Foresees that (0,1,0,0,0) + (0,0,1,0,0) is ⊥ and that no plotting choice can repair it. |
Substitutes zero, calls a unit mismatch rounding, or fits a curve to an illegal sum. |
| Construct | Explanation | Writes every assert above and explains scale fusion: one signature per side is what makes the equals sign a physical sentence rather than a calculation. | Uses a session record to certify a model claim, or extends the decoherence frontier without a named missing scale. |