pyphi.formalism.iit4.bounds.check_phi_bound#

pyphi.formalism.iit4.bounds.check_phi_bound(value, bound, *, system, label)[source]#

Assert a computed value does not exceed its certified upper bound.

A no-op unless config.infrastructure.validate_phi_bounds is set. Then, only inside the certified domain — a binary system and a config in the bound’s confirmed version/measure/scheme set — raise BoundViolationError when value exceeds 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.

bound is a thunk: the domain gate raises ValueError out of domain, so it is evaluated lazily and caught here.

Parameters:
Return type:

None