We consider a subsystem of Cyberspace that models two computers in communication. Data are transmitted from sender to receiver through an intervening medium by communication action . Action may result in corrupt data being received, in practice because medium is imperfect. Let us see how an entropy structure may be defined in order to quantify the amount of corruption achieved -- i.e. evil perpetrated -- by .
Let denote the set of data under consideration and let denote the set of all finite sequences of elements of . The state of the system consists of a pair of sequences of data, having the same length. Sequence represents the data transmitted so far and sequence represents the data received so far. Both sequences accumulate as time evolves and reflect the order in which data are handled. They have the same length because we choose to describe the system only after a datum has been received but before the next has been transmitted (since we here have no interest in observing the state of the system whilst data are in transit). Thus the set of system states is
where denotes the size (i.e. length) of finite sequence .
The communication action
is represented relationally as follows. If datum is communicated successfully then
where is the sequence obtained by placing item at the end of sequence . However if datum is corrupted to then
The pre-order we choose on is defined using the level function which is itself defined to reflect the number of messages corrupted
where and denote the th elements of sequences and respectively and denotes the
size (i.e. cardinality) of finite set .
With respect to the pre-order defined by equation (1)
we have now defined an entropy structure in which, if action corrupts data, it increases entropy and
so may be viewed as being evil. If corrupts no data it leaves entropy invariant and so is viewed as benign.
Communications protocols are designed in layers of abstraction. When corrupt data are detected at a certain layer the next-highest layer regards them as having been lost and hence must cope with their retransmission. So we now consider the medium , and hence action , to be capable of losing data (but not of corrupting it).
The state of the system is similar with the exception that the sequence of received data is a subsequence of , the sequence of transmitted data:
where means that is a subsequence of . The action of can result in either accurate transmission
or loss
The level function is chosen to measure the number of lost items
With respect to the pre-order defined by equation (1) an action which loses more data increases entropy more and so is more evil. A medium which loses no data leaves entropy invariant.