pyphi.formalism.iit4.bounds.check_phi_bound#
- pyphi.formalism.iit4.bounds.check_phi_bound(value, bound, *, system, label)[source]#
Assert a computed
valuedoes not exceed its certified upper bound.A no-op unless
config.infrastructure.validate_phi_boundsis set. Then, only inside the certified domain — a binarysystemand a config in the bound’s confirmed version/measure/scheme set — raiseBoundViolationErrorwhenvalueexceeds the certified ceiling by more than the active numerical precision. Outside the certified domain (IIT 3.0, non-GID, k-ary, degenerate partitions) it returns silently, so there are no false positives.boundis a thunk: the domain gate raisesValueErrorout of domain, so it is evaluated lazily and caught here.- Parameters:
value (float)
bound (Callable[[], UpperBound])
system (Any)
label (str)
- Return type:
None