ABSTRACT

This chapter presents a hypothesis on the assumption that the basic reactions of swarms occur due to realization of some logical functions by their nature. Two-valued logical functions of the following types are defined: logical functions of propositional logic, logical functions of first-order logic of unary predicates, and logical functions of modal logic. The chapter examines the concept of duality of logical functions, which allows us to order logical functions. Then, logical functions are defined on swarm patterns. The chapter considers the logical duality natural for swarm basic reactions. There is a natural explanation of the swarm reactions. So, the swarm members can be either under stress or with a sense of safety. Standard logical functions are just an idealization of real swarm reactions. They are a digital representation of continuous mixes of different functions in one complex response to several outer stimuli.